Skip to content

fix(deps): update cargo pre-1.0 packages (minor)#294

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/cargo-all-pre-1.0
Open

fix(deps): update cargo pre-1.0 packages (minor)#294
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/cargo-all-pre-1.0

Conversation

@renovate

@renovate renovate Bot commented Mar 22, 2023

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Type Update Change
rstest dev-dependencies minor 0.21.00.26.0
serde_yaml dev-dependencies minor 0.80.9
serde_yaml dependencies minor 0.80.9

Release Notes

la10736/rstest (rstest)

v0.26.1

Compare Source

Fixed
  • Docs

v0.26.0

Compare Source

Changed
  • The #[files(...)] attribute now ignores matched directory paths by default.
    See #​306 thanks to @​Obito-git.
Add
  • Introduced the #[dirs] attribute, which can be used with #[files(...)] to explicitly include directory paths.
    See #​306 thanks to @​Obito-git.
  • The CI now runs builds and tests on Windows, as well.
  • #[test_attr] to define test attribute explicit and also enable the use of
    #[macro_rules_attribute::apply(<macro>)]: naw also smol works. See
    #​303
    #​311
    #​315
    thanks to @​coriolinus.
Fixed
  • Removed unsued trait and impl spotted out on 1.89.0-nightly
  • Add missed tests about ignore attribute's args in rstest expansion.
    See #​313
  • The #[files(...)] attribute now works reliably on Windows.
  • Now global attributes can go everywhere in the list also where case is used

v0.25.0

Compare Source

Changed
  • Append generated test macro so next test macros are aware of it
    (see #​291 thanks to @​kezhuw).
Add
  • Added a #[mode = ...] attribute to be used with the #[files(...)] attribute to change the way
    the files get passed to the test.
    (see #​295 thanks to @​lucascool12)

v0.24.0

Compare Source

Changed
Add
  • #![no_std] support: now you can use rstest also in no_std lib
    (see #​282 thanks to @​rnbguy)
  • #[context] to have test function name and other useful thighs on
    the tip of your fingers (see #​177)

v0.23.0

Compare Source

Add
  • You can now use environment variables in #[files] with an optional default value (see #​277).
  • You can now set a base_dir for #[files] with the $[base_dir = "..."] attribute (see #​277).

v0.22.0

Compare Source

Changed
  • Now it's possible destructuring input values both for cases, values and fixtures. See #​231 for details
Add
  • Implemented #[ignore] attribute to ignore test parameters during fixtures resolution/injection. See #​228 for details
Fixed
  • Lot of typo in code
dtolnay/serde-yaml (serde_yaml)

v0.9.34

Compare Source

As of this release, I am not planning to publish further versions of serde_yaml as none of my projects have been using YAML for a long time, so I have archived the GitHub repo and marked the crate deprecated in the version number. An official replacement isn't designated for those who still need to work with YAML, but https://crates.io/search?q=yaml&sort=relevance and https://crates.io/keywords/yaml has a number of reasonable-looking options available.

v0.9.33

Compare Source

v0.9.32

Compare Source

  • Fix unused_imports warnings when compiled by rustc 1.78

v0.9.31

Compare Source

  • Add swap_remove and shift_remove methods on Mapping (#​408)

v0.9.30

Compare Source

  • Update proc-macro2 to fix caching issue when using a rustc-wrapper such as sccache

v0.9.29

Compare Source

  • Turn on deny(unsafe_op_in_unsafe_fn) lint

v0.9.28

Compare Source

  • Update unsafe-libyaml dependency to pull in unaligned write fix

v0.9.27

Compare Source

  • Always serialize serde_yaml::Number containing NaN as a positive NaN (#​394)

v0.9.26

Compare Source

  • Guarantee that .nan is deserialized as a positive NaN (#​392, #​393)

v0.9.25

Compare Source

  • Serialize using quoted style around scalar that has digits with leading zero (#​347)

v0.9.24

Compare Source

  • Implement FromStr for serde_yaml::Number (#​381)

v0.9.23

Compare Source

  • Documentation improvements

v0.9.22

Compare Source

  • Update indexmap dependency to version 2

v0.9.21

Compare Source

  • Make Tag::new panic if given empty string, since YAML has no syntax for an empty tag

v0.9.20

Compare Source

  • Allow an empty YAML document to deserialize to None or Value::Null, in addition to the previously supported empty vector, empty map, and struct with no required fields

v0.9.19

Compare Source

  • Fix message duplication between serde_yaml::Error's Display and source() (#​359, #​360)

v0.9.18

Compare Source

  • Add support for emitting Unicode characters over codepoint U+FFFF (#​356)

v0.9.17

Compare Source

  • Improve Debug representation of some error messages

v0.9.16

Compare Source

  • Opt out of -Zrustdoc-scrape-examples on docs.rs for now

v0.9.15

Compare Source

  • Documentation improvements

v0.9.14

Compare Source

  • Implement Deserializer for TaggedValue and &TaggedValue (#​339)

v0.9.13

Compare Source

  • Recognize True, TRUE, False, FALSE as booleans, Null, NULL as null (#​330)

v0.9.12

Compare Source

  • Support deserializing tagged literal scalar into primitive (#​327)

    "foo": !!int |-
      7200

v0.9.11

Compare Source

  • Serialize strings on a single line when they do not already contain a newline character, regardless of string length (#​321, #​322)

v0.9.10

Compare Source

  • Make Display for Number produce the same representation as serializing (#​316)

v0.9.9

Compare Source

v0.9.8

Compare Source

  • Fix serialization of TaggedValue when used with to_value (#​313)

v0.9.7

Compare Source

  • Allow an empty plain scalar to deserialize as an empty map or seq (#​304)

v0.9.6

Compare Source

  • Fix tag not getting serialized in certain map values (#​302)

v0.9.5

Compare Source

v0.9.4

Compare Source

  • Add serde_yaml::with::singleton_map for serialization of enums as a 1-entry map (#​300)
  • Reject duplicate keys when deserializing Mapping or Value (#​301)

v0.9.3

Compare Source

  • Add categories to crates.io metadata
  • Add keywords to crates.io metadata

v0.9.2

Compare Source

  • Improve Debug representation of serde_yaml::Error

v0.9.1

Compare Source

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

v0.9.0

Compare Source

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 (#​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 },
    }
    - !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:

    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" 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.


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

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

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
renovate Bot force-pushed the renovate/cargo-all-pre-1.0 branch 9 times, most recently from 4b94094 to e8ff1a8 Compare March 23, 2023 16:45
@renovate
renovate Bot force-pushed the renovate/cargo-all-pre-1.0 branch 6 times, most recently from 9c31698 to c5547eb Compare April 7, 2023 17:26
@renovate
renovate Bot force-pushed the renovate/cargo-all-pre-1.0 branch 5 times, most recently from efddb67 to 337f765 Compare April 18, 2023 21:38
@renovate
renovate Bot force-pushed the renovate/cargo-all-pre-1.0 branch 2 times, most recently from f23f528 to 48bcaec Compare April 20, 2023 21:12
@renovate
renovate Bot force-pushed the renovate/cargo-all-pre-1.0 branch 3 times, most recently from e44e15b to 65aef94 Compare May 8, 2023 21:35
@renovate
renovate Bot force-pushed the renovate/cargo-all-pre-1.0 branch 5 times, most recently from 6ff24c6 to d7132fd Compare May 17, 2023 18:23
@renovate
renovate Bot force-pushed the renovate/cargo-all-pre-1.0 branch 2 times, most recently from b4f36d2 to e790767 Compare June 15, 2023 22:44
@renovate
renovate Bot force-pushed the renovate/cargo-all-pre-1.0 branch 11 times, most recently from 258eacf to 498a4b8 Compare July 3, 2023 13:10
@renovate
renovate Bot force-pushed the renovate/cargo-all-pre-1.0 branch 7 times, most recently from aadd34c to 789d446 Compare July 10, 2023 18:54
@renovate
renovate Bot force-pushed the renovate/cargo-all-pre-1.0 branch 8 times, most recently from cc1e2c5 to fc0399e Compare July 19, 2023 23:52
@renovate

renovate Bot commented Jan 11, 2024

Copy link
Copy Markdown
Contributor Author

⚠ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: Cargo.lock
Command failed: cargo update --config net.git-fetch-with-cli=true --manifest-path apollo-federation-types/Cargo.toml --package serde_yaml@0.8.26 --precise 0.9.34
warning: `/tmp/renovate/repos/github/apollographql/federation-rs/.cargo/config` is deprecated in favor of `config.toml`
note: if you need to support cargo 1.38 or earlier, you can symlink `config` to `config.toml`
warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"`
note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest
note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest
note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions
error: package ID specification `serde_yaml@0.8.26` did not match any packages
Did you mean one of these?

  serde_yaml@0.9.29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants