dsl-parse 3.0.0

Facade over sqlparser / pg_query producing a unified SQL Statement representation for duck-sqllsp.
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.90"
name = "dsl-parse"
version = "3.0.0"
authors = ["gentleduck"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Facade over sqlparser / pg_query producing a unified SQL Statement representation for duck-sqllsp."
homepage = "https://gentleduck.org/duck-sqllsp"
documentation = "https://docs.rs/duck-sqllsp"
readme = "README.md"
keywords = [
    "sql",
    "lsp",
    "language-server",
    "postgres",
    "completion",
]
categories = [
    "development-tools",
    "database",
]
license = "MIT"
repository = "https://github.com/gentleeduck/duck-sqllsp"

[features]
default = [
    "pg_query_backend",
    "sqlparser",
]
pg_query_backend = [
    "dep:pg_query",
    "dep:serde_json",
]
sqlparser = ["dep:sqlparser"]

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

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

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

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

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

[dependencies.pg_query]
version = "6"
optional = true

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

[dependencies.serde_json]
version = "1"
optional = true

[dependencies.sqlparser]
version = "0.52"
features = ["visitor"]
optional = true

[dependencies.text-size]
version = "1"
features = ["serde"]

[dependencies.thiserror]
version = "2"