From 5db42dba42d37f35ccf1a66bb61fa37276724acc Mon Sep 17 00:00:00 2001 From: Mahmoud Al-Qudsi Date: Thu, 25 Apr 2024 22:59:51 -0500 Subject: [PATCH] Lower the requisite `serde` dependency version Hard-coding `1.0.198` sets a higher MSRV than we need internally. --- Cargo.toml | 2 +- src/lib.rs | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 17090fa..7794f12 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,7 @@ license = "MIT" edition = "2018" [dependencies] -serde = { version = "1.0.198", default-features = false, optional = true, features = [ "derive"] } +serde = { version = "1.0", default-features = false, optional = true, features = [ "derive"] } [features] default = [ "std" ] diff --git a/src/lib.rs b/src/lib.rs index b8f8715..24adcef 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -241,7 +241,7 @@ mod sealed { /// A collection of constants for base-2 and base-10 units. /// /// These can be used in a `const` context in conjunction with the `const` [`Size::from_const()`] -/// function to create strongly-sized `Size` objects expressing various sizes, e.g. +/// function to create strongly-sized [`Size`] objects expressing various sizes, e.g. /// /// ``` /// use size::Size; @@ -249,6 +249,9 @@ mod sealed { /// /// pub const TOTAL_SIZE: Size = Size::from_const(3 * MiB); /// ``` +/// +/// You can use these directly from the root `size` namespace (e.g. `size::KiB`) or import all size +/// constants with `use size::consts::*` to get access to them all in the scope. pub mod consts { #![allow(non_upper_case_globals)]