21 releases (stable)

new 1.10.0 Feb 10, 2025
1.9.1 Nov 26, 2024
1.8.0 Oct 22, 2024
1.5.0 Jul 23, 2024
0.2.0 Oct 4, 2023

#355 in Encoding

Download history 2040/week @ 2024-10-24 1573/week @ 2024-10-31 1827/week @ 2024-11-07 2757/week @ 2024-11-14 2570/week @ 2024-11-21 3312/week @ 2024-11-28 3048/week @ 2024-12-05 3505/week @ 2024-12-12 2073/week @ 2024-12-19 1442/week @ 2024-12-26 3263/week @ 2025-01-02 2618/week @ 2025-01-09 4661/week @ 2025-01-16 3623/week @ 2025-01-23 2521/week @ 2025-01-30 3909/week @ 2025-02-06

15,105 downloads per month
Used in 28 crates (3 directly)

BSD-3-Clause

23KB
445 lines

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.


lib.rs:

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) 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.

Dependencies

~2.5–4MB
~81K SLoC