diff --git a/Cargo.lock b/Cargo.lock index e98d8f0..f6a96c8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -5228,14 +5228,14 @@ dependencies = [ [[package]] name = "sync-storage-api" -version = "0.1.0" +version = "25.9.0" dependencies = [ "anyhow", ] [[package]] name = "sync-storage-backends" -version = "0.1.0" +version = "25.9.0" dependencies = [ "anyhow", "bytes", @@ -5250,7 +5250,7 @@ dependencies = [ [[package]] name = "sync-storage-config" -version = "0.1.0" +version = "25.9.0" dependencies = [ "aes-gcm", "anyhow", @@ -5266,7 +5266,7 @@ dependencies = [ [[package]] name = "sync-storage-server" -version = "0.0.0" +version = "25.9.0" dependencies = [ "anki", "anyhow", diff --git a/README.md b/README.md index c5a12a2..9dcb4dd 100644 --- a/README.md +++ b/README.md @@ -347,7 +347,18 @@ To run only the sync-storage-config tests: cargo test -p sync-storage-config ``` -## Versioning +## Versioning + +### Crate versions + +Custom crates (`sync-storage-api`, `sync-storage-backends`, `sync-storage-config`, +`sync-storage-server`) are versioned as `..` in semver form — +e.g. Anki `25.09` → `25.9.0`, Anki `25.09.2` → `25.9.2`. Leading zeros are dropped (Cargo strips +them anyway). The `-rX` revision counter is **not** baked into the crate version to avoid collisions +with upstream patch releases. When upgrading rslib, bump all four crate versions to match the new +upstream version. + +### Git tags Tags follow `v-r` (e.g. `v25.09-r1`). @@ -382,6 +393,7 @@ that needs updating. Quick checklist: +- [ ] `sync-storage-*/Cargo.toml` — bump `version` to match new Anki version (e.g. `25.9.2`) - [ ] `rslib/Cargo.toml` — `sync-storage-api` in `[dependencies]`, `anyhow` in `[dev-dependencies]` - [ ] `rslib/sync/Cargo.toml` — `sync-storage-server` in both platform dependency blocks - [ ] `rslib/sync/main.rs` — calls `sync_storage_server::run()` not `SimpleServer::run()` diff --git a/sync-storage-api/Cargo.toml b/sync-storage-api/Cargo.toml index fdcf088..269ea1e 100644 --- a/sync-storage-api/Cargo.toml +++ b/sync-storage-api/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sync-storage-api" -version = "0.1.0" +version = "25.9.0" edition = "2021" license = "AGPL-3.0-or-later" diff --git a/sync-storage-backends/Cargo.toml b/sync-storage-backends/Cargo.toml index 847a23d..3779b32 100644 --- a/sync-storage-backends/Cargo.toml +++ b/sync-storage-backends/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sync-storage-backends" -version = "0.1.0" +version = "25.9.0" edition = "2021" license = "AGPL-3.0-or-later" diff --git a/sync-storage-config/Cargo.toml b/sync-storage-config/Cargo.toml index 51571db..b86e6a7 100644 --- a/sync-storage-config/Cargo.toml +++ b/sync-storage-config/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sync-storage-config" -version = "0.1.0" +version = "25.9.0" edition = "2021" license = "AGPL-3.0-or-later" diff --git a/sync-storage-server/Cargo.toml b/sync-storage-server/Cargo.toml index 04183a4..6b8fb46 100644 --- a/sync-storage-server/Cargo.toml +++ b/sync-storage-server/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "sync-storage-server" -version.workspace = true +version = "25.9.0" authors.workspace = true edition.workspace = true license.workspace = true