#build-script #variables #env-var #environment #cross-compiling #target #cargo-cfg-target

build tectonic_cfg_support

A build.rs support crate that helps deal with CARGO_CFG_TARGET_* variables. When cross-compiling, these variables must be used instead of constructs such as cfg!(target_arch = ...) because the build.rs script is compiled to target the build host environment, not the true target environment

8 releases

0.1.4 Feb 28, 2022
0.1.3 Jun 4, 2021
0.1.2 Jan 16, 2021
0.1.1 Oct 21, 2020
0.0.1 Dec 6, 2019

#530 in Build Utils

Download history 148/week @ 2024-11-15 178/week @ 2024-11-22 256/week @ 2024-11-29 277/week @ 2024-12-06 235/week @ 2024-12-13 150/week @ 2024-12-20 83/week @ 2024-12-27 146/week @ 2025-01-03 195/week @ 2025-01-10 211/week @ 2025-01-17 181/week @ 2025-01-24 180/week @ 2025-01-31 211/week @ 2025-02-07 253/week @ 2025-02-14 201/week @ 2025-02-21 178/week @ 2025-02-28

875 downloads per month
Used in 26 crates (3 directly)

MIT license

17KB
216 lines

The tectonic_cfg_support crate

This crate helps build.rs files deal with CARGO_CFG_TARGET_* variables. When cross-compiling, these variables must be used instead of constructs such as cfg!(target_arch = ...) because the build.rs script is compiled to target the build host environment, not the true target environment. This crate is part of the Tectonic project.


lib.rs:

This support crate helps deal with CARGO_CFG_TARGET_* variables. When cross-compiling with a build.rs script, these variables must be used instead of constructs such as cfg!(target_arch = ...) because the build.rs compilation targets the build host architecture, not the final target architecture.

For more information, see the documentation on:

Dependencies

~10KB