#package #cargo #cargo-manifest #derive #fields #manifest #env-var

macro package_info_derive

Derive macro for exposing Cargo Package Information to Rust code

1 unstable release

0.1.0 Sep 11, 2021

#27 in #cargo-manifest

Download history 202/week @ 2024-04-15 177/week @ 2024-04-22 41/week @ 2024-04-29 76/week @ 2024-05-06 77/week @ 2024-05-13 133/week @ 2024-05-20 95/week @ 2024-05-27 203/week @ 2024-06-03 115/week @ 2024-06-10 92/week @ 2024-06-17 86/week @ 2024-06-24 12/week @ 2024-07-01 78/week @ 2024-07-08 169/week @ 2024-07-15 149/week @ 2024-07-22 106/week @ 2024-07-29

503 downloads per month
Used in 3 crates

MIT license

7KB
129 lines

Derive macros for exposing Cargo Package information in Rust apps run as binaries

Values are taken from environment variables exported by Cargo @see https://doc.rust-lang.org/cargo/reference/environment-variables.html#environment-variables-cargo-sets-for-crates

Dependencies

~1.5MB
~36K SLoC