Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
105 lines (92 loc) · 3.59 KB
/
Copy pathCargo.toml
File metadata and controls
105 lines (92 loc) · 3.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
[package]
name = "rsloop"
version = "0.1.63"
edition = "2024"
description = "An event loop for asyncio written in Rust"
documentation = "https://github.com/RustedBytes/rsloop#readme"
readme = "README.md"
repository = "https://github.com/RustedBytes/rsloop"
license = "Apache-2.0"
[package.metadata.kani.flags]
# Force every proof that reaches a loop to state and review its own bound.
default-unwind = "1"
[lib]
crate-type = ["cdylib", "rlib"]
name = "rsloop"
[dependencies]
async-channel = { version = "2", optional = true }
async-io = "2"
crossbeam-channel = "0.5"
crossbeam-queue = "0.3"
errno = { version = "0.3", optional = true }
futures = { version = "0.3", default-features = false, features = ["std"] }
futures-util = "0.3"
hotpath = { version = "0.28.3", optional = true }
libc = "0.2"
memchr = "2"
mio = "1"
once_cell = { version = "1", optional = true }
oneshot = { version = "0.2", features = ["async", "std"] }
pin-project-lite = "0.2"
pyo3 = { version = "0.29.3" }
pyo3-async-runtimes = { version = "0.29", default-features = false }
rustls = "0.23.45"
rustls-native-certs = "0.8"
rustls-pemfile = "2"
rusty_pool = { version = "0.7", default-features = false, optional = true }
signal-hook = "0.4"
slab = "0.4"
smol = "2"
socket2 = "0.6"
tokio = { version = "1", default-features = false, features = ["io-util"] }
[dev-dependencies]
proptest = { version = "1", default-features = false, features = ["std"] }
[build-dependencies]
pyo3-build-config = "0.29.3"
[target.'cfg(target_os = "linux")'.dependencies]
io-uring = "0.7"
[target."cfg(unix)".dependencies]
mio = { version = "1", features = ["os-ext", "os-poll"] }
[target."cfg(windows)".dependencies]
windows-sys = { version = "0.61", features = ["Wdk_Foundation", "Wdk_Storage_FileSystem", "Wdk_System_IO", "Wdk_System_SystemServices", "Win32_Foundation", "Win32_Networking_WinSock", "Win32_Security", "Win32_Storage_FileSystem", "Win32_System_Console", "Win32_System_IO", "Win32_System_Pipes", "Win32_System_SystemInformation", "Win32_System_Threading"] }
[features]
default = []
# Diagnostic control: retain PyO3's standard Handle destructor on GIL builds.
standard-handle-dealloc = []
profile = ["dep:hotpath", "hotpath/hotpath"]
# Separate diagnostic build: Rust allocations, not CPython's allocator.
hotpath-alloc-profile = ["profile", "hotpath/hotpath-alloc"]
# Opt-in: faster scheduler turns, but measured TCP workloads can regress.
scheduler-batch-cache = []
blocking-default = ["dep:rusty_pool"]
# Embedded-runtime modules are opt-in; production wheels retain the default
# networking/timer build unless a feature is explicitly requested.
fs = []
pipe = []
process = ["dep:async-channel"]
signal = ["dep:errno", "dep:once_cell"]
splice = []
stdio = []
[lints.clippy]
await_holding_lock = "warn"
await_holding_refcell_ref = "warn"
cast_ptr_alignment = "warn"
complexity = { level = "warn", priority = -1 }
# Enforce bug, concurrency, and performance checks rather than style preferences.
correctness = { level = "deny", priority = -1 }
# Keep safety checks even when they belong to an otherwise disabled group.
missing_safety_doc = "warn"
pedantic = { level = "allow", priority = -1 }
perf = { level = "warn", priority = -1 }
style = { level = "allow", priority = -1 }
suspicious = { level = "warn", priority = -1 }
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ["cfg(kani)", "cfg(musl_v1_2_3)", "cfg(syscall_accept4)", "cfg(feature, values(\"blocking-default\", \"fs\", \"pipe\", \"process\", \"signal\", \"splice\", \"stdio\"))"] }
[profile.bench]
inherits = "release"
[profile.release]
opt-level = 3
lto = "fat"
incremental = false
codegen-units = 1
# strip = true