| 1 | //! This crate defines various `macro_rules` macros |
| 2 | //! used as part of Salsa's internal plumbing. |
| 3 | //! These macros are re-exported under `salsa::plumbing``. |
| 4 | //! The procedural macros emit calls to these |
| 5 | //! `macro_rules` macros after doing error checking. |
| 6 | //! |
| 7 | //! Using `macro_rules` macro definitions is generally |
| 8 | //! more ergonomic and also permits true hygiene for local variables |
| 9 | //! (sadly not items). |
| 10 | //! |
| 11 | //! Currently the only way to have a macro that is re-exported |
| 12 | //! from a submodule is to use multiple crates, hence the existence |
| 13 | //! of this crate. |
| 14 | |
| 15 | mod gate_accumulated; |
| 16 | mod macro_if; |
| 17 | mod maybe_default; |
| 18 | mod return_mode; |
| 19 | #[cfg(feature = "accumulator")] |
| 20 | mod setup_accumulator_impl; |
| 21 | mod setup_input_struct; |
| 22 | mod setup_interned_struct; |
| 23 | mod setup_tracked_assoc_fn_body; |
| 24 | mod setup_tracked_fn; |
| 25 | mod setup_tracked_method_body; |
| 26 | mod setup_tracked_struct; |
| 27 | mod unexpected_cycle_recovery; |