# 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.89"
name = "prax-pgvector"
version = "0.9.3"
authors = ["Joseph Quinn <quinn.josephr@protonmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "pgvector integration for the Prax ORM — vector similarity search, embeddings, and index management"
documentation = "https://docs.rs/prax-pgvector"
readme = false
keywords = [
    "orm",
    "pgvector",
    "embeddings",
    "vector-search",
    "ai",
]
categories = [
    "database",
    "asynchronous",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/quinnjr/prax"
resolver = "2"

[features]
default = []
halfvec = [
    "pgvector/halfvec",
    "dep:half",
]

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

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

[dependencies.half]
version = "2"
optional = true

[dependencies.pgvector]
version = "0.4"
features = ["postgres"]

[dependencies.postgres-types]
version = "0.2"
features = ["derive"]

[dependencies.prax-postgres]
version = "0.9.3"

[dependencies.prax-query]
version = "0.9.3"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1.40"
features = ["full"]

[dependencies.tokio-postgres]
version = "0.7"
features = [
    "with-serde_json-1",
    "with-chrono-0_4",
    "with-uuid-1",
]

[dependencies.tracing]
version = "0.1"

[dev-dependencies.pretty_assertions]
version = "1.4"

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