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

+1 -1
View File
@@ -65,7 +65,7 @@ fuzz/ cargo-fuzz targets
| Crate | Responsibility | State |
|---|---|---|
| `voelin-model` | UI-facing domain model (servers and their details, channels, clients, server and channel groups, chat and its file links, capabilities), no IO | done |
| `voelin-model` (VoelinProtocol, a git dependency) | UI-facing domain model (servers and their details, channels, clients, server and channel groups, chat and its file links, capabilities), no IO; with the replica of the protocol's entities and the permission functions | done |
| `voelin-query` | ServerQuery codec and transports: raw TCP, SSH (russh), HTTP WebQuery | done |
| `voelin-observer` | Presence tracker + chat relay pool over `voelin-query` | done |
| `voelin-gateway-proto`, `voelin-gateway` (`tsgw`) | Companion service for server admins: identity-challenge auth, permission-mirroring authorization, presence stream, chat relay, SQLite history, WebSocket + JSON (`tsgw.v1+json`) | done |
+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.
+1 -1
View File
@@ -702,7 +702,7 @@ scaled down (an animation to its first frame). SVG uses Slint's vector
loader and the existing vector-cache cost.
Avatars and server, channel, client and group icons use the same image cache.
The focused checks are the `voelin-core`, `voelin-model`, `voelin-observer`,
The focused checks are the `voelin-core`, `voelin-observer`,
`voelin-store` and `voelin-ui` library tests. They cover offline icon restoration,
bookmark compatibility, cache misses and old-address event rejection. The live
`ts6_banners` test checks disabled