AGENTS.md/CLAUDE.md gain a "Never crash" section ahead of the non-negotiables (no unwrap/expect/panic/unreachable/todo/unimplemented or unsafe in non-test code, Result + ?, checked indexing and arithmetic on input-derived values, bounded recursion, lock poisoning, the last-resort guard, a regression test per crash fix), linking craftrules/standards/never-crash.md. README's Contributing list points to it. clippy.toml allows unwrap/expect/panic/indexing in tests only, so crates can carry #![deny(clippy::unwrap_used, ...)] without touching their tests. unsafe_code stays "deny" for now: apps/lightcraft and apps/lightcraft-cli call malloc_zone_pressure_relief (libSystem) through a two-line FFI block to return freed memory on macOS, and no safe wrapper crate exists. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
5 lines
125 B
TOML
5 lines
125 B
TOML
allow-unwrap-in-tests = true
|
|
allow-expect-in-tests = true
|
|
allow-panic-in-tests = true
|
|
allow-indexing-slicing-in-tests = true
|