{"id":15138233,"url":"https://github.com/gresau/rocket-lamb","last_synced_at":"2025-09-29T06:31:32.299Z","repository":{"id":51939931,"uuid":"199279009","full_name":"GREsau/rocket-lamb","owner":"GREsau","description":"A crate to allow running a Rocket webserver as an AWS Lambda Function with API Gateway or an Application Load Balancer","archived":true,"fork":false,"pushed_at":"2019-09-01T16:45:18.000Z","size":71,"stargazers_count":81,"open_issues_count":3,"forks_count":19,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-01-17T04:31:15.997Z","etag":null,"topics":["api-gateway","lambda","rocket","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GREsau.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-28T11:30:58.000Z","updated_at":"2024-06-10T00:40:50.000Z","dependencies_parsed_at":"2022-09-12T23:21:38.428Z","dependency_job_id":null,"html_url":"https://github.com/GREsau/rocket-lamb","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GREsau%2Frocket-lamb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GREsau%2Frocket-lamb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GREsau%2Frocket-lamb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GREsau%2Frocket-lamb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GREsau","download_url":"https://codeload.github.com/GREsau/rocket-lamb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234597573,"owners_count":18857980,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-gateway","lambda","rocket","rust"],"created_at":"2024-09-26T07:21:17.080Z","updated_at":"2025-09-29T06:31:26.991Z","avatar_url":"https://github.com/GREsau.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🚀 Rocket Lamb 🐑\n\n[![Travis (.org)](https://img.shields.io/travis/GREsau/rocket-lamb?logo=travis)](https://travis-ci.org/GREsau/rocket-lamb)\n[![Crates.io](https://img.shields.io/crates/v/rocket_lamb)](https://crates.io/crates/rocket_lamb)\n\nA crate to allow running a [Rocket](https://rocket.rs/) webserver as an AWS Lambda Function with API Gateway, built on the [AWS Lambda Rust Runtime](https://github.com/awslabs/aws-lambda-rust-runtime).\n\nThe function takes a request from an AWS API Gateway Proxy and converts it into a `LocalRequest` to pass to Rocket. Then it will convert the response from Rocket into the response body that API Gateway understands.\n\nThis *should* also work with requests from an AWS Application Load Balancer, but this has not been tested.\n\n## Usage\n\n```rust\n#![feature(proc_macro_hygiene, decl_macro)]\n\n#[macro_use] extern crate rocket;\nuse rocket_lamb::RocketExt;\n\n#[get(\"/\")]\nfn hello() -\u003e \u0026'static str {\n    \"Hello, world!\"\n}\n\nfn main() {\n    rocket::ignite()\n        .mount(\"/hello\", routes![hello])\n        .lambda() // launch the Rocket as a Lambda\n        .launch();\n}\n```\n\nFor a full example including instructions on deploying to Lambda and configuring binary responses, see [Example Rocket Lamb API](https://github.com/GREsau/example-rocket-lamb-api).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgresau%2Frocket-lamb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgresau%2Frocket-lamb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgresau%2Frocket-lamb/lists"}