996ad5c4c8
Add clap-powered --bind, --static-dir, and --data-dir flags for human-run server configuration. The merge order is now explicit: command-line arguments win over UPL_* environment variables, which still fall back to the existing repository-local defaults. Document the new flags and allow just run to forward arguments to cargo so the help text can be checked through the normal task runner. Test Plan: - just check - cargo run -- --help Refs: none
35 lines
792 B
TOML
35 lines
792 B
TOML
[package]
|
|
name = "upl"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
|
|
[dependencies]
|
|
axum = "0.8.9"
|
|
clap = { version = "4.5.53", features = ["derive"] }
|
|
serde = { version = "1.0.228", features = ["derive"] }
|
|
serde_json = "1.0.150"
|
|
time = { version = "0.3.47", features = ["formatting", "serde"] }
|
|
tokio = { version = "1.52.3", features = ["full"] }
|
|
tower-http = { version = "0.6.11", features = ["fs"] }
|
|
uuid = { version = "1.23.2", features = ["serde", "v4"] }
|
|
|
|
[dev-dependencies]
|
|
http-body-util = "0.1.3"
|
|
tempfile = "3.27.0"
|
|
tower = { version = "0.5.3", features = ["util"] }
|
|
|
|
[lints.clippy]
|
|
pedantic = { level = "warn", priority = -1 }
|
|
todo = "warn"
|
|
unwrap_used = "warn"
|
|
|
|
[lints.rust]
|
|
unsafe_code = "forbid"
|
|
|
|
[profile.release]
|
|
debug = false
|
|
strip = true
|
|
lto = true
|
|
panic = "unwind"
|
|
codegen-units = 1
|