From 4ddf02a6fb0145be02fa48309403a5f39186e948 Mon Sep 17 00:00:00 2001 From: Heath Stewart Date: Wed, 8 Jan 2025 11:09:37 -0800 Subject: [PATCH] Work around package/publish cyclic dependency Due to https://github.com/rust-lang/cargo/issues/4242, `cargo package` is considering dev-dependencies when trying to package and there's a cyclic dependency only when doing that. This works around that cycle while retaining the ability to doctest. --- sdk/typespec/typespec_macros/Cargo.toml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sdk/typespec/typespec_macros/Cargo.toml b/sdk/typespec/typespec_macros/Cargo.toml index 5ca4948687..a7620543ee 100644 --- a/sdk/typespec/typespec_macros/Cargo.toml +++ b/sdk/typespec/typespec_macros/Cargo.toml @@ -20,7 +20,11 @@ proc-macro2.workspace = true [dev-dependencies] tokio.workspace = true -typespec_client_core = { workspace = true, features = ["http", "json", "xml"] } +typespec_client_core = { path = "../typespec_client_core", features = [ + "http", + "json", + "xml", +] } serde.workspace = true serde_json.workspace = true cargo_metadata.workspace = true