neosmart / prettysize-rs

Pretty-print file sizes and more
Other
42 stars 5 forks source link

Implement Serialize, Deserialize, as well as other useful traits #6

Closed Antosser closed 5 months ago

Antosser commented 11 months ago

I have made 2 PRs to fix this

mqudsi commented 10 months ago

I have merged your PR, but there are two issues:

mqudsi commented 5 months ago

I added a number of commits that address this feature over the past couple of days. It's conditionally enabled with the serde feature (disabled by default). As per my last comment above, the Size type serializes/deserializes transparently to/from the number of bytes (and not as its own object). The crate doc and repo README have been updated with the relevant info.

I haven't pushed a new release yet, but it'll go out as version 0.5.0 soon.