9 releases

0.1.8 Mar 21, 2024
0.1.6 Dec 28, 2023
0.1.5 Nov 18, 2023
0.1.3 Jul 13, 2023
0.1.0 Sep 27, 2019

#22 in Build Utils

Download history 570047/week @ 2024-07-22 563647/week @ 2024-07-29 579242/week @ 2024-08-05 572328/week @ 2024-08-12 589129/week @ 2024-08-19 584232/week @ 2024-08-26 594011/week @ 2024-09-02 620544/week @ 2024-09-09 560710/week @ 2024-09-16 641847/week @ 2024-09-23 643342/week @ 2024-09-30 683698/week @ 2024-10-07 691798/week @ 2024-10-14 666271/week @ 2024-10-21 682012/week @ 2024-10-28 639668/week @ 2024-11-04

2,722,123 downloads per month
Used in 2,328 crates (19 directly)

MIT/Apache

19KB
463 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.

Dependencies

~100–335KB