mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
style: Update serde_with to 3.0.0
We upgrade enumset alongside so that we keep only one copy of darling. Differential Revision: https://phabricator.services.mozilla.com/D179651
This commit is contained in:
parent
e1b6632313
commit
39bc94a4f7
5 changed files with 10 additions and 10 deletions
|
@ -28,7 +28,7 @@ content-security-policy = { version = "0.5", features = ["serde"] }
|
||||||
cookie = "0.12"
|
cookie = "0.12"
|
||||||
crossbeam-channel = "0.5"
|
crossbeam-channel = "0.5"
|
||||||
cssparser = { version = "0.31", git = "https://github.com/servo/rust-cssparser", rev = "6ce91afdf292c4290118843e7421e146f0a4c48b" }
|
cssparser = { version = "0.31", git = "https://github.com/servo/rust-cssparser", rev = "6ce91afdf292c4290118843e7421e146f0a4c48b" }
|
||||||
darling = { version = "0.14", default-features = false }
|
darling = { version = "0.20", default-features = false }
|
||||||
data-url = "0.1.0"
|
data-url = "0.1.0"
|
||||||
devtools_traits = { path = "components/shared/devtools" }
|
devtools_traits = { path = "components/shared/devtools" }
|
||||||
embedder_traits = { path = "components/shared/embedder" }
|
embedder_traits = { path = "components/shared/embedder" }
|
||||||
|
|
|
@ -13,5 +13,5 @@ path = "lib.rs"
|
||||||
darling = { workspace = true }
|
darling = { workspace = true }
|
||||||
proc-macro2 = { workspace = true }
|
proc-macro2 = { workspace = true }
|
||||||
quote = { workspace = true }
|
quote = { workspace = true }
|
||||||
syn = { version = "1", default-features = false, features = ["clone-impls", "derive", "parsing"] }
|
syn = { version = "2", default-features = false, features = ["clone-impls", "derive", "parsing"] }
|
||||||
synstructure = "0.12"
|
synstructure = "0.13"
|
||||||
|
|
|
@ -6,7 +6,7 @@ use darling::{FromDeriveInput, FromField, FromVariant};
|
||||||
use proc_macro2::{Span, TokenStream};
|
use proc_macro2::{Span, TokenStream};
|
||||||
use quote::{quote, TokenStreamExt};
|
use quote::{quote, TokenStreamExt};
|
||||||
use syn::{
|
use syn::{
|
||||||
self, parse_quote, AngleBracketedGenericArguments, Binding, DeriveInput, Field,
|
self, parse_quote, AngleBracketedGenericArguments, AssocType, DeriveInput, Field,
|
||||||
GenericArgument, GenericParam, Ident, Path, PathArguments, PathSegment, QSelf, Type, TypeArray,
|
GenericArgument, GenericParam, Ident, Path, PathArguments, PathSegment, QSelf, Type, TypeArray,
|
||||||
TypeGroup, TypeParam, TypeParen, TypePath, TypeSlice, TypeTuple, Variant, WherePredicate,
|
TypeGroup, TypeParam, TypeParen, TypePath, TypeSlice, TypeTuple, Variant, WherePredicate,
|
||||||
};
|
};
|
||||||
|
@ -252,8 +252,8 @@ where
|
||||||
&GenericArgument::Type(ref data) => GenericArgument::Type(
|
&GenericArgument::Type(ref data) => GenericArgument::Type(
|
||||||
map_type_params(data, params, self_type, f),
|
map_type_params(data, params, self_type, f),
|
||||||
),
|
),
|
||||||
&GenericArgument::Binding(ref data) => {
|
&GenericArgument::AssocType(ref data) => {
|
||||||
GenericArgument::Binding(Binding {
|
GenericArgument::AssocType(AssocType {
|
||||||
ty: map_type_params(&data.ty, params, self_type, f),
|
ty: map_type_params(&data.ty, params, self_type, f),
|
||||||
..data.clone()
|
..data.clone()
|
||||||
})
|
})
|
||||||
|
|
|
@ -15,5 +15,5 @@ darling = { workspace = true, default-features = false }
|
||||||
derive_common = { path = "../derive_common" }
|
derive_common = { path = "../derive_common" }
|
||||||
proc-macro2 = "1"
|
proc-macro2 = "1"
|
||||||
quote = "1"
|
quote = "1"
|
||||||
syn = { version = "1", default-features = false, features = ["clone-impls", "derive", "parsing"] }
|
syn = { version = "2", default-features = false, features = ["clone-impls", "derive", "parsing"] }
|
||||||
synstructure = "0.12"
|
synstructure = "0.13"
|
||||||
|
|
|
@ -15,5 +15,5 @@ darling = { workspace = true }
|
||||||
derive_common = { path = "../derive_common" }
|
derive_common = { path = "../derive_common" }
|
||||||
proc-macro2 = { workspace = true }
|
proc-macro2 = { workspace = true }
|
||||||
quote = { workspace = true }
|
quote = { workspace = true }
|
||||||
syn = { version = "1", default-features = false, features = ["clone-impls", "derive", "parsing"] }
|
syn = { version = "2", default-features = false, features = ["clone-impls", "derive", "parsing"] }
|
||||||
synstructure = "0.12"
|
synstructure = "0.13"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue