stackabletech / stackablectl

Commandline tool to interact with a Stackable Data Platform
Other
8 stars 1 forks source link

chore(deps): update rust crate serde_yaml to 0.9 - autoclosed #95

Closed renovate[bot] closed 2 years ago

renovate[bot] commented 2 years ago

Mend Renovate

This PR contains the following updates:

Package Type Update Change
serde_yaml dependencies minor 0.8 -> 0.9

Release Notes

dtolnay/serde-yaml ### [`v0.9.10`](https://togithub.com/dtolnay/serde-yaml/releases/tag/0.9.10) [Compare Source](https://togithub.com/dtolnay/serde-yaml/compare/0.9.9...0.9.10) - Make `Display` for `Number` produce the same representation as serializing ([#​316](https://togithub.com/dtolnay/serde-yaml/issues/316)) ### [`v0.9.9`](https://togithub.com/dtolnay/serde-yaml/releases/tag/0.9.9) [Compare Source](https://togithub.com/dtolnay/serde-yaml/compare/0.9.8...0.9.9) - Add [serde_yaml::with::singleton_map_recursive](https://docs.rs/serde_yaml/0.9.9/serde_yaml/with/singleton_map_recursive/index.html) ### [`v0.9.8`](https://togithub.com/dtolnay/serde-yaml/releases/tag/0.9.8) [Compare Source](https://togithub.com/dtolnay/serde-yaml/compare/0.9.7...0.9.8) - Fix serialization of `TaggedValue` when used with `to_value` ([#​313](https://togithub.com/dtolnay/serde-yaml/issues/313)) ### [`v0.9.7`](https://togithub.com/dtolnay/serde-yaml/releases/tag/0.9.7) [Compare Source](https://togithub.com/dtolnay/serde-yaml/compare/0.9.6...0.9.7) - Allow an empty plain scalar to deserialize as an empty map or seq ([#​304](https://togithub.com/dtolnay/serde-yaml/issues/304)) ### [`v0.9.6`](https://togithub.com/dtolnay/serde-yaml/releases/tag/0.9.6) [Compare Source](https://togithub.com/dtolnay/serde-yaml/compare/0.9.5...0.9.6) - Fix tag not getting serialized in certain map values ([#​302](https://togithub.com/dtolnay/serde-yaml/issues/302)) ### [`v0.9.5`](https://togithub.com/dtolnay/serde-yaml/releases/tag/0.9.5) [Compare Source](https://togithub.com/dtolnay/serde-yaml/compare/0.9.4...0.9.5) - Implement `Display` trait for `serde_yaml::value::Tag` ([#​307](https://togithub.com/dtolnay/serde-yaml/issues/307), thanks [@​masinc](https://togithub.com/masinc)) ### [`v0.9.4`](https://togithub.com/dtolnay/serde-yaml/releases/tag/0.9.4) [Compare Source](https://togithub.com/dtolnay/serde-yaml/compare/0.9.3...0.9.4) - Add `serde_yaml::with::singleton_map` for serialization of enums as a 1-entry map ([#​300](https://togithub.com/dtolnay/serde-yaml/issues/300)) - Reject duplicate keys when deserializing `Mapping` or `Value` ([#​301](https://togithub.com/dtolnay/serde-yaml/issues/301)) ### [`v0.9.3`](https://togithub.com/dtolnay/serde-yaml/releases/tag/0.9.3) [Compare Source](https://togithub.com/dtolnay/serde-yaml/compare/0.9.2...0.9.3) - Add categories to crates.io metadata - Add keywords to crates.io metadata ### [`v0.9.2`](https://togithub.com/dtolnay/serde-yaml/releases/tag/0.9.2) [Compare Source](https://togithub.com/dtolnay/serde-yaml/compare/0.9.1...0.9.2) - Improve `Debug` representation of `serde_yaml::Error` ### [`v0.9.1`](https://togithub.com/dtolnay/serde-yaml/releases/tag/0.9.1) [Compare Source](https://togithub.com/dtolnay/serde-yaml/compare/0.9.0...0.9.1) - Fix panic on some documents containing syntax error ([#​293](https://togithub.com/dtolnay/serde-yaml/issues/293)) - Improve error messages that used to contain duplicative line/column information ([#​294](https://togithub.com/dtolnay/serde-yaml/issues/294)) ### [`v0.9.0`](https://togithub.com/dtolnay/serde-yaml/releases/tag/0.9.0) [Compare Source](https://togithub.com/dtolnay/serde-yaml/compare/0.8.26...0.9.0) *API documentation: https://docs.rs/serde_yaml/0.9* ##### Highlights - The `serde_yaml::Value` enum gains a `Tagged` variant which represents the deserialization of YAML's `!Tag` syntax. Tagged scalars, sequences, and mappings are all supported. - An empty YAML input (or document containing only comments) will deserialize successfully to an empty map, empty sequence, or Serde struct as long as the struct has only optional fields. Previously this would error. - A new `.apply_merge()` method on `Value` implements YAML's `<<` merge key convention. - The `Debug` representation of `serde_yaml::Value` has gotten vastly better ([https://github.com/dtolnay/serde-yaml/pull/287](https://togithub.com/dtolnay/serde-yaml/pull/287)). - Deserialization of borrowed strings now works. ```rust #[derive(Deserialize, Debug)] struct Struct<'a> { borrowed: &'a str, } let yaml = "borrowed: 'kölcsönzött'\n"; let value: Struct = serde_yaml::from_str(yaml)?; println!("{:#?}", value); ``` - `Value`'s and `Mapping`'s methods `get` and `get_mut` have been generalized to support a \&str argument, as opposed to requiring you to allocate and construct a `Value::String` for indexing into another existing `Value`. - `Mapping` exposes more APIs that have become conventional on map data structures, such as `.keys()`, `.values()`, `.into_keys()`, `.into_values()`, `.values_mut()`, and `.retain(|k, v| …)`. ##### Breaking changes - Serialization no longer produces leading `---\n` on the serialized output. You can prepend this yourself if your use case demands it. - Serialization of enum variants is now based on YAML's `!Tag` syntax, rather than JSON-style singleton maps. ```rust #[derive(Serialize, Deserialize)] enum Enum { Newtype(usize), Tuple(usize, usize, usize), Struct { x: f64, y: f64 }, } ``` ```yaml - !Newtype 1 - !Tuple [0, 0, 0] - !Struct {x: 1.0, y: 2.0} ``` - A bunch of non-base-10 edge cases in number parsing have been resolved. For example `0x+1` and `++0x1` are now parsed as strings, whereas they used to be incorrectly treated as numbers. - Deserializers obtained through iteration can no longer be iterated further: ```rust let deserializer = serde_yaml::Deserializer::from_str(multiple_documents); for de in deserializer { // correct: let myvalue = T::deserialize(de)?; // incorrect: used to produce some questionable result, now produces 0 sub-documents for questionable in de { let wat = T::deserialize(questionable)?; } } ``` - The abandoned yaml-rust crate is no longer used as the YAML backend. The new libyaml-based backend surely has different edge cases and quirks than yaml-rust. - Some excessive `PartialEq` impls have been eliminated. - The `serde_yaml::to_vec` function has been removed. Use `serde_yaml::to_writer` for doing I/O, or use `serde_yaml::to_string` + `.into_bytes()` on the resulting String. - The `serde_yaml::seed` module has been removed. Now that a `serde_yaml::Deserializer` is publicly available, the same use cases can be addressed via `seed.deserialize(Deserializer::from_str(…))` instead. ##### Bugfixes - Empty values in a mapping are supported, and deserialize to empty string when the corresponding struct field is of type string. Previously they would deserialize to "~" which makes no sense. - 128-bit integer deserialization now supports hex and octal input. - Serde_yaml now includes a mitigation against a ["billion laughs"](https://en.wikipedia.org/wiki/Billion_laughs_attack) attack in which malicious input involving YAML anchors and aliases is used to consume an amount of processing or memory that is exponential in the size of the input document. Serde_yaml will quickly produce an error in this situation instead. ### [`v0.8.26`](https://togithub.com/dtolnay/serde-yaml/releases/tag/0.8.26) [Compare Source](https://togithub.com/dtolnay/serde-yaml/compare/0.8.25...0.8.26) - Add `flush` method to Serializer ([#​251](https://togithub.com/dtolnay/serde-yaml/issues/251), thanks [@​jturner314-nrl](https://togithub.com/jturner314-nrl)) ### [`v0.8.25`](https://togithub.com/dtolnay/serde-yaml/releases/tag/0.8.25) [Compare Source](https://togithub.com/dtolnay/serde-yaml/compare/0.8.24...0.8.25) - Add to *"encoding"* category on crates.io ([#​246](https://togithub.com/dtolnay/serde-yaml/issues/246)) ### [`v0.8.24`](https://togithub.com/dtolnay/serde-yaml/releases/tag/0.8.24) [Compare Source](https://togithub.com/dtolnay/serde-yaml/compare/0.8.23...0.8.24) - Work around `indexmap`/`autocfg` not always properly detecting whether a `std` sysroot crate is available ([#​243](https://togithub.com/dtolnay/serde-yaml/issues/243), thanks [@​cuviper](https://togithub.com/cuviper)) ### [`v0.8.23`](https://togithub.com/dtolnay/serde-yaml/releases/tag/0.8.23) [Compare Source](https://togithub.com/dtolnay/serde-yaml/compare/0.8.22...0.8.23) - Fix handling of YAML 1.1-style octals that begin with `+` or `-` sign ([#​228](https://togithub.com/dtolnay/serde-yaml/issues/228)) ### [`v0.8.22`](https://togithub.com/dtolnay/serde-yaml/releases/tag/0.8.22) [Compare Source](https://togithub.com/dtolnay/serde-yaml/compare/0.8.21...0.8.22) - Switch float serializer to use the same float formatting library as serde_json ### [`v0.8.21`](https://togithub.com/dtolnay/serde-yaml/releases/tag/0.8.21) [Compare Source](https://togithub.com/dtolnay/serde-yaml/compare/0.8.20...0.8.21) - Avoid emitting surplus precision when serializing f32 ([#​214](https://togithub.com/dtolnay/serde-yaml/issues/214), thanks [@​cheradenine](https://togithub.com/cheradenine)) ### [`v0.8.20`](https://togithub.com/dtolnay/serde-yaml/releases/tag/0.8.20) [Compare Source](https://togithub.com/dtolnay/serde-yaml/compare/0.8.19...0.8.20) - Recognize tags on quotes scalars ([#​210](https://togithub.com/dtolnay/serde-yaml/issues/210), thanks [@​knkski](https://togithub.com/knkski)) ### [`v0.8.19`](https://togithub.com/dtolnay/serde-yaml/releases/tag/0.8.19) [Compare Source](https://togithub.com/dtolnay/serde-yaml/compare/0.8.18...0.8.19) - Add an `Entry` API for serde_yaml::Mapping (https://docs.rs/serde_yaml/0.8.19/serde_yaml/struct.Mapping.html#method.entry) ### [`v0.8.18`](https://togithub.com/dtolnay/serde-yaml/releases/tag/0.8.18) [Compare Source](https://togithub.com/dtolnay/serde-yaml/compare/0.8.17...0.8.18) - Fix bytes getting dropped when serializing large object to a writer ([#​206](https://togithub.com/dtolnay/serde-yaml/issues/206), thanks [@​jturner314](https://togithub.com/jturner314)) ### [`v0.8.17`](https://togithub.com/dtolnay/serde-yaml/releases/tag/0.8.17) [Compare Source](https://togithub.com/dtolnay/serde-yaml/compare/0.8.16...0.8.17) - Add IntoDeserializer implementation to Value enum ([#​192](https://togithub.com/dtolnay/serde-yaml/issues/192), thanks [@​luke-biel](https://togithub.com/luke-biel)) ### [`v0.8.16`](https://togithub.com/dtolnay/serde-yaml/releases/tag/0.8.16) [Compare Source](https://togithub.com/dtolnay/serde-yaml/compare/0.8.15...0.8.16) - Add a Serializer and Deserializer type ([#​185](https://togithub.com/dtolnay/serde-yaml/issues/185), [#​186](https://togithub.com/dtolnay/serde-yaml/issues/186)) ```rust let mut buffer = Vec::new(); let mut ser = serde_yaml::Serializer::new(&mut buffer); let mut object = BTreeMap::new(); object.insert("k", 107); object.serialize(&mut ser)?; let de = serde_yaml::Deserializer::from_slice(&buffer); let value = Value::deserialize(de)?; println!("{:?}", value); ``` - Support multi-doc serialization ([#​187](https://togithub.com/dtolnay/serde-yaml/issues/187)) ```rust let mut buffer = Vec::new(); let mut ser = serde_yaml::Serializer::new(&mut buffer); let mut object = BTreeMap::new(); object.insert("k", 107); object.serialize(&mut ser)?; object.insert("j", 106); object.serialize(&mut ser)?; assert_eq!(buffer, b"---\nk: 107\n...\n---\nj: 106\nk: 107\n"); ``` - Support multi-doc deserialization ([#​189](https://togithub.com/dtolnay/serde-yaml/issues/189)) ```rust let input = "---\nk: 107\n...\n---\nj: 106\n"; for document in serde_yaml::Deserializer::from_str(input) { let value = Value::deserialize(document)?; println!("{:?}", value); } ``` ### [`v0.8.15`](https://togithub.com/dtolnay/serde-yaml/releases/tag/0.8.15) [Compare Source](https://togithub.com/dtolnay/serde-yaml/compare/0.8.14...0.8.15) - Declare dependency version requirements compatible with minimal-versions lockfile ([#​183](https://togithub.com/dtolnay/serde-yaml/issues/183)) ### [`v0.8.14`](https://togithub.com/dtolnay/serde-yaml/releases/tag/0.8.14) [Compare Source](https://togithub.com/dtolnay/serde-yaml/compare/0.8.13...0.8.14) - Fix handling of scalars consisting of digits with leading zeros ([#​180](https://togithub.com/dtolnay/serde-yaml/issues/180), thanks [@​stephanbuys](https://togithub.com/stephanbuys)) ### [`v0.8.13`](https://togithub.com/dtolnay/serde-yaml/releases/tag/0.8.13) [Compare Source](https://togithub.com/dtolnay/serde-yaml/compare/0.8.12...0.8.13) - Documentation improvements ### [`v0.8.12`](https://togithub.com/dtolnay/serde-yaml/releases/tag/0.8.12) [Compare Source](https://togithub.com/dtolnay/serde-yaml/compare/0.8.11...0.8.12) - Add `serde_yaml::mapping` module containing `Mapping`'s various iterator types: `Iter`, `IterMut`, `IntoIter` - Fix deserialization of certain strings incorrectly as NaN or infinity; only `.nan` and `.inf` and `-.inf` are YAML's permitted representations for NaN and infinity ### [`v0.8.11`](https://togithub.com/dtolnay/serde-yaml/releases/tag/0.8.11) [Compare Source](https://togithub.com/dtolnay/serde-yaml/compare/0.8.10...0.8.11) - Add seeded versions of deserialize functions ([#​135](https://togithub.com/dtolnay/serde-yaml/issues/135), thanks [@​toasteater](https://togithub.com/toasteater)) ### [`v0.8.10`](https://togithub.com/dtolnay/serde-yaml/releases/tag/0.8.10) [Compare Source](https://togithub.com/dtolnay/serde-yaml/compare/0.8.9...0.8.10) - Implement PartialEq for Value == u64, Value == bool ([#​138](https://togithub.com/dtolnay/serde-yaml/issues/138), [#​139](https://togithub.com/dtolnay/serde-yaml/issues/139), thanks [@​CAD97](https://togithub.com/CAD97)) ### [`v0.8.9`](https://togithub.com/dtolnay/serde-yaml/releases/tag/0.8.9) [Compare Source](https://togithub.com/dtolnay/serde-yaml/compare/0.8.8...0.8.9) - Add `Value::get_mut` to index into a \&mut Value, returning Option ### [`v0.8.8`](https://togithub.com/dtolnay/serde-yaml/releases/tag/0.8.8) [Compare Source](https://togithub.com/dtolnay/serde-yaml/compare/0.8.7...0.8.8) - Provide an implementation of `Default` for `serde_yaml::Value` which produces `Value::Null` ([#​120](https://togithub.com/dtolnay/serde-yaml/issues/120), thanks [@​macisamuele](https://togithub.com/macisamuele)) ### [`v0.8.7`](https://togithub.com/dtolnay/serde-yaml/releases/tag/0.8.7) [Compare Source](https://togithub.com/dtolnay/serde-yaml/compare/0.8.6...0.8.7) - Allow YAML tags to be used to specify an enum variant ([#​115](https://togithub.com/dtolnay/serde-yaml/issues/115), thanks [@​EliSnow](https://togithub.com/EliSnow)) ### [`v0.8.6`](https://togithub.com/dtolnay/serde-yaml/releases/tag/0.8.6) [Compare Source](https://togithub.com/dtolnay/serde-yaml/compare/0.8.5...0.8.6) - 128-bit integer support ([#​110](https://togithub.com/dtolnay/serde-yaml/issues/110)) ### [`v0.8.5`](https://togithub.com/dtolnay/serde-yaml/releases/tag/0.8.5) [Compare Source](https://togithub.com/dtolnay/serde-yaml/compare/0.8.4...0.8.5) - Support integers represented in binary, e.g. 0b0101 ([#​106](https://togithub.com/dtolnay/serde-yaml/issues/106), thanks [@​p4l1ly](https://togithub.com/p4l1ly)) ### [`v0.8.4`](https://togithub.com/dtolnay/serde-yaml/releases/tag/0.8.4) [Compare Source](https://togithub.com/dtolnay/serde-yaml/compare/0.8.3...0.8.4) - Limit recursion to 128 levels to avoid stack overflows ([#​105](https://togithub.com/dtolnay/serde-yaml/issues/105)) ### [`v0.8.3`](https://togithub.com/dtolnay/serde-yaml/releases/tag/0.8.3) [Compare Source](https://togithub.com/dtolnay/serde-yaml/compare/0.8.2...0.8.3) - Fix possible panic during deserialization ([#​101](https://togithub.com/dtolnay/serde-yaml/issues/101)) ### [`v0.8.2`](https://togithub.com/dtolnay/serde-yaml/releases/tag/0.8.2) [Compare Source](https://togithub.com/dtolnay/serde-yaml/compare/0.8.1...0.8.2) - Documentation improvements ### [`v0.8.1`](https://togithub.com/dtolnay/serde-yaml/releases/tag/0.8.1) [Compare Source](https://togithub.com/dtolnay/serde-yaml/compare/0.8.0...0.8.1) - Documentation improvements

Configuration

📅 Schedule: Branch creation - "after 5:00 and before 6:00 every weekday" in timezone Europe/Berlin, Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.



This PR has been generated by Mend Renovate. View repository job log here.