bors[bot] b46631fda3 Merge #3
3: Make use of pin! stabilization r=bertptrs a=bertptrs

With Rust 1.68 `std::pin::pin!` is stable therefore we can now use it to get rid of a pesky heap allocation in the executor.

This requires bumping MSRV to 1.68, but I feel this should be the last time that will happen, so after this I can cut the 1.0.

Co-authored-by: Bert Peters <bert@bertptrs.nl>
2023-03-11 11:39:18 +00:00
2023-03-11 12:24:05 +01:00
2023-03-11 12:14:21 +01:00
2022-09-01 22:22:28 +02:00
2022-09-05 20:09:29 +02:00
2023-03-11 12:24:05 +01:00
2023-03-11 12:24:05 +01:00
2022-09-01 22:22:28 +02:00
2023-03-11 12:24:05 +01:00

Beul

Beul is a minimalistic futures executor. No dependencies, no unsafe rust. It simply executes futures.

Usage

Simply call execute with your future:

beul::execute(async {});

Backwards compatibility

This crate requires at least Rust 1.68, due to its reliance on std::pin::pin!. Increases in this version will be considered breaking changes. This crate follows semantic versioning.

Limitations

Beul is a single-threaded executor and will not provide anything but execution. Futures that depend on runtime features, as present for example in Tokio, will not work.

License

Licensed under either of

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.

Description
It executes futures
Readme 51 KiB
Languages
Rust 100%