| Crates.io | sus-proc-macro |
| lib.rs | sus-proc-macro |
| version | 0.3.1 |
| created_at | 2024-07-27 15:43:57.417617+00 |
| updated_at | 2025-09-19 18:51:55.962289+00 |
| description | Proc-macros for use in the sus-compiler |
| homepage | https://github.com/pc2/sus-compiler |
| repository | https://github.com/pc2/sus-compiler |
| max_upload_size | |
| id | 1317372 |
| size | 14,508 |
Right now this just contains three proc-macros. kind!, kw!, and field!. They are there to make compile-time queries to the tree-sitter-sus grammar. It's compile-time, requires no runtime queries, and they can be used in more contexts, like match arms.
The grammar is generated using tree-sitter. Used as the parsing front-end of the sus-compiler.
The SUS compiler repository is here.
This package provides bindings for C, C++, and Rust. (And tree-sitter implemented a few more but who's counting. )
In the future I'll probably add macros for derive macros like migrating or collecting Spans