#target #cpu #specification #querying #json #name #fetch

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

#1444 in Rust patterns

Download history 66/week @ 2023-12-18 46/week @ 2023-12-25 28/week @ 2024-01-01 60/week @ 2024-01-08 64/week @ 2024-01-15 48/week @ 2024-01-22 33/week @ 2024-01-29 40/week @ 2024-02-05 56/week @ 2024-02-12 56/week @ 2024-02-19 85/week @ 2024-02-26 72/week @ 2024-03-04 70/week @ 2024-03-11 108/week @ 2024-03-18 65/week @ 2024-03-25 132/week @ 2024-04-01

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

MIT license

5KB

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

lib.rs:

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.

Dependencies

~145KB