Cargo Features
[dependencies]
open-coroutine-core = { version = "0.7.0", default-features = false, features = ["log", "ci", "korosensei", "preemptive", "net", "io_uring", "iocp", "completion_io", "syscall"] }
- default = log, syscall
-
These default features are set whenever
open-coroutine-coreis added withoutsomewhere in the dependency tree.default-features = false - log default = time, tracing, tracing-subscriber
-
Print some help log.
Enable for default. - ci
-
This feature only used in open-coroutine inner, don't use it in your project.
Affects
common::ci… - korosensei net? preemptive? = corosensei, educe, uuid
-
low-level raw coroutine
- preemptive = korosensei
-
Provide preemptive scheduling implementation.
Enable for default. - net io_uring? iocp? syscall = core_affinity, crossbeam-utils, korosensei, mio, polling
-
Provide net API abstraction and implementation.
Affects
open-coroutine-core::net… - io_uring completion_io? = io-uring, net
-
Provide io_uring adaptation, this feature only works in linux.
Affects
constants::IO_URING_TIMEOUT_USERDATA… - iocp completion_io? = net
-
Provide IOCP adaptation, this feature only works in windows.
- completion_io = io_uring, iocp
-
Provide completion IO adaptation
- syscall default = net
-
Provide syscall implementation.
Affects
open-coroutine-core::syscall…
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?
-
Enables corosensei ^0.2
- uuid korosensei?
- educe korosensei?
- core_affinity net?
- crossbeam-utils net?
- io-uring linux io_uring?
- mio unix net?
- polling win net?
-
Enables polling ^2.8.0