-
Notifications
You must be signed in to change notification settings - Fork 266
Expand file tree
/
Copy pathCargo.toml
More file actions
51 lines (46 loc) · 1.73 KB
/
Copy pathCargo.toml
File metadata and controls
51 lines (46 loc) · 1.73 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
[package]
name = "akquant"
version = "0.3.46"
edition = "2024"
description = "High-performance quantitative trading framework based on Rust and Python"
license = "MIT"
authors = ["AKQuant Developers"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
name = "akquant"
crate-type = ["cdylib", "rlib"]
[dependencies]
pyo3 = { version = "0.29.2", features = ["abi3-py310", "chrono"] }
numpy = "0.29"
pyo3-stub-gen = "0.23.0"
# `rc`: tracker.rs / portfolio.rs 给 `Arc<..>` 字段 derive(Serialize)。
serde = { version = "1.0", features = ["derive", "rc"] }
# 别加 `lazy`: 一个 lazy 调用点会把查询计划/表达式引擎链进 wheel (+12MB, 见 0.3.6)。
# parquet 走 eager ParquetReader; CSV 用独立的 `csv` crate, 不需要 polars 的。
polars = { version = "0.55.2", features = ["parquet", "ipc"] }
rayon = "1.11"
uuid = { version = "1.20.0", features = ["v4", "fast-rng", "macro-diagnostics"] }
# Utilities
chrono = { version = "0.4", features = ["serde"] }
chrono-tz = "0.10"
anyhow = "1.0"
rust_decimal = { version = "1.40", features = ["serde-with-str", "maths"] }
indicatif = "0.18"
csv = "1.3"
thiserror = "2.0.18"
rust_decimal_macros = "1.40"
log = "0.4"
pyo3-log = "0.13.1"
crossbeam-channel = "0.5"
rmp-serde = "1.3.1"
serde_json = "1.0"
[features]
default = []
extension-module = ["pyo3/extension-module"]
test-utils = ["pyo3/auto-initialize"]
[profile.release]
# 去掉残留符号表(release 本就 debug=0)。实测 linux -7.8% / macOS -9.2% /
# Windows ~0(MSVC 调试信息在独立 .pdb 里)。体积的主要杠杆不在这, 在上面 polars 的 features。
strip = "symbols"
# 跨 crate 消除死代码。也是"声明但未调用的依赖不进产物"的机制来源。
lto = "thin"