Decision Workspace
mongo_json_schema vs bson vs bson2
Side-by-side comparison of Rust crates
44
mongo_json_schema
experimentalv0.2.0
Generate MongoDB-compatible ($jsonSchema) JSON Schemas from Rust types, à la schemars.
61
bson
growingv3.1.0
Encoding and decoding support for BSON in Rust
50
bson2
growingv2.0.3
Encoding and decoding support for BSON in Rust
Core Metrics
| mongo_json_schema | bson | bson2 | |
|---|---|---|---|
| Health Score | 44 | 61 | 50 |
| Total Downloads | 60 | 27.7M | 8.6K |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 0 | 5.9K | 26 |
| Releases | 3 | 72 | 4 |
| Last Updated | 88d ago | 323d ago | 1789d ago |
| Age | 2m | 11y 4m | 4y 10m |
Health Breakdown
mongo_json_schema
Maintenance
9
Quality
15
Community
6
Popularity
2
Documentation
12
bson
Maintenance
9
Quality
18
Community
14
Popularity
8
Documentation
12
bson2
Maintenance
9
Quality
18
Community
9
Popularity
5
Documentation
9
Technical Details
| mongo_json_schema | bson | bson2 | |
|---|---|---|---|
| Version | 0.2.0 | 3.1.0 | 2.0.3 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✓ Yes |
| License | MIT | MIT | MIT |
| Dependencies | 12 | 30 | 18 |
| Crate Size | 19KB | 137KB | 101KB |
| Features | 5 | 11 | 3 |
| Yanked % | 0.0% | 2.8% | 0.0% |
| Edition | 2021 | 2021 | 2018 |
| MSRV | 1.95 | 1.81 | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •bson leads with a health score of 61/100, but none of the options score above 80.
- •bson is depended on by 5.9K crates — strongest ecosystem trust.
- •⚠ bson2 has not been updated in over a year.
- •mongo_json_schema is pre-1.0 — API may change.