Sha256: 2342e59833e2ebca2980884d4f242a6bf1b0143037c212e05514626ad5213505
Contents?: true
Size: 345 Bytes
Versions: 39
Compression:
Stored size: 345 Bytes
Contents
fn main() { // Force the `std` feature in some cases let target_arch = std::env::var("CARGO_CFG_TARGET_ARCH").unwrap_or_default(); let target_os = std::env::var("CARGO_CFG_TARGET_OS").unwrap_or_default(); if target_arch == "wasm32" || target_os == "hermit" { println!("cargo:rustc-cfg=feature=\"std\""); } }
Version data entries
39 entries across 39 versions & 1 rubygems