Registry / utility / maybe-async-cfg

maybe-async-cfg

JSON →
library0.2.5rscratesunverified

A procedural macro to unify sync and async implementations based on crate features.

# Cargo.toml [dependencies] maybe-async-cfg = "0.2.5"
INSTALL
IMPORT
SIG · MAYBE-ASYNC-CFG
M
maybe-async-cfg
utilityrustv0.2.5
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_cfg
use maybe_async_cfg::maybe_async_cfg;

Define a function that can be either sync or async based on a feature flag.

use maybe_async_cfg::maybe_async_cfg; #[maybe_async_cfg] fn fetch_data() -> String { "data".to_string() }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.2.5latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

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