19 releases (stable)

new 1.9.0 Nov 19, 2024
1.7.0 Sep 24, 2024
1.5.0 Jul 23, 2024
1.2.0 Mar 12, 2024
0.2.0 Oct 4, 2023

#459 in Encoding

Download history 1853/week @ 2024-08-03 1656/week @ 2024-08-10 3825/week @ 2024-08-17 2151/week @ 2024-08-24 2371/week @ 2024-08-31 2579/week @ 2024-09-07 2325/week @ 2024-09-14 4295/week @ 2024-09-21 3734/week @ 2024-09-28 3862/week @ 2024-10-05 2341/week @ 2024-10-12 2813/week @ 2024-10-19 1891/week @ 2024-10-26 1272/week @ 2024-11-02 2230/week @ 2024-11-09 2177/week @ 2024-11-16

7,865 downloads per month
Used in 23 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
~80K SLoC