From 20b8fe7881ee7ecfcf3e5d60692caea96e361eea Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Fri, 29 May 2026 21:28:52 +0800 Subject: Remove stale example-repl-advanced directory and repl_extra feature --- Cargo.toml | 1 - examples/example-repl-advanced/Cargo.lock | 84 ------------------------------ examples/example-repl-advanced/Cargo.toml | 11 ---- examples/example-repl-advanced/src/main.rs | 3 -- mingling/Cargo.toml | 1 - mingling/src/example_docs.rs | 24 --------- mingling/src/features.rs | 11 ---- 7 files changed, 135 deletions(-) delete mode 100644 examples/example-repl-advanced/Cargo.lock delete mode 100644 examples/example-repl-advanced/Cargo.toml delete mode 100644 examples/example-repl-advanced/src/main.rs diff --git a/Cargo.toml b/Cargo.toml index f5b9a3a..fcddfc6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,7 +17,6 @@ exclude = [ "examples/example-hook", "examples/example-implicit-dispatcher", "examples/example-panic-unwind", - "examples/example-repl-advanced", "examples/example-repl-basic", "examples/example-resources", "examples/example-setup", diff --git a/examples/example-repl-advanced/Cargo.lock b/examples/example-repl-advanced/Cargo.lock deleted file mode 100644 index b18899b..0000000 --- a/examples/example-repl-advanced/Cargo.lock +++ /dev/null @@ -1,84 +0,0 @@ -# This file is automatically @generated by Cargo. -# It is not intended for manual editing. -version = 4 - -[[package]] -name = "example-repl-advanced" -version = "0.1.0" -dependencies = [ - "just_fmt", - "mingling", -] - -[[package]] -name = "just_fmt" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5454cda0d57db59778608d7a47bff5b16c6705598265869fb052b657f66cf05e" - -[[package]] -name = "mingling" -version = "0.1.9" -dependencies = [ - "mingling_core", - "mingling_macros", - "size", -] - -[[package]] -name = "mingling_core" -version = "0.1.9" -dependencies = [ - "just_fmt", -] - -[[package]] -name = "mingling_macros" -version = "0.1.9" -dependencies = [ - "just_fmt", - "proc-macro2", - "quote", - "syn", -] - -[[package]] -name = "proc-macro2" -version = "1.0.106" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934" -dependencies = [ - "unicode-ident", -] - -[[package]] -name = "quote" -version = "1.0.45" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924" -dependencies = [ - "proc-macro2", -] - -[[package]] -name = "size" -version = "0.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b6709c7b6754dca1311b3c73e79fcce40dd414c782c66d88e8823030093b02b" - -[[package]] -name = "syn" -version = "2.0.117" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99" -dependencies = [ - "proc-macro2", - "quote", - "unicode-ident", -] - -[[package]] -name = "unicode-ident" -version = "1.0.24" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75" diff --git a/examples/example-repl-advanced/Cargo.toml b/examples/example-repl-advanced/Cargo.toml deleted file mode 100644 index 7f89773..0000000 --- a/examples/example-repl-advanced/Cargo.toml +++ /dev/null @@ -1,11 +0,0 @@ -[package] -name = "example-repl-advanced" -version = "0.1.0" -edition = "2024" - -[dependencies.mingling] -path = "../../mingling" -features = ["repl", "repl_extra", "parser", "extra_macros"] - -[dependencies] -just_fmt = "0.1.2" diff --git a/examples/example-repl-advanced/src/main.rs b/examples/example-repl-advanced/src/main.rs deleted file mode 100644 index e7a11a9..0000000 --- a/examples/example-repl-advanced/src/main.rs +++ /dev/null @@ -1,3 +0,0 @@ -fn main() { - println!("Hello, world!"); -} diff --git a/mingling/Cargo.toml b/mingling/Cargo.toml index e0d2f4a..68a26d4 100644 --- a/mingling/Cargo.toml +++ b/mingling/Cargo.toml @@ -51,7 +51,6 @@ default = ["mingling_core/default", "mingling_macros/default"] clap = ["mingling_core/clap", "mingling_macros/clap"] dispatch_tree = ["mingling_core/dispatch_tree", "mingling_macros/dispatch_tree"] repl = ["mingling_core/repl", "mingling_macros/repl"] -repl_extra = ["repl"] comp = ["mingling_core/comp", "mingling_macros/comp"] parser = ["dep:size"] diff --git a/mingling/src/example_docs.rs b/mingling/src/example_docs.rs index b46041f..b665485 100644 --- a/mingling/src/example_docs.rs +++ b/mingling/src/example_docs.rs @@ -1473,30 +1473,6 @@ pub mod example_implicit_dispatcher {} /// gen_program!(); /// ``` pub mod example_panic_unwind {} - -/// -/// Source code (./Cargo.toml) -/// ```toml -/// [package] -/// name = "example-repl-advanced" -/// version = "0.1.0" -/// edition = "2024" -/// -/// [dependencies.mingling] -/// path = "../../mingling" -/// features = ["repl", "repl_extra", "parser", "extra_macros"] -/// -/// [dependencies] -/// just_fmt = "0.1.2" -/// ``` -/// -/// Source code (./src/main.rs) -/// ```ignore -/// fn main() { -/// println!("Hello, world!"); -/// } -/// ``` -pub mod example_repl_advanced {} /// Example REPL Basic /// /// > This example demonstrates how to develop a REPL program using the `repl` feature diff --git a/mingling/src/features.rs b/mingling/src/features.rs index 365724c..ec9c7ad 100644 --- a/mingling/src/features.rs +++ b/mingling/src/features.rs @@ -174,17 +174,6 @@ pub const MINGLING_REPL: bool = false; #[cfg(feature = "repl")] #[allow(unused)] pub const MINGLING_REPL: bool = true; -/// Whether the `repl_extra` feature is enabled -/// Current: `disabled` -#[cfg(not(feature = "repl_extra"))] -#[allow(unused)] -pub const MINGLING_REPL_EXTRA: bool = false; - -/// Whether the `repl_extra` feature is enabled -/// Current: `enabled` -#[cfg(feature = "repl_extra")] -#[allow(unused)] -pub const MINGLING_REPL_EXTRA: bool = true; /// Whether the `ron_serde_fmt` feature is enabled /// Current: `disabled` #[cfg(not(feature = "ron_serde_fmt"))] -- cgit