kornelski / cargo-deb

A cargo subcommand that generates Debian packages from information in Cargo.toml
https://lib.rs/cargo-deb
MIT License
404 stars 48 forks source link

Drop dependency on `num_cpus` for `std::thread::available_parallelism` #113

Closed AlexTMjugador closed 10 months ago

AlexTMjugador commented 10 months ago

Given that std::thread::available_parallelism was stabilized on Rust 1.59 and the MSRV of this crate is 1.63, we can safely use this new standard library function, whose behavior is equivalent to num_cpus::get, but better documented and likely to receive more maintenance and care.

kornelski commented 10 months ago

Thanks