You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm shipping a crate that uses sea-query, but getting a warning that multiple versions of syn are being pulled in.
I'm sure it wouldn't be trivial to upgrade sea-query-derive to syn 2.x, but it would make downstream compile times faster, (possibly) binaries smaller, and reduce warnings that are not feasibly fixable.
Steps to Reproduce
cargo new --lib foo
cd foo
add #![warn(clippy::cargo)] to the top of src/lib.rs
cargo add sea-query
cargo clippy
Expected Behavior
Adding sea-query to my project is clippy::cargo-clean.
Actual Behavior
Adding sea-query to my project generates a new clippy::cargo warning;
warning: multiple versions for dependency `syn`: 1.0.109, 2.0.35
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_crate_versions
Yeah, SeaORM went through an exercise of upgrading to syn2. It was an involving process, and it left us just there without touching SeaQuery. Contribution is of course welcome.
However, I would like to point out this is an ecosystem problem. Unless every crate in a dependency tree upgrades to syn2, it will be pretty hard to avoid having two syn.
Description
I'm shipping a crate that uses sea-query, but getting a warning that multiple versions of
syn
are being pulled in.I'm sure it wouldn't be trivial to upgrade
sea-query-derive
tosyn
2.x, but it would make downstream compile times faster, (possibly) binaries smaller, and reduce warnings that are not feasibly fixable.Steps to Reproduce
cargo new --lib foo
cd foo
#![warn(clippy::cargo)]
to the top ofsrc/lib.rs
cargo add sea-query
cargo clippy
Expected Behavior
Adding
sea-query
to my project isclippy::cargo
-clean.Actual Behavior
Adding
sea-query
to my project generates a newclippy::cargo
warning;Reproduces How Often
Every time.
Versions
Additional Information
sea-query-derive
depends onsyn
1.x here:sea-query/sea-query-derive/Cargo.toml
Line 18 in b80f14e
where
syn
2.x is pulled in viainherent
andthiserror
.The text was updated successfully, but these errors were encountered: