marcoow / rust_rest

MIT License
5 stars 1 forks source link

Improvements #34

Closed marcoow closed 9 months ago

marcoow commented 10 months ago

from Luca on Slack: https://mainmatter.slack.com/archives/C9HKCEFQF/p1700055695386489?thread_ts=1700051949.070029&cid=C9HKCEFQF

✅ handle panics with tracing-panic ✅ switch to sqlx (also removed bb8 as sqlx has it's own pool handling) ✅ allow setting log level via RUST_LOG env var ✅ add hierarchical config system ✅ allow setting bind addr via env vars ✅ improve tracing ✅ log env on startup ✅ add error handling around code in main function ✅ distinguish between no user found for auth token and db query failed ✅ consolidate config handling ✅ switch from actions-rs to actions-rust-lang/setup-rust-toolchain

marcoow commented 9 months ago

objective this cannot be improved further 😍