EdJoPaTo / website-stalker

Track changes on websites via git
GNU Lesser General Public License v2.1
55 stars 6 forks source link

build(cargo): bump serde_yaml from 0.8.26 to 0.9.2 #130

Closed dependabot[bot] closed 2 years ago

dependabot[bot] commented 2 years ago

Bumps serde_yaml from 0.8.26 to 0.9.2.

Release notes

Sourced from serde_yaml's releases.

0.9.2

  • Improve Debug representation of serde_yaml::Error

0.9.1

  • Fix panic on some documents containing syntax error (#293)
  • Improve error messages that used to contain duplicative line/column information (#294)

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 (dtolnay/serde-yaml#287).

  • Deserialization of borrowed strings now works.

    #[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.

    #[derive(Serialize, Deserialize)]
    enum Enum {
        Newtype(usize),
        Tuple(usize, usize, usize),
        Struct { x: f64, y: f64 },
    }
    

... (truncated)

Commits
  • 3dd7bcf Release 0.9.2
  • 922c18f Merge pull request #296 from dtolnay/debugerror
  • 3d62247 Condense Error's Debug format in a way to include whole message
  • 26e67d8 Use mark() in the implementation of location()
  • 1c031a6 Omit position 0 from error messages
  • 3562a13 Split Error display into message_no_mark + mark
  • 790becc Fix missing message in Debug of libyaml Error
  • bc2f0ca Format with rustfmt 1.5.1-nightly
  • 9eca262 Release 0.9.1
  • 1d7fc6b Merge pull request #295 from dtolnay/scan
  • Additional commits viewable in compare view


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)