forked from rakaly/ck3save
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
51 lines (45 loc) · 1.38 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
[package]
name = "ck3save"
version = "0.4.3"
authors = ["Nick Babcock <[email protected]>"]
edition = "2021"
exclude = ["/assets/*", "/fuzz/*"]
license = "MIT"
readme = "README.md"
repository = "https://github.com/rakaly/ck3save.git"
description = "Ergonomically work with all CK3 saves (regular and ironman)"
keywords = ["ck3", "ironman"]
categories = ["parsing"]
[features]
default = ["miniz"]
miniz = ["miniz_oxide"]
libdeflate = ["libdeflater/freestanding"]
serialize = []
[dependencies]
jomini = { version = "0.20", features = ["json"] }
zip = { version = "0.6", default-features = false }
serde = { version = "1", features = ["derive"] }
thiserror = "1"
libdeflater = { version = "0.11", optional = true }
miniz_oxide = { version = "0.6", optional = true }
[dev-dependencies]
attohttpc = "0.23"
twoway = "0.2"
zip = { version = "0.6", default-features = false, features = ["deflate"] }
# We override the test profile so that our tests run in a tolerable time as
# some of the asset files are heavyweight and can take a significant amount of
# time. Here is some timing data recorded to run one test:
#
# cargo test 0m15.037s
# cargo test (opt-level=3) 0m9.644s
# cargo test (+lto=thin) 0m0.907s
# cargo test --release 0m0.620s
[profile.test]
opt-level = 3
lto = "thin"
[profile.bench]
lto = true
codegen-units = 1
[profile.release]
lto = true
codegen-units = 1