Skip to main content

Crate compile_time_macros

Crate compile_time_macros 

Source
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
Rust compiler build version as &'static str.
command_str
Rust compiler build version as &'static str.
date
Compile date as time::Date.
date_str
Compile date as &'static str in yyyy-MM-dd format.
datetime
Compile date and time as time::OffsetDateTime.
datetime_str
Compile time as &'static str in yyyy-MM-ddThh:mm:ssZ format.
rustc_version
Rust compiler version as semver::Version.
rustc_version_build
Rust compiler build version as &'static str.
rustc_version_major
Rust compiler major version as integer literal.
rustc_version_minor
Rust compiler minor version as integer literal.
rustc_version_patch
Rust compiler patch version as integer literal.
rustc_version_pre
Rust compiler pre version as &'static str.
rustc_version_str
Rust compiler version as &'static str.
time
Compile time as time::Time.
time_str
Compile time as &'static str in hh:mm:ss format.
unix
Compile date and time as UNIX timestamp in seconds.