Pre-0.1 cleanup: fmt, docs, licenses, AUR-ready packaging
ci / quality (push) Failing after 6s

- cargo fmt across the workspace (the CI gate the last push tripped).
- varde-daemon: drop the now-unused bytes dependency.
- varde-ctl(1): document push; gc reflects the continuous-sweep
  reality; subscribe mentions push events.
- config.toml example: gc_interval_secs, and an honest note that
  max_download_bytes_per_sec is currently unenforced.
- LICENSE-MIT + LICENSE-APACHE at the root (the declared license now
  ships as files), bundled into release tarballs and installed by the
  PKGBUILD.
- PKGBUILD: real maintainer, AUR pre-flight note (updpkgsums), license
  installation.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-16 15:04:22 +02:00
parent c52c3b1238
commit 5d29bdc4bd
12 changed files with 272 additions and 25 deletions
+7 -3
View File
@@ -1,7 +1,8 @@
# Maintainer: you
# Maintainer: Bendik Lynghaug <bendik.lynghaug@gmail.com>
#
# UNTESTED SKELETON — best-effort Arch packaging for varde. Review before
# building; in particular pkgver/source must point at a real release.
# Before pushing to AUR: bump pkgver to the released tag and replace
# sha256sums with the real digest of the release tarball
# (`updpkgsums` does both checks in one step).
pkgname=varde
pkgver=0.1.0
@@ -46,4 +47,7 @@ package() {
install -Dm644 varde.8 "$pkgdir/usr/share/man/man8/varde.8"
install -Dm644 varde-ctl.1 "$pkgdir/usr/share/man/man1/varde-ctl.1"
install -Dm644 LICENSE-MIT "$pkgdir/usr/share/licenses/$pkgname/LICENSE-MIT"
install -Dm644 LICENSE-APACHE "$pkgdir/usr/share/licenses/$pkgname/LICENSE-APACHE"
}
+7 -1
View File
@@ -16,9 +16,15 @@
# Upload cap in bytes/sec. 0 disables serving entirely.
#max_upload_bytes_per_sec = 10485760 # 10 MiB/s
# Download cap in bytes/sec. 0 means unlimited.
# Download cap in bytes/sec. 0 means unlimited. Currently not
# enforced: the cap rode a seam the iroh-blobs 0.103 downloader does
# not expose yet.
#max_download_bytes_per_sec = 0
# Interval of the store's built-in garbage collector, in seconds.
# Unpinned blobs are swept by this loop; there is no on-demand gc.
#gc_interval_secs = 300
# LAN peer discovery (mDNS). Discovery is the open tier: being visible
# costs nothing; serving is still gated on trust and per-pin policy.
#discovery = true
+11 -2
View File
@@ -67,12 +67,21 @@ subcommand maps 1:1 onto a request.
*peer list*
Trusted peers and whether they are currently present on the LAN.
*push* _HASH_ _NODE-ID_
Hand fully-present content to a trusted peer, unprompted. Consent
is mutual: the sender pushes only to trusted peers, and the
receiver accepts only from peers it trusts, pinning what it
accepted. The reply confirms verified delivery.
*gc*
Drop all blobs not reachable from a pin. Never runs implicitly.
Reports unimplemented since the move to iroh-blobs 0.103: garbage
collection runs continuously inside the store (see
*gc_interval_secs* in the config), protecting pins, tags and
in-flight imports on every sweep.
*subscribe*
Stream daemon events (transfer progress, peer presence, pin
completion) as JSON lines until interrupted.
completion, received pushes) as JSON lines until interrupted.
# EXIT STATUS