Crates.io | extism-convert |
lib.rs | extism-convert |
version | 1.8.0 |
source | src |
created_at | 2023-10-04 19:38:43.077343 |
updated_at | 2024-10-22 16:51:04.87887 |
description | Traits to make Rust types usable with Extism |
homepage | https://extism.org |
repository | https://github.com/extism/extism |
max_upload_size | |
id | 992984 |
size | 22,416 |
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.
See extism-convert on docs.rs for in-depth documentation.