| Crates.io | weather-gcp-test-rust |
| lib.rs | weather-gcp-test-rust |
| version | 0.2.0 |
| created_at | 2025-10-26 13:50:09.022451+00 |
| updated_at | 2025-12-07 01:11:05.70511+00 |
| description | A simple weather forecaster |
| homepage | |
| repository | https://github.com/xbill9/gemini-cli-codeassist |
| max_upload_size | |
| id | 1901418 |
| size | 119,633 |
A simple, containerized Rust web server for fetching weather information, designed for deployment on Google Cloud Run.
This project provides a basic "Hello, World!" style web application written in Rust. It serves as a template and example for building and deploying a minimal, secure, and efficient Rust application on Google Cloud Run using Docker and Google Cloud Build.
A Makefile is included to simplify common development tasks.
Before you begin, ensure you have the following installed:
Clone the repository and install the necessary dependencies:
cargo build
The following commands are available through the Makefile.
make build
make release
To start the server on http://localhost:8080:
make run
make format
make clippy
Run the test suite:
make test
Deployment is automated via Google Cloud Build, as defined in cloudbuild.yaml. The process uses a multi-stage Dockerfile to build a minimal, secure production image based on gcr.io/distroless/cc-debian12.
To manually trigger a deployment, run:
make deploy
This command will:
cloudrun-rust service in the us-central1 region.