Closed Nilsonfsilva closed 3 months ago
This is fixed in 1.0.0-alpha.1 (and alpha.2)
Please be aware this this version contains breaking changes (see changelog), and further breaking changes are possible until 1.0.0 proper is released. Rather than making further changes to schemars 0.8, I'm focusing on v1, although I'm afraid I have no ETA
Hi! I am a Debian maintainer of serde_derive_internals, I am unable to upload a new update, because schemars_derive breaks with version .0.29.0 of serde_derive_internals.
The error log follows:
Generics
, foundsyn::generics::Generics
syn::generics::Generics
andGenerics
have similar names, but are actually distinct types note:syn::generics::Generics
is defined in cratesyn
--> /pkgs/RUST/debcargo-conf/build/schemars-derive/debian/cargo_registry/syn-2.0.48/src/generics.rs:9:1Generics
is defined in cratesyn
--> /pkgs/RUST/debcargo-conf/build/schemars-derive/debian/cargo_registry/syn-1.0.109/src/generics.rs:8:1= note: perhaps two different versions of crate
syn
are being used? = note: this error originates in the macroast_struct
(in Nightly builds, run with -Z macro-backtrace for more info)DeriveInput
, foundsyn::derive::DeriveInput
syn::derive::DeriveInput
andDeriveInput
have similar names, but are actually distinct types note:syn::derive::DeriveInput
is defined in cratesyn
--> /pkgs/RUST/debcargo-conf/build/schemars-derive/debian/cargo_registry/syn-2.0.48/src/derive.rs:4:1proc_macro_derive
macro. 6DeriveInput
is defined in cratesyn
--> /pkgs/RUST/debcargo-conf/build/schemars-derive/debian/cargo_registry/syn-1.0.109/src/derive.rs:4:1proc_macro_derive
macro."derive"
feature.= note: perhaps two different versions of crate
syn
are being used? = note: this error originates in the macroast_struct
(in Nightly builds, run with -Z macro-backtrace for more info)&[Attribute]
, found&Vec<Attribute>
= note: expected reference
&[Attribute]
found reference&Vec<syn::attr::Attribute>
note: associated function defined here --> src/attr/mod.rs:40:12 | 40 | pub fn new(attrs: &[syn::Attribute], errors: &Ctxt) -> Self { | ^^^ ------------------------syn::Variant
, foundsyn::data::Variant
syn::data::Variant
andsyn::Variant
have similar names, but are actually distinct types note:syn::data::Variant
is defined in cratesyn
--> /pkgs/RUST/debcargo-conf/build/schemars-derive/debian/cargo_registry/syn-2.0.48/src/data.rs:4:1syn::Variant
is defined in cratesyn
--> /pkgs/RUST/debcargo-conf/build/schemars-derive/debian/cargo_registry/syn-1.0.109/src/data.rs:4:1"derive"
or"full"
= note: perhaps two different versions of crate
syn
are being used? = note: this error originates in the macroast_struct
(in Nightly builds, run with -Z macro-backtrace for more info)&[Attribute]
, found&Vec<Attribute>
= note: expected reference
&[Attribute]
found reference&Vec<syn::attr::Attribute>
note: associated function defined here --> src/attr/mod.rs:40:12 | 40 | pub fn new(attrs: &[syn::Attribute], errors: &Ctxt) -> Self { | ^^^ ------------------------Member
, foundsyn::expr::Member
syn::expr::Member
is defined in cratesyn
--> /pkgs/RUST/debcargo-conf/build/schemars-derive/debian/cargo_registry/syn-2.0.48/src/expr.rs:735:1Member
is defined in cratesyn
--> /pkgs/RUST/debcargo-conf/build/schemars-derive/debian/cargo_registry/syn-1.0.109/src/expr.rs:844:1syn::Type
, foundsyn::ty::Type
syn::ty::Type
andsyn::Type
have similar names, but are actually distinct types note:syn::ty::Type
is defined in cratesyn
--> /pkgs/RUST/debcargo-conf/build/schemars-derive/debian/cargo_registry/syn-2.0.48/src/ty.rs:5:1syn::Type
is defined in cratesyn
--> /pkgs/RUST/debcargo-conf/build/schemars-derive/debian/cargo_registry/syn-1.0.109/src/ty.rs:5:1"derive"
or"full"
= note: perhaps two different versions of crate
syn
are being used? = note: this error originates in the macroast_enum_of_structs
(in Nightly builds, run with -Z macro-backtrace for more info)syn::Field
, foundsyn::data::Field
syn::data::Field
is defined in cratesyn
--> /pkgs/RUST/debcargo-conf/build/schemars-derive/debian/cargo_registry/syn-2.0.48/src/data.rs:135:1syn::Field
is defined in cratesyn
--> /pkgs/RUST/debcargo-conf/build/schemars-derive/debian/cargo_registry/syn-1.0.109/src/data.rs:148:1"derive"
or"full"
&[Attribute]
, found&Vec<Attribute>
= note: expected reference
&[Attribute]
found reference&Vec<syn::attr::Attribute>
note: associated function defined here --> src/attr/mod.rs:40:12 | 40 | pub fn new(attrs: &[syn::Attribute], errors: &Ctxt) -> Self { | ^^^ ------------------------&[Attribute]
, found&Vec<Attribute>
= note: expected reference
&[Attribute]
found reference&Vec<syn::attr::Attribute>
note: associated function defined here --> src/attr/validation.rs:50:12 | 50 | pub fn new(attrs: &[syn::Attribute], errors: &Ctxt) -> Self { | ^^^ ------------------------syn::derive::DeriveInput
, foundDeriveInput
DeriveInput
andsyn::derive::DeriveInput
have similar names, but are actually distinct types note:DeriveInput
is defined in cratesyn
--> /pkgs/RUST/debcargo-conf/build/schemars-derive/debian/cargo_registry/syn-1.0.109/src/derive.rs:4:1proc_macro_derive
macro. 6"derive"
feature. ...syn::derive::DeriveInput
is defined in cratesyn
--> /pkgs/RUST/debcargo-conf/build/schemars-derive/debian/cargo_registry/syn-2.0.48/src/derive.rs:4:1proc_macro_derive
macro.= note: perhaps two different versions of crate
syn
are being used? note: associated function defined here --> /pkgs/RUST/debcargo-conf/build/schemars-derive/debian/cargo_registry/serde_derive_internals-0.29.0/src/ast.rs:61:12 | 61 | pub fn from_ast( | ^^^^^^^^ = note: this error originates in the macrostrip_attrs_pub
which comes from the expansion of the macroast_struct
(in Nightly builds, run with -Z macro-backtrace for more info)Result<ast::Container<'a>, Vec<syn::Error>>
because of return type ... 47, found
Result<Container<'_>, Error>`= note: expected enum
Result<ast::Container<'a>, Vec<syn::Error>>
found enumResult<ast::Container<'_>, syn::error::Error>
std::string::String
because of return type 52.to_string()
String
, found&str
std::string::String
because of return type 68.to_string()
String
, found&str
std::string::String
because of return type 78.to_string()
String
, found&str
Result<(), Vec<syn::Error>>
because of return type ... 44Result<(), Vec<Error>>
, foundResult<(), Error>
= note: expected enum
Result<_, Vec<syn::Error>>
found enumResult<_, syn::error::Error>
syn::punctuated::Punctuated<WherePredicate, Comma>: Extend<syn::generics::WherePredicate>
is not satisfied --> src/lib.rs:199:33Extend<syn::generics::WherePredicate>
is not implemented forsyn::punctuated::Punctuated<WherePredicate, Comma>
Some errors have detailed explanations: E0277, E0308. For more information about an error, try
rustc --explain E0277
. error: could not compileschemars_derive
due to 17 previous errors