Crate extism_pdk Copy item path Source pub use memory::ManagedMemory ;
pub use memory::Memory ;
pub use memory::MemoryPointer ;
pub use http::HttpResponse ;
pub use serde_json as json;
config Functions to read plug-in config extism http Types and functions for making HTTP requests memory var Functions to manipulate plug-in variables debug encoding The encoding
macro can be used to create newtypes that implement a particular encoding for the
inner value. error info log set_var trace unwrap warn Base64 Base64 string Error The Error
type, a wrapper around a dynamic error type. HttpRequest HTTP request type
Generic HTTP request structure Json Json encoding MemoryHandle MemoryHandle
describes where in memory a block of data is storedMsgpack Msgpack encoding Prost Protobuf encoding Raw Raw does no conversion, it just copies the memory directly.
Note: This will only work for types that implement bytemuck::Pod WithReturnCode LogLevel Logging levels FromBytes FromBytes
is used to define how a type should be decoded when working with
Extism memory. It is used for plugin output and host function input.FromBytesOwned FromBytesOwned
is similar to FromBytes
but it doesn’t borrow from the input slice.
FromBytes
is automatically implemented for all types that implement FromBytesOwned
.ToBytes ToBytes
is used to define how a type should be encoded when working with
Extism memory. It is used for plugin input and host function output.ToMemory input Get input bytes from host and convert into T
input_bytes Get input bytes from host output Set output for host FnResult The return type of a plugin function SharedFnResult The return type of a shared_fn
host_fn host_fn
is used to import a host function from an extern
blockplugin_fn plugin_fn
is used to define an Extism callable function to exportshared_fn shared_fn
is used to define a function that will be exported by a plugin but is not directly
callable by an Extism runtime. These functions can be used for runtime linking and mocking host
functions for tests. If direct access to Wasm native parameters is needed, then a bare
extern "C" fn
should be used instead.FromBytes ToBytes