Cargo Features
open-coroutine has no features set by default.
[dependencies]
open-coroutine = { version = "0.7.0", features = ["log", "ci", "preemptive", "net", "io_uring", "iocp", "completion_io", "syscall"] }
- default
-
These default features are set whenever
open-coroutineis added withoutsomewhere in the dependency tree.default-features = false Enables open-coroutine-core and open-coroutine-hook
- log
-
Print some help log.
Enable for default.Enables log of open-coroutine-core and open-coroutine-hook
- ci
-
This feature only used in open-coroutine inner, don't use it in your project.
Enables ci of open-coroutine-core and open-coroutine-hook
- preemptive
-
Provide preemptive scheduling implementation.
Enable for default.Enables preemptive of open-coroutine-core and open-coroutine-hook
- net
-
Provide net API abstraction and implementation.
Enables net of open-coroutine-core and open-coroutine-hook
- io_uring
-
Provide io_uring abstraction and implementation.
This feature only works in linux.Enables io_uring of open-coroutine-core and open-coroutine-hook
- iocp
-
Provide IOCP adaptation, this feature only works in windows.
Enables iocp of open-coroutine-core and open-coroutine-hook
- completion_io
-
Provide completion IO adaptation
Enables completion_io of open-coroutine-core and open-coroutine-hook
- syscall
-
Provide syscall implementation.
Enables syscall of open-coroutine-core and open-coroutine-hook