Sha256: 1b30e466b824ce8df7ad0a55334424131d9d2573d6cf9f7d5d50c09c8901d526

Contents?: true

Size: 672 Bytes

Versions: 30

Compression:

Stored size: 672 Bytes

Contents

extern crate autocfg;

fn main() {
    // Normally, cargo will set `OUT_DIR` for build scripts.
    let ac = autocfg::AutoCfg::with_dir("target").unwrap();

    // since ancient times...
    ac.emit_has_path("std::vec::Vec");
    ac.emit_path_cfg("std::vec::Vec", "has_vec");

    // rustc 1.10.0
    ac.emit_has_path("std::panic::PanicInfo");
    ac.emit_path_cfg("std::panic::PanicInfo", "has_panic_info");

    // rustc 1.20.0
    ac.emit_has_path("std::mem::ManuallyDrop");
    ac.emit_path_cfg("std::mem::ManuallyDrop", "has_manually_drop");

    // rustc 1.25.0
    ac.emit_has_path("std::ptr::NonNull");
    ac.emit_path_cfg("std::ptr::NonNull", "has_non_null");
}

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
wasmtime-23.0.2 ./ext/cargo-vendor/autocfg-1.1.0/examples/paths.rs
wasmtime-22.0.0 ./ext/cargo-vendor/autocfg-1.1.0/examples/paths.rs
wasmtime-21.0.1 ./ext/cargo-vendor/autocfg-1.1.0/examples/paths.rs
wasmtime-20.0.2 ./ext/cargo-vendor/autocfg-1.1.0/examples/paths.rs
wasmtime-20.0.0 ./ext/cargo-vendor/autocfg-1.1.0/examples/paths.rs
wasmtime-18.0.3 ./ext/cargo-vendor/autocfg-1.1.0/examples/paths.rs
wasmtime-17.0.1 ./ext/cargo-vendor/autocfg-1.1.0/examples/paths.rs
wasmtime-17.0.0 ./ext/cargo-vendor/autocfg-1.1.0/examples/paths.rs
wasmtime-16.0.0 ./ext/cargo-vendor/autocfg-1.1.0/examples/paths.rs
wasmtime-15.0.1 ./ext/cargo-vendor/autocfg-1.1.0/examples/paths.rs
wasmtime-15.0.0 ./ext/cargo-vendor/autocfg-1.1.0/examples/paths.rs
wasmtime-14.0.4 ./ext/cargo-vendor/autocfg-1.1.0/examples/paths.rs
wasmtime-14.0.3 ./ext/cargo-vendor/autocfg-1.1.0/examples/paths.rs
wasmtime-14.0.1 ./ext/cargo-vendor/autocfg-1.1.0/examples/paths.rs
wasmtime-14.0.0 ./ext/cargo-vendor/autocfg-1.1.0/examples/paths.rs
wasmtime-13.0.0 ./ext/cargo-vendor/autocfg-1.1.0/examples/paths.rs
wasmtime-12.0.1 ./ext/cargo-vendor/autocfg-1.1.0/examples/paths.rs
wasmtime-12.0.0 ./ext/cargo-vendor/autocfg-1.1.0/examples/paths.rs
wasmtime-11.0.0 ./ext/cargo-vendor/autocfg-1.1.0/examples/paths.rs
wasmtime-10.0.1 ./ext/cargo-vendor/autocfg-1.1.0/examples/paths.rs