-
Notifications
You must be signed in to change notification settings - Fork 7
/
Cargo.toml
55 lines (43 loc) · 1.2 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
[package]
name = "natpmp"
version = "0.5.0"
authors = ["fengyingcai <[email protected]>"]
description = "NAT-PMP client library"
homepage = "https://github.com/fengyc/natpmp"
repository = "https://github.com/fengyc/natpmp"
documentation = "https://docs.rs/natpmp/"
readme = "README.md"
keywords = ["natpmp", "rfc6886", "nat", "portmapping"]
categories = ["network-programming"]
license = "MIT"
edition = "2021"
[badges]
maintenance = { status = "actively-developed" }
[[example]]
name = "tcp-mapping"
path = "examples/tcp_mapping.rs"
[[example]]
name = "udp-mapping"
path = "examples/udp_mapping.rs"
[[example]]
name = "async-udp-tokio"
path = "examples/async_udp_tokio.rs"
required-features = ["tokio"]
[[example]]
name = "async-udp-async-std"
path = "examples/async_udp_asyncstd.rs"
required-features = ["async-std"]
[features]
default = ["tokio"]
all = ["tokio", "async-std"]
tokio = ["dep:tokio"]
async-std = ["dep:async-std"]
[build-dependencies]
cc = "1" # compile native c
[dependencies]
async-trait = "0.1"
tokio = { version = "1", features = ["net"], optional = true }
async-std = { version = "1", optional = true }
netdev = "0.31.0"
[dev-dependencies]
tokio = { version = "1", features = ["full"]}