Registry / utility / cargo-platform

cargo-platform

JSON →
library0.3.3rscratesunverified

Cargo's representation of a target platform, used for conditional compilation and dependency resolution.

# Cargo.toml [dependencies] cargo-platform = "0.3.3"
INSTALL
IMPORT
SIG · CARGO-PLATFORM
C
cargo-platform
utilityrustv0.3.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Platform
✓ use cargo_platform::Platform;

Parses a target triple string into a Platform struct.

use cargo_platform::Platform; fn main() { let platform: Platform = "x86_64-unknown-linux-gnu".parse().unwrap(); println!("{:?}", platform); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.3.3latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
26 hits · last 30 days
node
22
OpenAI (training)
1
Resources