mirror of
https://git.alemi.dev/mumble-stats-api.git
synced 2024-11-10 02:49:20 +01:00
alemi
d0c6987ad4
i plan to make it keep an ongoing single session so a dedicated process answering http requests will make sense
41 lines
1.4 KiB
TOML
41 lines
1.4 KiB
TOML
[package]
|
|
name = "mumble-stats-api"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
authors = [ "alemi <me@alemi.dev>" ]
|
|
readme = "README.md"
|
|
description = "check mumble server stats using http requests"
|
|
#keywords = []
|
|
#documentation = ""
|
|
#repository = "https://git.alemi.dev/{{project-name}}"
|
|
#license = "LICENSE"
|
|
|
|
[dependencies]
|
|
axum = "0.7.4"
|
|
chrono = "0.4"
|
|
clap = { version = "4.5", features = ["derive"] }
|
|
serde = { version = "1.0.196", features = ["derive"] }
|
|
tokio = { version = "1.36", features = ["net", "macros", "rt-multi-thread", "io-util"] }
|
|
tracing = "0.1.40"
|
|
tracing-subscriber = "0.3.18"
|
|
|
|
[dev-dependencies]
|
|
|
|
[features]
|
|
default = []
|
|
|
|
[lints.rust]
|
|
unsafe_code = "forbid"
|
|
|
|
[lints.clippy]
|
|
pedantic = "warn" # extra lints, maybe obnoxious, just warn
|
|
nursery = "warn" # experimental lints, may include false positives, just warn
|
|
unwrap_used = "warn" # warn for every unwrap used
|
|
#cargo = "warn" # warn about cargo manifest lints, this is annoying at the beginning
|
|
|
|
[profile.release] # make small binaries! will take quite longer, from https://github.com/johnthagen/min-sized-rust
|
|
opt-level = 'z' # optimize for size
|
|
lto = true # enable Link Time Optimisation: don't link unused stuff
|
|
codegen-units = 1 # reducing codegen units slows it down but allows for better optimization
|
|
panic = 'abort' # abort on panic: don't include code to show what went wrong in release
|
|
strip = "symbols" # strip symbols from binary: have fun debugging on prod! :)
|