12 releases (7 stable)

new 1.3.0 May 22, 2024
1.2.0 Mar 12, 2024
1.1.0 Feb 22, 2024
1.0.3 Jan 22, 2024
0.1.0 Oct 4, 2023

#509 in Encoding

Download history 3820/week @ 2024-02-05 4364/week @ 2024-02-12 3395/week @ 2024-02-19 4327/week @ 2024-02-26 2746/week @ 2024-03-04 2498/week @ 2024-03-11 2775/week @ 2024-03-18 1664/week @ 2024-03-25 2505/week @ 2024-04-01 2466/week @ 2024-04-08 1304/week @ 2024-04-15 2314/week @ 2024-04-22 2470/week @ 2024-04-29 1889/week @ 2024-05-06 1951/week @ 2024-05-13 1924/week @ 2024-05-20

8,341 downloads per month
Used in 20 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