Popularity
1.6
Stable
Activity
0.0
Stable
22
5
12
Programming language: Rust
License: MIT License
Latest version: v0.2.1
libyaml-rust alternatives and similar packages
Based on the "YAML" category.
Alternatively, view libyaml-rust alternatives based on common mentions on social networks and blogs.
Access the most powerful time series database as a service
Ingest, store, & analyze all types of time series data in a fully-managed, purpose-built database. Keep data forever with low-cost storage and superior data compression.
Promo
www.influxdata.com
Do you think we are missing an alternative of libyaml-rust or a related project?
README
libyaml-rust
Dependencies
- LibYAML 0.1.4 or higher
- Stable Rust (2015/2018 edition)
Usage
Parse from memory
extern crate yaml;
use yaml::constructor::*;
yaml::parse_bytes_utf8("[1, 2, 3]".as_bytes()); // => Ok(vec![YamlSequence(~[YamlInteger(1), YamlInteger(2), YamlInteger(3)])])
Parse from Reader
extern crate yaml;
use std::io::BufReader;
use yaml::constructor::*;
let data = "[1, 2, 3]";
let mut reader = BufReader::new(data.as_bytes());
yaml::parse_io_utf8(&mut reader); // => Ok(vec![YamlSequence(~[YamlInteger(1), YamlInteger(2), YamlInteger(3)])])
Todo
In the order of what I want to do...
- [x] Emitter functions
- [x] Document iterator
- [x] UTF-16 support
- Complete YAML 1.1 specs
- [ ] Tag support
- [ ] Timestamp type
- [ ] Int parser
- [ ] Float parser
- [ ] Token functions