vlorql 0.5.0

High-level SQL query optimization and LLM-powered natural language querying library
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"
name = "vlorql"
version = "0.5.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "High-level SQL query optimization and LLM-powered natural language querying library"
homepage = "https://github.com/VincentZhangy/VlorQl"
documentation = "https://docs.rs/vlorql"
readme = false
license = "MIT OR Apache-2.0"
repository = "https://github.com/VincentZhangy/VlorQl"
resolver = "2"

[package.metadata.husky.hooks]
pre-commit = "cargo fmt --all -- --check && cargo clippy --workspace --all-targets -- -D warnings"

[features]
default = [
    "executor-postgres",
    "executor-mysql",
    "executor-sqlite",
]
executor-mysql = [
    "sqlx",
    "sqlx/mysql",
    "sqlx/runtime-tokio",
]
executor-postgres = [
    "tokio-postgres",
    "tokio-postgres-rustls",
    "async-trait",
]
executor-sqlite = [
    "sqlx",
    "sqlx/sqlite",
    "sqlx/runtime-tokio",
]
vector-search = ["vlorql-core/vector-search"]

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

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

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

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

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

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

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

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

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

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

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

[[test]]
name = "security_dialect_bypass"
path = "tests/security/dialect_bypass.rs"

[[test]]
name = "security_malformed_json"
path = "tests/security/malformed_json.rs"

[[test]]
name = "security_policy_bypass"
path = "tests/security/policy_bypass.rs"

[[test]]
name = "security_sql_injection"
path = "tests/security/sql_injection.rs"

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

[dependencies.futures]
version = "0.3"

[dependencies.opentelemetry]
version = "0.28"
features = [
    "metrics",
    "trace",
]

[dependencies.serde_json]
version = "1.0"

[dependencies.sqlx]
version = "0.8"
features = ["runtime-tokio"]
optional = true

[dependencies.tokio]
version = "1.0"
features = [
    "rt-multi-thread",
    "macros",
    "sync",
    "time",
    "io-util",
    "fs",
]

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

[dependencies.tokio-postgres-rustls]
version = "0.12"
optional = true

[dependencies.tokio-stream]
version = "0.1"

[dependencies.tracing]
version = "0.1"

[dependencies.vlorql-core]
version = "0.5.0"

[dependencies.vlorql-llm]
version = "0.5.0"

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

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

[dev-dependencies.bytes]
version = "1.0"

[dev-dependencies.cargo-husky]
version = "1"

[dev-dependencies.futures]
version = "0.3"

[dev-dependencies.opentelemetry]
version = "0.28"
features = [
    "metrics",
    "trace",
]

[dev-dependencies.opentelemetry_sdk]
version = "0.28"
features = [
    "metrics",
    "rt-tokio",
    "testing",
]

[dev-dependencies.rstest]
version = "0.18"

[dev-dependencies.rustls]
version = "0.23"

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

[dev-dependencies.tokio-postgres-rustls]
version = "0.12"

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

[dev-dependencies.webpki-roots]
version = "0.26"

[lints.clippy]
complexity = "warn"
correctness = "deny"
pedantic = "allow"
perf = "warn"
suspicious = "warn"