-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
64 lines (53 loc) · 1.39 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
61
62
63
64
[package]
name = "h1emu-core"
version = "1.3.0"
edition = "2021"
description = "Utility library used in h1emu."
license = "BSD-3-Clause"
repository = "https://github.com/H1emu/H1emu-core"
readme = "README.md"
[features]
default = ["full"]
game-utils = ["rand", "getrandom"]
soeprotocol = ["crc", "serde", "serde_json", "byteorder", "protocols"]
gatewayprotocol = ["serde", "serde_json", "byteorder", "protocols"]
protocols = ["serde", "serde_json", "byteorder"]
crc = ["byteorder"]
rc4 = []
jenkins = []
full = [
"game-utils",
"soeprotocol",
"gatewayprotocol",
"protocols",
"jenkins",
"rc4",
"crc",
]
[dependencies]
wasm-bindgen = { version = "0.2.89" }
getrandom = { version = "0.2.11", features = ["js"], optional = true }
rand = { version = "0.8.5", optional = true }
byteorder = { version = "1.5.0", optional = true }
serde_json = { version = "1.0.108", optional = true }
serde = { version = "1.0.193", features = ["derive"], optional = true }
gloo-utils = "0.2.0"
[dev-dependencies]
criterion = { version = "0.5.1" }
[[bench]]
name = "lib-bench"
harness = false
[lib]
name = "h1emu_core"
crate-type = ["cdylib", "rlib"]
path = "src/lib.rs"
[profile.release]
lto = true
# strip = true
opt-level = 3
[package.metadata.wasm-pack.profile.release]
wasm-opt = ['-O4']
[package.metadata.wasm-pack.profile.release.wasm-bindgen]
debug-js-glue = false
demangle-name-section = true
dwarf-debug-info = false