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

#36 in Build Utils

Download history 793822/week @ 2024-12-05 764761/week @ 2024-12-12 533383/week @ 2024-12-19 458591/week @ 2024-12-26 656979/week @ 2025-01-02 797334/week @ 2025-01-09 764461/week @ 2025-01-16 761470/week @ 2025-01-23 757559/week @ 2025-01-30 845172/week @ 2025-02-06 849219/week @ 2025-02-13 945796/week @ 2025-02-20 945602/week @ 2025-02-27 957307/week @ 2025-03-06 1014847/week @ 2025-03-13 797654/week @ 2025-03-20

3,878,231 downloads per month
Used in 2,606 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–325KB