ap keeps every release and the raw, unstripped binaries are the bulk of that storage. Strip symbols via the release profile and gzip -9 each asset before upload (~2.7x smaller); the publish job and Forgejo mirror-back pass the .gz assets through unchanged. Assumed .gz per binary over .tar.gz -- the assets are single files, so a tarball only adds a directory layer. Flag if a bundle (LICENSE/README) is wanted. E2E needs a release run; piggyback on the next real tag.
47 lines
1.2 KiB
TOML
47 lines
1.2 KiB
TOML
[package]
|
|
name = "anwesen"
|
|
description = "Read-only HTTP daemon over a markdown vault, querying YAML frontmatter."
|
|
version = "0.0.0"
|
|
edition = "2024"
|
|
rust-version = "1.95"
|
|
license = "BSD-3-Clause"
|
|
repository = "ssh://gw.aristov.cc/srv/repos/anwesen.git"
|
|
|
|
[[bin]]
|
|
name = "anwesen"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
anyhow = "1"
|
|
axum = "0.8"
|
|
blake3 = "1"
|
|
chrono = { version = "0.4", default-features = false, features = ["std", "serde", "clock"] }
|
|
clap = { version = "4", features = ["derive", "env"] }
|
|
hydra = "0.1"
|
|
notify = "8"
|
|
regex = "1"
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
serde_yaml = "0.9"
|
|
thiserror = "2"
|
|
tokio = { version = "1", features = ["full"] }
|
|
tower = { version = "0.5", features = ["util"] }
|
|
tower-http = { version = "0.6", features = ["trace"] }
|
|
tracing = "0.1"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
|
walkdir = "2"
|
|
|
|
[dev-dependencies]
|
|
tempfile = "3"
|
|
|
|
# Strip symbols from release binaries: smaller artifacts for the release
|
|
# pipeline (assets are also gzipped there) and for local release builds.
|
|
[profile.release]
|
|
strip = true
|
|
|
|
[lints.rust]
|
|
unsafe_code = "forbid"
|
|
|
|
[lints.clippy]
|
|
pedantic = { level = "warn", priority = -1 }
|
|
module_name_repetitions = "allow"
|