-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
38 lines (35 loc) · 1022 Bytes
/
Cargo.toml
File metadata and controls
38 lines (35 loc) · 1022 Bytes
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
[workspace]
members = [
"ferro-core",
"ferro-io",
"ferro-structure",
"ferro-analysis",
"ferro-workflow",
"ferro-cli",
# "ferro-python", # 暂时注释掉,等熟悉 Rust 后再启用
]
resolver = "2"
[workspace.package]
version = "0.1.8"
edition = "2021"
authors = ["Your Name <you@example.com>"]
license = "MIT"
[workspace.dependencies]
# 线性代数库,用于处理坐标、矩阵计算
nalgebra = "0.34"
# 多维数组,用于大规模数据处理
ndarray = "0.17"
# 并行计算库
rayon = "1.8"
# 序列化/反序列化
serde = { version = "1.0", features = ["derive"] }
# 错误处理
thiserror = "2.0"
anyhow = "1.0"
rand = "0.8"
[profile.release]
opt-level = 3 # 默认就是 3,最高优化
lto = true # 链接时优化,减小体积、提升性能
codegen-units = 1 # 单编译单元,允许更激进的优化(编译变慢)
panic = "abort" # 去掉 panic 展开代码,减小体积
strip = true # 自动 strip 调试符号,减小体积