Count the number of CPUs on the current machine.
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();
There are no reviews yet. Be the first to send feedback to the community and the maintainers!
Count the number of CPUs on the current machine.
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();
warp
A super-easy, composable, web server framework for warp speeds.reqwest
An easy and powerful Rust HTTP Clienthttparse
A push parser for the HTTP 1.x protocol in Rust.pretty-env-logger
A pretty, easy-to-use logger for Rust.intel
I need more intel!futures-fs
Access File System operations off-thread, using a Futures.unicase
Unicode Case-folding for Rustspmc
want
insist
A drop-in replacement for `assert` with a better default message.symbol
ES6 Symbols in your ES5.vecio
try-lock
A lightweight lock protected by an atomic boolean.hood
Cover your head. Security headers middlwareServiceDroid
ServiceDroid is an Android application built to assist Jehovah's Witnesses doing volunteer work.l20n.rs
DeprecatedMGFX.Tabs
A simple to use Tabs plugin for MooTools.futures-compat
A compatibility shim between futures v0.1 and v0.2.tick
tower-h3
Rust HTTP/3 + tower Servicemerit
android-browserid
Use the BrowserID protocol easily in native Android apps.splatmonstar
Issue tracker for tentmonstar, a Tent client on Android.mocha-text-cov
text summary of code coverage for Mochahyper-benchmarks
Performance benchmarks for hyper.rsgryphon
HTTP Request Signing with Ed25519dbug
debug moarcookies
dotfiles
These aren't the droids you're looking for.ansi.rs
ANSI colors for Rustsyslogger
A sane syslog API.relay
seanmonstar.github.io
noom
Super simple Enum typesintel-syslog
A syslog handler for intel logging.js
Some of my JavaScript extensionsLove Open Source and this site? Check out how you can help us