Skip to content

Commit

Permalink
Remove ansi_term and release v0.4.0 (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesbornholt authored Oct 27, 2022
1 parent 5f7b519 commit 1c87c0e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 0.4.0 (September 30, 2022)

* Depdendency updates

# 0.3.0 (August 29, 2022)

Note that clients using async primitives provided by Shuttle (task `spawn`, `block_on`, `yield_now`) will
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "shuttle"
version = "0.3.0"
version = "0.4.0"
edition = "2021"
license = "Apache-2.0"
description = "A library for testing concurrent Rust code"
Expand All @@ -9,10 +9,10 @@ keywords = ["concurrency", "lock", "thread", "async"]
categories = ["asynchronous", "concurrency", "development-tools::testing"]

[dependencies]
ansi_term = "0.12.1"
bitvec = "1.0.1"
generator = "0.7.1"
hex = "0.4.2"
owo-colors = "3.5.0"
rand_core = "0.5.1"
rand = "0.7.3"
rand_pcg = "0.2.1"
Expand Down
4 changes: 2 additions & 2 deletions src/sync/atomic/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ static PRINTED_ORDERING_WARNING: std::sync::atomic::AtomicBool = std::sync::atom

#[inline]
fn maybe_warn_about_ordering(order: Ordering) {
use ansi_term::Colour;
use owo_colors::OwoColorize;

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

0 comments on commit 1c87c0e

Please sign in to comment.