-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
34 lines (30 loc) · 848 Bytes
/
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
[package]
name = "ifaddrsx"
authors = ["Sprite Tong <spritetong@gmail.com>"]
description = "Retrieve the names and IP addresses of all active network interfaces."
repository = "https://github.com/spritetong/ifaddrsx"
keywords = ["network", "interfaces", "ip", "networking", "sysinfo"]
categories = ["network-programming", "os", "api-bindings"]
documentation = "https://docs.rs/ifaddrsx"
license = "MIT"
readme = "README.md"
version = "0.3.0"
edition = "2021"
[lib]
name = "ifaddrsx"
path = "src/lib.rs"
[dependencies]
bitflags = "2"
ipnetwork = "0.21"
libc = "0.2"
[target.'cfg(windows)'.dependencies]
winapi = { version = "0.3", features = [
"ifdef",
"iphlpapi",
"iptypes",
"winerror",
"ws2def",
"ws2ipdef",
] }
[target.'cfg(unix)'.dependencies]
nix = { version = "0.29", default-features = false, features = ["net"] }