axum-kit
Streamline the integration and usage of Axum with SQLx and Redis.
Without further ado, please see the demo.
Usage
To use axum-kit, add the following to your Cargo.toml:
[]
= { = "0.6.8", = ["postgres", "redis"] }
Example Configuration File
[]
= "0.0.0.0:8000"
[]
# Log levels: trace > debug > info > warn > error
# trace: Very detailed debugging information.
# debug: General debugging information.
# info: Normal operational information.
# warn: Potential issues.
# error: Serious problems.
= "debug"
# writer options:
# file: Logs to "directory/file_name_prefix.year-month-day".
# stdout: Logs to console.
= "file"
= "./log"
= "axum_kit.log"
[]
= "postgres://postgres:@127.0.0.1:5432/postgres"
= 10
= 1
= 30 # seconds
= 600 # seconds
= 1800 # seconds
[]
= "redis://127.0.0.1:6379"
License
This project is licensed under the MIT license.