0.1.0-1-alpha.2-fix.4

This commit is contained in:
2026-09-17 09:32:14 +02:00
parent b31ffa74f5
commit a80233dbb1
7 changed files with 75 additions and 9 deletions

View File

@@ -1,5 +1,5 @@
// file: Android/game-reflex-poc/build.gradle // file: Android/game-reflex-poc/build.gradle
// version: 14 // version: 15
plugins { plugins {
id 'com.android.application' id 'com.android.application'
@@ -18,7 +18,7 @@ android {
minSdk 21 minSdk 21
targetSdk 36 targetSdk 36
versionCode 1 versionCode 1
versionName '0.1.0-1-alpha.2.fix.3' versionName '0.1.0-1-alpha.2.fix.4'
} }
compileOptions { compileOptions {

View File

@@ -1,5 +1,5 @@
// file: Android/game-snake-poc/build.gradle // file: Android/game-snake-poc/build.gradle
// version: 14 // version: 15
plugins { plugins {
id 'com.android.application' id 'com.android.application'
@@ -18,7 +18,7 @@ android {
minSdk 21 minSdk 21
targetSdk 36 targetSdk 36
versionCode 1 versionCode 1
versionName '0.1.0-1-alpha.2.fix.3' versionName '0.1.0-1-alpha.2.fix.4'
} }
compileOptions { compileOptions {

View File

@@ -1,5 +1,5 @@
# file: Cargo.toml # file: Cargo.toml
# version: 31 # version: 32
[workspace] [workspace]
resolver = "3" resolver = "3"
@@ -19,7 +19,7 @@ members = [
] ]
[workspace.package] [workspace.package]
version = "0.1.0-1-alpha.2.fix.3" version = "0.1.0-1-alpha.2.fix.4"
edition = "2024" edition = "2024"
license = "MIT" license = "MIT"
repository = "https://git.sasedev.com/Sasedev/games" repository = "https://git.sasedev.com/Sasedev/games"

View File

@@ -1,5 +1,5 @@
# file: crates/apps/game-reflex-poc-tauri/Cargo.toml # file: crates/apps/game-reflex-poc-tauri/Cargo.toml
# version: 4 # version: 5
[package] [package]
name = "game-reflex-poc-tauri" name = "game-reflex-poc-tauri"
@@ -24,6 +24,7 @@ tauri-build.workspace = true
[dependencies] [dependencies]
game-logging-lib = { path = "../../common/game-logging-lib" } game-logging-lib = { path = "../../common/game-logging-lib" }
serde.workspace = true
engine-v1-platform-api = { path = "../../engines/engine-v1-platform-api" } engine-v1-platform-api = { path = "../../engines/engine-v1-platform-api" }
tauri.workspace = true tauri.workspace = true
tauri-plugin-tracing.workspace = true tauri-plugin-tracing.workspace = true

View File

@@ -1,7 +1,7 @@
{ {
"name": "game-reflex-poc-tauri", "name": "game-reflex-poc-tauri",
"private": true, "private": true,
"version": "0.1.0-1-alpha.2.fix.3", "version": "0.1.0-1-alpha.2.fix.4",
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",

View File

@@ -1,7 +1,7 @@
{ {
"$schema": "https://schema.tauri.app/config/2", "$schema": "https://schema.tauri.app/config/2",
"productName": "Reflex POC Tauri", "productName": "Reflex POC Tauri",
"version": "0.1.0-1-alpha.2.fix.3", "version": "0.1.0-1-alpha.2.fix.4",
"identifier": "com.sasedev.games.reflex.tauri", "identifier": "com.sasedev.games.reflex.tauri",
"build": { "build": {
"beforeDevCommand": { "beforeDevCommand": {

View File

@@ -0,0 +1,65 @@
<!-- file: deltas/0.1.0/1-alpha.2.fix.4.md -->
<!-- version: 1 -->
# Delta 0.1.0-1-alpha.2.fix.4
## Base
Base déclarée : `0.1.0-1-alpha.2.fix.3`, non validée.
## Échec observé
`cargo check --workspace` et Clippy échouent dans `game-reflex-poc-tauri` :
```text
failed to resolve: use of unresolved module or unlinked crate `serde`
```
La structure `FrontendLogPayload` dérive `serde::Deserialize`, mais `serde` n'était pas une dépendance directe de la crate Tauri.
## Correctif
Le workspace déclare désormais :
```text
serde = { version = "1", features = ["derive"] }
```
et `game-reflex-poc-tauri` consomme :
```text
serde.workspace = true
```
Aucune autre logique du bridge logging/Escape n'est modifiée.
## Validation
```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 game-logging-lib --all-targets --all-features
cargo test -p game-reflex-poc --all-targets --all-features
cargo test -p game-reflex-poc-wasm --all-targets --all-features
```
Puis :
```bash
python3 scripts/build_reflex_tauri_wasm.py
cd crates/apps/game-reflex-poc-tauri
cargo tauri dev
```
Critères fonctionnels inchangés :
- logs Rust et frontend visibles dans le terminal ;
- `Escape` traverse la politique `EngineGame::quit_requested` ;
- décision `Exit` ferme la fenêtre Tauri proprement.