#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

#24 in No standard library

Download history 1148/week @ 2024-07-22 1865/week @ 2024-07-29 1464/week @ 2024-08-05 1479/week @ 2024-08-12 2352/week @ 2024-08-19 3127/week @ 2024-08-26 3143/week @ 2024-09-02 1788/week @ 2024-09-09 5244/week @ 2024-09-16 2383/week @ 2024-09-23 2550/week @ 2024-09-30 1976/week @ 2024-10-07 4592/week @ 2024-10-14 3260/week @ 2024-10-21 3341/week @ 2024-10-28 3932/week @ 2024-11-04

15,512 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