#deployment #google-cloud #run #applications #cargo #events #http

app cargo-cloudrun

A Cargo extension to easily deploy Rust applications to Google Cloud Run

2 releases

0.0.1 Dec 26, 2024
0.0.0 Dec 26, 2024

#234 in #google-cloud

Download history 238/week @ 2024-12-24 2/week @ 2024-12-31

240 downloads per month

MIT license

25KB
376 lines

cargo-cloudrun

cargo-cloudrun is a command-line tool for deploying Rust applications to Google Cloud Run. It wraps the gcloud CLI to simplify the deployment process—no manual Docker builds or direct interaction with the Google Cloud Console required.

Inspired by the ergonomics of cargo-lambda, cargo-cloudrun can be used to create Cloud Run services that handle HTTP requests or event triggers in a function-like style. It also supports monolithic Rust applications.

Features

  • Easy Deployments
    Deploy Rust applications to Cloud Run with a single command (cargo cloudrun deploy)—no Dockerfiles or manual steps needed.

  • HTTP & Event Support
    Similar to Cloud Run Functions, you can build services that handle HTTP requests or respond to events.

  • Monolithic or Microservice
    Works equally well for single-crate monoliths or multi-crate, microservice-style architectures.

  • No Docker Skills Needed
    Under the hood, cargo-cloudrun uses the gcloud CLI and automatically manages Docker images for you.

Quick Start

Install cargo-cloudrun:

cargo install cargo-cloudrun

Dependencies

~7–16MB
~190K SLoC