Registry / cloud / shuttle-service

shuttle-service

JSON →
library0.57.0rscratesunverified

The core traits for running services on Shuttle (shuttle.dev)

# Cargo.toml [dependencies] shuttle-service = "0.57.0"
INSTALL
IMPORT
SIG · SHUTTLE-SERVICE
S
shuttle-service
cloudrustv0.57.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.

ShuttleService
use shuttle_service::ShuttleService;

Implement ShuttleService trait for a custom service

use shuttle_service::ShuttleService; struct MyService; impl ShuttleService for MyService { type Error = std::convert::Infallible; type Future = std::future::Ready<Result<(), Self::Error>>; fn bind(mut self, _addr: std::net::SocketAddr) -> Self::Future { std::future::ready(Ok(())) } }
Debug
Known issues
gotchaRequires shuttle runtime and cargo-shuttle CLI for deployment
fix
Install cargo-shuttle and use `cargo shuttle run`
affects: >=0.50.0
Upgrade
Version history
0.57.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
25 hits · last 30 days
node
18
Amazon
1
Resources