Registry / build-tool / target-spec

target-spec

JSON →
library3.6.0rscratesunverified

Evaluate Cargo.toml target specifications.

# Cargo.toml [dependencies] target-spec = "3.6.0"
INSTALL
IMPORT
SIG · TARGET-SPEC
T
target-spec
build-toolrustv3.6.0
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.

TargetSpec
✓ use target_spec::TargetSpec;

Parses and evaluates a target specification string.

use target_spec::TargetSpec; fn main() { let spec = TargetSpec::new("cfg(target_os = \"linux\")"); println!("{:?}", spec); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
3.6.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
24 hits · last 30 days
node
20
OpenAI (training)
1
Resources
target-spec — cargo add target-spec · libregistry