Skip to content

Latest commit

 

History

History
5 lines (3 loc) · 231 Bytes

cargo.md

File metadata and controls

5 lines (3 loc) · 231 Bytes

Environment variables

These can be accessed from within a Rust program. The following will print the [package] name and version fields:

println!("{}: {}", env!("CARGO_PKG_NAME"), env!("CARGO_PKG_VERSION"));