# 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"
name = "rig-mongodb"
version = "0.38.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "MongoDB implementation of a Rig vector store."
readme = "README.md"
license = "MIT"
repository = "https://github.com/0xPlaygrounds/rig"

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

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

[dependencies.futures]
version = "0.3.32"

[dependencies.mongodb]
version = "3.7.0"

[dependencies.rig-core]
version = "0.38.1"
default-features = false

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

[dependencies.serde_json]
version = "1.0.150"

[dependencies.tracing]
version = "0.1.41"

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

[dev-dependencies.httpmock]
version = "0.8.3"

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

[dev-dependencies.tokio]
version = "1.52.3"
features = ["macros"]

[dev-dependencies.tokio-test]
version = "0.4.4"

[lints.clippy]
await_holding_lock = "deny"
await_holding_refcell_ref = "deny"
dbg_macro = "forbid"
expect_fun_call = "deny"
expect_used = "deny"
indexing_slicing = "deny"
panic = "deny"
panic_in_result_fn = "deny"
todo = "forbid"
unimplemented = "forbid"
unreachable = "deny"
unwrap_used = "deny"
