-
-
Notifications
You must be signed in to change notification settings - Fork 437
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
Serialize/Deserialize WeightedIndex<T>
is not enabled with feature "serde1"
#967
Comments
Yes, I believe that's just an oversight. A PR would be welcome. Note that |
I tried a little bit, and faced an issue already. I need to add Do you know how I can make a gated (with maybe |
Ah, this is beacuse:
this used to be a dependency of Rand but is no longer. In contrast:
@newpavlov @vks I think we can make serde a dependency again? |
Fixed with #974. |
Common issues
Problem:
WeightedIndex<T>
is not serializeable.Quick solution: Skipping it, but even using
rand = {version = "0.7.3", features = ["serde1"]}
didn't amend the issue.
Details: I am curious as to whether it is possible to make this a
Serialize/Deserialize
pairing.If so, would be happy to provide a PR.
The text was updated successfully, but these errors were encountered: