Cargo Features

[dependencies]
mio = { version = "1.0.2", default-features = false, features = ["os-poll", "os-ext", "net", "log"] }

For documentation of features see the mio::features module.

default = log

By default Mio only provides a shell implementation.

os-poll os-ext?

Enables the Poll and Registry types.

os-ext = os-poll

Enables additional OS specific extensions, e.g. Unix pipe(2).

Enables Win32_Security and Win32_System_Pipes of windows-sys ^0.52

Affects mio::unix, mio::hermit, mio::windows

net

Enables mio::net module 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