forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on mainFiltered to crates/common/src/lib.rsClear filter

Yesterday

2026-11-29

✨ feat: auto update. Server relays an Ed25519-signed manifest and binaries over a stable yumush-update/1 ALPN; client verifies against compiled-in keys, checks size+sha256, self-tests the new exe, swaps on disk, applies on restart, rolls back if the new version never reaches its window. Release builds only (YUMUSH_RELEASE_SEQ), x86-64-v3 baseline, macOS off for now. Settings › Updates: Off / AutomaticAhmet Kaan Gümüş · 769f1ab
✨ feat: auto update. Server relays an Ed25519-signed manifest and binaries over a stable yumush-update/1 ALPN; client verifies against compiled-in keys, checks size+sha256, self-tests the new exe, swaps on disk, applies on restart, rolls back if the new version never reaches its window. Release builds only (YUMUSH_RELEASE_SEQ), x86-64-v3 baseline, macOS off for now. Settings › Updates: Off / Automatic

2026-11-27

✨ feat: builder sees live stats per user (follow → client pushes) and server stats on Overview; usage sampler is its own crate; Save/Confirm only when changed; clearer toggle; aligned builder actionsAhmet Kaan Gümüş · 3ba4696
✨ feat: builder sees live stats per user (follow → client pushes) and server stats on Overview; usage sampler is its own crate; Save/Confirm only when changed; clearer toggle; aligned builder actions

2026-11-25

♻️ refactor: every call is a typed struct and the legacy request path is goneAhmet Kaan Gümüş · c0a7e2d
♻️ refactor: every call is a typed struct and the legacy request path is gone

Communities, messages, social, voice and builder calls move to typed Call
structs with their reply type and gate fixed by the type, dispatched by
one exhaustive match into per domain handlers. The old Request and
Response enums, expect!, done, the wrapper layer and the 1600 line server
match are deleted.
♻️ refactor: one client media owner, datagram v2 and typed callsAhmet Kaan Gümüş · c69c3ca
♻️ refactor: one client media owner, datagram v2 and typed calls

Voice, shares and the mic test live in one client Media owner guarded by
the link epoch, so a stale join never installs after a reconnect and a
blip keeps the capture source. Datagrams become a Packet enum with fixed
little endian headers, derived fragment layout and bounds checked decode;
the server peeks three bytes to route video. Calls start moving to typed
Call structs whose reply type and gate come from the type, beginning
with the user domain. Share throughput unchanged at 59.4 fps.
♻️ refactor: fixed auth per connection, one hub, one fan-out and one room ownerAhmet Kaan Gümüş · 700e2a4
♻️ refactor: fixed auth per connection, one hub, one fan-out and one room owner

A connection now authenticates once with Hello/Welcome; login, logout and
account switches reconnect instead of mutating auth mid connection. The
server actor and its state copies are replaced by a Hub of clients with
presence transitions and kicks, events fan out through one publish path
that encodes once and never blocks, and voice plus shares live in one
Rooms owner with a single leave path. Media control moves to Down::Media.
♻️ refactor: one transport, one framing and a split error modelAhmet Kaan Gümüş · e2d1bd5
♻️ refactor: one transport, one framing and a split error model

Split the client network module into net/{link,events,datagram,voice,share}.
Both sides share one QUIC transport config, an ALPN protocol version and
typed close codes; the client resolves hosts per family with backoff.
Every stream uses one length prefixed bitcode frame with a reset on drop
send guard, and uploads, downloads and backups go through Open{Call,
Upload, Fetch}. Wire errors are separate from server internal and client
link errors, and the GUI matches enums instead of strings.
✨ feat: add screen sharing with simulcast, hardware codecs and share audioAhmet Kaan Gümüş · e06b4ef
✨ feat: add screen sharing with simulcast, hardware codecs and share audio

Screen sharing over QUIC datagrams. Frames are fragmented with a layer
tag (resolution, fps, codec) and the server forwards one layer per viewer,
switching only on keyframes and telling the sharer which layers to encode.

