-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
74 lines (57 loc) · 1.61 KB
/
Cargo.toml
File metadata and controls
74 lines (57 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
65
66
67
68
69
70
71
72
73
[package]
name = "ipa-parser"
version = "1.0.0"
edition = "2021"
authors = ["Your Name"]
description = "Blazing-fast IPA file parser for extracting metadata and icons"
license = "MIT"
[lib]
name = "ipa_parser"
path = "src/lib.rs"
[[bin]]
name = "ipa-parser"
path = "src/main.rs"
[dependencies]
# ZIP handling with optimizations
zip = { version = "0.6", default-features = false, features = ["deflate"] }
# Plist parsing (supports both XML and binary)
plist = "1.6"
# Image processing
image = { version = "0.24", default-features = false, features = ["png"] }
png = "0.17"
# Serialization
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
# CLI argument parsing
clap = { version = "4.4", features = ["derive"] }
# Error handling
thiserror = "1.0"
anyhow = "1.0"
# Hashing
md5 = "0.7"
# Compression
flate2 = "1.0"
# Parallel processing
rayon = "1.8"
# Fast I/O
memmap2 = "0.9"
[profile.release]
opt-level = 3 # Maximum optimization
lto = "fat" # Full link-time optimization
codegen-units = 1 # Better optimization, slower compile
strip = true # Strip symbols for smaller binary
panic = "abort" # Smaller binary, faster panic
overflow-checks = false # Disable overflow checks in release
[profile.release.package."*"]
opt-level = 3
# Ultra-fast build profile with CPU-specific optimizations
[profile.ultra]
inherits = "release"
opt-level = 3
lto = "fat"
codegen-units = 1
strip = true
panic = "abort"
# Enable CPU-specific optimizations (use native CPU features)
[build]
rustflags = ["-C", "target-cpu=native"]