-
Notifications
You must be signed in to change notification settings - Fork 4
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
Please clarify that floats are not supported and do not attempt to parse them #16
Comments
You are right. Floating points are not supported (yet?) and this is not well enough documented. |
For what it's worth, I switched to Borc. Perhaps you can borrow some solutions from Borc? Hopefully they can work for no-std. (There are a million CBOR libraries for Rust, but almost none that are event-based and comprehensive.) Thank you for your library! |
Thanks for letting me know.
|
I'm not sure what you mean by getting wrong data when parsing floats. We used Lines 957 to 975 in 2b6330a
Lines 911 to 933 in 2b6330a
We also used minicbor as an alternative for true |
I mean that I used cbor_event to parse in some data and the floats all had wrong values in |
My bad, it was done here #10 |
Yay! I have moved to another library (borc) as I don't have a need for no_std, but I'm sure this library will be very valuable to some users. |
Yes, that's why I'm a bit confused, where did the wrong values come from? Maybe you were using |
Right now, you would only find this out in the Crates documentation. And, honestly, it is a fairly tiny note for what is ostensibly a major missing feature.
Otherwise, the library does attempt to parse floats, except we get wrong data. It seems that the developer started to work on an implementation but didn't finish it. I think it would be better to return an error rather than wrong data.
The text was updated successfully, but these errors were encountered: