generated from al8n/template-rs
-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCargo.toml
84 lines (69 loc) · 2.24 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
73
74
75
76
77
78
79
80
81
82
83
84
[package]
name = "getifs"
version = "0.3.1"
edition = "2021"
repository = "https://github.com/al8n/getifs"
homepage = "https://github.com/al8n/getifs"
documentation = "https://docs.rs/getifs"
description = "A bunch of cross-platform network tools for fetching interfaces, multicast addresses, local ip addresses, private ip addresses, public ip addresses and etc."
license = "MIT OR Apache-2.0"
rust-version = "1.63.0"
keywords = ["local-ip-address", "interface", "network-interface", "mtu", "getifaddrs"]
categories = ["network-programming"]
[[bench]]
path = "benches/interfaces.rs"
name = "interfaces"
harness = false
[[bench]]
path = "benches/local_ip_address.rs"
name = "local_ip_address"
harness = false
[[bench]]
path = "benches/gateway.rs"
name = "gateway"
harness = false
[features]
default = []
# serde = ["dep:serde", "ipnet/serde", "smallvec-wrapper/serde", "hardware-address/serde"]
[dependencies]
bitflags = "2"
either = "1"
hardware-address = "0.1"
iprobe = "0.1"
ipnet = "2"
iprfc = "0.2"
paste = "1"
smol_str = "0.3"
smallvec-wrapper = "0.3"
triomphe = "0.1"
# serde = { version = "1", features = ["derive"], optional = true }
[target.'cfg(all(not(windows), not(any(target_os = "android", target_os = "linux"))))'.dependencies]
libc = "0.2"
[target.'cfg(all(any(target_os = "android", target_os = "linux")))'.dependencies]
either = "1"
rustix = { version = "1", features = ["net", "param"] }
linux-raw-sys = { version = "0.9", features = ["if_arp", "net", "netlink"] }
[target.'cfg(all(any(target_os = "android", target_os = "linux")))'.dev-dependencies]
rustix = { version = "1", features = ["net", "param", "process"] }
[target.'cfg(windows)'.dependencies]
windows-sys = { version = "0.59", features = ["Win32_Networking_WinSock", "Win32_NetworkManagement", "Win32_NetworkManagement_IpHelper", "Win32_NetworkManagement_Ndis"] }
widestring = "1"
[dev-dependencies]
criterion = "0.5"
network-interface = "2"
local-ip-address = "0.6"
which = "7"
scopeguard = "1"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[lints.rust]
rust_2018_idioms = "warn"
single_use_lifetimes = "warn"
unexpected_cfgs = { level = "warn", check-cfg = [
'cfg(apple)',
'cfg(bsd_like)',
'cfg(freebsdlike)',
'cfg(netbsdlike)',
'cfg(linux_like)',
] }