Crate extism_pdk

source ·

Re-exports§

Modules§

  • Functions to read plug-in config
  • Types and functions for making HTTP requests
  • Functions to manipulate plug-in variables

Macros§

Structs§

  • Base64 string
  • The Error type, a wrapper around a dynamic error type.
  • HTTP request type Generic HTTP request structure
  • Json encoding
  • MemoryHandle describes where in memory a block of data is stored
  • Msgpack encoding
  • Protobuf encoding
  • Raw does no conversion, it just copies the memory directly. Note: This will only work for types that implement bytemuck::Pod

Enums§

Traits§

  • 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 is similar to FromBytes but it doesn’t borrow from the input slice. FromBytes is automatically implemented for all types that implement FromBytesOwned.
  • 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.

Functions§

  • Get input bytes from host and convert into T
  • Get input bytes from host
  • Set output for host

Type Aliases§

Attribute Macros§

  • host_fn is used to import a host function from an extern block
  • plugin_fn is used to define an Extism callable function to export
  • 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.

Derive Macros§