From f40ede027c3c0b27d6f5351ad0e4e588e045943a Mon Sep 17 00:00:00 2001 From: Mahmoud Al-Qudsi Date: Thu, 25 Apr 2024 23:03:47 -0500 Subject: [PATCH] Only hard-code the crate version once in the README This will make it easier to keep up-to-date. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ee817fc..aefa023 100644 --- a/README.md +++ b/README.md @@ -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).