Fix Secret Key decode rejecting valid keys; verify build

The first base32 symbol carries 3 data bits (26 symbols = 130 bits, 2 spare),
but decode only accepted values 0-3, so ~half of generated keys failed to parse.
Adds an edge-case test, rustfmt config, Cargo.lock, and on-demand cross targets
instead of installing all seven in rust-toolchain.toml.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-10-15 21:14:15 +09:00
co-authored by Claude Opus 5.5
parent 462fbbc523
commit 4a152bde11
14 changed files with 1947 additions and 59 deletions
+3 -1
View File
@@ -27,7 +27,9 @@ pub enum StoreError {
pub enum SyncState {
Clean,
/// Edited locally; `base_revision` is what the edit was made against.
Pending { base_revision: u64 },
Pending {
base_revision: u64,
},
}
/// Storage backend. The SQLite implementation and an in-memory one for tests come in M1.