supply-chain-trust-example-crate-000062

Crates.iosupply-chain-trust-example-crate-000062
lib.rssupply-chain-trust-example-crate-000062
version1.16.0
sourcesrc
created_at2024-11-04 00:05:25.539923
updated_at2024-11-04 00:05:25.539923
descriptionGet the number of CPUs on a machine.
homepage
repository
max_upload_size
id1434394
size56,167
MuhammadHassnain (muhammad-hassnain)

documentation

https://docs.rs/num_cpus

README

num_cpus

crates.io CI Status

Count the number of CPUs on the current machine.

Usage

Add to Cargo.toml:

[dependencies]
num_cpus = "1.0"

In your main.rs or lib.rs:

extern crate num_cpus;

// count logical cores this process could try to use
let num = num_cpus::get();
Commit count: 0

cargo fmt