Files
wanderbooks/Cargo.toml
T
swaitsandClaude Fable 5.2 31f706bd7e feat(relay): the relay service for wanderbooks.link (P15 unit B2)
A new crate, crates/relay (lib `relay`, binary wanderbooks-relay), with no
ledger-* dependency. Routes an assistant's TLS connection by the server name
in its ClientHello down the line an app holds open, forwarding encrypted
bytes only; the line is yamux over TLS 1.3 on 443, the app proving its key
with an Ed25519 signature bound to the session's TLS exporter and a fresh
nonce. One durable table (SQLite: name, key, created, blocked), four-word
names from a curated list of 1454 words (42.0 bits), a PROXY v2 header with
the caller's address, an authoritative DNS server that publishes an app's
ACME DNS-01 value for its own name only, and a list of certificate
authorities served as data. Every table, queue, buffer and time is bounded.

New dependencies, each permissive and passing cargo deny: yamux 0.14
(Apache-2.0 OR MIT; the multiplexer), hickory-proto 0.26 (MIT OR Apache-2.0;
DNS wire format, std only), rusqlite (already in the tree), rustls and
tokio-rustls (already in the tree, ring provider), ring (Ed25519, already in
the tree); dev only: rcgen 0.14 (MIT OR Apache-2.0), proptest, tempfile.
Added to the kernel-only lint list (no Decimal in the crate).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-21 09:33:03 -07:00

48 lines
1.8 KiB
TOML

[workspace]
resolver = "2"
members = ["crates/ledger-core", "crates/ledger-store", "crates/ledger-config", "crates/ledger-mcp", "crates/ledger-import", "crates/ledger-reader", "crates/ledger-cli", "crates/ledger-gui", "crates/ledger-vault", "crates/ledger-host", "crates/ledger-package", "crates/relay"]
[workspace.package]
edition = "2024"
license = "MIT OR Apache-2.0"
repository = "https://git.swaits.com/swaits/wanderbooks"
# The crates are parts of one program, built from this tree and shipped as
# its packages. None is a library for crates.io, and saying so lets
# `cargo deny` accept their path dependencies on each other.
publish = false
[workspace.lints.rust]
missing_docs = "warn"
# `cargo kani` sets cfg(kani) for the proof harnesses.
unexpected_cfgs = { level = "warn", check-cfg = ["cfg(kani)"] }
# Argon2id at the plan's 64 MiB, three passes, takes seconds unoptimized:
# its crates are built optimized in debug and test builds too.
[profile.dev.package.argon2]
opt-level = 3
[profile.dev.package.blake2]
opt-level = 3
# `wanderbooks update` hashes and verifies a whole program (P11a); its
# tests do it over a debug build's hundreds of megabytes.
[profile.dev.package.sha2]
opt-level = 3
[profile.dev.package.minisign]
opt-level = 3
[profile.dev.package.minisign-verify]
opt-level = 3
# The program that ships in the packages (P11a): symbols stripped, so the
# AppImage, .deb and .rpm are not carrying debug tables.
[profile.release]
strip = "symbols"
# The shipped program refuses the way the tested one does. Without this an
# integer that overflows wraps silently in a release build and panics in
# a test build, so the tests would be checking a program nobody runs.
# Money is Decimal and goes through the kernel's checked arithmetic; this
# covers the integers around it (counts, sequence numbers, minor units).
overflow-checks = true