maybe-async-rs icon indicating copy to clipboard operation
maybe-async-rs copied to clipboard

A procedure macro to unify SYNC and ASYNC implementation for downstream application/crates

Results 11 maybe-async-rs issues
Sort by recently updated
recently updated
newest added

I maintain some libraries that have sync and async users. The async users wrap calls in `spawn_blocking`, which works, but isn't ergonomic and may be suboptimal. `maybe_async` looks like it...

I have the following test case: ``` #[cfg(test)] mod tests { #[cfg(feature = "async")] use tokio; #[maybe_async::test( feature="blocking", async(feature = "async", tokio::test) )] async fn test_oauth() { ... let client...

This crate currently uses the `async_trait` crate to support async functions in traits. My understanding of async is not very deep but I wonder if it would be possible to...

This PR does essentially two things: - Adds an enabled-by-default feature `legacy-syntax` and gates the `test` macro behind that feature - Adds a `syn-2` feature to enabled use of `syn`...

Hey! I just noticed something that seems kind of bad! The `is_sync` feature of maybe-async breaks stuff. Here's an example: Create a new, empty crate, add these dependencies: ```toml crates-index...

According to the readme I can apply the macro to struct definitions. However if I do this on an `impl` block for a struct (without trait) I get an error...

Updates the requirements on [syn](https://github.com/dtolnay/syn) to permit the latest version. Release notes Sourced from syn's releases. 2.0.4 Improve error reporting when parsing identifiers and paths (#1415, #1416) Commits 91ca7c0 Release...

dependencies

When using `#[maybe_async::maybe_async(AFIT)]` on public traits, I get the following warning: `use of "async fn" in public traits is discouraged as auto trait bounds cannot be specified`. I understand why...