Skip to content

Commit

Permalink
Work around package/publish cyclic dependency
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
heaths committed Jan 8, 2025
1 parent 262c780 commit 4ddf02a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sdk/typespec/typespec_macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 4ddf02a

Please sign in to comment.