anvilsign in

collin/anvil

1[workspace]
2resolver = "2"
3members = [
4 "crates/*",
5 "vendor/gitserver-core",
6]
7
8[workspace.package]
9version = "0.0.0"
10edition = "2024"
11license = "MIT OR Apache-2.0"
12repository = "https://github.com/richardscollin/anvil"
13rust-version = "1.98.0"
14
15[workspace.dependencies]
16# Internal crates
17anvil-core = { path = "crates/anvil-core" }
18anvil-ci = { path = "crates/anvil-ci" }
19anvil-docker = { path = "crates/anvil-docker" }
20anvil-job = { path = "crates/anvil-job" }
21anvil-agent = { path = "crates/anvil-agent" }
22anvil-git = { path = "crates/anvil-git" }
23anvil-web = { path = "crates/anvil-web" }
24anvil-ssh = { path = "crates/anvil-ssh" }
25
26# Repo secrets (docs/secrets.md): sealed to users' ssh-ed25519 keys with
27# X25519 + HKDF-SHA256 + AES-256-GCM. AES-GCM rather than ChaCha20-Poly1305
28# because the *browser* is the encryptor and WebCrypto has no ChaCha.
29# Both are pinned to the exact pre-releases already in the lockfile: cargo
30# unifies each onto a single version tree-wide, and asking for the final
31# release instead walks russh (and half of RustCrypto) *backwards* to a set
32# that does not compile. X25519 comes from `MontgomeryPoint::mul_clamped`
33# rather than the x25519-dalek wrapper, which would want its own
34# curve25519-dalek.
35
36anyhow = { version = "1" }
37argon2 = { version = "0.5", features = ["std"] }
38aes-gcm = { version = "=0.11.0-rc.4" }
39curve25519-dalek = { version = "=5.0.0-rc.0" }
40async-trait = { version = "0.1" }
41axum = { version = "0.8", features = ["ws"] }
42axum-extra = { version = "0.10", features = ["cookie"] }
43base64 = { version = "0.22" }
44bollard = { version = "0.18" }
45clap = { version = "4", features = ["derive"] }
46futures-util = { version = "0.3" }
47hmac = { version = "0.12" }
48lru = { version = "0.12" }
49gitserver-core = { path = "vendor/gitserver-core" }
50gix = { version = "0.84", default-features = false, features = ["sha1", "max-performance-safe", "blob-diff", "revision"] }
51gix-pack = { version = "0.71", features = ["sha1"] }
52maud = { version = "0.27", features = ["axum"] }
53pulldown-cmark = { version = "0.13", default-features = false, features = ["html"] }
54flate2 = { version = "1" }
55rand = { version = "0.10" }
56# HTTP client for the CD deploy webhook. No TLS feature on purpose: the deploy
57# receiver is host-local plaintext HTTP, and enabling rustls would drag in
58# aws-lc-rs and break the musl cross-compile (see the russh note below).
59# TLS via rustls with the *ring* provider only (`-no-provider` + an explicit
60# rustls/ring dep): aws-lc-rs needs cmake and breaks the zig musl
61# cross-compile, ring does not. anvil-git installs the provider at use time.
62# Used for the CD deploy webhook (anvil-ci) and HTTPS push mirroring
63# (anvil-git).
64# Native (system) roots rather than the bundled webpki set: `anvild secret`
65# talks to whatever anvil you self-host, including one behind a private or
66# local CA — portless's `.localhost` certificates being the everyday case. The
67# deploy image installs ca-certificates, so the server side is unaffected.
68reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls-native-roots-no-provider"] }
69rustls = { version = "0.23", default-features = false, features = ["ring", "logging", "std", "tls12"] }
70# Used directly only for idempotent schema shims on existing databases; the
71# version tracks what toasty-driver-sqlite already pulls in.
72rusqlite = { version = "0.39" }
73# `anvild secret` prompts for an ssh key passphrase / an account password.
74rpassword = { version = "7" }
75# RS256 verification of OIDC id tokens (docs/oidc.md). ring rather than a JWT
76# crate: it is already in the tree under rustls, cross-compiles to static musl
77# (aws-lc-rs, which the maintained JWT crates default to, needs cmake and does
78# not), and one signature check over `header.payload` is all we need.
79ring = { version = "0.17" }
80serde = { version = "1", features = ["derive"] }
81serde_json = { version = "1" }
82serde_yaml = { version = "0.9" }
83sha2 = { version = "0.10" }
84similar = { version = "2" }
85# `default-onig` (C Oniguruma regex engine) over the pure-Rust `default-fancy`:
86# several times faster on large files, and zig's cc cross-compiles the C just
87# fine for the static musl build (verified via deploy/build.sh's toolchain).
88syntect = { version = "5", default-features = false, features = ["default-onig"] }
89tar = { version = "0.4" }
90thiserror = { version = "2" }
91time = { version = "0.3", features = ["serde", "formatting"] }
92toasty = { version = "0.7", features = ["sqlite"] }
93tokio = { version = "1", features = ["full"] }
94tokio-util = { version = "0.7", features = ["io"] }
95toml = { version = "0.8" }
96tower = { version = "0.5" }
97tower-http = { version = "0.6", features = ["trace", "fs"] }
98tracing = { version = "0.1" }
99tracing-subscriber = { version = "0.3", features = ["env-filter"] }
100
101# ssh — use the `ring` crypto backend instead of the default `aws-lc-rs`:
102# ring is far cheaper to compile (no cmake/perl) and cross-compiles cleanly
103# (zigbuild/musl), which matters for building images for the low-RAM VPS.
104russh = { version = "0.61", default-features = false, features = ["flate2", "ring", "rsa"] }
105# ssh-key parsing/fingerprinting, shared by anvil-core (storage) and anvil-ssh
106# (auth). Pinned to match russh's transitive ssh-key so fingerprints agree.
107ssh-key = { version = "0.7.0-rc.10" }