Lutra/Cargo.toml
danny ec1c72d9ac M0.2: workspace lints and lints self-test
Denies unwrap/expect/panic/unreachable/todo/unimplemented, indexing and
string slicing, missing docs and unsafe code outside tests. clippy.toml
allows them in tests. cargo xtask lints-selftest proves both directions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 20:28:04 +02:00

42 lines
1 KiB
TOML

[workspace]
resolver = "3"
members = ["crates/*", "apps/*", "xtask"]
default-members = ["crates/*", "apps/*"]
[workspace.package]
version = "0.0.0"
edition = "2024"
rust-version = "1.88"
license = "MIT OR Apache-2.0"
authors = ["Daniel Diekert and the Lutra contributors"]
publish = false
[workspace.dependencies]
lutra-text = { path = "crates/text" }
lutra-syntax = { path = "crates/syntax" }
lutra-vfs = { path = "crates/vfs" }
lutra-index = { path = "crates/index" }
lutra-search = { path = "crates/search" }
lutra-lsp = { path = "crates/lsp" }
lutra-terminal = { path = "crates/terminal" }
lutra-engine = { path = "crates/engine" }
lutra-control = { path = "crates/control" }
lutra-mcp = { path = "crates/mcp" }
lutra-testkit = { path = "crates/testkit" }
[workspace.lints.rust]
missing_docs = "deny"
unsafe_code = "deny"
[workspace.lints.clippy]
unwrap_used = "deny"
expect_used = "deny"
panic = "deny"
unreachable = "deny"
todo = "deny"
unimplemented = "deny"
indexing_slicing = "deny"
string_slice = "deny"
[profile.release]
panic = "unwind"