-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
53 lines (48 loc) · 1.82 KB
/
Copy pathCargo.toml
File metadata and controls
53 lines (48 loc) · 1.82 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
50
51
52
53
[workspace]
resolver = "3"
# Named rather than a bare `crates/*`: a scan run rooted at `crates/` drops its
# audit database in `crates/.codehelion/`, and a glob that picks that up fails
# the whole workspace with a missing manifest.
members = ["crates/codehelion-*"]
[workspace.package]
version = "0.6.0"
edition = "2024"
rust-version = "1.98"
license = "Apache-2.0"
repository = "https://github.com/libraz/codehelion"
homepage = "https://github.com/libraz/codehelion"
# Shared lint policy for every crate in the workspace (AGENTS.md §6). Each crate
# opts in with `[lints] workspace = true`.
[workspace.lints.rust]
unsafe_code = "forbid"
missing_docs = "warn"
rust_2024_compatibility = { level = "warn", priority = -1 }
unreachable_pub = "warn"
unused_qualifications = "warn"
[workspace.lints.clippy]
all = { level = "warn", priority = -1 }
pedantic = { level = "warn", priority = -1 }
nursery = { level = "warn", priority = -1 }
# Fail loudly on shortcuts that hide bugs.
unwrap_used = "warn"
expect_used = "warn"
panic = "warn"
todo = "warn"
unimplemented = "warn"
dbg_macro = "warn"
# No debug info in development builds, which is what keeps `target/` from
# growing without bound. On macOS the default keeps debug info inside the
# per-codegen-unit object files, so those objects cannot be deleted after a
# link; every rebuild names its changed units differently and leaves the
# previous ones behind, and nothing ever collects them. A test suite of this
# size reaches hundreds of thousands of stale objects in one directory within
# days, at which point every cargo invocation spends longer on filesystem calls
# than on compiling. Assertion and panic messages carry their own file and line,
# so what is given up is line numbers inside backtraces.
[profile.dev]
debug = 0
[profile.release]
strip = true
lto = true
codegen-units = 1
panic = "abort"