[package]
edition = "2024"
rust-version = "1.95"
name = "karmaio"
version = "0.1.0"
authors = ["Tarak Sharma <tarak@taraksharma.com>"]
build = false
exclude = ["/tests/"]
publish = ["crates-io"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A modern, fast, share-nothing asynchronous runtime for Rust"
documentation = "https://docs.rs/karmaio"
readme = "README.md"
keywords = [
"io",
"thread-per-core",
"io-uring",
"async",
"futures",
]
categories = [
"asynchronous",
"network-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/karmaio-rs/karmaio"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
targets = [
"x86_64-unknown-linux-gnu",
"x86_64-pc-windows-msvc",
"aarch64-apple-darwin",
]
[features]
bytes = ["dep:bytes"]
default = []
fs = [
"windows-sys/Win32_Storage_FileSystem",
"windows-sys/Win32_Security",
]
full = [
"fs",
"macros",
"net",
"process",
"signal",
"bytes",
"memmap2",
"tls",
]
macros = ["dep:karmaio-macros"]
memmap2 = ["dep:memmap2"]
net = ["dep:socket2"]
process = ["windows-sys/Win32_Storage_FileSystem"]
signal = ["windows-sys/Win32_System_Console"]
tls = [
"tls-ring",
"tls12",
]
tls-aws-lc-rs = [
"tls-rustls",
"rustls/aws_lc_rs",
]
tls-ring = [
"tls-rustls",
"rustls/ring",
]
tls-rustls = ["dep:rustls"]
tls12 = [
"tls-rustls",
"rustls/tls12",
]
[lib]
name = "karmaio"
path = "src/lib.rs"
[dependencies.bytes]
version = "1"
optional = true
[dependencies.karmaio-macros]
version = "=0.1.0"
optional = true
[dependencies.memmap2]
version = "0.9.11"
optional = true
[dependencies.rustls]
version = "0.23.43"
features = ["std"]
optional = true
default-features = false
[dependencies.socket2]
version = "0.6"
features = ["all"]
optional = true
[target.'cfg(target_os = "linux")'.dependencies.io-uring]
version = "0.7.13"
[target."cfg(unix)".dependencies.libc]
version = "0.2"
[target."cfg(unix)".dependencies.rustix]
version = "1.0.5"
features = [
"event",
"fs",
"net",
"process",
"std",
"try_close",
]
default-features = false
[target."cfg(windows)".dependencies.windows-sys]
version = "0.61"
features = [
"Win32_Foundation",
"Win32_Networking_WinSock",
"Win32_Storage_FileSystem",
"Win32_System_IO",
"Win32_System_Threading",
"Win32_System_WindowsProgramming",
]