3.2 KiB · text History 263b40b
[workspace]
members = [".", "migration", "crates/mail-prism-client"]

[workspace.dependencies]
sea-orm = { version = "1.1.1", features = ["sqlx-postgres", "runtime-tokio-rustls", "macros", "with-chrono", "with-uuid"] }
chrono = { version = "0.4.38", features = ["serde"] }
uuid = { version = "1.11.0", features = ["v4", "v7", "serde"] }
serde = { version = "1.0", features = ["derive"] }

[package]
name = "recourse"
version = "0.1.0"
edition = "2024"
default-run = "recourse"

[lib]
name = "recourse"
path = "src/lib.rs"

[[bin]]
name = "recourse"
path = "src/main.rs"

[dependencies]
# Web stack
axum = { version = "0.8.5", features = ["multipart", "ws"] }
tokio = { version = "1.47.1", features = ["full"] }
tower-http = { version = "0.6.6", features = ["fs", "trace", "sensitive-headers"] }
tracing = "0.1.41"
tracing-subscriber = { version = "0.3.19", features = ["env-filter"] }
log = "0.4.28"
anyhow = "1.0.100"
minijinja = { version = "2.10.2", features = ["loader", "builtins", "json", "urlencode"] }
minijinja-embed = "2.12"
axum-htmx = { version = "0.7.0", features = ["tokio"] }
axum-prometheus = "0.9.0"
metrics-process = "2.4.0"
serde = { workspace = true }
serde_json = "1.0.145"

# Database + auth
sea-orm = { workspace = true }
chrono = { workspace = true }
uuid = { workspace = true }
argon2 = { version = "0.5", features = ["std"] }
migration = { path = "./migration" }
# "Sign in with NEIAM" (OIDC), or any other OpenID Connect provider. Off
# unless OIDC_ENABLED=true. Pinned to a tag so image rebuilds never pick up
# crate changes silently. HTTPS, not SSH: the image build has no credentials.
# `sea-orm` (not `sea-orm-2`): recourse is on sea-orm 1.1.
neiam-auth = { git = "https://gg.neiam.co/neiam/neiam-auth.git", tag = "v0.6.0", features = ["axum", "sea-orm", "password-reset", "app-login"] }
# Outbound mail (email verification) through mail-prism. Vendored, not a git
# dependency: the mail-prism repo is private. See crates/mail-prism-client/VENDORED.md.
mail-prism-client = { path = "crates/mail-prism-client" }
# SHA-256 of email-verification tokens (only the hash is stored).
sha2 = "0.10"
# The Devices page's pairing QR (movie_monster's, SVG only).
qrcode = { version = "0.14", default-features = false, features = ["svg"] }

# Markdown rendering for post bodies
pulldown-cmark = "0.12"
ammonia = "4"
# The /out interstitial: signed destinations, parsed and shown with their
# host (Unicode and xn-- forms).
hmac = "0.12"
url = "2"
idna = "1"
# The lameness filter's compression signal (zlib; pure-Rust backend).
flate2 = "1"
# Rich links on posts (src/link_cards.rs, src/fetch.rs): the background
# fetch of a staff-chosen page, and a real HTML parser for its <head>
# (party-slut's). Already in the tree via neiam-auth / mail-prism-client.
reqwest = { version = "0.12", default-features = false, features = ["rustls-tls"] }
scraper = "0.29"

# CLI (manage binary)
clap = { version = "4.5", features = ["derive"] }

[build-dependencies]
minijinja-embed = "2.12"

[dev-dependencies]
# Drives the real router in tests/api_db.rs (`ServiceExt::oneshot`).
tower = { version = "0.5", features = ["util"] }
# The live-update socket end to end in tests/moderation_db.rs.
tokio-tungstenite = "0.27"
futures-util = { version = "0.3", default-features = false, features = ["sink", "std"] }