refactor: split project into multiple crates

This commit is contained in:
Romain Paquet 2025-11-05 20:23:17 +01:00
parent 486af67fc2
commit 857f747524
27 changed files with 308 additions and 222 deletions

29
lila-parsing/Cargo.toml Normal file
View file

@ -0,0 +1,29 @@
[package]
name = "lila-parsing"
version = "0.0.1"
edition = "2021"
[features]
default = ["pest"]
pest = ["dep:pest", "dep:pest_derive", "dep:lazy_static"]
tree-sitter = ["dep:tree-sitter", "dep:tree-sitter-lila"]
[dependencies]
anyhow = "1.0.86"
lazy_static = { version = "1.4.0", optional = true }
lila-ast = { path = "../lila-ast" }
pest = { version = "2.7.4", optional = true }
pest_derive = { version = "2.7.4", optional = true }
tree-sitter = { version = "0.22", optional = true }
[dependencies.tree-sitter-lila]
version = "0.0.1"
optional = true
git = "https://git.sr.ht/~rpqt/tree-sitter-lila"
branch = "main"
[build-dependencies]
cc = "*"
[dev-dependencies]
pretty_assertions = "1.4.0"