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

#337 in Encoding

Download history 2860/week @ 2024-10-21 1953/week @ 2024-10-28 1087/week @ 2024-11-04 2406/week @ 2024-11-11 2542/week @ 2024-11-18 3289/week @ 2024-11-25 2909/week @ 2024-12-02 3508/week @ 2024-12-09 3031/week @ 2024-12-16 1477/week @ 2024-12-23 1929/week @ 2024-12-30 3235/week @ 2025-01-06 3297/week @ 2025-01-13 5015/week @ 2025-01-20 2319/week @ 2025-01-27 3169/week @ 2025-02-03

13,972 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.4–4MB
~80K SLoC