Skip to main content

Crate rustledger_ffi_wasi

Crate rustledger_ffi_wasi 

Source
Expand description

Slimmed FFI-support helpers for the rustledger WASI component FFI.

§Phase 5 (#1419) is complete

This crate used to expose a wasip1 JSON-RPC 2.0 embedding API (a server binary in main.rs + a jsonrpc router) plus a Directive → JSON output DTO. Both are gone: the JSON-RPC surface was retired earlier in Phase 5 (#1419) now that the typed WASI Preview 2 / Component Model binding, rustledger-ffi-component (#1384), is the default embedding path (default in rustfava as of Phase 4); the output DTO was removed once the component switched to converting core→WIT directly.

What remains is a library only of FFI-support glue the component reuses: the loader orchestration (helpers), the WIT-input construction path (input_entry_to_directive + the Input* types) and directive hashing (compute_directive_hash). These survivors are deliberately FFI glue kept OUT of the core rustledger-loader crate, so the crate is retained slimmed rather than relocated or deleted (the “retained … document the decision” outcome of #1419 item 6).

Re-exports§

pub use hash::compute_directive_hash;

Modules§

hash
Directive hashing (core → hash, DTO-free).
helpers
Helper functions and utilities.

Structs§

Error
Include
An include directive from the source file.
InputAmount
Input amount for entry creation.
InputCost
Input cost for entry creation.
InputPosting
Input posting for entry creation.
LedgerOptions
Plugin
A plugin directive from the source file.

Enums§

InputCostNumber
Input cost-number for entry creation.
InputEntry
Input entry for create-entry/format-entry commands.

Constants§

API_VERSION
API version this server compiled against. Reported as the api_version field on every method’s response (util.version, ledger.load, etc.).

Functions§

input_entry_to_directive
Convert InputEntry to core Directive.