tree-sitter.tree-sitter/crates/generate
Will Lillis 1b8407d1e7
Some checks failed
CI / sanitize (push) Failing after 15s
CI / build (push) Failing after 16s
CI / check-wasm-stdlib (push) Failing after 15s
CI / checks (push) Has been cancelled
Check Regex Error Kinds / check-regex-error-kinds (push) Has been cancelled
refactor(generate)!: shrink error payloads to Box<str>
Error types are returned by value through every `Result` in the crate,
so their size is paid on the success path too. Replace owned `String`
payloads with `Box<str>` throughout, along with `Vec<String>` ->
`Box<[Box<str>]>`.

    - `GenerateError`:          96 -> 56
    - `ParseTableBuilderError`: 96 -> 24
    - `PrepareGrammarError`:    64 -> 48
    - `LoadGrammarError`:       72 -> 56

Walltime stays mostly flat, peak rss reduces marginally.

BREAKING CHANGE: public error types change for the generate crate
2026-09-12 16:51:47 -04:00
..
src refactor(generate)!: shrink error payloads to Box<str> 2026-09-12 16:51:47 -04:00
Cargo.toml build(deps): bump rquickjs to v0.13.0 2026-09-09 01:25:17 +02:00
LICENSE chore: copy license to all packages 2025-09-11 03:12:35 -04:00
README.md Reorganize rust crates into a flat crates directory, simplify some CI steps (#4496) 2025-06-06 14:25:37 -07:00

Tree-sitter Generate

This helper crate implements the logic for the tree-sitter generate command, and can be used by external tools to generate a parser from a grammar file.