-
Notifications
You must be signed in to change notification settings - Fork 557
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
u128 is not supported with #[serde(flatten)]
#625
Comments
Looks like this is a Should I move the issue over? |
I meet the same problem |
Still happening in
|
I have a |
Hywan
added a commit
to Hywan/matrix-rust-sdk
that referenced
this issue
Jul 7, 2022
First, u128 has a bug in `serde`, cf. serde-rs/json#625. Second, we don't need to represent the timeout as a u128, it's clearly too large. This patch tries to convert it to u64. It should never fail, but we propagate the error anyway.
Slixe
added a commit
to xelis-project/xelis-blockchain
that referenced
this issue
Feb 13, 2023
Slixe
added a commit
to xelis-project/xelis-blockchain
that referenced
this issue
Apr 17, 2023
jplatte
pushed a commit
to matrix-org/matrix-rust-sdk-crypto-nodejs
that referenced
this issue
Jul 12, 2023
First, u128 has a bug in `serde`, cf. serde-rs/json#625. Second, we don't need to represent the timeout as a u128, it's clearly too large. This patch tries to convert it to u64. It should never fail, but we propagate the error anyway.
Yael-Starkware
added a commit
to starkware-libs/papyrus
that referenced
this issue
Oct 29, 2023
…t reader to workaround serde bug (serde-rs/json#625)
Closed
9 tasks
Yael-Starkware
added a commit
to starkware-libs/papyrus
that referenced
this issue
Oct 29, 2023
…der to workaround serde bug link to serde bug: (serde-rs/json#625)
W95Psp
pushed a commit
to hacspec/hax
that referenced
this issue
Jun 30, 2024
See serde-rs/json#625. This patch is highly inspired by txpipe/oura#712.
W95Psp
pushed a commit
to hacspec/hax
that referenced
this issue
Jul 1, 2024
See serde-rs/json#625. This patch is highly inspired by txpipe/oura#712.
Pantom-007
added a commit
to Pantom-007/Xelis-Blockchain
that referenced
this issue
Sep 17, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It looks like
u128
is not supported with#[serde(flatten)]
when deserializing JSON. The following snippet shows the problem.Outputs:
This might be a
serde_derive
issue though, and not related toserde_json
.The text was updated successfully, but these errors were encountered: