-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
30 lines (27 loc) · 981 Bytes
/
Copy pathCargo.toml
File metadata and controls
30 lines (27 loc) · 981 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
[workspace]
resolver = "2"
members = [
"crates/template-core",
"crates/template-cli",
"crates/template-py",
]
[workspace.package]
version = "0.1.0"
edition = "2021"
rust-version = "1.85"
license = "MIT"
repository = "https://github.com/example/template-python-rust-cmd"
homepage = "https://github.com/example/template-python-rust-cmd"
[workspace.dependencies]
anyhow = "1"
pyo3 = { version = "0.23", features = ["extension-module"] }
# Keep third-party crates release-grade even in the dev profile.
# `cargo build` (no --release) compiles first-party crates unoptimized
# for fast iteration; third-party deps (pyo3, serde, etc.) are compiled
# once and cached at opt-level 3 so the runtime hot path stays as fast
# as a release build. This is what makes "default to dev for local
# iteration" safe — see fbuild#744 (~5x faster Rust-edit rebuild on
# fbuild's workspace) and zackees/template-python-rust-cmd#2.
[profile.dev.package."*"]
opt-level = 3
debug = false