Skip to content

Commit

Permalink
rust: Add some crates related to macros
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed May 31, 2023
1 parent fcc9274 commit b9f4e4b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/rust/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ Prefer functions, but use macros if you need:

- `Debugging <https://veykril.github.io/tlborm/decl-macros/minutiae/debugging.html>`__ in *The Little Book of Rust Macros*
- `cargo-expand <https://github.com/dtolnay/cargo-expand>`__
- `proc-macro-error <https://crates.io/crates/proc_macro_error>`__

Crates:

- `paste <https://docs.rs/paste/latest/paste/>`__, to use macro arguments to generate identifiers and strings.
- To write procedural macros more easily: `quote <https://crates.io/crates/quote>`__, `proc_macro2 <https://crates.io/crates/proc_macro2>`__, `darling <https://crates.io/crates/darling>`__.

Guard clauses
~~~~~~~~~~~~~
Expand Down

0 comments on commit b9f4e4b

Please sign in to comment.