2 releases
0.0.1 | Dec 26, 2024 |
---|---|
0.0.0 | Dec 26, 2024 |
#234 in #google-cloud
240 downloads per month
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 thegcloud
CLI and automatically manages Docker images for you.
Quick Start
Install cargo-cloudrun
:
cargo install cargo-cloudrun
Dependencies
~7–16MB
~190K SLoC