This repository has been archived by the owner on Oct 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 88
/
Cargo.toml
72 lines (57 loc) · 1.49 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
72
[package]
authors = ["Corentin Henry <corentinhenry@gmail.com>"]
name = "netlink-sys"
version = "0.8.3"
edition = "2018"
homepage = "https://github.com/little-dude/netlink"
keywords = ["netlink", "ip", "linux"]
license = "MIT"
readme = "../README.md"
repository = "https://github.com/little-dude/netlink"
description = "netlink sockets, with optional integration with tokio"
[dependencies]
bytes = "1.0"
libc = "0.2.66"
log = "0.4.8"
[dependencies.futures]
optional = true
version = "0.3.1"
[dependencies.tokio]
optional = true
version = "1.0.1"
default-features = false
# We only depend on tokio for PollEvented
features = ["net"]
[dependencies.mio]
optional = true
version = "0.8"
features = ["os-poll", "os-ext"]
[dependencies.async-io]
optional = true
version = "1.3"
[features]
default = []
mio_socket = ["mio"]
tokio_socket = ["tokio", "futures"]
smol_socket = ["async-io","futures"]
[dev-dependencies]
netlink-packet-audit = { version = "0.4.1", path = "../netlink-packet-audit" }
[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.9.0"
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"]