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

#44 in Build Utils

Download history 433864/week @ 2024-12-23 498106/week @ 2024-12-30 756164/week @ 2025-01-06 800845/week @ 2025-01-13 749883/week @ 2025-01-20 747596/week @ 2025-01-27 787743/week @ 2025-02-03 897125/week @ 2025-02-10 864593/week @ 2025-02-17 942596/week @ 2025-02-24 932644/week @ 2025-03-03 1006290/week @ 2025-03-10 989872/week @ 2025-03-17 937955/week @ 2025-03-24 936324/week @ 2025-03-31 907550/week @ 2025-04-07

3,831,539 downloads per month
Used in 2,716 crates (25 directly)

MIT/Apache

25KB
580 lines

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.


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

Dependencies

~97–320KB