#shuttle-service #metadata

shuttle-metadata

Plugin to get Shuttle service information

20 releases (breaking)

0.39.0 Feb 14, 2024
0.37.0 Jan 24, 2024
0.35.2 Dec 21, 2023
0.34.1 Nov 29, 2023

#303 in Configuration

Download history 3/week @ 2023-11-11 24/week @ 2023-11-18 14/week @ 2023-11-25 11/week @ 2023-12-02 9/week @ 2023-12-09 10/week @ 2023-12-16 2/week @ 2023-12-23 2/week @ 2023-12-30 8/week @ 2024-01-06 6/week @ 2024-01-13 29/week @ 2024-01-20 14/week @ 2024-01-27 8/week @ 2024-02-03 133/week @ 2024-02-10 103/week @ 2024-02-17 123/week @ 2024-02-24

371 downloads per month

Apache-2.0

3KB

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

Dependencies

~15–28MB
~431K SLoC