Decision Workspace
sqlw vs bsql-query-macros vs tomplate
Side-by-side comparison of Rust crates
36
sqlw
experimentalv0.1.0
Compile-time SQL query building with schema-safe field references and automatic parameter binding
52
bsql-query-macros
experimentalv1.0.0-alpha.5
Proc-macro foundation for bsql's compile-checked query API. Reads the schema catalog generated at build time by bsql-build and validates referenced table.column pairs against the real migration-replayed schema, emitting compile_error for unknown tables/columns. Reads its input only at expansion; ships no runtime types.
39
tomplate
growingv0.1.0
TOML-based compile-time template composition for Rust
Core Metrics
| sqlw | bsql-query-macros | tomplate | |
|---|---|---|---|
| Health Score | 36 | 52 | 39 |
| Total Downloads | 31 | 149 | 355 |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 1 | 5 | 0 |
| Releases | 1 | 5 | 1 |
| Last Updated | 149d ago | 34d ago | 389d ago |
| Age | 4m | 2m | 1y |
Health Breakdown
sqlw
Maintenance
6
Quality
9
Community
6
Popularity
2
Documentation
13
bsql-query-macros
Maintenance
11
Quality
18
Community
8
Popularity
3
Documentation
12
tomplate
Maintenance
2
Quality
18
Community
6
Popularity
3
Documentation
10
Technical Details
| sqlw | bsql-query-macros | tomplate | |
|---|---|---|---|
| Version | 0.1.0 | 1.0.0-alpha.5 | 0.1.0 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✗ No |
| License | MIT | MIT OR Apache-2.0 | MIT OR Apache-2.0 |
| Dependencies | 5 | 5 | 2 |
| Crate Size | 33KB | 48KB | 12KB |
| Features | 2 | 2 | 6 |
| Yanked % | 100.0% | 0.0% | 0.0% |
| Edition | 2024 | 2024 | 2024 |
| MSRV | — | 1.96 | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •bsql-query-macros leads with a health score of 52/100, but none of the options score above 80.
- •tomplate has the most downloads (355), suggesting wider adoption.
- •⚠ tomplate has not been updated in over a year.
- •sqlw, tomplate are pre-1.0 — API may change.