webylib-macros 0.3.20

Procedural macros for webylib: #[wallet_op], #[asset_storage], #[ffi_export]
Documentation

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 the Store trait from a struct definition.
  • #[ffi_export] — generates the extern "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 handwritten src/ffi/wallet_ops.rs with one source of truth.