-
Notifications
You must be signed in to change notification settings - Fork 154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DashMap uses private serde module #133
Comments
This change happened in the most recent version of serde, e.g. in this commit serde-rs/serde@dd1f4b4 |
Serde 1.0.119 broke semantic versioning by removing some std re-exports. I ran into the same issue with my project. Unfortunately, they wouldn't fix it: serde-rs/serde#1946 |
I think serde's stance is reasonable, although I'd assume stuff like this can happen due to cargo fix suggestions and/or r-a autoimport, so I'd probably be a bit more sympathetic. Either way, it needs to be fixed downstream in crates like this one. |
@xacrimon can you please also release 3.11.11 with this fix, so that downstream crates aren't required to update to 4.x (for 4.0.2)? |
Summary: Pull Request resolved: facebook/relay#3355 Followed [this guide](https://www.internalfb.com/intern/wiki/Rust-at-facebook/Managing_fbsource_third-party_with_Reindeer/) to update the dependecies. For more context on serde error fixed by this update, check this xacrimon/dashmap#133 Differential Revision: D26423198 fbshipit-source-id: f057350488367fd7c0cdf27d4bbd575473c3c7ae
Summary: Pull Request resolved: #73 Pull Request resolved: facebook/relay#3355 Followed [this guide](https://www.internalfb.com/intern/wiki/Rust-at-facebook/Managing_fbsource_third-party_with_Reindeer/) to update the dependecies. For more context on serde error fixed by this update, check this xacrimon/dashmap#133 Differential Revision: D26423198 fbshipit-source-id: 1a98ffe84d423bd9417a9b3049044dac01639637
any update on this? |
If I attempt
cargo install tokei
, when building dashmap it fails with this error:This is presumably the case for anything else using dashmap, at least with serde support.
The issue seems to be https://github.com/xacrimon/dashmap/blob/master/src/serde.rs#L5 which imports from a private module. You should instead use
core::marker::PhantomData
which is the same.Ideally, you could fix this and also backport the fix to 3.x, e.g. cut a new patch release of 3.11.11 that contains just this minor fix, which will fix everything that is still depending on dashmap v3. (Obviously, you should also fix it for 4.x)
The text was updated successfully, but these errors were encountered: