diff --git a/website/docs/reference/procedural-macro.md b/website/docs/reference/procedural-macro.md index ecc3882fe..1ead4a565 100644 --- a/website/docs/reference/procedural-macro.md +++ b/website/docs/reference/procedural-macro.md @@ -12,6 +12,12 @@ In general, this allows writing expressions (`macro!()`), attributes (`#[macro]` macros (`#[derive(Macro)]`) that transform Cairo code in your package. This transformations can be loaded dynamically per compilation unit as dependencies. +### Procedural macro API interface + + +Go to cairo-lang-macro documentation on docs.rs + + ## Guide-level explanation ### Procedural macro user perspective @@ -126,6 +132,8 @@ These three macro helpers are: 3. #[`derive_macro`] - Implements a derive macro. Should be used on function that accepts single token stream, the item the derive is applied to. Note that derives cannot replace the original item, but rather add new items to the module. +Please review the [`cairo-lang-macro` documentation](https://docs.rs/cairo-lang-macro) for more information. + ### Parsing token streams To parse Cairo code, you can use the `cairo-lang-parser` crate, defined in the Cairo compiler repository and available