Crates.io | qm |
lib.rs | qm |
version | 0.0.60 |
created_at | 2024-01-24 14:32:28.76465+00 |
updated_at | 2025-08-11 12:17:34.627447+00 |
description | Utilities for quick microservices in Rust |
homepage | |
repository | https://github.com/hd-gmbh-dev/quick-microservice-rs |
max_upload_size | |
id | 1112376 |
size | 136,266 |
qm
utilities to create quick microservices in Rust
There are no default features. Every feature provided must be enabled explicitly.
Implements the opinionated concept of an Entity
. A way to handle database models with predefined
constrains to describe permissions and ownership.
Uses the crates sea-orm
and
sqlx
.
Integrates with the features keycloak
, mongodb
, redis
, role
and nats
.
Provides an easy way to configure and set up a connection to a Kafka server.
Configuration can be done with environment variables. The default prefix is KAFKA_
.
Uses the crate rdkafka
.
Also provides opinionated topics and producers for Kafka events.
Provides an easy way to configure and set up a connection to a Keycloak server.
Configuration can be done with environment variables. The default prefix is KEYCLOAK_
.
Uses the crate keycloak
.
Also provides an opinionated configuration template and some helper functions.
Provides an easy way to configure and set up a database connection for a MongoDB database.
Configuration can be done with environment variables. The default prefix is MONGODB_
.
Uses the crate mongodb
.
todo!()
Provides an easy way to configure and set up a database connection for a PostgreSQL database.
Configuration can be done with environment variables. The default prefix is PG_
.
Uses the crate sqlx
.
Provides an easy way to configure and set up a database connection for a Redis database.
Configuration can be done with environment variables. The default prefix is REDIS_
.
Uses the crates redis
and
deadpool-redis
.
Also provides helper to handle worker queues and locking with Redis mechanisms.
todo!()
todo!()
todo!()
Provides an easy way to get a server configuration.
Configuration can be done with environment variables. The default prefix is SERVER_
.
Also provides a graphql_handler
.
The handler requires a qm_role::AuthContainer
, so the feature role
must be activated.
Because the use of the handler is optional, the dependency is not automatically included.
todo!()