persistant 0.19.0

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
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.94"
name = "persistant"
version = "0.19.0"
build = false
include = [
    "src/**",
    "tests/**",
    "examples/**",
    "matrix/**",
    "README.md",
    "CHANGELOG.md",
    "SECURITY.md",
    "LICENSE-MIT",
    "LICENSE-APACHE",
    "Cargo.toml",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
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."
readme = "README.md"
keywords = [
    "storage",
    "persistence",
    "opendal",
    "atomic",
    "blob",
]
categories = [
    "filesystem",
    "database-implementations",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/ciresnave/PersistAnt"

[features]
all-backends = [
    "registry",
    "registry-sqlite",
    "registry-postgres",
    "registry-mysql",
]
blob = [
    "dep:persistant-blob",
    "core",
]
blob-tracing = [
    "blob",
    "persistant-blob/tracing",
]
core = ["dep:persistant-core"]
kv = [
    "dep:persistant-kv",
    "blob",
    "relational",
    "core",
]
kv-tracing = [
    "kv",
    "persistant-kv/tracing",
]
opendal-driver = [
    "dep:persistant-opendal",
    "blob",
]
registry = [
    "kv",
    "core",
    "opendal-driver",
]
registry-mysql = [
    "registry",
    "sqlx-driver",
    "persistant-sqlx/mysql",
]
registry-postgres = [
    "registry",
    "sqlx-driver",
]
registry-sqlite = [
    "registry",
    "sqlx-driver",
    "persistant-sqlx/sqlite",
]
relational = ["dep:persistant-relational"]
relational-tracing = [
    "relational",
    "persistant-relational/tracing",
]
sql-chrono = [
    "sql-macros",
    "persistant-relational/chrono",
]
sql-json = [
    "sql-macros",
    "persistant-relational/json",
]
sql-macros = [
    "dep:persistant-macros",
    "relational",
    "persistant-relational/sql",
]
sql-uuid = [
    "sql-macros",
    "persistant-relational/uuid",
]
sqlx-driver = [
    "dep:persistant-sqlx",
    "relational",
]
sqlx-query = ["sql-macros"]
sqlx-query-checked = [
    "sqlx-query",
    "persistant-macros/sqlx-check",
]
text-index = [
    "kv",
    "persistant-kv/text-index",
]
text-index-tokenizer = [
    "text-index",
    "persistant-kv/text-index-tokenizer",
]

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

[[example]]
name = "blocking_cost"
path = "examples/blocking_cost.rs"

[[example]]
name = "hello"
path = "examples/hello.rs"
required-features = ["registry"]

[[example]]
name = "registry_blob"
path = "examples/registry_blob.rs"
required-features = ["registry"]

[[example]]
name = "registry_blob_stream"
path = "examples/registry_blob_stream.rs"
required-features = ["registry"]

[[example]]
name = "registry_instead_of_config"
path = "examples/registry_instead_of_config.rs"
required-features = ["registry"]

[[test]]
name = "batch_erased"
path = "tests/batch_erased.rs"
required-features = ["registry-sqlite"]

[[test]]
name = "blocking"
path = "tests/blocking.rs"

[[test]]
name = "blocking_registry"
path = "tests/blocking_registry.rs"

[[test]]
name = "blocking_text"
path = "tests/blocking_text.rs"
required-features = [
    "text-index",
    "registry-sqlite",
]

[[test]]
name = "capabilities"
path = "tests/capabilities.rs"

[[test]]
name = "capant_view"
path = "tests/capant_view.rs"

[[test]]
name = "checked_in_matrix_mariadb"
path = "tests/checked_in_matrix_mariadb.rs"

[[test]]
name = "checked_in_matrix_mysql"
path = "tests/checked_in_matrix_mysql.rs"

[[test]]
name = "checked_in_matrix_opendal"
path = "tests/checked_in_matrix_opendal.rs"

[[test]]
name = "checked_in_matrix_postgres"
path = "tests/checked_in_matrix_postgres.rs"

[[test]]
name = "checked_in_matrix_sqlite"
path = "tests/checked_in_matrix_sqlite.rs"

[[test]]
name = "easyants_card"
path = "tests/easyants_card.rs"

[[test]]
name = "endpoint_redaction"
path = "tests/endpoint_redaction.rs"

[[test]]
name = "example_names"
path = "tests/example_names.rs"

[[test]]
name = "faults"
path = "tests/faults.rs"

[[test]]
name = "kv_update_record"
path = "tests/kv_update_record.rs"

[[test]]
name = "listing"
path = "tests/listing.rs"

[[test]]
name = "matrix_reader_equivalence"
path = "tests/matrix_reader_equivalence.rs"

[[test]]
name = "readme_hello"
path = "tests/readme_hello.rs"

[[test]]
name = "records"
path = "tests/records.rs"

[[test]]
name = "reexports"
path = "tests/reexports.rs"

[[test]]
name = "registry"
path = "tests/registry.rs"

[[test]]
name = "registry_erased"
path = "tests/registry_erased.rs"
required-features = ["registry-sqlite"]

[[test]]
name = "registry_fs_case"
path = "tests/registry_fs_case.rs"

[[test]]
name = "registry_lease"
path = "tests/registry_lease.rs"

[[test]]
name = "registry_listed_opens"
path = "tests/registry_listed_opens.rs"
required-features = ["registry-sqlite"]

[[test]]
name = "registry_password_leak"
path = "tests/registry_password_leak.rs"

[[test]]
name = "registry_servers"
path = "tests/registry_servers.rs"

[[test]]
name = "text_erased"
path = "tests/text_erased.rs"
required-features = [
    "text-index",
    "registry-sqlite",
]

[[test]]
name = "text_erased_many"
path = "tests/text_erased_many.rs"
required-features = [
    "text-index",
    "registry-sqlite",
]

[[test]]
name = "text_index"
path = "tests/text_index.rs"
required-features = ["text-index"]

[[test]]
name = "text_index_certify"
path = "tests/text_index_certify.rs"
required-features = ["text-index"]

[[test]]
name = "text_index_sqlite"
path = "tests/text_index_sqlite.rs"
required-features = [
    "text-index",
    "registry-sqlite",
]

[[test]]
name = "text_tokenizer"
path = "tests/text_tokenizer.rs"
required-features = ["text-index-tokenizer"]

[dependencies.futures-util]
version = "0.3.34"
default-features = false

[dependencies.opendal]
version = "0.59.4"
features = ["services-fs"]
default-features = false

[dependencies.persistant-blob]
version = "0.19.0"
optional = true

[dependencies.persistant-core]
version = "0.19.0"
optional = true

[dependencies.persistant-kv]
version = "0.19.0"
optional = true

[dependencies.persistant-macros]
version = "0.19.0"
optional = true

[dependencies.persistant-opendal]
version = "0.19.0"
optional = true

[dependencies.persistant-relational]
version = "0.19.0"
optional = true

[dependencies.persistant-sqlx]
version = "0.19.0"
optional = true

[dependencies.serde]
version = "1.0.229"
features = ["derive"]

[dependencies.serde_json]
version = "1.0.151"

[dependencies.tokio]
version = "1.53.2"
features = [
    "rt",
    "sync",
]

[dev-dependencies.capant]
version = "0.1.15"

[dev-dependencies.tempfile]
version = "3.27.0"

[dev-dependencies.tokio]
version = "1.53.2"
features = [
    "rt-multi-thread",
    "macros",
]