shuttle-metadata 0.35.2

Plugin to get Shuttle service information
Documentation

Shuttle Metadata

This plugin allows applications to obtain certain information about their runtime environment.

Usage

Add shuttle-metadata to the dependencies for your service.

You can get this resource using the shuttle_metadata::ShuttleMetadata attribute to get a Metadata. This struct will contain information such as the Shuttle service name.

#[shuttle_runtime::main]
async fn app(
    #[shuttle_metadata::ShuttleMetadata] metadata: shuttle_metadata::Metadata,
) -> __ { ... }

Example projects that use shuttle-metadata

Framework Link
Axum axum example