11 releases (6 stable)

1.2.0 Mar 12, 2024
1.1.0 Feb 22, 2024
1.0.3 Jan 22, 2024
1.0.0-rc7 Dec 16, 2023
0.1.0 Oct 4, 2023

#728 in Encoding

Download history 3608/week @ 2024-01-05 3182/week @ 2024-01-12 3908/week @ 2024-01-19 3466/week @ 2024-01-26 3702/week @ 2024-02-02 4102/week @ 2024-02-09 3481/week @ 2024-02-16 4031/week @ 2024-02-23 3775/week @ 2024-03-01 2439/week @ 2024-03-08 2767/week @ 2024-03-15 1869/week @ 2024-03-22 1714/week @ 2024-03-29 3044/week @ 2024-04-05 1566/week @ 2024-04-12 1631/week @ 2024-04-19

8,153 downloads per month
Used in 19 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.6–4MB
~81K SLoC