# 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"
name = "amnesia"
version = "0.2.0"
authors = ["Miguel Piedrafita <rust@miguel.build>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "An expressive interface for interacting with a Cache."
readme = "README.md"
license = "MIT"
repository = "https://github.com/m1guelpf/amnesia"

[package.metadata.docs.rs]
features = [
    "memory",
    "database",
    "redis",
    "dynamodb",
]

[features]
database = ["dep:ensemble"]
default = ["memory"]
dynamodb = [
    "dep:aws-sdk-dynamodb",
    "dep:aws-smithy-runtime-api",
    "dep:aws-types",
]
memory = []
redis = ["dep:redis"]

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

[dependencies.async-trait]
version = "0.1.83"

[dependencies.aws-sdk-dynamodb]
version = "1.55.0"
optional = true

[dependencies.aws-smithy-runtime-api]
version = "1.1.1"
optional = true

[dependencies.aws-types]
version = "1.3.3"
optional = true

[dependencies.bitcode]
version = "0.6.3"
features = ["serde"]
default-features = false

[dependencies.ensemble]
version = "0.0.5"
optional = true
default-features = false

[dependencies.redis]
version = "0.27.6"
features = [
    "tokio-comp",
    "aio",
]
optional = true
default-features = false

[dependencies.serde]
version = "1.0.215"

[dependencies.thiserror]
version = "2.0.6"

[dev-dependencies.ensemble]
version = "0.0.5"
features = ["mysql"]

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