Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 `<anki-major>.<anki-minor>.<anki-patch>` 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<anki-version>-r<revision>` (e.g. `v25.09-r1`).

Expand Down Expand Up @@ -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()`
Expand Down
2 changes: 1 addition & 1 deletion sync-storage-api/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"

Expand Down
2 changes: 1 addition & 1 deletion sync-storage-backends/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"

Expand Down
2 changes: 1 addition & 1 deletion sync-storage-config/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"

Expand Down
2 changes: 1 addition & 1 deletion sync-storage-server/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Loading