Registry / web-framework / spin-sdk

spin-sdk

JSON →
library6.0.0rscratesunverified

The Spin Rust SDK makes it easy to build Spin components in Rust.

# Cargo.toml [dependencies] spin-sdk = "6.0.0"
INSTALL
IMPORT
SIG · SPIN-SDK
S
spin-sdk
web-frameworkrustv6.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Router
use spin_sdk::http::Router;

Creates a simple HTTP router for Spin components.

use spin_sdk::http::{Router, Request, Response}; fn handle_request(req: Request) -> Response { Router::new().handle(req) }
Debug
Known issues
gotchaRequires the Spin runtime to execute; not a standalone library.
fix
Ensure you deploy to a Spin environment or use the Spin CLI for local testing.
affects: >= 1.0
Upgrade
Version history
6.0.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Resources
spin-sdk — cargo add spin-sdk · libregistry