20 releases (stable)

1.9.1 Nov 26, 2024
1.8.0 Oct 22, 2024
1.5.0 Jul 23, 2024
1.2.0 Mar 12, 2024
0.2.0 Oct 4, 2023

#361 in Encoding

Download history 2427/week @ 2024-09-15 4472/week @ 2024-09-22 3681/week @ 2024-09-29 3703/week @ 2024-10-06 2292/week @ 2024-10-13 2808/week @ 2024-10-20 1879/week @ 2024-10-27 1181/week @ 2024-11-03 2319/week @ 2024-11-10 2577/week @ 2024-11-17 3114/week @ 2024-11-24 3159/week @ 2024-12-01 3246/week @ 2024-12-08 3317/week @ 2024-12-15 1376/week @ 2024-12-22 1913/week @ 2024-12-29

10,059 downloads per month
Used in 27 crates (2 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