firebase-rs
Installation
SKILL.md
Firebase RS
Workflow
Use this skill for firebase-rs, the Rust crate exposed as firebase_rs, when implementing Firebase Realtime Database access through its REST API wrapper.
- Inspect the project first: confirm async runtime, error handling style, config/env conventions, and whether
serdemodels already exist. - Add dependencies conservatively. Typical app dependencies are
firebase-rs,serdewithderive, and an async runtime such astokio. - Keep Firebase database URLs and auth tokens in config or environment variables. Do not hardcode secrets in examples or committed code.
- Build paths with chained
.at("segment")calls instead of manual URL string concatenation. - Prefer typed
get::<T>(),set(&value), andupdate(&value)over raw strings unless the caller explicitly wants raw JSON/text. - Match existing project error style. Avoid
.unwrap()in production code unless nearby code uses panics for setup failures. - Run the Rust formatter and the relevant tests/checks after edits.
Project Setup
Check the latest crate version before pinning if the user asks for current dependencies. The crate name in Cargo.toml is firebase-rs; the Rust module path is firebase_rs.
Typical dependency shape: