#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 195/week @ 2024-11-17 167/week @ 2024-11-24 467/week @ 2024-12-01 303/week @ 2024-12-08 134/week @ 2024-12-15 158/week @ 2024-12-22 38/week @ 2024-12-29 100/week @ 2025-01-05 259/week @ 2025-01-12 354/week @ 2025-01-19 257/week @ 2025-01-26 284/week @ 2025-02-02 374/week @ 2025-02-09 92/week @ 2025-02-16 125/week @ 2025-02-23 260/week @ 2025-03-02

934 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
~38K SLoC