rustforge
RustForge: the read-only, cgit-style git web host serving this site
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | [package]
name = "forge"
version = "0.1.0"
edition = "2021"
description = "A small, read-only, cgit-style git web host"
license = "MIT OR Apache-2.0"
publish = false
[dependencies]
# Web server
axum = "0.8"
tokio = { version = "1", features = ["rt-multi-thread", "macros", "net", "process", "io-util", "signal", "fs"] }
tokio-util = { version = "0.7", features = ["io"] }
# Reading git repositories (libgit2 is built from source; no OpenSSL/SSH needed
# because we only ever read local repos).
git2 = { version = "0.21", default-features = false }
# Markdown README rendering
pulldown-cmark = { version = "0.13", default-features = false, features = ["html"] }
# Syntax highlighting (pure-Rust regex engine, no C oniguruma dependency)
syntect = { version = "5", default-features = false, features = ["default-fancy"] }
# HTML templates checked at compile time; everything is escaped by default
maud = "0.27"
# Config file
serde = { version = "1", features = ["derive"] }
toml = "1"
# git clients may gzip the body of a clone request
flate2 = "1"
[dev-dependencies]
tempfile = "3"
tower = { version = "0.5", features = ["util"] }
http-body-util = "0.1"
[profile.release]
lto = "thin"
|