Skip to content

Commit

Permalink
Only hard-code the crate version once in the README
Browse files Browse the repository at this point in the history
This will make it easier to keep up-to-date.
mqudsi committed Apr 26, 2024
1 parent 5db42db commit f40ede0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -106,7 +106,7 @@ Add the crate to `Cargo.toml` with `default-features` disabled for `no_std` supp

```toml
[dependencies]
size = { version = "0.4", default-features = false }
size = { version = ..., default-features = false }
```

Building in `no_std` mode disables support for floating point `Size` operations/conversions as well as string formatting and conversion.
@@ -117,7 +117,7 @@ For serialization and deserialization support, add the `size` crate to your `Car

```toml
[dependencies]
size = { version = "0.4", features = [ "serde" ] }
size = { version = ..., features = [ "serde" ] }
```

**The `Size` type is serialized/deserialized transparently.** This means that it acts as if it were a `u64` field denoting the size in bytes. This was done to allow directly deserializing from network payloads from languages/apis that do not express sizes as strongly typed fields (and vice-versa).

0 comments on commit f40ede0

Please sign in to comment.