mumble-stats-api/Cargo.toml

49 lines
1.7 KiB
TOML
Raw Normal View History

2024-02-16 00:40:42 +01:00
[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]
2024-02-21 19:36:27 +01:00
axum = { version = "0.7.4", features = ["ws"] }
2024-02-16 00:43:22 +01:00
chrono = "0.4"
clap = { version = "4.5", features = ["derive"] }
native-tls = "0.2.11"
prost = "0.12.3"
serde = { version = "1.0.196", features = ["derive"] }
2024-02-21 19:36:27 +01:00
serde_json = "1.0.114"
2024-02-16 00:43:22 +01:00
tokio = { version = "1.36", features = ["net", "macros", "rt-multi-thread", "io-util"] }
tokio-native-tls = "0.3.1"
tracing = "0.1.40"
tracing-subscriber = "0.3.18"
2024-05-27 19:02:35 +02:00
reqwest = { version = "0.12", optional = true }
2024-02-16 00:40:42 +01:00
[build-dependencies]
prost-build = "0.12"
2024-02-16 00:40:42 +01:00
[features]
default = []
2024-05-27 19:02:35 +02:00
ntfy = ["dep:reqwest"]
2024-02-16 00:40:42 +01:00
[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! :)