rustling-data

Crates.iorustling-data
lib.rsrustling-data
version0.1.0
created_at2025-10-19 12:20:15.215344+00
updated_at2025-10-19 12:20:15.215344+00
descriptionCore data access layer for Rustling, supporting PostgreSQL and MongoDB
homepagehttps://github.com/andreyykovalev/rustling-data
repositoryhttps://github.com/andreyykovalev/rustling-data
max_upload_size
id1890366
size125,110
(andreyykovalev)

documentation

https://docs.rs/rustling-data

README

rustling-data 🦀

rustling-data provides the runtime layer for Rustling ORM-style repositories — including database drivers, generic repository traits, and shared error handling.

It is designed to be used together with rustling-derive, which provides #[derive(...)] macros that automatically generate repository implementations for MongoDB and PostgreSQL.


✨ Features

  • 🧩 Unified repository trait — define CRUD logic once, backend-agnostic.
  • 🗃️ MongoDB driver (optional via --features mongo)
  • 🐘 PostgreSQL driver (optional via --features postgres)
  • 🎯 Custom RepositoryError for consistent error handling.
  • ⚙️ Fully async with tokio + async-trait.

🧱 Installation

Add to your Cargo.toml:

[dependencies]
rustling-data = { version = "0.1", features = ["mongo"] }      # or ["postgres"]
rustling-derive = "0.1"
Commit count: 0

cargo fmt