Releases: seanmonstar/num_cpus
Releases · seanmonstar/num_cpus
v1.16.0
Features
- add support for AIX operating system
Fixes
- update hermit-abi to 0.3.0
New Contributors
- @mkroening made their first contribution in #128
- @ecnelises made their first contribution in #123
v1.15.0
v1.14.0
Features
- Support cgroups v2 by @OrionNebula in #125
- Do not attempt to open files in Miri by @RalfJung in #121
New Contributors
- @RalfJung made their first contribution in #121
- @OrionNebula made their first contribution in #125
v1.13.1
Fixes
- fix parsing zero or multiple optional fields in cgroup mountinfo.
v1.13.0
Features
- add Linux cgroups support when calling
get()
.
Linux cgroups are a way to restrict the amount of resources a container can use. With this change, most libraries and applications deciding the number of threads to use via num_cpus::get()
will spawn less threads, resulting in better usage of the CPU, and typically perform better.
v1.8.0
Features
- add
wasm-unknown-unknown
target support
v1.7.0
Features
- add
get_physical
support for macOS
Fixes
- use
_SC_NPROCESSORS_CONF
on Unix targets
v1.6.1
v1.6.0
get_physical
gains Windows support
v1.5.1
- fix
get
to return1
ifsysconf(_SC_NPROCESSORS_ONLN)
failed