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

no-std dev build-context

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

4 releases

0.1.3 Sep 13, 2024
0.1.2 Apr 13, 2024
0.1.1 May 5, 2023
0.1.0 May 1, 2023

#25 in No standard library

Download history 1436/week @ 2024-08-16 2375/week @ 2024-08-23 4101/week @ 2024-08-30 2049/week @ 2024-09-06 4394/week @ 2024-09-13 3206/week @ 2024-09-20 2709/week @ 2024-09-27 1753/week @ 2024-10-04 3610/week @ 2024-10-11 3491/week @ 2024-10-18 4316/week @ 2024-10-25 2687/week @ 2024-11-01 4997/week @ 2024-11-08 5945/week @ 2024-11-15 4463/week @ 2024-11-22 2114/week @ 2024-11-29

17,819 downloads per month
Used in 6 crates

Apache-2.0 OR MIT

13KB
72 lines

build-context

crates.io docs.rs license msrv 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