| Crates.io | compile-time |
| lib.rs | compile-time |
| version | 0.2.0 |
| created_at | 2023-06-30 03:49:32.766172+00 |
| updated_at | 2023-07-01 19:57:51.375622+00 |
| description | Macros for getting compile time information. |
| homepage | https://github.com/reitermarkus/compile-time-rs |
| repository | https://github.com/reitermarkus/compile-time-rs |
| max_upload_size | |
| id | 904067 |
| size | 14,025 |
compile-timeThis 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.
let compile_datetime = compile_time::datetime_str!();
let rustc_version = compile_time::rustc_version_str!();
println!("Compiled using Rust {rustc_version} on {compile_datetime}.");