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

Just wonder what is the future or idealism way to ser or deser the big const sized array #2683

Closed
uuhan opened this issue Jan 27, 2024 · 1 comment

Comments

@uuhan
Copy link

uuhan commented Jan 27, 2024

I know there is an awesome crate serde-big-array to work with big array.
But I have a, maybe rare, case that I can not add the

#[serde(with = "BigArray")]

to my structure's field which is generated by bindgen.

This can not be done with the current bidgen version. I just wonder if it is possible that the type [T; N] can be supported directly by serde.

@hrxi
Copy link

hrxi commented Jan 27, 2024

Duplicate of #1937 and #2518, you commented on the latter: #2518 (comment).

You could post-process the bindgen output to include the #[serde(with = "BigArray")] or fix bindgen to be able to add it.

@oli-obk oli-obk closed this as completed Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants