Debian Codegraph @

/

debian rust-target-triple 1.0.0-1debian librust-target-triple-dev debian librust-target-triple+default-dev debian librust-target-triple-1-dev debian librust-target-triple-1+default-dev debian librust-target-triple-1.0-dev debian librust-target-triple-1.0+default-dev debian librust-target-triple-1.0.0-dev debian librust-target-triple-1.0.0+default-dev cargo target-triple 1.0.0 debianjsonmakefilemarkdownrustrust-c-abishelltomlyaml 18 files · 76 symbols
View dependency graph

Depends on

  • dh-cargo (dh-sequence-cargo)
  • cargo, debhelper-compat, libstd-rust-dev, rustc
README (full)

Rustc target triple

github crates.io docs.rs build status

Access the $TARGET and $HOST rustc target triples that Cargo supplies to build scripts.

Example

fn main() {
    // As a const &str:
    assert_eq!(target_triple::TARGET, "x86_64-unknown-linux-gnu");

    // As a string literal:
    assert_eq!(
        concat!("target/", target_triple::target!()),
        "target/x86_64-unknown-linux-gnu",
    );
}

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
dir .github/
dir debian/
dir src/
file .cargo_vcs_info.json
file .gitignore
file Cargo.lock
file Cargo.toml
file Cargo.toml.orig
file LICENSE-APACHE
file LICENSE-MIT
file README.md
file build.rs