Add Rust core with PyO3 bindings
Browse files- rust_gbt/Cargo.toml +19 -0
rust_gbt/Cargo.toml
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[package]
|
| 2 |
+
name = "rust_gbt"
|
| 3 |
+
version = "0.1.0"
|
| 4 |
+
edition = "2024"
|
| 5 |
+
|
| 6 |
+
[lib]
|
| 7 |
+
name = "rust_gbt"
|
| 8 |
+
crate-type = ["cdylib"]
|
| 9 |
+
|
| 10 |
+
[dependencies]
|
| 11 |
+
pyo3 = { version = "0.28.2", features = ["extension-module"] }
|
| 12 |
+
numpy = "0.28"
|
| 13 |
+
rayon = "1.10"
|
| 14 |
+
|
| 15 |
+
[profile.release]
|
| 16 |
+
opt-level = 3
|
| 17 |
+
lto = true
|
| 18 |
+
codegen-units = 1
|
| 19 |
+
target-cpu = "native"
|