Hi, I’m using a crate (
krb5-sys) that provides bindings to a system
library which works reasonably well so far. Now I need to dump some
data to disk, but it’s all C types handled by the library.
Writing serializers manually using serde’s
feasible but it’s cumbersome and error-prone so I’d prefer to have
that step automated as much as possible. If it can be avoided I’d
rather not touch the crate though.
Is there a way I have overlooked that I could use auto-generation
#[derive(serde::Serialize)] et al. for types in a third party
C library? Serde is just what I default to, I’d be open to other
approaches (IDL?) if they save me work. Alternatively, any advice
as to how to remain sane serializing deply nested C structs and