build.rs 588 B

123456789101112
  1. fn main() {
  2. // This does not enable `RUSTC_BOOTSTRAP=1` for `packed_simd`.
  3. // You still need to knowingly have a setup that makes
  4. // `packed_simd` compile. Therefore, having this file on
  5. // crates.io is harmless in terms of users of `encoding_rs`
  6. // accidentally depending on nightly features. Having this
  7. // here means that if you knowingly want this, you only
  8. // need to maintain a fork of `packed_simd` without _also_
  9. // having to maintain a fork of `encoding_rs`.
  10. #[cfg(feature = "simd-accel")]
  11. println!("cargo:rustc-env=RUSTC_BOOTSTRAP=1");
  12. }