aboutsummaryrefslogtreecommitdiff
path: root/Cargo.toml
blob: a254da3e8ff59fde71f9f5929f20604c92d96a76 (plain)
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
[workspace]
members = [
    "azalea",
    "azalea-auth",
    "azalea-block",
    "azalea-brigadier",
    "azalea-buf",
    "azalea-chat",
    "azalea-client",
    "azalea-core",
    "azalea-crypto",
    "azalea-entity",
    "azalea-inventory",
    "azalea-language",
    "azalea-physics",
    "azalea-protocol",
    "azalea-protocol/fuzz",
    "azalea-registry",
    "azalea-world",
]
resolver = "3"

# --- Workspace Settings ---

[workspace.package]
version = "0.15.0+mc1.21.11"
edition = "2024"
license = "MIT"
repository = "https://github.com/azalea-rs/azalea"
# homepage = "https://github.com/azalea-rs/azalea"

[workspace.dependencies]
aes = "0.8.4"
anyhow = "1.0.100"
async-compat = "0.2.5"
base64 = "0.22.1"
bevy_app = "0.18.0"
bevy_ecs = { version = "0.18.0", default-features = false }
bevy_utils = { version = "0.18.0", default-features = false }
bevy_log = "0.18.0"
bevy_tasks = "0.18.0"
bevy_time = "0.18.0"
byteorder = "1.5.0"
cfb8 = "0.8.1"
chrono = { version = "0.4.43", default-features = false }
compact_str = "0.9.0"
crc32c = "0.6.8"
criterion = "0.8.1"
# TODO: Remove when rsa is fixed.
crypto-bigint = "=0.7.0-rc.21"
# TODO: Remove when rsa is fixed.
crypto-primes = "=0.7.0-pre.7"
derive_more = "2.1.1"
enum-as-inner = "0.6.1"
env_logger = "0.11.8"
flate2 = { version = "1.1.8", features = ["zlib-rs"] }
futures = "0.3.31"
futures-lite = "2.6.1"
hickory-resolver = "0.25.2"
indexmap = "2.13.0"
md-5 = "0.10.6"
minecraft_folder_path = "0.1.2"
nohash-hasher = "0.2.0"
num-bigint = "0.4.6"
num-format = "0.4.4"
num-traits = "0.2.19"
parking_lot = "0.12.5"
pastey = "0.2.1"
proc-macro2 = "1.0.106"
quote = "1.0.44"
rand = "0.10.0-rc.7"
# TODO: Remove when rand is fixed.
rand_core = "=0.10.0-rc-5"
regex = "1.12.2"
reqwest = { version = "0.13.1", default-features = false }
rsa = "0.10.0-rc.13"
rsa_public_encrypt_pkcs1 = "0.4.0"
rustc-hash = "2.1.1"
serde = "1.0.228"
serde_json = "1.0.149"
sha1 = "0.11.0-rc.3"
sha2 = "0.11.0-rc.3"
# TODO: Remove when rsa is fixed.
signature = "=3.0.0-rc.8"
# simdnbt = "0.9.0"
simdnbt = { git = "https://github.com/azalea-rs/simdnbt" }
socks5-impl = "0.8.0"
syn = "2.0.114"
thiserror = "2.0.18"
tokio = "1.49.0"
tokio-util = "0.7.18"
tracing = "0.1.44"
tracing-subscriber = "0.3.22"
uuid = "1.19.0"
radix-heap = "0.4.2"

azalea-block-macros = { path = "azalea-block/azalea-block-macros", version = "0.15.0", default-features = false }
azalea-block = { path = "azalea-block", version = "0.15.0", default-features = false }
azalea-auth = { path = "azalea-auth", version = "0.15.0", default-features = false }
azalea-brigadier = { path = "azalea-brigadier", version = "0.15.0", default-features = false }
azalea-buf-macros = { path = "azalea-buf/azalea-buf-macros", version = "0.15.0", default-features = false }
azalea-buf = { path = "azalea-buf", version = "0.15.0", default-features = false }
azalea-chat = { path = "azalea-chat", version = "0.15.0", default-features = false }
azalea-client = { path = "azalea-client", version = "0.15.0", default-features = false }
azalea-core = { path = "azalea-core", version = "0.15.0", default-features = false }
azalea-crypto = { path = "azalea-crypto", version = "0.15.0", default-features = false }
azalea-entity = { path = "azalea-entity", version = "0.15.0", default-features = false }
azalea-inventory-macros = { path = "azalea-inventory/azalea-inventory-macros", version = "0.15.0", default-features = false }
azalea-inventory = { path = "azalea-inventory", version = "0.15.0", default-features = false }
azalea-language = { path = "azalea-language", version = "0.15.0", default-features = false }
azalea-physics = { path = "azalea-physics", version = "0.15.0", default-features = false }
azalea-protocol-macros = { path = "azalea-protocol/azalea-protocol-macros", version = "0.15.0", default-features = false }
azalea-protocol = { path = "azalea-protocol", version = "0.15.0", default-features = false }
azalea-registry-macros = { path = "azalea-registry/azalea-registry-macros", version = "0.15.0", default-features = false }
azalea-registry = { path = "azalea-registry", version = "0.15.0", default-features = false }
azalea-world = { path = "azalea-world", version = "0.15.0", default-features = false }

[workspace.lints.clippy]
# https://users.rust-lang.org/t/to-string-vs-to-owned-for-string-literals/1441
str_to_string = "warn"

[workspace.lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(docsrs_dep)'] }

[workspace.metadata.docs.rs]
rustc-args = ["--cfg", "docsrs_dep"]
rustdoc-args = [
    "--cfg",
    "docsrs_dep",
    "--html-after-content",
    "docs-rs/trait-tags.html",
]
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]

# --- Profile Settings ---

[profile.release]
debug = true

# decoding packets takes forever if we don't do this
[profile.dev.package.azalea-crypto]
opt-level = 3
[profile.dev.package.cfb8]
opt-level = 3
[profile.dev.package.aes]
opt-level = 3
[profile.dev.package.flate2]
opt-level = 3