Cargo Features

[dependencies]
mfio-rt = { version = "0.1.0", default-features = false, features = ["std", "native", "virt", "virt-sync", "iocp", "test_suite", "io-uring", "mio"] }
default = io-uring, iocp, mio, native, std, virt

These default features are set whenever mfio-rt is added without default-features = false somewhere in the dependency tree.

std default native

Enables std of mfio and once_cell

once_cell:

Enables once_cell::sync module.

Affects mfio-rt::Tcp, mfio-rt::TcpStreamHandle, mfio-rt::TcpListenerHandle, test_suite::net, util::stream, util::from_io_error

native default = flume, oneshot, parking_lot, std, tracing

Affects __doctest::run_each, mfio-rt::native

virt default
virt-sync
iocp default

technically iocp depends on native, but let's be in-line with other backends

Affects impls::iocp

test_suite = async-semaphore, pathdiff, tempdir

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.

tracing native

Enables tracing

native rt deps

flume native

Enables flume ^0.10

parking_lot native
oneshot native
tempdir test_suite?
pathdiff test_suite?
async-semaphore test_suite?
io-uring linux default

Affects impls::io_uring

mio unix default

Affects impls::mio