aprender-zram 0.34.0

SIMD-accelerated LZ4/ZSTD compression engine for Linux zram devices
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Clippy configuration for trueno-zram
# Prevents Cloudflare-class defects (unwrap/expect panics in production)

# Disallow methods that can panic in production code
# Use expect() with descriptive messages instead of unwrap()
disallowed-methods = [
    { path = "core::option::Option::unwrap", reason = "use expect() with descriptive message or proper error handling" },
    { path = "core::result::Result::unwrap", reason = "use expect() with descriptive message or ? operator" },
]

# Cognitive complexity threshold (from pmat analysis showing 16 max)
cognitive-complexity-threshold = 25

# Type complexity threshold
type-complexity-threshold = 350

# Maximum lines in a function
too-many-lines-threshold = 200