# 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.85"
name = "rig-redis-vectorstore"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Redis (RediSearch) vector store integration for the Rig LLM framework"
documentation = "https://docs.rs/rig-redis-vectorstore"
readme = "README.md"
keywords = [
    "rig",
    "redis",
    "redisearch",
    "vector",
    "llm",
]
categories = [
    "database",
    "science",
]
license = "MIT"
repository = "https://github.com/daric93/rig-redis-vectorstore"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

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

[[example]]
name = "vector_search_redis"
path = "examples/vector_search_redis.rs"
required-features = ["rig-core/derive"]

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

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

[dependencies.redis]
version = "1.2.1"
features = [
    "tokio-comp",
    "connection-manager",
]
default-features = false

[dependencies.rig-core]
version = ">=0.38.1, <0.39.0"
default-features = false

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"

[dependencies.tracing]
version = "0.1"

[dependencies.uuid]
version = "1"
features = ["v4"]

[dev-dependencies.anyhow]
version = "1"

[dev-dependencies.rig-core]
version = ">=0.38.1, <0.39.0"
features = ["derive"]

[dev-dependencies.testcontainers]
version = "0.27"

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

[dev-dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]

[lints.clippy]
all = "warn"

[lints.rust]
unsafe_code = "forbid"
