#tree-sitter #proc-macro #node #grammar #generate #wrapper #type-sitter

macro type-sitter-proc

procedural macros for type-sitter (generate typed wrappers for tree-sitter grammars from node-types.json and queries)

13 unstable releases (6 breaking)

0.7.0 Feb 22, 2025
0.6.0 Nov 30, 2024
0.4.0 Apr 1, 2024
0.3.0 Jul 18, 2023

#1331 in Programming languages

Download history 103/week @ 2024-11-11 217/week @ 2024-11-18 252/week @ 2024-11-25 47/week @ 2024-12-02 63/week @ 2024-12-09 1/week @ 2025-01-06 5/week @ 2025-01-13 36/week @ 2025-01-20 97/week @ 2025-01-27 53/week @ 2025-02-03 255/week @ 2025-02-10 21/week @ 2025-02-17

426 downloads per month
Used in type-sitter

MIT/Apache

160KB
3K SLoC

type-sitter-proc: generate type-sitter wrappers via procedural macros

crates.io

See type-sitter for background information. This exports procedural macros which generate typed nodes. Typed nodes can also be generated from a built-script using type-sitter-gen, or from a command-line interface using type-sitter-cli.

Instead of depending on this, typically you should depend on type-sitter instead with the proc feature (enabled by default). type-sitter with the proc feature re-exports this crate, but also type-sitter-lib, which the generated code depends on at runtime.

Dependencies

~7–15MB
~175K SLoC