11 releases

0.2.0 Feb 20, 2025
0.1.9 Nov 28, 2024
0.1.8 Mar 21, 2024
0.1.6 Dec 28, 2023
0.1.0 Sep 27, 2019

#20 in Build Utils

Download history 822628/week @ 2024-12-01 789440/week @ 2024-12-08 740893/week @ 2024-12-15 422268/week @ 2024-12-22 513552/week @ 2024-12-29 749061/week @ 2025-01-05 795517/week @ 2025-01-12 747715/week @ 2025-01-19 761576/week @ 2025-01-26 778730/week @ 2025-02-02 901725/week @ 2025-02-09 856537/week @ 2025-02-16 938160/week @ 2025-02-23 940671/week @ 2025-03-02 1000160/week @ 2025-03-09 933583/week @ 2025-03-16

3,883,093 downloads per month
Used in 2,588 crates (26 directly)

MIT/Apache

25KB
580 lines

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


lib.rs:

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.

Dependencies

~98–320KB