forked from libp2p/if-watch
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cargo.toml
52 lines (41 loc) · 1.52 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
[package]
name = "if-watch"
version = "3.0.1"
authors = ["David Craven <[email protected]>", "Parity Technologies Limited <[email protected]>"]
edition = "2021"
keywords = ["asynchronous", "routing"]
license = "MIT OR Apache-2.0"
description = "crossplatform asynchronous network watcher"
repository = "https://github.com/mxinden/if-watch"
[lib]
crate-type = ["cdylib", "lib"]
[features]
tokio = ["dep:tokio", "rtnetlink/tokio_socket"]
smol = ["dep:smol", "rtnetlink/smol_socket"]
[dependencies]
fnv = "1.0.7"
futures = "0.3.19"
ipnet = "2.3.1"
log = "0.4.14"
[target.'cfg(any(target_os = "linux", target_os="android"))'.dependencies]
rtnetlink = { version = "0.10.0", default-features = false }
[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies]
core-foundation = "0.9.2"
if-addrs = "0.7.0"
tokio = { version = "1.21.2", features = ["rt", "time"], optional = true }
smol = { version = "1.2.5", optional = true }
[target.'cfg(target_os = "macos")'.dependencies]
system-configuration = "0.5.0"
[target.'cfg(target_os = "windows")'.dependencies]
if-addrs = "0.7.0"
windows = { version = "0.34.0", features = ["Win32_NetworkManagement_IpHelper", "Win32_Foundation", "Win32_Networking_WinSock"] }
[target.'cfg(not(any(target_os = "ios", target_os = "linux", target_os = "macos", target_os = "windows")))'.dependencies]
async-io = "1.6.0"
if-addrs = "0.7.0"
[dev-dependencies]
env_logger = "0.9.0"
smol = "1.2.5"
tokio = { version = "1.21.2", features = ["rt", "macros"] }
[[example]]
name = "if_watch"
required-features = ["smol"]