-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
66 lines (57 loc) · 1.48 KB
/
Cargo.toml
File metadata and controls
66 lines (57 loc) · 1.48 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
[package]
name = "canns-lib"
version = "0.7.0"
edition = "2021"
license = "Apache-2.0"
authors = ["Sichao He <sichaohe@outlook.com>"]
homepage = "https://github.com/routhleck/canns-lib"
repository = "https://github.com/routhleck/canns-lib"
readme = "README.md"
description = "High-performance computational acceleration library for CANNS, providing optimized implementations for topological data analysis and neural network computations"
keywords = ["canns", "topology", "acceleration", "tda", "neural-networks"]
categories = ["mathematics", "science"]
[lib]
name = "canns_lib"
crate-type = ["cdylib"]
path = "src/lib.rs"
[dependencies]
pyo3 = { version = "0.24.2", features = ["extension-module"] }
numpy = "0.24.0"
ndarray = "0.16"
sprs = "0.11"
rayon = { version = "1.8", optional = true }
thiserror = "1.0"
num-traits = "0.2"
indexmap = "2.0"
rustc-hash = "1.1"
typed-arena = "2.0"
mimalloc = { version = "0.1.43", default-features = false }
pinboard = "2.2"
rand = "0.8"
rand_distr = "0.4"
statrs = "0.16" # 用于 Rayleigh 分布的 CDF/inverse CDF 计算
[build-dependencies]
pyo3-build-config = "0.20"
[dev-dependencies]
approx = "0.5"
criterion = "0.5"
rand = "0.8"
[features]
default = ["parallel"]
parallel = ["rayon"]
debug = []
[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
panic = "abort"
strip = true
overflow-checks = false
[profile.release-with-debug]
inherits = "release"
debug = true
strip = false
[profile.release.build-override]
opt-level = 3
[profile.dev]
opt-level = 1