Commit Graph

105 Commits

Author SHA1 Message Date
John Nunley 790456a747
v2.2.1
Signed-off-by: John Nunley <dev@notgull.net>
2024-04-14 07:46:42 -07:00
Jordan Danford 68a14ae352
Fix CI badge in `README.md` (#84) 2024-04-04 09:38:49 +09:00
Zeeshan Ali Khan 170a5b64dd
Merge pull request #81 from smol-rs/notgull/next
v2.2.0
2024-02-08 17:17:47 +01:00
John Nunley 67fa012056
v2.2.0
Signed-off-by: John Nunley <dev@notgull.net>
2024-02-07 19:26:29 -08:00
John Nunley efdddaa2a5
m: Port to event-listener v5.0.0
Signed-off-by: John Nunley <dev@notgull.net>
2024-02-07 07:48:52 -08:00
Taiki Endo 706f2755dc Migrate to Rust 2021 2024-01-07 04:23:59 +09:00
Taiki Endo d5e9f90884 Bump MSRV to 1.60
https://github.com/crossbeam-rs/crossbeam/pull/1056
2024-01-07 04:23:59 +09:00
Taiki Endo fb47ab163a ci: Use cargo-hack's --rust-version flag for msrv check
This respects rust-version field in Cargo.toml, so it removes the need
to manage MSRV in both the CI file and Cargo.toml.
2024-01-07 04:23:59 +09:00
John Nunley e243d55a45
v2.1.1
Signed-off-by: John Nunley <dev@notgull.net>
2023-11-24 07:50:47 -08:00
John Nunley dab18deaa4
m: Bump to event-listener v4.0.0
This also bumps to event-listener-strategy v0.4.0

Signed-off-by: John Nunley <dev@notgull.net>
2023-11-21 06:10:49 -08:00
John Nunley f87b7a1890
v2.1.0
Signed-off-by: John Nunley <dev@notgull.net>
2023-11-05 17:20:52 -08:00
dependabot[bot] 9bb7ed133b Update futures-lite requirement from 1 to 2
Updates the requirements on [futures-lite](https://github.com/smol-rs/futures-lite) to permit the latest version.
- [Release notes](https://github.com/smol-rs/futures-lite/releases)
- [Changelog](https://github.com/smol-rs/futures-lite/blob/master/CHANGELOG.md)
- [Commits](https://github.com/smol-rs/futures-lite/compare/v1.0.0...v2.0.0)

---
updated-dependencies:
- dependency-name: futures-lite
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-31 03:07:45 +09:00
John Nunley 7335004108
v2.0.0
Signed-off-by: John Nunley <dev@notgull.net>
2023-10-24 20:18:26 -07:00
John Nunley 47a2bed5c2
m: Update to e-l-s breaking changes
Make sure that smol-rs/event-listener-strategy#6 doesn't break the
other main use case.

Signed-off-by: John Nunley <dev@notgull.net>
2023-09-22 07:30:09 -07:00
John Nunley 642c52b0ea
Add explicit web support (#67)
This commit allows async-channel to be used fully in web environments

Signed-off-by: John Nunley <dev@notgull.net>
2023-09-16 21:11:25 -07:00
John Nunley 618701fab5
Merge pull request #59 from smol-rs/notgull/evl-3.0
Bump to event-listener v3.0.0
2023-09-15 18:25:10 -07:00
John Nunley 17774b34ae Switch to using published crates
Replace the Git patch and use event-listener v3.0.0 and
event-listener-strategy v0.1.0 from crates.io.

Signed-off-by: John Nunley <dev@notgull.net>
2023-09-15 18:20:17 -07:00
John Nunley a8cd074bda Add an std feature
This feature can be disabled to allow the crate to be used without
the standard library on embedded environments.

Closes #64

Signed-off-by: John Nunley <dev@notgull.net>
2023-09-15 18:20:13 -07:00
John Nunley 6d99af0ef4 Fix test errors and make futures !Unpin
This is a breaking change. However, it comes with the ability to avoid
heap allocations in many cases, which is a significant boon for users
for async-channel.

Signed-off-by: John Nunley <dev@notgull.net>
2023-09-15 18:20:00 -07:00
jtnunley 51ab1273b4 Bump to event-listener v3.0.0
This commit makes async-channel use the new release of event-listener.
Highlights include a marked increase in efficiency and no_std support.

Supersedes #54

Signed-off-by: John Nunley <dev@notgull.net>
2023-09-15 18:17:59 -07:00
Taiki Endo dede8857bd Update actions/checkout action to v4 2023-09-10 18:17:13 +09:00
John Nunley 4cae9cb0cb
Add smol-rs logo (#65) 2023-07-17 14:41:13 +09:00
John Nunley 3d6cd8f6be
v1.9.0 2023-07-07 21:21:00 -07:00
Pierre Krieger 49216cde08
bugfix: Manually implement `Clone` on `WeakSender/Receiver` 2023-07-05 06:13:47 -07:00
Taiki Endo f030a04df4 Update permissions for security_audit 2023-06-09 00:13:00 +09:00
Taiki Endo 4b919beb3f Minimize GITHUB_TOKEN permissions
Refs: https://github.blog/changelog/2021-04-20-github-actions-control-permissions-for-github_token
2023-06-09 00:11:35 +09:00
Taiki Endo dd71f5fa96 Set CARGO_NET_GIT_FETCH_WITH_CLI=true in CI 2023-06-09 00:11:35 +09:00
Jay Fleischer 14ba7078eb
fix: Patch Weak Increment Race Condition (#60) 2023-06-04 15:12:14 -07:00
Taiki Endo a0ba218942 Enable dependabot update for Rust 2022-12-28 12:24:37 +09:00
Taiki Endo a575e37175 Clean up CI config 2022-12-28 12:24:37 +09:00
Taiki Endo c273864b03 Release 1.8.0 2022-11-29 23:08:32 +09:00
Taiki Endo eec823edae Remove msrv field from .clippy.toml
Since Rust 1.64, Clippy respects `rust-version` field in Cargo.toml.
rust-lang/rust@b776fb8
2022-11-29 23:08:32 +09:00
John Nunley 7059509614
Add weak sender and receiver (#51) 2022-11-27 22:30:24 -08:00
Sebastian Dröge 530a2ed2aa Update to concurrent-queue 2 2022-11-09 23:29:25 +09:00
Serge Barral 736bc72c83
Prevent deadlock if sender/receiver is forgotten (#49) 2022-09-27 11:36:01 -07:00
Taiki Endo 0a5310838b Release 1.7.1 2022-08-11 00:36:38 +09:00
Taiki Endo 477b212dc4 Release 1.7.0 2022-08-08 23:38:58 +09:00
Taiki Endo 468df487a1 Minor doc fixes 2022-08-08 23:38:46 +09:00
John Nunley aa25b95e25
Add blocking functionality to channels (#47) 2022-08-08 23:33:02 +09:00
Taiki Endo 94cdc43f4e Ignore clippy::bool_assert_comparison lint in tests
```
warning: used `assert_eq!` with a literal bool
  --> tests/unbounded.rs:37:5
   |
37 |     assert_eq!(s.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:38:5
   |
38 |     assert_eq!(s.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:40:5
   |
40 |     assert_eq!(r.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/unbounded.rs:41:5
   |
41 |     assert_eq!(r.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:46:5
   |
46 |     assert_eq!(s.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:47:5
   |
47 |     assert_eq!(s.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:49:5
   |
49 |     assert_eq!(r.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:50:5
   |
50 |     assert_eq!(r.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:55:5
   |
55 |     assert_eq!(s.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/unbounded.rs:56:5
   |
56 |     assert_eq!(s.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:58:5
   |
58 |     assert_eq!(r.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/unbounded.rs:59:5
   |
59 |     assert_eq!(r.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:40:5
   |
40 |     assert_eq!(s.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:41:5
   |
41 |     assert_eq!(s.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!(r.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/bounded.rs:44:5
   |
44 |     assert_eq!(r.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!(s.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!(s.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:52:5
   |
52 |     assert_eq!(r.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:53:5
   |
53 |     assert_eq!(r.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:58:5
   |
58 |     assert_eq!(s.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:59:5
   |
59 |     assert_eq!(s.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:61:5
   |
61 |     assert_eq!(r.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:62:5
   |
62 |     assert_eq!(r.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:67:5
   |
67 |     assert_eq!(s.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:68:5
   |
68 |     assert_eq!(s.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:70:5
   |
70 |     assert_eq!(r.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:71:5
   |
71 |     assert_eq!(r.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 21:19:38 +09:00
Taiki Endo c975cc0a77 Apply clippy to all targets 2022-07-17 21:19:27 +09:00
Taiki Endo 063438f96a Update CI config 2022-07-08 01:43:14 +09:00
Taiki Endo 2079dd21ee Update must_use message to match std 2022-07-02 23:29:58 +09:00
Taiki Endo eaadce00de Remove unused dev-dependency
Closes #46
2022-07-02 23:29:20 +09:00
Taiki Endo cb1c1679be Update actions/checkout action to v3 2022-05-01 13:25:53 +09:00
Taiki Endo 83073e9132 Create GitHub release automatically 2022-01-08 18:54:10 +09:00
Taiki Endo c1bb0b4cdc Clean up CI config 2022-01-08 18:52:47 +09:00
Taiki Endo eb2b12e50a
Merge pull request #41 from DavidBM/patch-2
Fix documentation sentence
2021-05-21 21:03:53 +09:00
David Bonet 8ca7806b60
Fix documentation sentence 2021-05-19 17:56:34 -04:00
Zeeshan Ali eb2b3a882b Fix a C&P mistake
Pushing directly to master since it's a trivial fix.
2021-05-01 13:22:32 +02:00