Crates.io | multitool-hg |
lib.rs | multitool-hg |
version | 0.1.3 |
source | src |
created_at | 2024-10-24 19:39:27.37618 |
updated_at | 2024-11-09 10:53:48.342968 |
description | Useful module for creating services on Rust. |
homepage | |
repository | https://github.com/humangrass/multitool |
max_upload_size | |
id | 1421642 |
size | 2,041,323 |
Useful module for creating services on Rust.
The database
module provides functionality for working with PostgreSQL using asynchronous connection pooling
via sqlx
. This module includes:
DatabaseConfig
.TODO: mysql
To enable PostgreSQL support, use the full
or database
feature. Available by default.
The logger
module provides a logging system based on tracing-subscriber
and supports different logging
levels (Info
, Debug
, Error
, etc.). You can configure logging levels via LogLevel
and use them to output
structured logs.
To enable logging, use the full
or logger
feature. Available by default.
The rediska
module provides functionality for working with Redis using asynchronous connection pooling via bb8
. This
module includes:
RedisConfig
.The RedisConfig
allows you to configure parameters like the host, port, username, password, database, connection
timeout, and pool size. If you’re working with Redis clusters or socket connections, you can specify a connection_url
directly.
To enable Redis support, use the full
or rediska
features. Available by default.
Documentation is available here and on crates.io.
You can run tests for all modules using the full
feature:
cargo test --features full
Checking the correctness of the build:
cargo build --features full