rust

Is there an Rust equivalent to the C preprocessor's __DATE__ and __TIME__ macros?


I am looking for a way to embed the compile-time date and time into my program output for debugging purposes.


Solution

  • No, there is not. Use a build script instead.

    See also: