Commit Graph

61 Commits

Author SHA1 Message Date
Taiki Endo a96abb3467 Release 2.1.0 2023-01-15 23:36:42 +09:00
Taiki Endo db25fe1573 Update CI config 2023-01-15 23:36:42 +09:00
Taiki Endo b5463b2f5e Update portable-atomic to 1.0 2023-01-15 23:14:59 +09:00
dependabot[bot] 54e7d94998 Update criterion requirement from 0.3.4 to 0.4.0
Updates the requirements on [criterion](https://github.com/bheisler/criterion.rs) to permit the latest version.
- [Release notes](https://github.com/bheisler/criterion.rs/releases)
- [Changelog](https://github.com/bheisler/criterion.rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/bheisler/criterion.rs/compare/0.3.4...0.4.0)

---
updated-dependencies:
- dependency-name: criterion
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-28 12:42:51 +09:00
Taiki Endo 3383b2125a Enable dependabot update for Rust 2022-12-28 12:26:33 +09:00
Taiki Endo 1ff6001c68 Clean up CI config 2022-12-28 12:26:33 +09:00
Taiki Endo 6be67b375d Fix clippy::bool_to_int_with_if warning
```
warning: boolean to int conversion using if
  --> src/single.rs:93:9
   |
93 | /         if self.state.load(Ordering::SeqCst) & PUSHED == 0 {
94 | |             0
95 | |         } else {
96 | |             1
97 | |         }
   | |_________^ help: replace with from: `usize::from(self.state.load(Ordering::SeqCst) & PUSHED != 0)`
   |
   = note: `(self.state.load(Ordering::SeqCst) & PUSHED != 0) as usize` or `(self.state.load(Ordering::SeqCst) & PUSHED != 0).into()` can also be valid options
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_to_int_with_if
   = note: `#[warn(clippy::bool_to_int_with_if)]` on by default
```
2022-12-16 21:08:10 +09:00
Taiki Endo d14af85906 Remove msrv field from .clippy.toml
Since Rust 1.64, Clippy respects `rust-version` field in Cargo.toml.
rust-lang/rust@b776fb8
2022-11-27 15:59:17 +09:00
John Nunley 3d653aac40
Merge pull request #29 from smol-rs/2.0.0 2022-11-08 14:59:05 -08:00
jtnunley 34334a15dd v2.0.0 2022-11-08 09:57:13 -08:00
John Nunley 8c42b8dd9d
Add alternate implementations of synchronization primitives (#27) 2022-10-07 06:48:10 -07:00
John Nunley 06c99537c2
replace cache_padded with crossbeam-utils (#26) 2022-09-06 09:22:39 -07:00
John Nunley 9553e6fa92
Add benchmarks for bounded queues (#24) 2022-08-25 02:09:34 +09:00
John Nunley d3bf5a5424
Make it so this crate can be `no_std` (#22) 2022-08-25 02:09:13 +09:00
Taiki Endo 60354f9ea4 Format benches/bench.rs with rustfmt 2022-08-24 22:44:10 +09:00
Greg Morenz f8eca83b5f Add benchmarks for unbounded queues 2022-08-24 22:36:42 +09:00
Taiki Endo 812a733720 Release 1.2.4 2022-07-27 11:25:01 +09:00
Taiki Endo 434e8e9b2d Run more tests with Miri 2022-07-22 00:32:17 +09:00
Taiki Endo 9de877f9e0 Do not copy data before dropping 2022-07-22 00:03:27 +09:00
Taiki Endo d1218a02e0 Use get_mut instead of atomic load in Drop impls 2022-07-22 00:03:27 +09:00
Taiki Endo d61005fc79 Do not use x86 specific fence on Miri 2022-07-20 23:18:24 +09:00
Taiki Endo bc4f426618 Use compiler_fence in full_fence on x86 2022-07-20 23:18:24 +09:00
Taiki Endo 194cf156b1 Revert "Fix fence on non-x86 arch and miri (#16)"
This reverts commit 54df36a543.
2022-07-20 23:18:24 +09:00
Taiki Endo b8363bab2d Release 1.2.3 2022-07-17 22:35:42 +09:00
Taiki Endo 8497007235 Ignore clippy::bool_assert_comparison lint in tests
```
warning: used `assert_eq!` with a literal bool
  --> tests/bounded.rs:37:5
   |
37 |     assert_eq!(q.is_empty(), true);
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)`
   |
   = note: `#[warn(clippy::bool_assert_comparison)]` on by default
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison

warning: used `assert_eq!` with a literal bool
  --> tests/bounded.rs:38:5
   |
38 |     assert_eq!(q.is_full(), false);
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison

warning: used `assert_eq!` with a literal bool
  --> tests/bounded.rs:43:5
   |
43 |     assert_eq!(q.is_empty(), false);
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison

warning: used `assert_eq!` with a literal bool
  --> tests/bounded.rs:44:5
   |
44 |     assert_eq!(q.is_full(), false);
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison

warning: used `assert_eq!` with a literal bool
  --> tests/bounded.rs:49:5
   |
49 |     assert_eq!(q.is_empty(), false);
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison

warning: used `assert_eq!` with a literal bool
  --> tests/bounded.rs:50:5
   |
50 |     assert_eq!(q.is_full(), true);
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison

warning: used `assert_eq!` with a literal bool
  --> tests/bounded.rs:55:5
   |
55 |     assert_eq!(q.is_empty(), false);
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison

warning: used `assert_eq!` with a literal bool
  --> tests/bounded.rs:56:5
   |
56 |     assert_eq!(q.is_full(), false);
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison

warning: used `assert_eq!` with a literal bool
  --> tests/unbounded.rs:22:5
   |
22 |     assert_eq!(q.is_empty(), true);
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)`
   |
   = note: `#[warn(clippy::bool_assert_comparison)]` on by default
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison

warning: used `assert_eq!` with a literal bool
  --> tests/unbounded.rs:27:5
   |
27 |     assert_eq!(q.is_empty(), false);
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison

warning: used `assert_eq!` with a literal bool
  --> tests/unbounded.rs:32:5
   |
32 |     assert_eq!(q.is_empty(), true);
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison

warning: used `assert_eq!` with a literal bool
  --> tests/single.rs:29:5
   |
29 |     assert_eq!(q.is_empty(), true);
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)`
   |
   = note: `#[warn(clippy::bool_assert_comparison)]` on by default
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison

