Expand description
This crate provides macros for getting compile time information.
This crate should not be used directly; use compile-time instead.
Macrosยง
- command_
bytes - Runs the given command and returns its standard output as a
&'static [u8]. - command_
str - Runs the given command and returns its standard output as a
&'static str. - date
- Returns the compile date as
time::Date. - date_
str - Returns the compile date as
&'static strinyyyy-MM-ddformat. - datetime
- Returns the compile date and time as
time::OffsetDateTime. - datetime_
str - Returns the compile date and time as
&'static strinyyyy-MM-ddThh:mm:ssZformat. - rustc_
version - Returns the Rust compiler version as
semver::Version. - rustc_
version_ build - Returns the Rust compiler build version as a
&'static str. - rustc_
version_ major - Returns the Rust compiler major version as integer literal.
- rustc_
version_ minor - Returns the Rust compiler minor version as integer literal.
- rustc_
version_ patch - Returns the Rust compiler patch version as integer literal.
- rustc_
version_ pre - Returns the Rust compiler pre version as
&'static str. - rustc_
version_ str - Returns the Rust compiler version as
&'static str. - time
- Returns the compile time as
time::Time. - time_
str - Returns the compile time as
&'static strinhh:mm:ssformat. - unix
- Returns the compile date and time as UNIX timestamp in seconds.