Skip to content

Commit b398e14

Browse files
committed
prepare release 0.8.0
1 parent 05ce7a3 commit b398e14

4 files changed

Lines changed: 39 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,35 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Common Changelog](https://common-changelog.org/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## 0.8.0 - 2025-06-08
9+
10+
_Asserting big and accurate numbers_
11+
12+
### Added
13+
14+
* Number assertions for `num_bigint::BigInt` and `num_bigint::BigUint`
15+
[(PR #46)](https://github.com/innoave/asserting/pull/46)
16+
* Number assertions for `bigdecimal::BigDecimal` and `bigdecimal::BigDecimalRef`
17+
[(PR #48)](https://github.com/innoave/asserting/pull/48)
18+
* Number assertions for `rust_decimal::Decimal`
19+
[(PR #47)](https://github.com/innoave/asserting/pull/47)
20+
* Decimal number specific assertions `has_scale_of`, `has_precision_of` and `is_integer`
21+
[(PR #49)](https://github.com/innoave/asserting/pull/49)
22+
* Assertions for properties and classification of characters (`char`)
23+
[(PR #45)](https://github.com/innoave/asserting/pull/45)
24+
25+
### Fixed
26+
27+
* Assertions for `Result` are not available for borrowed `&Result`
28+
[(PR #43)](https://github.com/innoave/asserting/pull/43)
29+
* Assertions for `Option` are not available for borrowed `&Option`
30+
[(PR #42)](https://github.com/innoave/asserting/pull/42)
31+
32+
### Development
33+
34+
* Use a fake environment for testing functionality that depends on environment variables
35+
[(PR #50)](https://github.com/innoave/asserting/pull/50)
36+
837
## 0.7.0 - 2025-06-02
938

1039
_Assertions for `Error` types_

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "asserting"
3-
version = "0.7.0"
3+
version = "0.8.0"
44
authors = ["haraldmaida"]
55
license = "MIT OR Apache-2.0"
66
edition = "2021"
@@ -20,14 +20,14 @@ rustdoc-args = ["--cfg", "docsrs"]
2020

2121
[features]
2222
default = ["std", "colored", "float-cmp", "panic", "regex"]
23-
bigdecimal = ["dep:bigdecimal"]
23+
bigdecimal = ["dep:bigdecimal", "dep:lazy_static"]
2424
colored = ["dep:sdiff"]
2525
float-cmp = ["dep:float-cmp"]
2626
num-bigint = ["dep:num-bigint", "dep:lazy_static"]
2727
rust-decimal = ["dep:rust_decimal"]
2828
panic = ["std"]
2929
regex = ["dep:regex"]
30-
std = ["bigdecimal/std", "rust_decimal/std"]
30+
std = []
3131

3232
[dependencies]
3333
hashbrown = "0.15"

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ Features of `asserting`:
2323
For an overview of the provided features and many examples on how to use `asserting` see the
2424
[crate-level documentation][docs-url].
2525

26+
To see what is changed with each release, see the [changelog](CHANGELOG.md).
27+
2628
### Convenient to write
2729

2830
Code editors and IDEs help with autocomplete to find the right method for the kind of assertion we
@@ -77,7 +79,7 @@ require std can still be added.
7779

7880
```toml
7981
[dev-dependencies]
80-
asserting = { version = "0.7", default-features = false, features = ["colored", "float-cmp"] }
82+
asserting = { version = "0.8", default-features = false, features = ["colored", "float-cmp", "regex"] }
8183
```
8284

8385
An allocator is still needed for no-std.
@@ -89,6 +91,9 @@ printing assertion failures to the terminal. The colored diffs in assertion fail
8991

9092
![colored diffs in terminal](examples/colored_diffs.png)
9193

94+
Highlighted differences in the failure message help with spotting the difference between actual and
95+
expected values and make finding the reason for a failing test much easier.
96+
9297
It supports different variants of how differences are highlighted.
9398

9499
| Mode | Effect |

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@
610610
//! [`named()`]: spec::Spec::named
611611
//! [`located_at()`]: spec::Spec::located_at
612612
613-
#![doc(html_root_url = "https://docs.rs/asserting/0.7.0")]
613+
#![doc(html_root_url = "https://docs.rs/asserting/0.8.0")]
614614
#![cfg_attr(not(feature = "std"), no_std)]
615615
// Render feature requirements in docs.rs
616616
#![cfg_attr(docsrs, feature(doc_cfg))]

0 commit comments

Comments
 (0)