# 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 = "2021"
rust-version = "1.87.0"
name = "sabi_redis"
version = "0.3.0"
authors = ["Takayuki Sato <sttk.xslet@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "The sabi data access library for Redis in Rust"
documentation = "https://docs.rs/sabi_redis"
readme = "README.md"
keywords = [
    "sabi",
    "redis",
    "data",
    "access",
]
categories = ["database"]
license = "MIT"
repository = "https://github.com/sttk/sabi_redis-rust"

[package.metadata.docs.rs]
all-features = true
targets = ["x86_64-unknown-linux-gnu"]
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
default = ["standalone-sync"]
sentinel-async = [
    "deadpool/managed",
    "deadpool-redis/sentinel",
    "redis/tokio-comp",
    "redis/sentinel",
    "redis/aio",
    "sabi-rust/tokio",
    "dep:tokio",
    "tokio/full",
]
sentinel-sync = [
    "dep:r2d2",
    "redis/r2d2",
    "redis/sentinel",
]
standalone-async = [
    "dep:deadpool-redis",
    "redis/tokio-comp",
    "sabi-rust/tokio",
    "dep:tokio",
    "tokio/full",
]
standalone-sync = [
    "dep:r2d2",
    "redis/r2d2",
]

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

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

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

[dependencies.deadpool]
version = "0.13"
features = ["managed"]
optional = true

[dependencies.deadpool-redis]
version = "0.23"
features = ["sentinel"]
optional = true

[dependencies.errs]
version = "0.8"

[dependencies.r2d2]
version = "0.8"
optional = true

[dependencies.redis]
version = "1"

[dependencies.sabi-rust]
version = "0.7"

[dependencies.tokio]
version = "1"
optional = true

[dev-dependencies.override_macro]
version = "0.1"
