-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy pathCargo.toml
More file actions
43 lines (37 loc) · 1.26 KB
/
Copy pathCargo.toml
File metadata and controls
43 lines (37 loc) · 1.26 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
[package]
name = "diff_diff_rust"
version = "3.3.0"
edition = "2021"
rust-version = "1.84"
description = "Rust backend for diff-diff DiD library"
license = "MIT"
[lib]
name = "diff_diff_rust"
# cdylib for Python extension, rlib for running tests
crate-type = ["cdylib", "rlib"]
[features]
default = []
# extension-module is only needed for cdylib builds, not for cargo test
extension-module = ["pyo3/extension-module"]
# Platform BLAS backends (optional, activated for pre-built wheels)
# When enabled, ndarray's .dot() and general_mat_vec_mul dispatch to BLAS dgemv/dgemm
accelerate = ["ndarray/blas", "dep:blas-src", "blas-src/accelerate"]
openblas = ["ndarray/blas"]
[dependencies]
# PyO3 0.28 supports Python 3.9-3.14
pyo3 = "0.28"
numpy = "0.28"
ndarray = { version = "0.17", features = ["rayon"] }
rand = "0.10"
rand_xoshiro = "0.6"
rayon = "1.8"
# Pure Rust linear algebra for SVD/matrix inversion (no external deps).
# BLAS for matrix-vector products is optional via accelerate/openblas features.
faer = "0.24"
# BLAS backend (optional, activated by accelerate/openblas features)
# blas-src 0.10 is ndarray's tested version (see ndarray/crates/blas-tests/Cargo.toml)
blas-src = { version = "0.10", optional = true }
[profile.release]
lto = true
codegen-units = 1
opt-level = 3