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§
Structs§
- Error
- Include
- An include directive from the source file.
- Input
Amount - Input amount for entry creation.
- Input
Cost - Input cost for entry creation.
- Input
Posting - Input posting for entry creation.
- Ledger
Options - Plugin
- A plugin directive from the source file.
Enums§
- Input
Cost Number - Input cost-number for entry creation.
- Input
Entry - Input entry for create-entry/format-entry commands.
Constants§
- API_
VERSION - API version this server compiled against. Reported as the
api_versionfield on every method’s response (util.version,ledger.load, etc.).
Functions§
- input_
entry_ to_ directive - Convert
InputEntryto core Directive.