mdsteele / rust-cfb

Rust library for reading/writing Compound File Binary (structured storage) files
MIT License
46 stars 20 forks source link

Deterministic cfbs #54

Open sftse opened 7 months ago

sftse commented 7 months ago

I need a way to reliably generate deterministic cfb files. It seems it suffices to be able to override the timestamps.

sftse commented 6 months ago

This is a bit beside the point of this PR, but I happen to notice that the timestamps coming from Entry::created and Entry::modified are nonsensical on streams since those timestamps are all zeroes. Should these functions perhaps return Option<SystemTime>?