safina
A safe Rust async runtime.
Features
forbid(unsafe_code)- Depends only on
std - Good test coverage (>92%)
Limitations
- Requires Rust
nightly, for OnceCell and Wake trait - Allocates memory. You can avoid allocations by using advanced functions, like
safina_executor::spawn_unpin. - Not optimized
Documentation
safina_async_test
has an #[async_test] macro for running async fn test functions.
Examples
increase_threads_to;
let = channel;
spawn;
receiver.recv.unwrap;
spawn;
let result = block_on?;
Alternatives
- smol
- Popular
- Contains generous amounts of
unsafecode
- async-std
- Very popular
- Contains generous amounts of
unsafecode
- tokio
- Very popular
- Fast
- Internally extremely complicated
- Full of
unsafe
- nostd_async
Changelog
- v0.1.3 - Update readme
- v0.1.2 - Renamed
safinacrate tosafina-executor. Added newsafinacrate with re-exports, examples, and integration tests. - v0.1.1 - Add badges to readme
- v0.1.0 - First published version
TO DO
- Add an integration test
- Add
initfunction that starts worker threads and the timer thread. - Make it work on Rust stable
- Add an #[async_main] macro
Release Process
- Edit
Cargo.tomland bump version number. - Run
./release.sh
License: Apache-2.0