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