-
Notifications
You must be signed in to change notification settings - Fork 75
/
Cargo.toml
60 lines (52 loc) · 1.71 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
[package]
name = "message-io"
version = "0.18.2"
authors = ["lemunozm <[email protected]>"]
edition = "2018"
readme = "README.md"
license = "Apache-2.0"
description = "Fast and easy-to-use event-driven network library"
homepage = "https://github.com/lemunozm/message-io/"
repository = "https://github.com/lemunozm/message-io/"
keywords = ["network", "message", "events", "non-blocking", "tcp"]
categories = ["asynchronous", "game-development", "network-programming", "rust-patterns", "web-programming::websocket"]
[badges]
maintenance = { status = "actively-developed" }
[package.metadata.docs.rs]
all-features = true
[features]
default = ["tcp", "udp", "websocket"] # All features by default
tcp = ["mio/net", "socket2"]
udp = ["mio/net", "socket2"]
websocket = ["tungstenite", "url", "tcp"]
[dependencies]
mio = { version = "0.8", features = ["os-poll"] }
serde = { version = "1.0", features = ["derive"] }
crossbeam-channel = "0.5"
crossbeam-utils = "0.8"
log = "0.4"
strum = { version = "0.24", features = ["derive"] }
socket2 = { version = "0.5.1", features = ["all"], optional = true}
tungstenite = { version = ">=0.22.0", features = ["url"], optional = true }
url = { version = "2.2", optional = true }
integer-encoding = "3.0.2"
lazy_static = "1.4.0"
[target.'cfg(target_os = "linux")'.dependencies.nix]
version = "0.26.2"
default-features = false
features = ["socket", "uio", "net"]
[target.'cfg(unix)'.dependencies.libc]
version = "0.2.137"
default-features = false
[dev-dependencies]
bincode = "1.3.1"
criterion = "0.4"
fern = "0.6.0"
chrono = { version = "0.4.24", features = ["clock"], default-features = false }
test-case = "1.1.0"
rand = "0.8"
httparse = "1.3.5"
doc-comment = "0.3"
[[bench]]
name = "latency"
harness = false