#json #target #cpu

target-cpu-fetch

Exposes a method for querying the CPU name from the current target specification JSON file

3 releases

0.1.3 Jan 29, 2021
0.1.2 Jan 29, 2021
0.1.1 Jul 24, 2020
0.1.0 Jul 2, 2020

#76 in #cpu

Download history 6/week @ 2024-12-25 31/week @ 2025-01-01 45/week @ 2025-01-08 82/week @ 2025-01-15 63/week @ 2025-01-22 49/week @ 2025-01-29 60/week @ 2025-02-05 53/week @ 2025-02-12 46/week @ 2025-02-19 66/week @ 2025-02-26 25/week @ 2025-03-05 78/week @ 2025-03-12 42/week @ 2025-03-19 46/week @ 2025-03-26 22/week @ 2025-04-02 39/week @ 2025-04-09

161 downloads per month
Used in 6 crates (2 directly)

MIT license

5KB

Provides a method for querying the CPU name from the current target specification JSON passed to Rust.

See also the crate target-cpu-macro for conditional compilation support.


target-cpu-utils

A Rust library and associated macros for querying the target CPU from the active target specification JSON

Crates

Crate Name Description Directory crates.io API Documentation
target-cpu-fetch Core logic for fetching the target CPU fetch https://crates.io/crates/target-cpu-fetch https://docs.rs/target-cpu-fetch
target-cpu-macro Procedural macros relating to target CPU macro https://crates.io/crates/target-cpu-macro https://docs.rs/target-cpu-macro

Dependencies

~145KB