File: build.rs

package info (click to toggle)
rust-encoding-rs 0.8.22-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 5,256 kB
  • sloc: python: 1,557; makefile: 2
file content (12 lines) | stat: -rw-r--r-- 588 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
fn main() {
    // This does not enable `RUSTC_BOOTSTRAP=1` for `packed_simd`.
    // You still need to knowingly have a setup that makes
    // `packed_simd` compile. Therefore, having this file on
    // crates.io is harmless in terms of users of `encoding_rs`
    // accidentally depending on nightly features. Having this
    // here means that if you knowingly want this, you only
    // need to maintain a fork of `packed_simd` without _also_
    // having to maintain a fork of `encoding_rs`.
    #[cfg(feature = "simd-accel")]
    println!("cargo:rustc-env=RUSTC_BOOTSTRAP=1");
}