Changelog
Upcoming
Breaking Changes:
- The
encodinglibrary has been replaced withencoding_rs. If you use thetrapofYamlDecoder, this change will make your code not compile. An additional enumYamlDecoderTraphas been added to abstract the underlying library and avoid breaking changes in the future. This additionally lifts theencodingdependency on your project if you were using that feature.- The signature of the function for
YamlDecoderTrap::Callhas changed: - The
encoding::types::DecoderTraphas been replaced withYamlDecoderTrap.
Please refer to the#![allow(unused)] fn main() { // Before, with `encoding::types::DecoderTrap::Call` fn(_: &mut encoding::RawDecoder, _: &[u8], _: &mut encoding::StringWriter) -> bool; // Now, with `YamlDecoderTrap::Call` fn(_: u8, _: u8, _: &[u8], _: &mut String) -> ControlFlow<Cow<'static str>>; }YamlDecoderTrapFndocumentation for more details.
- The signature of the function for
Features:
- Tags can now be retained across documents by calling
keep_tags(true)on ayaml_rust2::Parserbefore loading documents. (#10 (#12)
Development:
v0.7.0
Features:
-
Multi-line strings are now emitted using block scalars.
-
Error messages now contain a byte offset to aid debugging. (#176)
-
Yaml now has
orandborrowed_ormethods. (#179) -
Yaml::load_from_bytes()is now available. (#156) -
The parser and scanner now return Err() instead of calling panic.
Development:
-
The documentation was updated to include a security note mentioning that yaml-rust is safe because it does not interpret types. (#195)
-
Updated to quickcheck 1.0. (#188)
-
hashlinkis now used instead oflinked_hash_map.
v0.6.0
Development:
-
is_xxxfunctions were moved into the privatechar_traitsmodule. -
Benchmarking tools were added.
-
Performance was improved.