Cargo Features

[dependencies]
open-coroutine-core = { version = "0.6.0", default-features = false, features = ["log", "korosensei", "preemptive", "net", "io_uring", "syscall"] }
log default = time, tracing, tracing-subscriber

Print some help log.
Enable for default.

korosensei net? preemptive? = corosensei, derivative, uuid

low-level raw coroutine

Enables pthread of nix

preemptive = korosensei

Provide preemptive scheduling implementation.
Enable for default.

net io_uring? syscall = core_affinity, crossbeam-utils, korosensei, mio, polling

Provide net API abstraction and implementation.

Affects open-coroutine-core::net

io_uring = io-uring, net

Provide io_uring adaptation, this feature only works in linux.

Affects constants::IO_URING_TIMEOUT_USERDATA

syscall default = net

Provide syscall implementation.

Affects open-coroutine-core::syscall

default = log, syscall

These default features are set whenever open-coroutine-core is added without default-features = false somewhere in the dependency tree.

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 log
tracing-subscriber log
time log
corosensei korosensei?
uuid korosensei?
derivative korosensei?
core_affinity net?
crossbeam-utils net?
io-uring linux io_uring?
mio unix net?
polling win net?

Enables polling ^2.8.0