Cargo Features
[dependencies]
mio = { version = "1.1.1", default-features = false, features = ["os-poll", "os-ext", "net", "log"] }
For documentation of features see the
mio::featuresmodule.
- default = log
-
By default Mio only provides a shell implementation.
- os-poll os-ext?
-
Enables the
PollandRegistrytypes. - os-ext = os-poll
-
Enables additional OS specific extensions, e.g. Unix
pipe(2).Enables Win32_System_Pipes of windows-sys
Affects
mio::unix,mio::hermit,mio::windows… - net
-
Enables
mio::netmodule containing networking primitives.
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.
- log default