Cargo Features
[dependencies]
sysinfo = { version = "0.30.11", default-features = false, features = ["apple-sandbox", "apple-app-store", "c-interface", "multithread", "linux-tmpfs", "debug", "unknown-ci", "serde"] }
- default = multithread
-
The
multithread
feature is set by default wheneversysinfo
is added without
somewhere in the dependency tree.default-features = false - apple-sandbox apple-app-store?
- apple-app-store = apple-sandbox
- c-interface
- multithread default = rayon
- linux-netdevs linux-tmpfs
- debug
-
Enables extra_traits of libc
- unknown-ci
-
This feature is used on CI to emulate unknown/unsupported target.
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.
- rayon multithread
- serde implicit feature
-
Enables serde
serde:
A generic serialization/deserialization framework