Sha256: 46b15c07e144e90da78e0b754f4de38a0c7d658fcf907b9e650e9e286c8b7275
Contents?: true
Size: 994 Bytes
Versions: 7
Compression:
Stored size: 994 Bytes
Contents
fn main() { // Code in the `wasmtime` crate will use #[cfg(compiler)] conditional // compilation when runtime compilation is supported or not. This #[cfg] is // defined by this build script here, and is guarded with a conditional. // Currently this conditional is #[cfg(feature = "cranelift")] since that's // the only supported compiler. // // Note that #[doc(cfg)] throughout the `wasmtime` crate points here. We // want the rustdoc documentation to accurately reflect the requirements for // APIs, so the condition here is duplicated into all #[doc(cfg)] // attributes. If this condition is updated to emit #[cfg(compiler)] more // frequently then all rustdoc attributes also need to be updated with the // new condition to ensure the documentation accurately reflects when an API // is available. if cfg!(feature = "cranelift") { println!("cargo:rustc-cfg=compiler"); } println!("cargo:rerun-if-changed=build.rs"); }
Version data entries
7 entries across 7 versions & 1 rubygems