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

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

#341 in Build Utils

Download history 180/week @ 2024-03-14 260/week @ 2024-03-21 256/week @ 2024-03-28 218/week @ 2024-04-04 210/week @ 2024-04-11 204/week @ 2024-04-18 203/week @ 2024-04-25 160/week @ 2024-05-02 177/week @ 2024-05-09 208/week @ 2024-05-16 176/week @ 2024-05-23 222/week @ 2024-05-30 177/week @ 2024-06-06 209/week @ 2024-06-13 266/week @ 2024-06-20 140/week @ 2024-06-27

832 downloads per month
Used in 25 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