From e0c04fc78ff5d1ffa081e5fd6d978fcb74d8b492 Mon Sep 17 00:00:00 2001 From: IWANABETHATGUY Date: Tue, 23 Jul 2024 13:10:53 +0800 Subject: [PATCH] chore: fix failed publish caused by cyclic dev dependencies (#4416) 1. This looks like caused by https://github.com/rust-lang/cargo/issues/4242 1. https://github.com/rust-lang/futures-rs/pull/2305 --- Cargo.lock | 4 ++++ crates/oxc_mangler/Cargo.toml | 9 +++++++++ 2 files changed, 13 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index a0122e94c9516..1c37b43f79237 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1563,9 +1563,13 @@ dependencies = [ name = "oxc_mangler" version = "0.21.0" dependencies = [ + "insta", "itertools 0.13.0", + "oxc_allocator", "oxc_ast", + "oxc_codegen", "oxc_index", + "oxc_parser", "oxc_semantic", "oxc_span", ] diff --git a/crates/oxc_mangler/Cargo.toml b/crates/oxc_mangler/Cargo.toml index 3a8d3819cc8c2..b808906b9a024 100644 --- a/crates/oxc_mangler/Cargo.toml +++ b/crates/oxc_mangler/Cargo.toml @@ -26,3 +26,12 @@ oxc_ast = { workspace = true } oxc_semantic = { workspace = true } oxc_index = { workspace = true } itertools = { workspace = true } + +[dev-dependencies] +# Using `path` instead of `workspace = true` Workaround for https://github.com/rust-lang/cargo/issues/4242 +# ref: https://github.com/rust-lang/futures-rs/pull/2305 +oxc_codegen = { path = "../oxc_codegen" } +oxc_parser = { workspace = true } +oxc_span = { workspace = true } +oxc_allocator = { workspace = true } +insta = { workspace = true }