2.0 KiB · text History 487bb12
[workspace]
members = [".", "migration"]

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

[package]
name = "bismuth"
version = "0.1.0"
edition = "2024"

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

[dependencies]
# Web
axum = "0.8.5"
axum-htmx = { version = "0.7.0", features = ["tokio"] }
tower-http = { version = "0.6", features = ["fs", "trace"] }
tokio = { version = "1", features = ["full"] }

# Templating
minijinja = { version = "2.10", features = ["loader", "builtins", "json", "urlencode"] }
minijinja-embed = "2.12"

# Observability
log = "0.4"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
axum-prometheus = "0.9.0"
metrics-process = "2.4.0"

# Rendering: syntax highlighting, SVG composition, PNG rasterisation.
# syntect on the pure-Rust regex engine so the image needs no oniguruma.
syntect = { version = "5.3", default-features = false, features = ["default-syntaxes", "default-themes", "html", "parsing", "regex-fancy"] }
resvg = { version = "0.45", default-features = false, features = ["text", "raster-images"] }
unicode-width = "0.2"
ttf-parser = "0.25"
base64 = "0.22"
rand = "0.9"

# Errors
anyhow = "1.0"
thiserror = "2.0"

# Database
sea-orm = { workspace = true }
chrono = { workspace = true }
uuid = { workspace = true }
serde = { workspace = true }
serde_json = "1.0"
migration = { path = "./migration" }

# Auth
argon2 = { version = "0.5", features = ["std"] }

# CLI (registration-token)
clap = { version = "4.5", features = ["derive"] }

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

[dev-dependencies]
tokio = { version = "1", features = ["macros", "rt-multi-thread"] }

# syntect and resvg are an order of magnitude slower unoptimised; build
# dependencies with optimisations even in dev so previews and tests stay fast.
[profile.dev.package."*"]
opt-level = 2