[package]
edition = "2024"
rust-version = "1.94"
name = "persistant"
version = "0.16.6"
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",
]
[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 = "blocking"
path = "tests/blocking.rs"
[[test]]
name = "blocking_registry"
path = "tests/blocking_registry.rs"
[[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 = "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_fs_case"
path = "tests/registry_fs_case.rs"
[[test]]
name = "registry_servers"
path = "tests/registry_servers.rs"
[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.16.6"
optional = true
[dependencies.persistant-core]
version = "0.16.6"
optional = true
[dependencies.persistant-kv]
version = "0.16.6"
optional = true
[dependencies.persistant-macros]
version = "0.16.6"
optional = true
[dependencies.persistant-opendal]
version = "0.16.6"
optional = true
[dependencies.persistant-relational]
version = "0.16.6"
optional = true
[dependencies.persistant-sqlx]
version = "0.16.6"
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.0"
[dev-dependencies.tempfile]
version = "3.27.0"
[dev-dependencies.tokio]
version = "1.53.2"
features = [
"rt-multi-thread",
"macros",
]