[package]
name = "cdk-redb"
version.workspace = true
edition.workspace = true
authors = ["CDK Developers"]
description = "Redb storage backend for CDK"
license.workspace = true
homepage = "https://github.com/cashubtc/cdk"
repository = "https://github.com/cashubtc/cdk.git"
rust-version.workspace = true # MSRV
readme = "README.md"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
default = ["wallet", "auth"]
wallet = ["cdk-common/wallet"]
auth = ["cdk-common/auth"]

[dependencies]
async-trait.workspace = true
cdk-common = { workspace = true, features = ["test"] }
redb = "2.6.3"
thiserror.workspace = true
tracing.workspace = true
serde.workspace = true
serde_json.workspace = true
lightning-invoice.workspace = true
uuid.workspace = true

[dev-dependencies]
tempfile = "3.17.1"
tokio.workspace = true

[target.'cfg(target_arch = "wasm32")'.dependencies]
uuid = { workspace = true, features = ["js"] }
