diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-07-23 00:38:36 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-07-23 00:38:36 +0800 |
| commit | 39721a88611f47a8e02a4daeafaa34d1a2c44b34 (patch) | |
| tree | d4f5191556413e81300390a8dc0d54e0a0736e75 /mingling_core/src/private.rs | |
| parent | e6c2545f89d2af8bac4e772d44655b97789ae60f (diff) | |
feat(core): rename `builds` feature to `build`
Replace the `builds` feature with `build` across the crate, keeping
a backward-compatible alias for the old name. Update all internal
visibility from `#[doc(hidden)] pub mod` to `pub(crate) mod` and
reorganize the `__private` module into a dedicated `private.rs`.
Diffstat (limited to 'mingling_core/src/private.rs')
| -rw-r--r-- | mingling_core/src/private.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/mingling_core/src/private.rs b/mingling_core/src/private.rs new file mode 100644 index 0000000..371ada2 --- /dev/null +++ b/mingling_core/src/private.rs @@ -0,0 +1,12 @@ +/// Sealed trait for `StructuralData` — only implementable via derive macro. +#[cfg(feature = "structural_renderer")] +pub trait StructuralDataSealed<C> +where + C: crate::ProgramCollect<Enum = C>, +{ +} + +/// Re-export so the derive macro can reference the trait without +/// conflicting with the derive macro name at `::mingling::StructuralData`. +#[cfg(feature = "structural_renderer")] +pub use crate::renderer::structural::structural_data::StructuralData; |
