Take voelin-model from VoelinProtocol and add voelin-proto

voelin-identity, voelin-proto and voelin-model now come from one revision of
the protocol repository (main c8e0e5a: the session seam voelin_proto::link
with its account types, and the replica in voelin-model). The client's own
crates/voelin-model is removed: the protocol's crate is a superset, identical
in presence, server, chat and percent, and differs in badges.rs, link.rs and
tree.rs only by a doc comment and two equivalent expressions, and adds the
perms and replica modules. Every crate that used it takes
voelin-model.workspace = true. voelin-core depends on voelin-proto (and, in
its dev-dependencies, on the test-util fakes), which the engine will consume
in the next commits.

Manifests, the lock file and docs only: no source change. THIRD_PARTY_NOTICES.md
is unchanged (scripts/notices.sh --check: up to date).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
faumarayandClaude Sonnet 5.5 committed 2026-10-20 21:26:06 +03:00
1 parent 38473b761d
commit fb8e6b63dd
23 files changed
+42 -1996

No files matched your search

+12 -7
View File
@@ -128,16 +128,21 @@ the proxy is on localhost. If the proxy inspects TLS, set
## Depending on VoelinProtocol
`voelin-store` uses `voelin-identity` (the identity blobs, the account-bound
`KeyStore` and the sign-out rules) from the **private** VoelinProtocol
repository, as a Cargo git dependency in the workspace `Cargo.toml`:
`KeyStore` and the sign-out rules), `voelin-core` uses `voelin-proto` (the
session seam `voelin_proto::link` and the v1 messages), and almost every
crate uses `voelin-model` (the domain model and the replica of the protocol's
entities), all from the **private** VoelinProtocol repository, as Cargo git
dependencies in the workspace `Cargo.toml`:
```toml
[workspace.dependencies]
voelin-identity = { git = "ssh://gitea@git.faumaray.com/Voelin/VoelinProtocol.git", rev = "…" }
voelin-proto = { git = "ssh://gitea@git.faumaray.com/Voelin/VoelinProtocol.git", rev = "…" }
voelin-model = { git = "ssh://gitea@git.faumaray.com/Voelin/VoelinProtocol.git", rev = "…" }
```
It is pinned by commit until the protocol tags a release that has it; moving
to a newer protocol means changing the `rev` (later a `tag`) and committing
They are pinned by one commit until the protocol tags a release; moving
to a newer protocol means changing the `rev` of all three (later a `tag`) and committing
the resulting `Cargo.lock` together with `THIRD_PARTY_NOTICES.md`, which
`scripts/notices.sh` regenerates (the CI notices job fails on a stale one).
Cargo fetches it over SSH, so the machine needs an SSH key that can read
@@ -167,8 +172,8 @@ per-developer `.cargo/config.toml` in the root of this repository:
# VoelinClient/.cargo/config.toml (per developer, never committed)
[patch."ssh://gitea@git.faumaray.com/Voelin/VoelinProtocol.git"]
voelin-identity = { path = "../VoelinProtocol/crates/voelin-identity" }
# voelin-proto is a dependency of voelin-identity from the same repository:
voelin-proto = { path = "../VoelinProtocol/crates/voelin-proto" }
voelin-model = { path = "../VoelinProtocol/crates/voelin-model" }
```
- Relative paths in a Cargo config file resolve from the directory that
@@ -179,5 +184,5 @@ voelin-proto = { path = "../VoelinProtocol/crates/voelin-proto" }
- `/.cargo/` is in `.gitignore`: the file is yours and is never committed.
- With the patch active Cargo rewrites `Cargo.lock` (the patched crates lose
their git `source`). Do not commit that: run `git checkout Cargo.lock` before
committing, or remove the file and run `cargo update -p voelin-identity`
after changing the `rev`. CI builds with `--locked` and has no patch.
committing, or remove the file and run `cargo update -p voelin-identity -p voelin-proto -p voelin-model`
after changing the `rev` (for all three crates). CI builds with `--locked` and has no patch.