-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathCargo.toml
71 lines (57 loc) · 1.45 KB
/
Cargo.toml
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
[package]
authors = ["Corentin Henry <[email protected]>"]
name = "netlink-sys"
version = "0.8.7"
edition = "2018"
homepage = "https://github.com/rust-netlink/netlink-sys"
keywords = ["netlink", "ip", "linux"]
license = "MIT"
readme = "README.md"
repository = "https://github.com/rust-netlink/netlink-sys"
description = "netlink sockets, with optional integration with tokio"
[dependencies]
bytes = "1.8"
libc = "0.2.164"
log = "0.4.8"
[dependencies.futures]
optional = true
version = "0.3.31"
[dependencies.tokio]
optional = true
version = "1.41.1"
default-features = false
# We only depend on tokio for PollEvented
features = ["net"]
[dependencies.mio]
optional = true
version = "1.0"
features = ["os-poll", "os-ext"]
[dependencies.async-io]
optional = true
version = "2"
[features]
default = []
mio_socket = ["mio"]
tokio_socket = ["tokio", "futures"]
smol_socket = ["async-io", "futures"]
[dev-dependencies]
netlink-packet-audit = "0.4.1"
[dev-dependencies.tokio]
version = "1.0.1"
default-features = false
# We only depend on tokio for PollEvented
features = ["net", "macros", "rt-multi-thread"]
[dev-dependencies.async-std]
version = "1.13"
features = ["attributes"]
[[example]]
name = "audit_events"
[[example]]
name = "audit_events_tokio"
required-features = ["tokio_socket"]
[[example]]
name = "audit_events_tokio_manual_thread_builder"
required-features = ["tokio_socket"]
[[example]]
name = "audit_events_async_std"
required-features = ["smol_socket"]