Crate spin_sdk

Source
Expand description

The Rust Spin SDK.

Modules§

  • Helpers for building Spin wasi-http components.
  • Key/Value storage. Spin key-value persistent storage
  • Large Language Model APIs
  • Implementation of the spin mqtt interface.
  • Implementation of the Spin MySQL database interface. Conversions between Rust, WIT and MySQL types.
  • Implementation of the spin postgres db interface. Conversions between Rust, WIT and Postgres types.
  • Implementation of the spin postgres v3 db interface. Conversions between Rust, WIT and Postgres types.
  • Implementation of the spin redis interface.
  • SQLite storage.

Macros§

  • A macro to help with constructing a Router from a stream of tokens.

Attribute Macros§

  • Exports the procedural macros for writing handlers for Spin components. The entrypoint to a WASI HTTP component written in Rust.
  • Exports the procedural macros for writing handlers for Spin components. Generates the entrypoint to a Spin Redis component written in Rust.