diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-06-18 22:48:16 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-06-18 22:48:16 +0800 |
| commit | 0f7b2a50b05f38d886234ff6b031766c7af1dabb (patch) | |
| tree | 9c9b5d4aa11c91c117b08e829ec33361c4aa6275 /mingling/src/lib.rs | |
| parent | dd28430b67dcfda6dd2e91750a4c1a62c085150a (diff) | |
Add `pack_err!` macro for error structs with automatic name field
Diffstat (limited to 'mingling/src/lib.rs')
| -rw-r--r-- | mingling/src/lib.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mingling/src/lib.rs b/mingling/src/lib.rs index 7b96d34..f1232d3 100644 --- a/mingling/src/lib.rs +++ b/mingling/src/lib.rs @@ -99,6 +99,9 @@ pub mod macros { pub use mingling_macros::node; /// Used to create a wrapper type for use with `Chain` and `Renderer` pub use mingling_macros::pack; + /// Used to create an error struct with automatic `name` field + #[cfg(feature = "extra_macros")] + pub use mingling_macros::pack_err; #[cfg(feature = "comp")] /// Internal macro for '`gen_program`' used to finally generate the completion structure pub use mingling_macros::program_comp_gen; @@ -192,6 +195,9 @@ pub mod prelude { pub use crate::macros::gen_program; /// Re-export of the `pack` macro for creating wrapper types. pub use crate::macros::pack; + /// Re-export of the `pack_err` macro for creating error types. + #[cfg(feature = "extra_macros")] + pub use crate::macros::pack_err; /// Re-export of the `r_print` macro for printing within a renderer context. pub use crate::macros::r_print; /// Re-export of the `r_println` macro for printing with a newline within a renderer |
