aboutsummaryrefslogtreecommitdiff
path: root/mingling/src/lib.rs
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-08-17 05:49:19 +0800
committer魏曹先生 <1992414357@qq.com>2026-08-17 05:49:19 +0800
commit57c53affe3542cb6bd4e79ee4c18f20a1bd76b2d (patch)
tree1cd4aef44cb7a45a8cd9d520b598f5f181e24c76 /mingling/src/lib.rs
parentef23cd944402939605c78a4a853ef6e33af02c21 (diff)
refactor!: replace pack! macros with derive-based pipeline types
Remove the `pack!`, `pack_err!`, `pack_structural!`, and `pack_err_structural!` macros, replacing all pipeline type definitions with `#[derive(Grouped)]` and `#[derive(Grouped, Wrap)]` attributes. This changes the generated struct shape from named-field structs with an `inner` field to tuple structs accessed via `.0`, and removes the auto-generated `name` and `info` fields from error types.
Diffstat (limited to 'mingling/src/lib.rs')
-rw-r--r--mingling/src/lib.rs21
1 files changed, 1 insertions, 20 deletions
diff --git a/mingling/src/lib.rs b/mingling/src/lib.rs
index 6a7074b..55240e5 100644
--- a/mingling/src/lib.rs
+++ b/mingling/src/lib.rs
@@ -51,7 +51,7 @@ pub mod consts {
///
/// This module re-exports all macros provided by the `mingling_macros` crate,
/// including `dispatcher!`, `chain!`, `renderer!`,
-/// `gen_program!`, `pack!`, and many others. These macros form the core
+/// `gen_program!`, and many others. These macros form the core
/// building blocks of the Mingling framework.
///
/// For detailed documentation, usage examples, and the full list of available
@@ -84,13 +84,6 @@ pub mod macros {
pub use mingling_macros::help;
pub use mingling_macros::metadata;
pub use mingling_macros::mlint;
- pub use mingling_macros::pack;
- #[cfg(feature = "extras")]
- pub use mingling_macros::pack_err;
- #[cfg(all(feature = "structural_renderer", feature = "extras"))]
- pub use mingling_macros::pack_err_structural;
- #[cfg(feature = "structural_renderer")]
- pub use mingling_macros::pack_structural;
#[cfg(feature = "comp")]
#[doc(hidden)]
pub use mingling_macros::program_comp_gen;
@@ -212,19 +205,7 @@ pub mod prelude {
#[cfg(feature = "macros")]
pub use crate::macros::gen_program;
#[cfg(feature = "macros")]
- pub use crate::macros::pack;
- #[cfg(all(feature = "extras", feature = "macros"))]
- pub use crate::macros::pack_err;
- #[cfg(feature = "macros")]
pub use crate::macros::renderer;
- #[cfg(all(
- feature = "macros",
- feature = "structural_renderer",
- feature = "extras"
- ))]
- pub use mingling_macros::pack_err_structural;
- #[cfg(all(feature = "macros", feature = "structural_renderer"))]
- pub use mingling_macros::pack_structural;
pub use mingling_macros::r_append;
pub use mingling_macros::r_eprint;
pub use mingling_macros::r_eprintln;