| Crates.io | oxc_ast_macros |
| lib.rs | oxc_ast_macros |
| version | 0.92.0 |
| created_at | 2024-05-14 15:03:34.246986+00 |
| updated_at | 2025-09-24 04:19:17.333066+00 |
| description | A collection of JavaScript tools written in Rust. |
| homepage | https://oxc.rs |
| repository | https://github.com/oxc-project/oxc |
| max_upload_size | |
| id | 1239749 |
| size | 35,277 |
Procedural macros for generating AST-related code and ensuring memory layout consistency.
This crate provides procedural macros that generate boilerplate code for AST nodes, ensuring consistent memory layout and providing derived traits automatically.
#[ast] attribute: Marks types as AST nodes and generates required traits#[repr(C)] for predictable memory layoutDebug, Clone, etc.#[ast] Macro Does#[repr(C)]: Ensures predictable memory layout across platformsThis macro system enables:
oxc_ast_tools to generate visitor codeThe macros are designed to be transparent and generate minimal, efficient code.