mirror of
https://github.com/extism/extism.git
synced 2026-04-23 03:00:11 -04:00
(code from @zshipko, thank you!) --------- Co-authored-by: Zach Shipko <zach@dylibso.com>
extism-convert
The extism-convert crate is used by the Rust SDK and Rust PDK to provide a shared interface for encoding and decoding values that can be passed to Extism function calls.
A set of types (Json, Msgpack, Protobuf) that can be used to specify a serde encoding are also provided. These are similar to axum extractors - they are implemented as a tuple struct with a single field that is meant to be extracted using pattern matching.
Documentation
See extism-convert on docs.rs for in-depth documentation.