Closed uuhan closed 5 months ago
Duplicate of #1937 and #2518, you commented on the latter: https://github.com/serde-rs/serde/issues/2518#issuecomment-1905580520.
You could post-process the bindgen output to include the #[serde(with = "BigArray")]
or fix bindgen to be able to add it.
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 theto 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 byserde
.