# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" name = "open-coroutine-core" version = "0.6.0" authors = ["zhangzicheng@apache.org"] build = "build.rs" autobins = false autoexamples = false autotests = false autobenches = false description = "The open-coroutine is a simple, efficient and generic coroutine library." readme = "README.md" keywords = [ "runtime", "coroutine", "hook", "preempt", "work-steal", ] categories = [ "concurrency", "asynchronous", "os", "network-programming", "wasm", ] license = "Apache-2.0" repository = "https://github.com/acl-dev/open-coroutine" [lib] name = "open_coroutine_core" path = "src/lib.rs" [[test]] name = "co_pool" path = "tests/co_pool.rs" [[test]] name = "coroutine" path = "tests/coroutine.rs" [[test]] name = "scheduler" path = "tests/scheduler.rs" [dependencies.cfg-if] version = "1.0.0" [dependencies.core_affinity] version = "0.8" optional = true [dependencies.corosensei] version = "0.2" optional = true [dependencies.crossbeam-deque] version = "0.8" [dependencies.crossbeam-utils] version = "0.8" optional = true [dependencies.dashmap] version = "6" [dependencies.derivative] version = "2" optional = true [dependencies.num_cpus] version = "1" [dependencies.once_cell] version = "1" [dependencies.psm] version = "0.1" [dependencies.rand] version = "0.8" [dependencies.st3] version = "0.4" [dependencies.time] version = "0.3" optional = true [dependencies.tracing] version = "0.1" optional = true default-features = false [dependencies.tracing-subscriber] version = "0.3" features = [ "fmt", "local-time", ] optional = true default-features = false [dependencies.uuid] version = "1" features = [ "v4", "fast-rng", ] optional = true [dev-dependencies.anyhow] version = "1.0" [dev-dependencies.backtrace] version = "0.3" [dev-dependencies.slab] version = "0.4" [build-dependencies.cfg-if] version = "1.0.0" [features] default = [ "log", "syscall", ] io_uring = [ "net", "io-uring", ] korosensei = [ "corosensei", "uuid", "nix/pthread", "derivative", ] log = [ "tracing", "tracing-subscriber", "time", ] net = [ "korosensei", "polling", "mio", "crossbeam-utils", "core_affinity", ] preemptive = ["korosensei"] syscall = ["net"] [target.'cfg(target_os = "linux")'.dependencies.io-uring] version = "0.7" optional = true [target.'cfg(target_os = "linux")'.build-dependencies.cc] version = "1" [target."cfg(unix)".dependencies.libc] version = "0.2" [target."cfg(unix)".dependencies.mio] version = "1.0" features = [ "net", "os-poll", "os-ext", ] optional = true default-features = false [target."cfg(unix)".dependencies.nix] version = "0.29" features = ["signal"] [target."cfg(windows)".dependencies.polling] version = "2.8.0" optional = true [target."cfg(windows)".dependencies.windows-sys] version = "0.59" features = [ "Win32_System_IO", "Win32_Foundation", "Win32_System_Kernel", "Win32_System_Threading", "Win32_Networking_WinSock", "Win32_System_SystemInformation", "Win32_System_Diagnostics_Debug", ]