Skip to main content

Crate cargo_platform

Crate cargo_platform 

Source
Expand description

Platform definition used by Cargo.

This defines a Platform type which is used in Cargo to specify a target platform. There are two kinds, a named target like x86_64-apple-darwin, and a โ€œcfg expressionโ€ like cfg(any(target_os = "macos", target_os = "ios")).

See examples/matches.rs for an example of how to match against a Platform.

This crate is maintained by the Cargo team for use by the wider ecosystem. This crate follows semver compatibility for its APIs.

Re-exportsยง

pub(crate) use cfg::KEYWORDS; ๐Ÿ”’
pub use cfg::Cfg;
pub use cfg::CfgExpr;
pub use cfg::Ident;
pub use error::ParseError;
pub use error::ParseErrorKind;
pub(crate) use std::str::FromStr; ๐Ÿ”’
pub(crate) use fmt; ๐Ÿ”’
pub(crate) use path::Path; ๐Ÿ”’

Modulesยง

cfg ๐Ÿ”’
error ๐Ÿ”’

Enumsยง

Platform
Platform definition.