-
Notifications
You must be signed in to change notification settings - Fork 35
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
Enabling in regorus
the arbitrary_precision
feature by default on serde_json
can impact projects that depend on regorus
.
#199
Comments
@lquerel I've created #202 to default to regular precision and also to complete a few improvements around number support. |
@lquerel I happened to take a look at the linked PR and noticed the use of See #186 (comment) |
I will make this change. Thanks for the advice. Another reason to have a new regorus release :-) |
Sure. Let me see how best to make that happen. It will likely be next week since I'm tasked on other things for the remainder of this week. |
The feature does not interoperate well with other serde_json features like untagged enums. Fixes #199 Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com>
@lquerel I have just pushed a new release :) |
@anakrish Thank you! |
A project using
serde_json
without thearbitrary_precision
feature enabled, which then starts depending onregorus
, will see this feature automatically propagate throughout their entire project. This can have an impact, or not, on the project in question due to the change in behavior associated with this specific feature.This is particularly the case for me, as the deserialization of untagged enums interacts quite poorly with this feature. As a workaround, I had to fork
regorus
to remove this feature to make my project work. I encourage the maintainers of this project to make this feature optional inregorus
.Otherwise, I want to say that this project is fantastic, and I am very seriously considering using
regorus
within the OpenTelemetry Weaver project.The text was updated successfully, but these errors were encountered: