gcp-cloudrun-client-rust

Crates.iogcp-cloudrun-client-rust
lib.rsgcp-cloudrun-client-rust
version0.4.0
created_at2025-10-09 01:07:05.473351+00
updated_at2025-12-11 17:49:19.871246+00
descriptionGCP client call Cloud Run minimum viable MCP server
homepage
repositoryhttps://github.com/xbill9/gemini-cli-codeassist
max_upload_size
id1874792
size77,833
xbill (xbill9)

documentation

README

gcp-client-rust

A basic client program that performs a google cloud client api call in Rust.

Technologies Used

Getting Started

A Makefile is included to simplify common development tasks.

Prerequisites

Before you begin, ensure you have the following installed:

Initial Setup

Clone the repository and install the necessary dependencies:

cargo build

Development Workflow

The following commands are available through the Makefile.

Building the Project

  • Development Build:
    make build
    
  • Release Build (optimized for production):
    make release
    

Running Locally

To start the server:

make run

Code Quality

  • Format the code:
    make format
    
  • Lint the code with Clippy:
    make clippy
    

Testing

Run the test suite:

make test

Deployment

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:

  1. Submit a build to Google Cloud Build.
  2. Build and push the Docker image to Google Container Registry (GCR).
  3. Deploy the new image to the cloudrun-rust service in the us-central1 region.
Commit count: 0

cargo fmt