Skip to content

Commit

Permalink
Lower the requisite serde dependency version
Browse files Browse the repository at this point in the history
Hard-coding `1.0.198` sets a higher MSRV than we need internally.
  • Loading branch information
mqudsi committed Apr 26, 2024
1 parent 7c29abf commit 5db42db
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]
Expand Down
5 changes: 4 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -241,14 +241,17 @@ 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;
/// use size::consts::*;
///
/// 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)]

Expand Down

0 comments on commit 5db42db

Please sign in to comment.