15 releases (stable)

new 1.5.0 Jul 23, 2024
1.3.0 May 22, 2024
1.2.0 Mar 12, 2024
1.0.0-rc7 Dec 16, 2023
0.2.0 Oct 4, 2023

#368 in Encoding

Download history 3082/week @ 2024-04-03 1827/week @ 2024-04-10 1373/week @ 2024-04-17 2545/week @ 2024-04-24 2314/week @ 2024-05-01 2161/week @ 2024-05-08 1386/week @ 2024-05-15 2515/week @ 2024-05-22 2296/week @ 2024-05-29 2112/week @ 2024-06-05 2620/week @ 2024-06-12 2455/week @ 2024-06-19 2585/week @ 2024-06-26 3382/week @ 2024-07-03 4541/week @ 2024-07-10 3467/week @ 2024-07-17

14,584 downloads per month
Used in 21 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.4–4MB
~78K SLoC