Registry / async / maybe-async

maybe-async

JSON →
library0.2.11rscratesunverified

A procedural macro to unify synchronous and asynchronous implementations.

# Cargo.toml [dependencies] maybe-async = "0.2.11"
INSTALL
IMPORT
SIG · MAYBE-ASYNC
M
maybe-async
asyncrustv0.2.11
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

maybe_async
use maybe_async::maybe_async;

Use the maybe_async macro to write dual sync/async functions.

use maybe_async::maybe_async; #[maybe_async] async fn fetch_data() -> String { "data".to_string() } fn main() { // Works in both sync and async contexts }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.2.11latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
18 hits · last 30 days
node
16
OpenAI (training)
1
Resources
maybe-async — cargo add maybe-async · libregistry