[package]
edition = "2024"
name = "syntaqlite"
version = "0.0.21"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Parser, formatter, validator, and language server for SQLite SQL — built on SQLite's own grammar"
homepage = "https://syntaqlite.com"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/LalitMaganti/syntaqlite"
[features]
default = [
"sqlite",
"fmt",
"validation",
]
dynload = ["dep:libloading"]
experimental-embedded = ["validation"]
fmt = []
lsp = [
"fmt",
"validation",
"sqlite",
"dep:lsp-server",
"dep:lsp-types",
"dep:serde_json",
]
pin-cflags = [
"sqlite",
"syntaqlite-syntax/pin-cflags",
]
pin-version = [
"sqlite",
"syntaqlite-syntax/pin-version",
]
serde = [
"dep:serde",
"syntaqlite-syntax/serde",
]
serde-json = [
"serde",
"dep:serde_json",
"syntaqlite-syntax/serde-json",
]
sqlite = ["syntaqlite-syntax/sqlite"]
validation = []
[lib]
name = "syntaqlite"
crate-type = [
"rlib",
"staticlib",
]
path = "src/lib.rs"
[[test]]
name = "cflag_apis"
path = "tests/cflag_apis.rs"
[[test]]
name = "cflag_validation"
path = "tests/cflag_validation.rs"
[[test]]
name = "cflags"
path = "tests/cflags.rs"
[[test]]
name = "child_enumeration"
path = "tests/child_enumeration.rs"
[[test]]
name = "cursor_coexistence"
path = "tests/cursor_coexistence.rs"
[[test]]
name = "embedded"
path = "tests/embedded.rs"
[[test]]
name = "fmt_comments"
path = "tests/fmt_comments.rs"
[[test]]
name = "formatter_keyword_case"
path = "tests/formatter_keyword_case.rs"
[[test]]
name = "generated"
path = "tests/generated.rs"
[[test]]
name = "holes"
path = "tests/holes.rs"
[[test]]
name = "low_level"
path = "tests/low_level.rs"
[[test]]
name = "macros"
path = "tests/macros.rs"
[[test]]
name = "multiversion"
path = "tests/multiversion.rs"
[[test]]
name = "open_extension"
path = "tests/open_extension.rs"
[[test]]
name = "smoke"
path = "tests/smoke.rs"
[dependencies.libloading]
version = "0.8"
optional = true
[dependencies.lsp-server]
version = "0.7"
optional = true
[dependencies.lsp-types]
version = "0.97"
optional = true
[dependencies.serde]
version = "1"
features = ["derive"]
optional = true
[dependencies.serde_json]
version = "1"
optional = true
[dependencies.syntaqlite-common]
version = "0.0.21"
[dependencies.syntaqlite-syntax]
version = "0.0.21"
default-features = false
[lints.clippy]
allow_attributes = "deny"
must_use_candidate = "allow"
redundant_pub_crate = "allow"
undocumented_unsafe_blocks = "deny"
unwrap_used = "deny"
[lints.clippy.pedantic]
level = "deny"
priority = -1
[lints.rust]
missing_docs = "deny"
unreachable_pub = "deny"
unused_must_use = "deny"
unused_qualifications = "deny"