[package]
edition = "2024"
rust-version = "1.88.0"
name = "gdscript-syntax"
version = "0.2.1"
authors = ["Yaniv Kalfa <yanivkalfa@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Lexer, indentation pre-pass, and a lossless (cstree) parser for GDScript — gdscript-analyzer."
homepage = "https://github.com/yanivkalfa/gdscript-analyzer"
readme = "README.md"
keywords = [
"gdscript",
"godot",
"analyzer",
"lsp",
"language-server",
]
categories = [
"development-tools",
"parser-implementations",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/yanivkalfa/gdscript-analyzer"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
tree-sitter-oracle = [
"dep:tree-sitter",
"dep:tree-sitter-gdscript",
]
[lib]
name = "gdscript_syntax"
path = "src/lib.rs"
[[test]]
name = "differential"
path = "tests/differential.rs"
[[test]]
name = "robustness"
path = "tests/robustness.rs"
[dependencies.cstree]
version = "0.14"
features = ["derive"]
[dependencies.gdscript-base]
version = "0.2.1"
[dependencies.logos]
version = "0.16"
[dependencies.text-size]
version = "1.1"
[dependencies.tree-sitter]
version = "0.26"
optional = true
[dependencies.tree-sitter-gdscript]
version = "6.1"
optional = true
[dev-dependencies.expect-test]
version = "1.5"
[dev-dependencies.proptest]
version = "1.11"
[lints.clippy]
missing_errors_doc = "allow"
module_name_repetitions = "allow"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_debug_implementations = "warn"
unsafe_code = "warn"