-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCargo.toml
More file actions
30 lines (26 loc) · 895 Bytes
/
Copy pathCargo.toml
File metadata and controls
30 lines (26 loc) · 895 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
[package]
name = "rlic"
version = "0.5.3" # keep in sync with pyproject.toml
edition = "2021"
rust-version = "1.83" # 2024-11-28
[lib]
name = "_core"
# "cdylib" is necessary to produce a shared library for Python to import from.
crate-type = ["cdylib"]
[dependencies]
# "extension-module" tells pyo3 we want to build an extension module (skips linking against libpython.so)
pyo3 = { version = "0.29.0", features = ["extension-module"] }
numpy = "0.29.0"
num-traits = "0.2.19"
either = "1.15.0"
[profile.release]
# https://nnethercote.github.io/perf-book/build-configuration.html#codegen-units
codegen-units = 1
# https://nnethercote.github.io/perf-book/build-configuration.html#abort-on-panic
panic = "abort"
# https://nnethercote.github.io/perf-book/build-configuration.html#strip-debug-info-and-symbols
strip = "symbols"
[features]
default = ["fma", "branchless"]
fma = []
branchless = []