From 1f7ec62d4401c16ff28a48332bcf5386d421b87a Mon Sep 17 00:00:00 2001 From: Dunqing <29533304+Dunqing@users.noreply.github.com> Date: Thu, 18 Jul 2024 06:27:16 +0000 Subject: [PATCH] chore: move mangler example to minifier (#4343) ``` Error: Circular dependency detected: oxc_codegen -> oxc_mangler ``` --- Cargo.lock | 4 ---- crates/oxc_mangler/Cargo.toml | 6 ------ crates/{oxc_mangler => oxc_minifier}/examples/mangler.rs | 2 +- 3 files changed, 1 insertion(+), 11 deletions(-) rename crates/{oxc_mangler => oxc_minifier}/examples/mangler.rs (94%) diff --git a/Cargo.lock b/Cargo.lock index d75c1ab115032..2586715ac14c7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1561,14 +1561,10 @@ name = "oxc_mangler" version = "0.20.0" dependencies = [ "itertools 0.13.0", - "oxc_allocator", "oxc_ast", - "oxc_codegen", "oxc_index", - "oxc_parser", "oxc_semantic", "oxc_span", - "pico-args", ] [[package]] diff --git a/crates/oxc_mangler/Cargo.toml b/crates/oxc_mangler/Cargo.toml index 307d7abb0b7d6..197986ba3cadb 100644 --- a/crates/oxc_mangler/Cargo.toml +++ b/crates/oxc_mangler/Cargo.toml @@ -26,9 +26,3 @@ oxc_ast = { workspace = true } oxc_semantic = { workspace = true } oxc_index = { workspace = true } itertools = { workspace = true } - -[dev-dependencies] -oxc_allocator = { workspace = true } -oxc_parser = { workspace = true } -oxc_codegen = { workspace = true } -pico-args = { workspace = true } diff --git a/crates/oxc_mangler/examples/mangler.rs b/crates/oxc_minifier/examples/mangler.rs similarity index 94% rename from crates/oxc_mangler/examples/mangler.rs rename to crates/oxc_minifier/examples/mangler.rs index 4b01f782e999a..d0109334bb482 100644 --- a/crates/oxc_mangler/examples/mangler.rs +++ b/crates/oxc_minifier/examples/mangler.rs @@ -10,7 +10,7 @@ use pico_args::Arguments; // Instruction: // create a `test.js`, -// run `cargo run -p oxc_mangler --example mangler` or `just example mangler` +// run `cargo run -p oxc_minifier --example mangler` fn main() -> std::io::Result<()> { let mut args = Arguments::from_env();