-
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
I just ran across this procedural macro (function that generates code at compile time) library called maybe-async-cfg
.
Basically, this would allow conditionally exposing/compiling async or sync (or both) flavored APIs. The beauty is that we'd only have to write the async code, and this maybe-async-cfg
library will generate the sync flavored API.
Considerations
- This isn't hard requirement. User's can still wrap sync code in an async runtime tasks.
- Addressing this may not be as easy as adding
await
andasync
keywords where applicable. - The library already has a block-less
RF24::write()
function designed for using interrupts... - Node.js binding (using napi-rs project) support exposing (rust native) async code
- Python binding (using pyo3) does not yet officially support exposing (rust native) async code.
Metadata
Metadata
Assignees
Labels
No labels