[package]
edition = "2021"
name = "polyglot-sql"
version = "0.1.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "SQL parsing, validating, formatting, and dialect translation library"
readme = "README.md"
license = "MIT"
[features]
bindings = ["dep:ts-rs"]
default = []
[lib]
name = "polyglot_sql"
path = "src/lib.rs"
[[example]]
name = "basic_usage"
path = "examples/basic_usage.rs"
[[example]]
name = "bench_json"
path = "examples/bench_json.rs"
[[test]]
name = "analyze_failures"
path = "tests/analyze_failures.rs"
[[test]]
name = "dialect_matrix"
path = "tests/dialect_matrix.rs"
[[test]]
name = "error_handling"
path = "tests/error_handling.rs"
[[test]]
name = "identity_roundtrip"
path = "tests/identity_roundtrip.rs"
[[test]]
name = "sqlglot_compat"
path = "tests/sqlglot_compat.rs"
[[test]]
name = "sqlglot_dialect_identity"
path = "tests/sqlglot_dialect_identity.rs"
[[test]]
name = "sqlglot_identity"
path = "tests/sqlglot_identity.rs"
[[test]]
name = "sqlglot_identity_detailed"
path = "tests/sqlglot_identity_detailed.rs"
[[test]]
name = "sqlglot_pretty"
path = "tests/sqlglot_pretty.rs"
[[test]]
name = "sqlglot_transpilation"
path = "tests/sqlglot_transpilation.rs"
[[bench]]
name = "parsing"
path = "benches/parsing.rs"
harness = false
[[bench]]
name = "transpile"
path = "benches/transpile.rs"
harness = false
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
[dependencies.thiserror]
version = "1.0"
[dependencies.ts-rs]
version = "12.0"
features = ["serde-compat"]
optional = true
[dependencies.unicode-segmentation]
version = "1.10"
[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]
[dev-dependencies.once_cell]
version = "1.19"
[dev-dependencies.pretty_assertions]
version = "1.4"