#constants #binaries #information #testing #normal #host #environment

no-std dev build-context

Make build environment/target information available as constants in normal libraries and binaries

3 releases

new 0.1.2 Apr 13, 2024
0.1.1 May 5, 2023
0.1.0 May 1, 2023

#33 in No standard library

Download history 2303/week @ 2023-12-23 1732/week @ 2023-12-30 2066/week @ 2024-01-06 1491/week @ 2024-01-13 1952/week @ 2024-01-20 1373/week @ 2024-01-27 2008/week @ 2024-02-03 1437/week @ 2024-02-10 2128/week @ 2024-02-17 1500/week @ 2024-02-24 2346/week @ 2024-03-02 2163/week @ 2024-03-09 2191/week @ 2024-03-16 1811/week @ 2024-03-23 2612/week @ 2024-03-30 2071/week @ 2024-04-06

8,885 downloads per month
Used in 5 crates

Apache-2.0 OR MIT

11KB
61 lines

build-context

crates.io docs.rs license rust version github actions

Make build environment/target information available as constants in normal libraries and binaries.

This is intended primarily for use in tests and its helpers. When used in libraries or binaries, be careful not to depend on constants that depend on the host environment.

Some constants duplicate those provided in std::env::consts.

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

No runtime deps