cyrs-syntax 0.1.0

Lossless CST and recovering parser for Cypher / GQL (spec 0001 §4).
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.94"
name = "cyrs-syntax"
version = "0.1.0"
authors = ["Patrick Hall <phallsignup@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Lossless CST and recovering parser for Cypher / GQL (spec 0001 §4)."
homepage = "https://github.com/phall1/cyrs"
readme = "README.md"
keywords = [
    "cypher",
    "gql",
    "graph",
    "parser",
    "lsp",
]
categories = [
    "database",
    "parser-implementations",
    "development-tools::debugging",
]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/phall1/cyrs"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
default = ["incremental"]
incremental = []
serde = [
    "dep:serde",
    "smol_str/serde",
    "text-size/serde",
]

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

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

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

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

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

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

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

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

[dependencies.drop_bomb]
version = "0.1"

[dependencies.logos]
version = "0.14"

[dependencies.rowan]
version = "0.16"

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

[dependencies.smol_str]
version = "0.3"

[dependencies.text-size]
version = "1.1"

[dependencies.thiserror]
version = "2"

[dev-dependencies.expect-test]
version = "1.5"

[dev-dependencies.insta]
version = "1"
features = [
    "yaml",
    "json",
    "redactions",
]

[dev-dependencies.pretty_assertions]
version = "1"

[dev-dependencies.proptest]
version = "1"

[lints.clippy]
dbg_macro = "deny"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_pass_by_value = "allow"
print_stderr = "allow"
print_stdout = "allow"
return_self_not_must_use = "allow"
similar_names = "allow"
todo = "warn"
too_many_lines = "allow"
unimplemented = "warn"

[lints.clippy.all]
level = "warn"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
missing_debug_implementations = "warn"
missing_docs = "deny"
unsafe_code = "forbid"
unused_must_use = "deny"

[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1