Crates.io | ctc |
lib.rs | ctc |
version | 0.2.2 |
source | src |
created_at | 2021-12-09 19:58:37.655153 |
updated_at | 2022-01-21 12:26:12.982811 |
description | load config files on compile time. |
homepage | https://github.com/sahandevs/ctc |
repository | |
max_upload_size | |
id | 495336 |
size | 5,575 |
load config files on compile time.
[dependencies]
ctc = "0.2"
ctc::import_conf!("Cargo.toml", cargo);
fn main() {
println!("package.name: {}", cargo::package::name);
println!("package.version: {}", cargo::package::version);
println!("package.edition: {}", cargo::package::edition);
}
See the example project.