The client captures through the ScreenCast portal and PipeWire, encodes
each layer on its own thread with VA-API (H264, HEVC, AV1) and falls back
to software H264. Viewers decode in hardware where possible, sync audio
and video on the sharer clock and adapt quality from loss. Share audio
captures everything except communication streams or one picked source.

Adds codec choice, share settings, a viewer pane, live badges and share
metrics, and moves playback to interleaved stereo.

2026-11-24

✨ feat: add voice, media, social features, moderation and multiple accountsAhmet Kaan Gümüş · 543f611
✨ feat: add voice, media, social features, moderation and multiple accounts

Voice: QUIC datagram voice with Opus, a jitter buffer and per-speaker mixing. Voice activity or push-to-talk (modifier keys included), input and output device selection, volume and sensitivity. Settings can loop the mic through the full call pipeline and play a speaker chime.

Media: attachments with image, audio and video playback, snippets and message forwarding. FLAC files that do not state their length get it from the last frame instead of a full scan.

Social: direct messages, friends, community invitations with a user lookup that shows existing members, and live user search. Messages from former members keep the original username.

Moderation: member ranks with a single permission module, kick, ban with reason and unban. Bans and a new community log (renames, picture changes, invites, joins, leaves, kicks, bans, rank changes, moderator deletions) open in popups with search and sorting.

Accounts: several saved accounts with session resume and auto login. A Detach request signs a connection out while keeping its session, and signing in leaves voice first.

UI: settings pages for user and community, profile cards, community and user pictures that drive the accent colour of headers, dialogs and inputs, and New community in the Communities tab context menu. The README gets screenshots.

New request, response and error variants are appended to keep wire indices stable.

2026-11-23

🔒 feat: verify CA certificates and hot reload themAhmet Kaan Gümüş · c09f337
🔒 feat: verify CA certificates and hot reload them

The client checks the server certificate against the OS trust store and server_name instead of a pinned fingerprint. Debug builds accept any certificate for local self-signed setups; release builds never contain that verifier. The server loads PEM files through a cert resolver and polls their mtime every 10 minutes, swapping in a renewed certificate without a restart and keeping the old one if the new pair fails to load. Missing files fall back to a generated self-signed localhost certificate.
✨ feat: add real auth, authorization, server push and pinned TLSAhmet Kaan Gümüş · 5f39b76
✨ feat: add real auth, authorization, server push and pinned TLS

Accounts use argon2 password hashes with server-side session tokens. Each connection is Anonymous or Authenticated, and the server takes the acting user from it instead of trusting ids in requests. Owner, member and author checks guard every mutation. The server pushes an Event enum over the uni stream, so the client no longer polls. The client pins the server certificate by SHA-256 fingerprint. The schema is versioned through user_version, with cascading foreign keys and transactions for multi-step writes. Message history pages backwards with a before marker. Errors use thiserror and logging uses tracing.
♻️ refactor: simplify every crate and move the server to tursoAhmet Kaan Gümüş · c2e3b2d
♻️ refactor: simplify every crate and move the server to turso

Collapse request/response wrappers into enum variants, give models pub fields, merge errors and validation into single sources, and replace SurrealDB with turso. Forbid unsafe and use line-tables-only debug info workspace-wide.

2026-06-05

♻️ refactor(common): replace bastion with community modelAhmet Kaan Gümüş · aeaaada
♻️ refactor(common): replace bastion with community model

Flatten user/message into plain bitcode-encodable structs and add
quinn stream helpers so all shared types can cross the wire.

2026-04-19

✨ feat(common): add bastion rooms and split user/message into modulesAhmet Kaan Gümüş · 9c1eb2f
✨ feat(common): add bastion rooms and split user/message into modules

Introduce Bastion (room/channel) with join/leave events, extract User
and Message into their own modules with Arc-backed inners, and carve
out a network module as a placeholder. Message now carries the owning
bastion so downstream consumers can route by room.

2026-04-08