Skip to content
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

Feature gate arbitrary-precision from serde_json #18917

Conversation

quambene-keyrock
Copy link

@quambene-keyrock quambene-keyrock commented Aug 7, 2024

Description

Features in Rust are "infectious". In particular, the arbitrary-precision feature of serde_json is leading to issues downstream because of the known bugs:

Therefore, my suggestion is to feature gate arbitrary-precision as done in this PR.

Test plan

How did you test the new or updated feature?

cargo check was run successfully.


Release notes

It affects crates which have serde_json as dependency and which are using it from the workspace.

Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required.

For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates.

  • Protocol:
  • Nodes (Validators and Full nodes):
  • Indexer:
  • JSON-RPC:
  • GraphQL:
  • CLI:
  • Rust SDK:
  • REST API:

Copy link

vercel bot commented Aug 7, 2024

@quambene is attempting to deploy a commit to the Mysten Labs Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

vercel bot commented Aug 7, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sui-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 7, 2024 1:18pm

@bmwill
Copy link
Contributor

bmwill commented Aug 7, 2024

Looking through the git history it seems that this feature was enabled only in the rosetta crate, as a first try lets just try to disable this entirely as is done in #18918 and if that doesn't work for whatever reason we'll only enable this for rosetta.

Feature gating as is done in this PR is not ideal and imo not maintainable for the workspace of our size

@bmwill bmwill closed this Aug 7, 2024
@bmwill
Copy link
Contributor

bmwill commented Aug 7, 2024

Closing in favor of #18918

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants