Crates / unsafe-libyaml / Alternatives
Rust crate alternatives · data Oct 24, 2026
Alternatives to unsafe-libyaml
Short answerThe closest alternatives to unsafe-libyaml on crates.io data are serde_json (4.3M real downloads a day), toml_datetime (3.2M real downloads a day), toml (3M real downloads a day). Of the 8 we list, the most used is serde_json, and 8 shipped a release in the last year. unsafe-libyaml itself gets 965,195 a day with 20 dependents.
Every alternative we found
| Alternative | Real downloads a day | vs unsafe-libyaml | Dependents | Last release | Why it is listed | |
|---|---|---|---|---|---|---|
| serde_json Foundational | 4,294,696 | 4.45x | 113,141 | 13d | category Encoding, category No standard library | compare |
| toml_datetime Pulled in | 3,215,444 | 3.33x | 29 | 16d | category Encoding, category Parser implementations | compare |
| toml Foundational | 2,960,881 | 3.07x | 20,777 | 15d | category Encoding, category Parser implementations | compare |
| toml_edit Widely used | 2,715,071 | 2.81x | 1,989 | 15d | category Encoding, category Parser implementations | compare |
| url Foundational | 2,520,673 | 2.61x | 16,906 | 10mo | category Encoding, category No standard library | compare |
| serde_spanned Pulled in | 2,255,941 | 2.34x | 16 | 16d | category Encoding, category Parser implementations | compare |
| const-oid Established | 2,079,241 | 2.15x | 160 | 10mo | category Encoding, category No standard library | compare |
| toml_parser Pulled in | 1,763,218 | 1.83x | 22 | 15d | category Encoding, category Parser implementations | compare |
How to choose
- Same job, not the same API. Each line is listed because it shares a crates.io category or keyword with unsafe-libyaml; read its description before you swap.
- More dependents means more answered questions and a smaller chance it disappears.
- Check the last release against how fast you need fixes. For unsafe-libyaml: is it still maintained?
Rules
Alternatives = tracked crates (top 1000 by downloads) that share a specific crates.io category (2 points each) or keyword (3 points each) with unsafe-libyaml, most similar first; its own parts (same name prefix) and crates it depends on or that depend on it are left out, because those are companions, not substitutes. Real downloads = quiet-day median, crates.io data Oct 24, 2026. Built when we find 3 or more.
Up next
The closest alternative: Foundational and steady. 4,294,696 real downloads a day.serde_jsonRust crate. A JSON serialization file format. Real use: 4.3M downloads a day on quiet days; 113,141 crates depend on it.Read it next →Also worth your time