compile-time
This crate provides macros for getting compile time information.
You can get the compile time either as time::Date
, time::Time
,
time::OffsetDateTime
, string, or UNIX timestamp.
You can get the Rust compiler version either as semver::Version
or string,
and the individual version parts as integer literals or strings, respectively.
```rust let compiledatetime = compiletime::datetimestr!(); let rustcversion = compiletime::rustcversion_str!();
println!("Compiled using Rust {rustcversion} on {compiledatetime}."); ```