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)]