| Crates.io | firestore-client-rust |
| lib.rs | firestore-client-rust |
| version | 0.5.0 |
| created_at | 2025-10-09 22:00:24.112018+00 |
| updated_at | 2025-12-07 01:43:25.37028+00 |
| description | Basic Rust local Connection CLI tool to Firestore |
| homepage | |
| repository | https://github.com/xbill9/gemini-cli-codeassist |
| max_upload_size | |
| id | 1876232 |
| size | 84,751 |
This is a Rust command-line interface (CLI) application designed for basic interaction with Google Cloud Firestore. It provides a simple way to manage product data within a Firestore collection named "inventory".
firestore crate: Rust client library for Firestore.tokio: Asynchronous runtime for Rust.serde: Serialization and deserialization framework.clap: Command-line argument parser.anyhow: Flexible error handling.dotenv: Loads environment variables from a .env file.tracing: Application-level tracing for observability.gcloud auth application-default login or GOOGLE_APPLICATION_CREDENTIALS environment variable).Create a .env file in the project root with your Google Cloud Project ID:
PROJECT_ID=your-gcp-project-id
cargo build --release
cargo run --release seed
cargo run --release list
Replace <product_id> with the actual ID of a product.
cargo run --release get <product_id>
src/main.rs: Contains the main application logic, including product data structures, Firestore interaction functions, and CLI command handling.Cargo.toml: Defines project dependencies and metadata.Cargo.lock: Records the exact versions of dependencies.This project is licensed under the MIT OR Apache-2.0 License. See the Cargo.toml file for more details.