Sets submodules to use workspace lints. Added denying unwrap as a workspace level lint, which found a couple of cases where we could have propagated errors. Also manually labeled ones that were fine by my eye.
36 lines
750 B
TOML
36 lines
750 B
TOML
[workspace]
|
|
resolver = "2"
|
|
members = [
|
|
"ansi-escape",
|
|
"apply-patch",
|
|
"cli",
|
|
"common",
|
|
"core",
|
|
"exec",
|
|
"execpolicy",
|
|
"mcp-client",
|
|
"mcp-server",
|
|
"mcp-types",
|
|
"tui",
|
|
]
|
|
|
|
[workspace.package]
|
|
version = "0.0.0"
|
|
# Track the edition for all workspace crates in one place. Individual
|
|
# crates can still override this value, but keeping it here means new
|
|
# crates created with `cargo new -w ...` automatically inherit the 2024
|
|
# edition.
|
|
edition = "2024"
|
|
|
|
[workspace.lints]
|
|
rust = { }
|
|
|
|
[workspace.lints.clippy]
|
|
unwrap_used = "deny"
|
|
|
|
[profile.release]
|
|
lto = "fat"
|
|
# Because we bundle some of these executables with the TypeScript CLI, we
|
|
# remove everything to make the binary as small as possible.
|
|
strip = "symbols"
|