https://github.com/ardaku/whisk
Simple and fast async channels
https://github.com/ardaku/whisk
async async-rust channels executor-agnostic mpmc mpmc-queue rust rust-crate rust-library
Last synced: 6 months ago
JSON representation
Simple and fast async channels
- Host: GitHub
- URL: https://github.com/ardaku/whisk
- Owner: ardaku
- License: apache-2.0
- Created: 2022-02-27T03:46:58.000Z (over 3 years ago)
- Default Branch: stable
- Last Pushed: 2024-06-22T20:58:28.000Z (over 1 year ago)
- Last Synced: 2025-04-22T21:12:36.722Z (6 months ago)
- Topics: async, async-rust, channels, executor-agnostic, mpmc, mpmc-queue, rust, rust-crate, rust-library
- Language: Rust
- Homepage: https://docs.rs/crate/whisk/latest
- Size: 805 KB
- Stars: 15
- Watchers: 2
- Forks: 1
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE_APACHE
Awesome Lists containing this project
README
# Whisk
[](https://github.com/ardaku/whisk/actions/workflows/ci.yml)
[](https://github.com/ardaku/whisk/)
[](https://github.com/ardaku/whisk/graphs/contributors)
[](https://crates.io/crates/whisk)
[](https://crates.io/crates/whisk)
[](https://crates.io/crates/whisk)
[](https://github.com/ardaku/whisk/search?l=Text&q=license)
[](https://docs.rs/whisk/)#### Simple and fast lockless async channels
Simple and fast async channels that can be used to implement futures, streams,
notifiers, and actors. Whisk is purposely kept small, implemented in under 1000
lines of Rust code, with zero dependencies (not including feature flags to
enable implementation of traits from other crates) - and also works on `no_std`!## Benchmarks
Naïve benchmarks for v0.13.0 actor on pasts runtime (compared with dynamic
library) with Rust 1.78.0:> ```
> Dynamic library: 12ns
> Whisk (2-thread): 1.102µs
> Flume (2-thread): 1.013µs
> Whisk (1-thread): 1.151µs
> Flume (1-thread): 1.532µs
> ```## MSRV
The current MSRV is Rust 1.70.
MSRV is updated according to the [Ardaku MSRV guidelines].
## License
Copyright © 2022-2024 The Whisk Crate Contributor(s)
Licensed under any of
- Apache License, Version 2.0, ([LICENSE_APACHE] or
)
- Boost Software License, Version 1.0, ([LICENSE_BOOST] or
)
- MIT License, ([LICENSE_MIT] or )at your option.
### Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in the work by you, as defined in the Apache-2.0 license, shall be
dual licensed as above, without any additional terms or conditions.## Help
If you want help using or contributing to this library, feel free to send me an
email at .[Ardaku MSRV guidelines]: https://github.com/ardaku/.github/blob/v1/profile/MSRV.md
[LICENSE_APACHE]: https://github.com/ardaku/whisk/blob/v0/LICENSE_APACHE
[LICENSE_MIT]: https://github.com/ardaku/whisk/blob/v0/LICENSE_MIT
[LICENSE_BOOST]: https://github.com/ardaku/whisk/blob/v0/LICENSE_BOOST