#cargo-toml #macro #env #fields #prettier #convinient #pulling

cargo-toml-macros

Convinient macros for pulling fields from your Cargo.toml. Prettier than std::env

2 stable releases

1.0.1 Oct 1, 2020
1.0.0 Aug 13, 2020

#1251 in Procedural macros

Download history 15/week @ 2024-11-13 60/week @ 2024-11-20 16/week @ 2024-11-27 19/week @ 2024-12-04 37/week @ 2024-12-11 1/week @ 2024-12-18 1/week @ 2025-01-08 5/week @ 2025-01-15 10/week @ 2025-01-29 11/week @ 2025-02-05 14/week @ 2025-02-12 46/week @ 2025-02-19 25/week @ 2025-02-26

99 downloads per month

CC0 license

5KB

cargo-toml-macros

Very clap inspired macros.

With one line of code, you get access to six fun and exciting macros!

use cargo_toml_macros::*;

crate_version!();
crate_authors!();
crate_name!();
crate_description!();
crate_homepage!();
crate_repository!();

Take a peak at lib.rs and see how much time you'll save using this crate! Joking aside, all this crate does is call the std::env with the right variable name for each macro.

No runtime deps