#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

#1481 in Rust patterns

Download history 70/week @ 2024-03-12 104/week @ 2024-03-19 74/week @ 2024-03-26 91/week @ 2024-04-02 62/week @ 2024-04-09 83/week @ 2024-04-16 100/week @ 2024-04-23 84/week @ 2024-04-30 56/week @ 2024-05-07 61/week @ 2024-05-14 63/week @ 2024-05-21 62/week @ 2024-05-28 57/week @ 2024-06-04 48/week @ 2024-06-11 65/week @ 2024-06-18 47/week @ 2024-06-25

227 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