ch-database 0.2.2

Database and object storage primitives for SQLx, SpacetimeDB, and S3
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.99"
name = "ch-database"
version = "0.2.2"
build = false
include = [
    "src/**",
    "tests/**",
    "Cargo.toml",
    "LICENSE.md",
    "README.md",
]
publish = ["crates-io"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Database and object storage primitives for SQLx, SpacetimeDB, and S3"
homepage = "https://chirora.com"
documentation = "https://docs.rs/ch-database"
readme = "README.md"
keywords = [
    "database",
    "mariadb",
    "spacetimedb",
    "sqlx",
]
categories = ["database"]
license = "SUL-1.0"

[package.metadata.docs.rs]
all-features = true
targets = []

[features]
default = ["mariadb"]
mariadb = [
    "dep:anyhow",
    "dep:sqlx",
    "dep:tokio",
    "dep:thiserror",
    "dep:tracing",
    "dep:url",
]
s3 = [
    "dep:bytes",
    "dep:object_store",
    "dep:thiserror",
    "dep:tokio",
    "dep:url",
    "dep:zeroize",
]
spacetimedb = [
    "dep:spacetimedb-sdk",
    "dep:thiserror",
]

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

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

[dependencies.anyhow]
version = "1.0.103"
optional = true

[dependencies.bytes]
version = "1.12.1"
optional = true

[dependencies.object_store]
version = "0.14.1"
features = [
    "aws",
    "fs",
]
optional = true
default-features = false

[dependencies.spacetimedb-sdk]
version = "=2.11.0"
optional = true

[dependencies.sqlx]
version = "0.9.0"
features = [
    "derive",
    "migrate",
    "mysql",
    "runtime-tokio",
    "rust_decimal",
    "tls-rustls",
    "time",
]
optional = true
default-features = false

[dependencies.thiserror]
version = "2.0.18"
optional = true

[dependencies.tokio]
version = "1.53.0"
features = [
    "macros",
    "rt",
    "sync",
    "time",
    "macros",
    "rt",
    "time",
]
optional = true
default-features = false

[dependencies.tracing]
version = "0.1.44"
optional = true

[dependencies.url]
version = "2.5.8"
optional = true

[dependencies.zeroize]
version = "1.9.0"
features = ["derive"]
optional = true

[lints.clippy]
dbg_macro = "deny"
todo = "deny"
undocumented_unsafe_blocks = "deny"

[lints.rust]
missing_docs = "warn"
unsafe_code = "forbid"
unused_must_use = "deny"

[lints.rustdoc]
broken_intra_doc_links = "deny"