xz-embed 0.1.0

Text embedding and vector storage abstraction layer
Documentation
# 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 = "xz-embed"
version = "0.1.0"
authors = ["xiao-zhu team <team@xiaozhu-tec.cloud>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Text embedding and vector storage abstraction layer"
readme = "README.md"
keywords = [
    "embedding",
    "vector",
    "ai",
    "nlp",
    "semantic-search",
]
categories = [
    "science",
    "database-implementations",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/xiaozhu-eco/xz-modules"
resolver = "2"

[features]
default = ["sqlite-vec"]
openai = ["dep:reqwest"]
sqlite-vec = ["dep:sqlx"]

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

[[example]]
name = "basic_embedding"
path = "examples/basic_embedding.rs"

[[example]]
name = "metadata_search"
path = "examples/metadata_search.rs"

[[example]]
name = "vector_store"
path = "examples/vector_store.rs"

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

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

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

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

[dependencies.futures]
version = "0.3"

[dependencies.reqwest]
version = "0.12"
features = ["json"]
optional = true

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

[dependencies.serde_json]
version = "1"

[dependencies.sqlx]
version = "0.7"
features = [
    "runtime-tokio",
    "sqlite",
]
optional = true

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "rt",
    "sync",
    "macros",
]

[dependencies.tracing]
version = "0.1"

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

[dev-dependencies.tempfile]
version = "3"

[dev-dependencies.tokio]
version = "1"
features = ["full"]