-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
64 lines (51 loc) · 1.61 KB
/
Cargo.toml
File metadata and controls
64 lines (51 loc) · 1.61 KB
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
[package]
name = "mc_protocol"
version = "2.1.1"
edition = "2021"
authors = ["kauri-off"]
description = "Rust implementation of Minecraft Java Edition protocol primitives: serialization, packet framing, encryption, and compression"
license = "MIT"
repository = "https://github.com/kauri-off/mc_protocol"
keywords = ["minecraft", "protocol", "networking", "varint", "encryption"]
categories = ["network-programming", "encoding", "game-development"]
[package.metadata.docs.rs]
all-features = true
[features]
default = ["async", "compression"]
# Enable async I/O via tokio
async = ["dep:tokio"]
# Enable AES-128-CFB8 encryption support
encryption = ["dep:openssl"]
# Enable zlib packet compression support
compression = ["dep:flate2"]
[dependencies]
thiserror = "2.0.18"
uuid = { version = "1.23.1", features = ["v4"] }
tokio = { version = "1.52.1", features = ["full"], optional = true }
openssl = { version = "0.10.78", optional = true }
flate2 = { version = "1.1.9", optional = true }
mc_protocol_derive = { path = "./mc_protocol_derive", version = "2.0.1" }
[target.'cfg(windows)'.dependencies]
openssl = { version = "0.10.78", features = ["vendored"], optional = true }
[dev-dependencies]
tokio = { version = "1.52.1", features = ["full"] }
[[test]]
name = "varint"
path = "tests/varint.rs"
[[test]]
name = "varlong"
path = "tests/varlong.rs"
[[test]]
name = "types"
path = "tests/types.rs"
[[test]]
name = "packet"
path = "tests/packet.rs"
[[test]]
name = "encryption"
path = "tests/encryption.rs"
required-features = ["encryption"]
[[test]]
name = "compression"
path = "tests/compression.rs"
required-features = ["compression"]