Skip to content

LightCraft: An open-source non-destructive photo editor written by scratch in pure Rust

docs: require lint inheritance for new crates

Dylan M. Taylor196a0c1a4513
diff --git a/CLAUDE.md b/CLAUDE.md
index 6034902e9..1ff3defb0 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -56,8 +56,9 @@ of it. Full standard: `../craftrules/standards/never-crash.md`
denies `cognitive_complexity`, `too_many_arguments` and `wildcard_imports`; members inherit them with
`[lints] workspace = true`, and `sysmem` repeats those denies in its local lint table. Every production crate root
(`lib.rs`, each binary's `main.rs`) carries `#![deny(clippy::unwrap_used, clippy::expect_used, clippy::panic,
- clippy::unimplemented, clippy::todo, clippy::unreachable)]`. New crates inherit workspace lints and start with the
- attribute.
+ clippy::unimplemented, clippy::todo, clippy::unreachable)]`. Every new workspace crate must include
+ `[lints] workspace = true` in `Cargo.toml` to inherit `[workspace.lints]`, and new production crate roots start with
+ the attribute.
## Non-negotiables
- **Clean-room.** Never read/disassemble anything inside Adobe app bundles (names/listings only). Never copy Adobe icons, presets, profiles (DCP), lens profiles (LCP), camera matrices, fonts. Observation of the installed Lightroom is read-only (it syncs the user's personal library: never import/edit/rate/delete there). Never copy GPL/LGPL/AGPL code (darktable, RawTherapee, ART, LibRaw, rawspeed, rawloader, rawler, lensfun, dcraw-derived GPL code…).