`wg-link` was not merely vague. `wg` and `ip link` are both real network tools, so it reads as something that manages a WireGuard interface -- misleading rather than ambiguous. `app` rules that reading out, and says which two ends the link is between. The repository is still called wg-server-app until it is renamed on gitea; the crate leads.
23 lines
710 B
TOML
23 lines
710 B
TOML
[package]
|
|
name = "wg-app-link"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
description = "The private link between a phone and a machine you run: WireGuard binding, a self-signed CA the app pins, and QR enrollment of a bearer token."
|
|
|
|
[dependencies]
|
|
anyhow = "1"
|
|
# Enumerating this machine's addresses, and finding the tunnel's.
|
|
if-addrs = "0.15"
|
|
# Token auth: hash for storage, constant-time compare for verification,
|
|
# CSPRNG-backed generation, base64url for the enrollment string.
|
|
sha2 = "0.11"
|
|
subtle = "2"
|
|
rand = "0.10"
|
|
base64 = "0.23"
|
|
# Renders the enrollment QR straight to the terminal; no image output.
|
|
qrcode = { version = "0.14", default-features = false }
|
|
tracing = "0.1"
|
|
|
|
[dev-dependencies]
|
|
tempfile = "3"
|