Expand description
Procedural macros for webylib.
Three macros land here:
#[wallet_op]— generates lock/run-effect/emit-event/persist plumbing for a wallet operation. Mirrors webycash-server’s#[gen_server].#[asset_storage]— generates per-asset CRUD on theStoretrait from a struct definition.#[ffi_export]— generates theextern "C"shim, error-code marshaling, opaque-handle lifecycle, and async-callback bridging for the FFI layer. This is the macro that replaces the legacy 22K-LOC handwrittensrc/ffi/wallet_ops.rswith one source of truth.
Attribute Macros§
- asset_
storage #[asset_storage]— placeholder that re-emits the input unchanged. Generates per-asset CRUD on theStoretrait when populated.- ffi_
export - Attribute macro that takes an async (or sync) Rust function and emits a
matching
extern "C"shim. - wallet_
op #[wallet_op]— placeholder that re-emits the input unchanged. Real plumbing (lock/run/persist) lands when webylib-core operations migrate fromwebylib/src/wallet/operations.rs.