From 4c775464098e3b63c5d3f2ae7c0c105903d210d3 Mon Sep 17 00:00:00 2001 From: maciektr Date: Wed, 31 Jul 2024 20:40:23 +0200 Subject: [PATCH] Add link to docs.rs for cairo-lang-macro (#1496) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit commit-id:f1a5ffa4 --- **Stack**: - #1497 - #1496 ⬅ ⚠️ *Part of a stack created by [spr](https://github.com/ejoffe/spr). Do not merge manually using the UI - doing so may have unexpected results.* --- website/docs/reference/procedural-macro.md | 8 ++++++++ 1 file changed, 8 insertions(+) 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