Skip to content

Commit 1c87c0e

Browse files
Remove ansi_term and release v0.4.0 (#83)
1 parent 5f7b519 commit 1c87c0e

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 0.4.0 (September 30, 2022)
2+
3+
* Depdendency updates
4+
15
# 0.3.0 (August 29, 2022)
26

37
Note that clients using async primitives provided by Shuttle (task `spawn`, `block_on`, `yield_now`) will

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "shuttle"
3-
version = "0.3.0"
3+
version = "0.4.0"
44
edition = "2021"
55
license = "Apache-2.0"
66
description = "A library for testing concurrent Rust code"
@@ -9,10 +9,10 @@ keywords = ["concurrency", "lock", "thread", "async"]
99
categories = ["asynchronous", "concurrency", "development-tools::testing"]
1010

1111
[dependencies]
12-
ansi_term = "0.12.1"
1312
bitvec = "1.0.1"
1413
generator = "0.7.1"
1514
hex = "0.4.2"
15+
owo-colors = "3.5.0"
1616
rand_core = "0.5.1"
1717
rand = "0.7.3"
1818
rand_pcg = "0.2.1"

src/sync/atomic/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ static PRINTED_ORDERING_WARNING: std::sync::atomic::AtomicBool = std::sync::atom
6969

7070
#[inline]
7171
fn maybe_warn_about_ordering(order: Ordering) {
72-
use ansi_term::Colour;
72+
use owo_colors::OwoColorize;
7373

7474
#[allow(clippy::collapsible_if)]
7575
if order != Ordering::SeqCst {
@@ -90,7 +90,7 @@ fn maybe_warn_about_ordering(order: Ordering) {
9090
as if they were SeqCst. Bugs caused by weaker orderings like {:?} may be missed. \
9191
See https://docs.rs/shuttle/*/shuttle/sync/atomic/index.html#warning-about-relaxed-behaviors \
9292
for details or to disable this warning.",
93-
Colour::Yellow.normal().paint("WARNING"),
93+
"WARNING".yellow(),
9494
order
9595
);
9696
}

0 commit comments

Comments
 (0)