-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
56 lines (46 loc) · 1.86 KB
/
Copy pathCargo.toml
File metadata and controls
56 lines (46 loc) · 1.86 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
[package]
name = "fallout-dat3"
version = "0.8.0"
edition = "2021"
# Floor set by u32::is_multiple_of (stabilized 1.87); 1.85 fails to compile, 1.87 verified clean.
rust-version = "1.87"
authors = ["BGforge"]
description = "Fallout 1 and 2 .dat management cli."
license = "GPL-3.0-only"
[[bin]]
name = "dat3"
path = "src/main.rs"
[dependencies]
# Error handling - makes error management much easier
anyhow = "1.0"
# Binary data handling
byteorder = "1.5" # Read/write integers in different byte orders
deku = "0.19" # Declarative binary parsing
# Command-line interface
# <4.6: clap 4.6 switched to syn 3 while deku's derive macros still use syn 2,
# and [bans] multiple-versions = "deny" forbids carrying both. Lift when deku moves to syn 3.
clap = { version = ">=4.4, <4.6", features = ["derive"] }
# Compression and performance
# zlib-rs backend: measurably faster than the default miniz_oxide (level-9 archive
# creation -17%, extraction -11% on a 129 MB archive) and pure Rust, so the
# mingw/musl cross-builds need no C toolchain.
flate2 = { version = "1.1", features = ["zlib-rs"] } # zlib compression for DAT2 format
rayon = "1.8" # Parallel processing for faster extraction
# Cross-platform path handling
glob = "0.3" # Glob pattern matching for cross-platform support
# Reads .bgforge.yml for the default-format setting. Default features off:
# they only add encoding_rs for non-UTF-8 input detection, which a config
# file doesn't need (and whose BSD-3-Clause part the license gate rejects).
yaml-rust2 = { version = "0.11", default-features = false }
# Optional: Use mimalloc on Linux for better performance
[target.'cfg(target_os = "linux")'.dependencies]
mimalloc = "0.1"
[profile.release]
lto = true
codegen-units = 1
panic = "abort"
strip = true
[profile.release.package."*"]
opt-level = 3
[dev-dependencies]
proptest = "1.11.0"