v0.3.3-pre.008-fix.001
This commit is contained in:
@@ -6,7 +6,7 @@ resolver = "3"
|
||||
members = ["crates/ksp-app-config-desk", "crates/ksp-app-solprices-desk", "crates/ksp-app-wallet-desk", "crates/ksp-config-lib", "crates/ksp-core-lib", "crates/ksp-interface-lib", "crates/ksp-logging-lib", "crates/ksp-offchain-transport-lib", "crates/ksp-onchain-transport-lib", "crates/ksp-program-api", "crates/ksp-store-api", "crates/ksp-store-lib", "crates/ksp-store-postgres-lib", "crates/ksp-wallet-lib"]
|
||||
|
||||
[workspace.package]
|
||||
version = "0.3.3-pre.8"
|
||||
version = "0.3.3-pre.8.fix.1"
|
||||
edition = "2024"
|
||||
license = "MIT"
|
||||
repository = "https://git.sasedev.com/Sasedev/khadhroony-solana-project"
|
||||
|
||||
@@ -83,6 +83,7 @@ where
|
||||
+ ksp_store_lib::RawTransactionRetentionRead
|
||||
+ ksp_store_lib::RawTransactionRetentionWrite,
|
||||
{
|
||||
let _marker = std::marker::PhantomData::<T>;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -112,6 +112,7 @@ where
|
||||
+ ksp_store_api::RawTransactionRetentionRead
|
||||
+ ksp_store_api::RawTransactionRetentionWrite,
|
||||
{
|
||||
let _marker = std::marker::PhantomData::<T>;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
106
deltas/0.3.3/pre.008-fix.001.md
Normal file
106
deltas/0.3.3/pre.008-fix.001.md
Normal file
@@ -0,0 +1,106 @@
|
||||
<!-- file: deltas/0.3.3/pre.008-fix.001.md -->
|
||||
<!-- version: 1 -->
|
||||
|
||||
# Delta `0.3.3-pre.008-fix.001` — canaris de capabilities warning-clean
|
||||
|
||||
## 1. Base
|
||||
|
||||
Base opérateur obligatoire :
|
||||
|
||||
```text
|
||||
0.3.3-pre.8
|
||||
```
|
||||
|
||||
Le gate opérateur du 2026-08-30 passe les audits, `cargo check`, les tests Store API/Store/PostgreSQL/Config et `--no-default-features`. Clippy ne bloque pas le build, mais signale deux warnings :
|
||||
|
||||
```text
|
||||
clippy::extra_unused_type_parameters
|
||||
```
|
||||
|
||||
Ils concernent uniquement les helpers génériques de preuve de traits dans :
|
||||
|
||||
```text
|
||||
crates/ksp-store-lib/tests/public_api.rs
|
||||
crates/ksp-store-postgres-lib/tests/public_api.rs
|
||||
```
|
||||
|
||||
Le paramètre `T` est utilisé uniquement dans les bounds et pas dans le corps des fonctions, ce que Clippy classe comme paramètre générique inutilisé.
|
||||
|
||||
## 2. Version
|
||||
|
||||
```text
|
||||
workspace.package.version = 0.3.3-pre.8.fix.1
|
||||
```
|
||||
|
||||
## 3. Correction
|
||||
|
||||
Les deux helpers conservent exactement les six bounds `RawTransaction*` et matérialisent désormais le paramètre de type dans leur corps avec :
|
||||
|
||||
```rust
|
||||
let _marker = std::marker::PhantomData::<T>;
|
||||
```
|
||||
|
||||
Cette forme :
|
||||
|
||||
- conserve une preuve purement compile-time ;
|
||||
- ne construit aucune valeur backend ;
|
||||
- ne fait aucun I/O ;
|
||||
- n'affaiblit aucun bound ;
|
||||
- n'ajoute aucun `#[allow]` ;
|
||||
- ne modifie aucune surface publique.
|
||||
|
||||
## 4. Invariants
|
||||
|
||||
Ce fix ne modifie pas :
|
||||
|
||||
```text
|
||||
code de production ksp-store-lib
|
||||
code de production ksp-store-postgres-lib
|
||||
six implémentations RawTransaction* backend
|
||||
six dispatches RawTransaction* façade
|
||||
mapping d'erreurs
|
||||
pagination/cursor
|
||||
rétention/ForceRehydrate
|
||||
Config
|
||||
migrations V000/V001
|
||||
```
|
||||
|
||||
Checksums attendus inchangés :
|
||||
|
||||
```text
|
||||
V000 d29068b8c13b9dc0cc9ef6aaadd0fa12d41e0fe4c56541a1118c4bfc846a1450
|
||||
V001 31488cda2f08f3f46c4cdbdbb6c18c243662fada02eac4487040c8735d72cc51
|
||||
```
|
||||
|
||||
## 5. Fichiers modifiés
|
||||
|
||||
```text
|
||||
Cargo.toml
|
||||
crates/ksp-store-lib/tests/public_api.rs
|
||||
crates/ksp-store-postgres-lib/tests/public_api.rs
|
||||
docs/validation/020-V0_3_3_STORE_POSTGRES_RAW_TRANSACTION.md
|
||||
deltas/0.3.3/pre.008-fix.001.md
|
||||
```
|
||||
|
||||
Aucune suppression de fichier.
|
||||
|
||||
## 6. Gate opérateur
|
||||
|
||||
```bash
|
||||
cargo fmt --all
|
||||
python3 scripts/audit_rust_workspace_rules.py
|
||||
python3 scripts/audit_markdown_tables.py README.md RULES.md ROADMAP.md CHANGELOG.md docs prompts crates deltas/0.3.3
|
||||
cargo check --workspace
|
||||
cargo clippy --workspace --all-targets
|
||||
cargo test -p ksp-store-api
|
||||
cargo test -p ksp-store-lib
|
||||
cargo test -p ksp-store-postgres-lib
|
||||
cargo test -p ksp-config-lib
|
||||
cargo check -p ksp-store-lib --no-default-features
|
||||
```
|
||||
|
||||
## 7. Suite si gate warning-clean
|
||||
|
||||
```text
|
||||
0.3.3-pre.009 — preuve PostgreSQL live complète RawTransaction
|
||||
```
|
||||
@@ -612,15 +612,17 @@ cap 500/1000 dans Store pagination
|
||||
|
||||
### `pre.008`
|
||||
|
||||
- six implémentations `RawTransaction*` sur `PostgresBackend` : PASS statique/compile-gate à exécuter ;
|
||||
- six dispatches correspondants sur `Store` : PASS statique/compile-gate à exécuter ;
|
||||
- six implémentations `RawTransaction*` sur `PostgresBackend` : PASS compile/test ;
|
||||
- six dispatches correspondants sur `Store` : PASS compile/test ;
|
||||
- validation réseau façade pré-dispatch : PASS unit/static ;
|
||||
- `RawTransactionObservationRead` reste scoped par l'instance mono-réseau car l'input ne porte aucun réseau ;
|
||||
- mapping `Conflict -> store_api.raw_conflict`, `QueryInvalid -> store_api.raw_query_invalid` : PASS statique ;
|
||||
- mapping `Conflict -> store_api.raw_conflict`, `QueryInvalid -> store_api.raw_query_invalid` : PASS statique/unit ;
|
||||
- codes `wrong_network`, `raw_reference_not_found`, read/write/data/page-limit PostgreSQL stabilisés : PASS public canary ;
|
||||
- aucune fuite PostgreSQL/SQL/env/reverse edge et aucun `RawAccount*` : PASS boundary canaries ;
|
||||
- `--no-default-features` reste requis au gate opérateur ;
|
||||
- V000/V001 inchangées.
|
||||
- `--no-default-features` : PASS ;
|
||||
- V000/V001 inchangées ;
|
||||
- premier gate opérateur : fonctionnellement PASS mais deux warnings Clippy `extra_unused_type_parameters` dans les helpers de preuve de traits ;
|
||||
- `pre.008-fix.001` matérialise `T` via `PhantomData<T>` dans ces deux helpers sans modifier les bounds, la production ni les migrations ; gate opérateur complet à rejouer.
|
||||
|
||||
### `pre.009`
|
||||
|
||||
@@ -646,7 +648,7 @@ cap 500/1000 dans Store pagination
|
||||
|
||||
- publication stable.
|
||||
|
||||
## 22. Gate courant `pre.008`
|
||||
## 22. Gate courant `pre.008-fix.001`
|
||||
|
||||
```bash
|
||||
cargo fmt --all
|
||||
|
||||
Reference in New Issue
Block a user