0.1.0-0-pre.11-fix.1

This commit is contained in:
2026-09-16 11:40:22 +02:00
parent ab9403384f
commit b43eb66a5d
4 changed files with 82 additions and 5 deletions

View File

@@ -0,0 +1,75 @@
<!-- file: deltas/0.1.0/0-pre.11.fix.1.md -->
<!-- version: 1 -->
# Delta 0.1.0-0-pre.11.fix.1
## Base
Base déclarée : `0.1.0-0-pre.11`, non validée.
## Échecs observés
La validation de `0-pre.11` a révélé deux défauts locaux.
### Clippy
Rust/Clippy 1.94 signale :
```text
manual implementation of `.is_multiple_of()`
```
Le code :
```text
frame.index() % MOVE_EVERY_FRAMES == 0
```
est remplacé par :
```text
frame.index().is_multiple_of(MOVE_EVERY_FRAMES)
```
### Façade du crate Snake
`SnakeCell` est public dans `state.rs`, mais n'était pas réexporté par `lib.rs`.
Les tests accèdent légitimement à `crate::SnakeCell`; le type doit donc être exposé par la façade du crate conformément aux règles du workspace.
`lib.rs` réexporte désormais :
```text
SnakeCell
SnakeState
```
## Validation à exécuter
```bash
cargo fmt --all
cargo fmt --all -- --check
python3 scripts/audit_rust_workspace_rules.py
python3 scripts/audit_markdown_tables.py README.md RULES.md ROADMAP.md CHANGELOG.md docs prompts crates Android deltas history
cargo check --workspace
cargo clippy --workspace --all-targets --all-features -- -D warnings
cargo test -p engine-v1-sdl --all-targets --all-features
cargo test -p game-snake-poc --all-targets --all-features
```
Puis :
```bash
cargo run -p game-snake-poc-desktop
```
Si le smoke Desktop est propre, poursuivre les validations Android prévues par `0-pre.11`.
## Transition
Si toutes les gates `0-pre.11` sont propres, `0.1.0-0-pre.11.fix.1` valide la fin de la phase `0-pre.*`.
En cas d'échec imputable au projet, produire `0.1.0-0-pre.11.fix.2`.