Closed MightyPork closed 3 years ago
That's indeed odd, the version is hard-linked.
The newer mongoc version changed things quite a bit. Hopefully that'll be sorted out soon.
Try building an empty project with mongo_driver = "0.12.1"
, you will see that it downloads the dynamically-linked version. I think it's caused by your old rustc-sys being marked as pre-releases on crates.io. Maybe if you release one without the -X suffix, it will get fixed, I'm not sure.
I opened a cargo bug about it https://github.com/rust-lang/cargo/issues/9253
I realized it should have been mongo_driver = "=0.12.1"
to make this work reliably. We're using that from now on. The 0.13 version has been fixed and should be usable now.
This sounds like some Cargo bug, but our project stopped working after you released version 0.13.
Maybe it has something to do with the 1.8.x versions being marked as pre-releases?
Instead of mongoc-sys 1.8.2, cargo upgraded the dependency to 1.17.4. That shouldn't be a valid solution for
"1.8.2-1"
??anyway, the binary now depends on two new so-files that were not needed before:
OLD, good
NEW, bad
It worked fine before, so clearly the dependencies were not needed that badly. We will keep the old version to avoid these new dependencies, that's OK. But something is clearly wrong here, 0.12 shouldn't be pulling in mongoc-sys 1.17.4...
A workaround for now is adding these to my
Cargo.toml
: