blackbeam / rust-mysql-simple

Mysql client library implemented in rust.
Apache License 2.0
658 stars 144 forks source link

Mysql 21.0.2 incompatible with poem-openapi 1.0.31 #300

Open Christoph-AK opened 2 years ago

Christoph-AK commented 2 years ago

Hey there, I would like to use Poem with Mysql, but they seem to be using incompatible bitvec / funty versions. On build I get a error[E0034]: multiple applicable items in scope --> C:\Users\local\.cargo\registry\src\github.com-1ecc6299db9ec823\bitvec-0.19.4\src\field.rs:307:25.

This problem seems to be known in funty and can apparently be solved by updating all dependencies to funty 2.0.0 (or at least the same version.) Unfortunately it is nested quite deeply in the dependencies.

Example Toml, full build output, and cargo tree output uploaded here: https://gist.github.com/Christoph-AK/366e6c39c24976d5bf48064e658b6670

Can this be solved from this crate?

Christoph-AK commented 2 years ago

Issue in Poem: (HAH, I got the 300 here and the 100 in Poem 🥳😅) https://github.com/poem-web/poem/issues/100

Christoph-AK commented 2 years ago

Sunli, the author of poem, fortunately provided a fix quickly, rewriting poem so it no longer depends on funty.

In the long run this should probably be kept an eye on. As far as I can see mysql_common depends on bitvec, which uses an old Version of funty in the current stable. In the upcoming bitvec 1.0.0 this will be replaced with a expected-working version funty 2.0.0. https://docs.rs/bitvec/1.0.0-rc1/bitvec/index.html