fix: sched round-robin, cap slot OOB panic, clippy, make ci

- RunList -> intrusive FIFO, no starvation, no silent drop
- cap table sized to CapSlot range (kani caught OOB panic)
- snake food color test uses const
- kani cfg lint, RUST_MIN_STACK for big kernel struct in tests
This commit is contained in:
2026-10-26 19:08:30 +01:00
parent 1c04ddf909
commit e931485ca7
32 changed files with 384 additions and 251 deletions

View File

@@ -4,3 +4,6 @@ version = "0.1.0"
edition = "2024"
[dependencies]
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ["cfg(kani)"] }

View File

@@ -25,7 +25,7 @@ macro_rules! bounded {
pub const MAX: $inner = $max;
pub fn new(value: $inner) -> Option<Self> {
if value >= Self::MIN && value <= Self::MAX {
if (Self::MIN..=Self::MAX).contains(&value) {
Some(Self(value))
} else {
None