warning: used `assert_eq!` with a literal bool
  --> tests/single.rs:30:5
   |
30 |     assert_eq!(q.is_full(), false);
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison

warning: used `assert_eq!` with a literal bool
  --> tests/single.rs:35:5
   |
35 |     assert_eq!(q.is_empty(), false);
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison

warning: used `assert_eq!` with a literal bool
  --> tests/single.rs:36:5
   |
36 |     assert_eq!(q.is_full(), true);
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison

warning: used `assert_eq!` with a literal bool
  --> tests/single.rs:41:5
   |
41 |     assert_eq!(q.is_empty(), true);
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison

warning: used `assert_eq!` with a literal bool
  --> tests/single.rs:42:5
   |
42 |     assert_eq!(q.is_full(), false);
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace it with: `assert!(..)`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison
```
2022-07-17 22:34:00 +09:00
Taiki Endo 6b7a6a0584 Apply clippy to all targets 2022-07-17 22:34:00 +09:00
Taiki Endo 54df36a543
Fix fence on non-x86 arch and miri (#16) 2022-07-17 22:33:35 +09:00
Taiki Endo 83ec31aac4 Update CI config 2022-07-03 01:13:27 +09:00
Taiki Endo 37585c0eb6 Update MIRIFLAGS 2022-05-01 15:06:48 +09:00
Taiki Endo 8d3e3a860e Update actions/checkout action to v3 2022-05-01 14:12:02 +09:00
Taiki Endo 29dc872e05 Create GitHub release automatically 2022-01-08 18:43:05 +09:00
Taiki Endo 407b9e2942 Clean up CI config 2022-01-08 18:09:30 +09:00
Taiki Endo b6f39c7aa8 Run Miri on CI 2022-01-08 18:09:30 +09:00
Taiki Endo edb1210403
Merge pull request #10 from smol-rs/readme
Remove readme field from Cargo.toml
2021-02-14 19:51:43 +09:00
Taiki Endo c97ffb7296 Remove readme field from Cargo.toml 2021-02-14 19:44:08 +09:00
Taiki Endo bb80164b90
Merge pull request #9 from smol-rs/badge
Update license badge to match Cargo.toml
2021-02-14 13:53:25 +09:00
Taiki Endo 4a7acf9b9e Update license badge to match Cargo.toml 2021-02-14 13:37:47 +09:00
Taiki Endo 858f4f0607
Merge pull request #8 from taiki-e/url
Update URLs
2020-12-26 23:59:17 +09:00
Taiki Endo 8ea5d6f404 Update URLs 2020-12-26 23:47:13 +09:00
Taiki Endo 52573f74f2
Merge pull request #7 from taiki-e/compare_and_swap
Replace deprecated compare_and_swap with compare_exchange
2020-12-24 21:32:45 +09:00
Taiki Endo cefe5efc42 Replace deprecated compare_and_swap with compare_exchange 2020-12-24 21:28:40 +09:00
Taiki Endo b5bf0b250e
Merge pull request #6 from taiki-e/ci
Fix CI
2020-12-24 18:35:34 +09:00
Taiki Endo 3aece12ce3 Fix CI 2020-12-24 18:33:15 +09:00
Stjepan Glavina 444cae15a5
. 2020-11-30 12:27:08 +01:00
Stjepan Glavina db15df1c27 Bump to 1.2.2 2020-08-05 19:01:40 +02:00
Stjepan Glavina ee83323156 Add special bounded(1) implementation 2020-08-05 18:57:58 +02:00
Stjepan Glavina 83223b50a5 Remove PhantomData 2020-08-05 17:25:08 +02:00
Stjepan Glavina 417baf20e7 Bump to v1.2.1 2020-08-04 19:03:00 +02:00
Stjepan Glavina 0eab7ff973 Use a boxed slice instead of raw pointers 2020-08-04 19:02:03 +02:00
Stjepan Glavina 0e2534b90d Bump to v1.2.0 2020-07-31 14:27:27 +02:00