Would it be possible to implement Encode/Decode for std::time::Duration?. My use case is for a wallpaper daemon (swww) that play animations like gifs. I need to serialize the frame's duration, since for some image formats (like gif), they may not be the same for all frames in the image.
Right now, I am probably just going to go with a u128 representing nanoseconds, but it would be nice if I could just continue to use Duration directly, like I did when using rkyv.
Hello, thanks a lot for this library.
Would it be possible to implement Encode/Decode for
std::time::Duration?
. My use case is for a wallpaper daemon (swww) that play animations like gifs. I need to serialize the frame's duration, since for some image formats (likegif
), they may not be the same for all frames in the image.Right now, I am probably just going to go with a
u128
representing nanoseconds, but it would be nice if I could just continue to useDuration
directly, like I did when usingrkyv
.