| Crates.io | axum-kit |
| lib.rs | axum-kit |
| version | 0.6.7 |
| created_at | 2024-11-20 03:29:03.761532+00 |
| updated_at | 2025-08-18 02:12:43.562825+00 |
| description | Streamline the integration and usage of Axum with SQLx and Redis |
| homepage | https://github.com/4lkaid/axum-kit |
| repository | https://github.com/4lkaid/axum-kit |
| max_upload_size | |
| id | 1454292 |
| size | 110,594 |
Streamline the integration and usage of Axum with SQLx and Redis.
Without further ado, please see the demo.
To use axum-kit, add the following to your Cargo.toml:
[dependencies]
axum-kit = { version = "0.6.7", features = ["postgres", "redis"] }
[general]
listen = "0.0.0.0:8000"
[logger]
# 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.
level = "debug"
# writer options:
# file: Logs to "directory/file_name_prefix.year-month-day".
# stdout: Logs to console.
writer = "file"
directory = "./log"
file_name_prefix = "axum_kit.log"
[postgres]
url = "postgres://postgres:@127.0.0.1:5432/postgres"
max_connections = 10
min_connections = 1
acquire_timeout = 30 # seconds
idle_timeout = 600 # seconds
max_lifetime = 1800 # seconds
[redis]
url = "redis://127.0.0.1:6379"
This project is licensed under the MIT license.