Skip to content

Commit

Permalink
Merge pull request #2678 from rodoufu/workspaceDependencies
Browse files Browse the repository at this point in the history
Adding workspace dependencies
  • Loading branch information
dtolnay authored Jan 23, 2024
2 parents 111803a + dd61963 commit 1c675ab
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,8 @@ members = [

[patch.crates-io]
serde = { path = "serde" }

[workspace.dependencies]
syn = "2.0.46"
quote = "1.0.35"
proc-macro2 = "1.0.74"
6 changes: 3 additions & 3 deletions serde_derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ name = "serde_derive"
proc-macro = true

[dependencies]
proc-macro2 = "1.0.74"
quote = "1.0.35"
syn = "2.0.46"
proc-macro2 = { workspace = true }
quote = { workspace = true }
syn = { workspace = true }

[dev-dependencies]
serde = { version = "1", path = "../serde" }
Expand Down
6 changes: 3 additions & 3 deletions serde_derive_internals/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ rust-version = "1.56"
path = "lib.rs"

[dependencies]
proc-macro2 = "1.0.74"
quote = "1.0.35"
syn = { version = "2.0.46", default-features = false, features = ["clone-impls", "derive", "parsing", "printing"] }
proc-macro2 = { workspace = true }
quote = { workspace = true }
syn = { workspace = true, default-features = false, features = ["clone-impls", "derive", "parsing", "printing"] }

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
Expand Down

0 comments on commit 1c675ab

Please sign in to comment.