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
Add note about Maps to readme #697
Comments
Which maps are not supported? If it's in the standard library I think we should be able to support it |
I'll try to produce an example. IIRC it was a BTreeMap from std. But I will double check and get back to you on this. |
Works now with suggestion from #697 (comment) Old Text of commentI tried to use the example in the readme to make the example of the map but I can't quite get it to compile. I'm not sure what I'm doing wrong. I converted it into a single file script to show the dependencies that I assumed. I'm not sure if the API has changed or if I'm doing something wrong. Will try to create the example without using the sample. Fixed code
|
I created a test case using a map and found no problem so I must have had an incorrect root cause analysis when I came to this conclusion. My apologies for creating this issue without creating a MRE to show the problem. I don't recall what the issue was but I recall being short on time and creating this to help the next person but seems I may have just mislead people instead of helping. Again my apologies. My example with a map that worked for the next person looking at this can be found below.
|
I'm not sure if the issue with not being able to compile the example #697 (comment) from the readme is valid and if I should create a separate issue for it as this one should be closed as it wasn't valid. |
Oh I just realized why the example is not working. The readme is an example for the upcoming 2.0 release, you're adding a 1.3.3 dependency. Try adding |
Thanks that does fix it. |
Hi,
Thanks you very much really great crate. I understand why maps cannot be supported and it makes sense but it's not really mentioned in the readme or anywhere that I checked (only checked the readme and I the first page on docs.rs). Might be good to mention it so beginners don't get tripped up. Let me know if that's ok and I can do the PR or feel free to say it in your own way.
The text was updated successfully, but these errors were encountered: