yaml-rust2 breaking changes

cargo

6 curated breaking changes across major versions of yaml-rust2. Use this as a migration checklist before bumping dependencies.

6
changes
Breaking changes by transition
  • v0.8.1 \u2192 v0.9.0breaking

    Update dependencies. Since `hashlink` is exposed (through `Yaml::Hash`) and has been updated from 0.8.4 to 0.9.1, the new version of `yaml-rust2` will not link properly if you explicitly rely on `hashlink v0.8`. Existing code with v0.8.4 should still compile fine in v0.9.1 (see [hashlink's v0.9.0 changelog](https://github.com/kyren/hashlink/releases/tag/v0.9.0)). **Bug fixes**

  • v0.8.1 \u2192 v0.9.0breaking

    ([#37](https://github.com/Ethiraric/yaml-rust2/pull/37)) Parse empty scalars as `""` instead of `"~"`. **Features**

  • v0.8.1 \u2192 v0.9.0breaking

    Add `Yaml::is_hash`.

  • v0.8.1 \u2192 v0.9.0breaking

    Add better doccomments to the `Index` and `IntoIterator` implementations for `Yaml` to better explain their quirks and design decisions.

  • v0.9.0 \u2192 v0.10.0breaking

    Update dependencies. `hashlink` had a bogus requirement of `>= 0.8, < 0.10`, sorry. As mentioned [here](https://github.com/Ethiraric/yaml-rust2/issues/33#issuecomment-2227455469), range requirements shouldn't be used and I haven't been vigilant enough when reviewing. The requirement is now set to `0.10`. **Changes**

  • v0.9.0 \u2192 v0.10.0breaking

    Force quotes on `y` and `n` to appease the YAML 1.1 lords.

API access

Get this data programmatically \u2014 free, no authentication.

curl https://depscope.dev/api/breaking/cargo/yaml-rust2
yaml-rust2 breaking changes — Cargo migration guide | DepScope