persistant 0.8.21

A thin persistence layer over Apache OpenDAL for blobs and records by key: declared capabilities, atomic replace, typed records, and a blocking facade for synchronous callers.
Documentation
[workspace]
members = [".", "crates/persistant-core", "crates/persistant-blob", "crates/persistant-opendal", "crates/persistant-kv", "crates/persistant-relational", "crates/persistant-sqlx", "crates/persistant-migrate", "crates/persistant-macros"]

[workspace.package]
version = "0.8.21"

[workspace.dependencies]
persistant-core = { version = "0.8.21", path = "crates/persistant-core" }
persistant-blob = { version = "0.8.21", path = "crates/persistant-blob" }
persistant-kv = { version = "0.8.21", path = "crates/persistant-kv" }
persistant-opendal = { version = "0.8.21", path = "crates/persistant-opendal" }
persistant-relational = { version = "0.8.21", path = "crates/persistant-relational" }
persistant-sqlx = { version = "0.8.21", path = "crates/persistant-sqlx" }
persistant-migrate = { version = "0.8.21", path = "crates/persistant-migrate" }
persistant-macros = { version = "0.8.21", path = "crates/persistant-macros" }

[package]
name = "persistant"
version.workspace = true
edition = "2024"
rust-version = "1.94"
description = "A thin persistence layer over Apache OpenDAL for blobs and records by key: declared capabilities, atomic replace, typed records, and a blocking facade for synchronous callers."
license = "MIT OR Apache-2.0"
repository = "https://github.com/ciresnave/PersistAnt"
readme = "README.md"
keywords = ["storage", "persistence", "opendal", "atomic", "blob"]
categories = ["filesystem", "database-implementations"]
include = [
    "src/**",
    "tests/**",
    "examples/**",
    "README.md",
    "CHANGELOG.md",
    "SECURITY.md",
    "LICENSE-MIT",
    "LICENSE-APACHE",
    "Cargo.toml",
]

[lib]
name = "persistant"
path = "src/lib.rs"

[dependencies]
opendal = { version = "0.59.4", default-features = false, features = ["services-fs"] }
futures-util = { version = "0.3.34", default-features = false }
serde = { version = "1.0.229", features = ["derive"] }
serde_json = "1.0.151"
tokio = { version = "1.53.2", features = ["rt", "sync"] }

# The other kinds, opt-in. Off by default: a program that only wants `Store` compiles none of them.
persistant-core = { workspace = true, optional = true }
persistant-blob = { workspace = true, optional = true }
persistant-kv = { workspace = true, optional = true }
persistant-relational = { workspace = true, optional = true }
persistant-opendal = { workspace = true, optional = true }
# `sqlx-driver` needs a Rust 1.94 compiler (sqlx 0.9); the rest of this crate builds on 1.94 too (UniSQL, which `persistant-kv` translates through).
persistant-sqlx = { workspace = true, optional = true }
# The compile-time SQL macro (a proc-macro crate): opt in with `sql-macros`.
persistant-macros = { workspace = true, optional = true }

[features]
# Each feature re-exports one crate under the module named in `src/lib.rs`. None changes `Store`.
core = ["dep:persistant-core"]
blob = ["dep:persistant-blob", "core"]
relational = ["dep:persistant-relational"]
kv = ["dep:persistant-kv", "blob", "relational", "core"]
opendal-driver = ["dep:persistant-opendal", "blob"]
sqlx-driver = ["dep:persistant-sqlx", "relational"]
# `persistant::sql!`: build-time checked and translated SQL, run with `execute_sql` / `query_sql`.
sql-macros = ["dep:persistant-macros", "relational", "persistant-relational/sql"]

[dev-dependencies]
tempfile = "3.27.0"
tokio = { version = "1.53.2", features = ["rt-multi-thread", "macros"] }