forked from rstackjs/rstack-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
49 lines (44 loc) · 1.29 KB
/
Copy pathCargo.toml
File metadata and controls
49 lines (44 loc) · 1.29 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
[workspace]
members = ["crates/rstack-binding", "crates/rstack-ignore"]
resolver = "2"
[workspace.package]
edition = "2021"
license = "MIT"
repository = "https://github.com/rstackjs/rstack-cli"
rust-version = "1.88"
[workspace.dependencies]
ignore = { version = "0.4.33", default-features = false }
napi = { version = "3.12.1", default-features = false, features = ["napi9"] }
napi-build = "2.4.1"
napi-derive = "3.6.3"
pathdiff = "0.2.3"
rstack-ignore = { path = "crates/rstack-ignore" }
# Local development: 16 codegen units are sufficient for this small workspace while preserving
# parallel compilation and full debugging support.
[profile.dev]
codegen-units = 16
debug = 2
incremental = true
panic = "unwind"
split-debuginfo = "unpacked"
# CI: 256 codegen units favor clean-build parallelism, while disabling cross-crate LTO avoids the
# release-only linking cost.
[profile.ci]
codegen-units = 256
debug = false
incremental = false
inherits = "release"
lto = false
opt-level = 2
# Cargo tests require unwinding, so keep the CI native build consistent.
panic = "unwind"
strip = false
# Release: one codegen unit and fat LTO maximize optimization; abort prevents unwinding across the
# NAPI FFI boundary.
[profile.release]
codegen-units = 1
debug = false
lto = "fat"
opt-level = 3
panic = "abort"
strip = true