Skip to content

Commit 4ddf02a

Browse files
committed
Work around package/publish cyclic dependency
Due to rust-lang/cargo#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.
1 parent 262c780 commit 4ddf02a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

sdk/typespec/typespec_macros/Cargo.toml

+5-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ proc-macro2.workspace = true
2020

2121
[dev-dependencies]
2222
tokio.workspace = true
23-
typespec_client_core = { workspace = true, features = ["http", "json", "xml"] }
23+
typespec_client_core = { path = "../typespec_client_core", features = [
24+
"http",
25+
"json",
26+
"xml",
27+
] }
2428
serde.workspace = true
2529
serde_json.workspace = true
2630
cargo_metadata.workspace = true

0 commit comments

Comments
 (0)