Fix workspace.dependencies default-features future compat warning

warning: serde_derive_internals/Cargo.toml: `default-features` is
    ignored for syn, since `default-features` was not specified for
    `workspace.dependencies.syn`, this could become a hard error in the
    future
This commit is contained in:
David Tolnay 2024-01-26 13:33:14 -08:00
parent aecb4083bd
commit 29d9f69399
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
3 changed files with 7 additions and 7 deletions

View File

@ -10,6 +10,6 @@ members = [
serde = { path = "serde" }
[workspace.dependencies]
proc-macro2 = "1.0.74"
quote = "1.0.35"
syn = "2.0.46"
proc-macro2 = { version = "1.0.74", default-features = false }
quote = { version = "1.0.35", default-features = false }
syn = { version = "2.0.46", default-features = false }

View File

@ -21,9 +21,9 @@ name = "serde_derive"
proc-macro = true
[dependencies]
proc-macro2 = { workspace = true }
quote = { workspace = true }
syn = { workspace = true }
proc-macro2 = { workspace = true, features = ["proc-macro"] }
quote = { workspace = true, features = ["proc-macro"] }
syn = { workspace = true, features = ["clone-impls", "derive", "parsing", "printing", "proc-macro"] }
[dev-dependencies]
serde = { version = "1", path = "../serde" }

View File

@ -17,7 +17,7 @@ path = "lib.rs"
[dependencies]
proc-macro2 = { workspace = true }
quote = { workspace = true }
syn = { workspace = true, default-features = false, features = ["clone-impls", "derive", "parsing", "printing"] }
syn = { workspace = true, features = ["clone-impls", "derive", "parsing", "printing"] }
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]