-
Notifications
You must be signed in to change notification settings - Fork 121
Expand file tree
/
Copy pathCargo.toml
More file actions
95 lines (83 loc) · 2.38 KB
/
Cargo.toml
File metadata and controls
95 lines (83 loc) · 2.38 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
[package]
name = "compio-driver"
version = "0.9.2"
description = "Low-level driver for compio"
categories = ["asynchronous"]
keywords = ["async", "iocp", "io-uring"]
edition = { workspace = true }
authors = { workspace = true }
readme = { workspace = true }
license = { workspace = true }
repository = { workspace = true }
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
default-target = "x86_64-unknown-linux-gnu"
targets = [
"x86_64-pc-windows-gnu",
"x86_64-unknown-linux-gnu",
"x86_64-apple-darwin",
"aarch64-apple-ios",
"aarch64-linux-android",
"x86_64-unknown-dragonfly",
"x86_64-unknown-freebsd",
"x86_64-unknown-illumos",
"x86_64-unknown-netbsd",
"x86_64-unknown-openbsd",
]
[dependencies]
# Workspace dependencies
compio-buf = { workspace = true }
compio-log = { workspace = true }
# Utils
cfg-if = { workspace = true }
flume = { workspace = true, default-features = false }
futures-util = { workspace = true }
socket2 = { workspace = true, features = ["all"] }
# Windows specific dependencies
[target.'cfg(windows)'.dependencies]
once_cell = { workspace = true }
windows-sys = { workspace = true, features = [
"Win32_Foundation",
"Win32_Networking_WinSock",
"Win32_Security",
"Win32_Storage_FileSystem",
"Win32_System_Console",
"Win32_System_IO",
"Win32_System_Pipes",
"Win32_System_SystemServices",
"Win32_System_Threading",
"Win32_System_WindowsProgramming",
] }
# Linux specific dependencies
[target.'cfg(target_os = "linux")'.dependencies]
io-uring = { version = "0.7.0", optional = true }
io_uring_buf_ring = { version = "0.2.2", optional = true }
once_cell = { workspace = true, optional = true }
polling = { version = "3.3.0", optional = true }
paste = { workspace = true }
slab = { workspace = true, optional = true }
# Other platform dependencies
[target.'cfg(all(not(target_os = "linux"), unix))'.dependencies]
polling = "3.3.0"
[target.'cfg(unix)'.dependencies]
crossbeam-queue = { workspace = true }
libc = { workspace = true }
[build-dependencies]
cfg_aliases = { workspace = true }
[features]
default = ["io-uring"]
io-uring = [
"dep:io-uring",
"dep:io_uring_buf_ring",
"dep:slab",
"dep:once_cell",
]
polling = ["dep:polling"]
io-uring-sqe128 = []
io-uring-cqe32 = []
iocp-global = []
iocp-wait-packet = []
# Nightly features
once_cell_try = []
nightly = ["once_cell_try"]