Skip to content

Commit

Permalink
Merge pull request #16 from Anders429/hashbrown
Browse files Browse the repository at this point in the history
Upgrade `hashbrown` dependency to 0.14.2.
  • Loading branch information
Anders429 authored Nov 19, 2023
2 parents fd948cc + a9b4954 commit 7bfdffb
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
matrix:
rust:
- 1.61.0
- 1.63.0
- stable
- beta
- nightly
Expand All @@ -33,7 +33,7 @@ jobs:
strategy:
matrix:
rust:
- 1.61.0
- 1.63.0
- stable
- beta
- nightly
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Changelog

## Unreleased
### Changed
- Increased version of `hashbrown` dependency to `0.14.2`.
- Raised MSRV to `1.64.0`.

## 0.5.0 - 2023-05-16
### Added
Expand Down
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "serde_assert"
version = "0.5.0"
authors = ["Anders Evensen"]
edition = "2021"
rust-version = "1.61.0"
rust-version = "1.63.0"
license = "MIT OR Apache-2.0"
readme = "README.md"
repository = "https://github.com/Anders429/serde_assert"
Expand All @@ -12,14 +12,14 @@ categories = ["development-tools::testing", "encoding", "no-std"]
keywords = ["serde", "testing", "serialization", "deserialization", "test"]

[dependencies]
hashbrown = "0.13.2"
hashbrown = {version = "0.14.2", default-features = false, features = ["ahash"]}
serde = {version = "1.0.152", default-features = false, features = ["alloc"]}

[build-dependencies]
serde = {version = "1.0.152", default-features = false}

[dev-dependencies]
claims = "0.7.1"
hashbrown = {version = "0.13.2", features = ["serde"]}
hashbrown = {version = "0.14.2", default-features = false, features = ["ahash", "serde"]}
serde_bytes = "0.11.8"
serde_derive = "1.0.152"
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
[![codecov.io](https://img.shields.io/codecov/c/gh/Anders429/serde_assert)](https://codecov.io/gh/Anders429/serde_assert)
[![crates.io](https://img.shields.io/crates/v/serde_assert)](https://crates.io/crates/serde_assert)
[![docs.rs](https://docs.rs/serde_assert/badge.svg)](https://docs.rs/serde_assert)
[![MSRV](https://img.shields.io/badge/rustc-1.61.0+-yellow.svg)](#minimum-supported-rust-version)
[![MSRV](https://img.shields.io/badge/rustc-1.63.0+-yellow.svg)](#minimum-supported-rust-version)
[![License](https://img.shields.io/crates/l/serde_assert)](#license)

Testing library for [`serde`](https://crates.io/crates/serde) [`Serialize`](https://docs.rs/serde/1.0.152/serde/trait.Serialize.html) and [`Deserialize`](https://docs.rs/serde/1.0.152/serde/trait.Deserialize.html) implementations.
Expand Down Expand Up @@ -60,7 +60,7 @@ While some users may find that the smaller API of `serde_test` is sufficient for
- Sophisticated comparison of serialized [`Tokens`](https://docs.rs/serde_assert/latest/serde_assert/struct.Tokens.html), including allowing testing of types whose serialized form can include items in arbitrary order, such as when serializing a [`HashSet`](https://docs.rs/hashbrown/latest/hashbrown/struct.HashSet.html).

## Minimum Supported Rust Version
This crate is guaranteed to compile on stable `rustc 1.61.0` and up.
This crate is guaranteed to compile on stable `rustc 1.63.0` and up.

## License
This project is licensed under either of
Expand Down
3 changes: 3 additions & 0 deletions src/de.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1332,6 +1332,9 @@ impl Builder {
/// .is_human_readable(false)
/// .build();
/// ```
///
/// # Panics
/// This method will panic if [`Builder::tokens()`] was never called.
pub fn build<'a>(&mut self) -> Deserializer<'a> {
Deserializer {
tokens: token::Iter::new(
Expand Down
2 changes: 1 addition & 1 deletion src/token.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1042,7 +1042,7 @@ impl PartialEq for Token {
}

let mut consumed = HashSet::new();
'outer: for tokens in tokens_a.iter() {
'outer: for tokens in *tokens_a {
for (i, other_tokens) in tokens_b
.iter()
.enumerate()
Expand Down

0 comments on commit 7bfdffb

Please sign in to comment.