10 releases

0.1.9 Nov 28, 2024
0.1.8 Mar 21, 2024
0.1.7 Feb 9, 2024
0.1.6 Dec 28, 2023
0.1.0 Sep 27, 2019

#20 in Build Utils

Download history 679852/week @ 2024-10-25 665822/week @ 2024-11-01 693830/week @ 2024-11-08 700320/week @ 2024-11-15 665443/week @ 2024-11-22 804979/week @ 2024-11-29 797144/week @ 2024-12-06 753116/week @ 2024-12-13 466159/week @ 2024-12-20 488515/week @ 2024-12-27 698228/week @ 2025-01-03 811729/week @ 2025-01-10 747627/week @ 2025-01-17 755169/week @ 2025-01-24 772730/week @ 2025-01-31 876117/week @ 2025-02-07

3,305,811 downloads per month
Used in 2,517 crates (25 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.

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

Dependencies

~100–320KB