gemini-cost
v0.1.0 ExperimentalCalculate Google Gemini API call cost from a usage block. Cache-aware, supports Gemini 2.5 Pro/Flash/Flash-Lite and 2.0 families, BYO pricing override. No SDK dependency.
Quick Verdict
- โActively maintained (updated 58d ago)
- !Pre-1.0: API may have breaking changes
- โTiny footprint (11KB, 3 deps)
- โPermissive license (MIT OR Apache-2.0)
Security
Deep Insights
5 downloads in the last 30 days, down 64% from the previous period. May indicate migration to alternatives.
The primary maintainer publishes 176 crates. This suggests deep Rust expertise and long-term commitment to the ecosystem.
Only 3 direct dependencies. Lean dependency tree means faster builds and lower supply chain risk.
At 11KB, gemini-cost is lightweight. Small crate size correlates with focused, well-scoped functionality.
Health Breakdown
Recency, release consistency, active ratio
Yanked ratio, deps, size, maturity, features
Reverse deps, ownership, ecosystem
Downloads, momentum, growth trend
Docs, repo, license, metadata