From 01f33cfe1c7f21b0f657b28d2387bef837c4844a 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 ## Ref 1. https://github.com/rust-lang/futures-rs/pull/2305 --- crates/oxc_mangler/Cargo.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/oxc_mangler/Cargo.toml b/crates/oxc_mangler/Cargo.toml index e5717b71d7068..b808906b9a024 100644 --- a/crates/oxc_mangler/Cargo.toml +++ b/crates/oxc_mangler/Cargo.toml @@ -28,7 +28,9 @@ oxc_index = { workspace = true } itertools = { workspace = true } [dev-dependencies] -oxc_codegen = { workspace = true } +# 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 }