diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-07-19 01:12:24 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-07-19 01:12:24 +0800 |
| commit | b0cb0735d11b288ffce0ae3819f7314db3fb10b4 (patch) | |
| tree | 73c64489e92726810e4f175483dd1dc7aa6ab9fd /mingling/src/setups/structural_renderer.rs | |
| parent | 501eb14dfca05813fa7a16f13f2efd9ba2b8c923 (diff) | |
feat: deprecate basic and structural renderer setups when picker is
enabled
Diffstat (limited to 'mingling/src/setups/structural_renderer.rs')
| -rw-r--r-- | mingling/src/setups/structural_renderer.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/mingling/src/setups/structural_renderer.rs b/mingling/src/setups/structural_renderer.rs index af3ed91..0ab2347 100644 --- a/mingling/src/setups/structural_renderer.rs +++ b/mingling/src/setups/structural_renderer.rs @@ -1,8 +1,16 @@ +#![allow(deprecated)] + use mingling_core::{Program, ProgramCollect, setup::ProgramSetup}; /// Sets up the structural renderer for the program: /// /// - Adds a `--renderer` global argument to specify the renderer type +#[cfg_attr( + feature = "picker", + deprecated( + note = "When the `picker` feature is enabled, you can use `mingling::setup::picker::StructuralRendererSimpleSetup` instead" + ) +)] pub struct StructuralRendererSimpleSetup; impl<C> ProgramSetup<C> for StructuralRendererSimpleSetup @@ -25,6 +33,12 @@ where /// * `--toml` for TOML output /// * `--ron` for RON output /// * `--ron-pretty` for pretty-printed RON output +#[cfg_attr( + feature = "picker", + deprecated( + note = "When the `picker` feature is enabled, you can use `mingling::setup::picker::StructuralRendererSetup` instead" + ) +)] pub struct StructuralRendererSetup; impl<C> ProgramSetup<C> for StructuralRendererSetup |
