From 0742bb46998a1637c799923f944a4e975da7c57d Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Mon, 17 May 2021 09:40:10 -0700 Subject: [PATCH] Update cast crate, remove cargo-deny rules (#2909) Previously the inclusion of the `criterion` crate had brought in a transitive dependency to `cast`, which used old versions of several libraries. Now that https://github.com/japaric/cast.rs/pull/26 is merged and a new version published, we can update `cast` and remove the cargo-deny rules for the duplicated, older versions. --- Cargo.lock | 44 ++++++++++---------------------------------- deny.toml | 3 --- 2 files changed, 10 insertions(+), 37 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index e7b0c15595..9761bcdf98 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -288,7 +288,7 @@ checksum = "ff3a1e32332db9ad29d6da34693ce9a7ac26a9edf96abb5c1788d193410031ab" dependencies = [ "cap-primitives", "cap-std", - "rustc_version 0.3.3", + "rustc_version", "unsafe-io", "winapi", ] @@ -306,7 +306,7 @@ dependencies = [ "maybe-owned", "once_cell", "posish", - "rustc_version 0.3.3", + "rustc_version", "unsafe-io", "winapi", "winapi-util", @@ -330,7 +330,7 @@ checksum = "7019d48ea53c5f378e0fdab0fe5f627fc00e76d65e75dffd6fb1cbc0c9b382ee" dependencies = [ "cap-primitives", "posish", - "rustc_version 0.3.3", + "rustc_version", "unsafe-io", ] @@ -379,11 +379,11 @@ dependencies = [ [[package]] name = "cast" -version = "0.2.5" +version = "0.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc38c385bfd7e444464011bb24820f40dd1c76bcdfa1b78611cb7c2e5cafab75" +checksum = "57cdfa5d50aad6cb4d44dcab6101a7f79925bd59d82ca42f38a9856a28865374" dependencies = [ - "rustc_version 0.2.3", + "rustc_version", ] [[package]] @@ -2558,22 +2558,13 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" -[[package]] -name = "rustc_version" -version = "0.2.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "138e3e0acb6c9fb258b19b67cb8abd63c00679d2851805ea151465464fe9030a" -dependencies = [ - "semver 0.9.0", -] - [[package]] name = "rustc_version" version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f0dfe2087c51c460008730de8b57e6a320782fbfb312e1f4d520e6c6fae155ee" dependencies = [ - "semver 0.11.0", + "semver", ] [[package]] @@ -2629,30 +2620,15 @@ dependencies = [ "syn", ] -[[package]] -name = "semver" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d7eb9ef2c18661902cc47e535f9bc51b78acd254da71d375c2f6720d9a40403" -dependencies = [ - "semver-parser 0.7.0", -] - [[package]] name = "semver" version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f301af10236f6df4160f7c3f04eec6dbc70ace82d23326abad5edee88801c6b6" dependencies = [ - "semver-parser 0.10.2", + "semver-parser", ] -[[package]] -name = "semver-parser" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3" - [[package]] name = "semver-parser" version = "0.10.2" @@ -2900,7 +2876,7 @@ dependencies = [ "cap-fs-ext", "cap-std", "posish", - "rustc_version 0.3.3", + "rustc_version", "unsafe-io", "winapi", "winx", @@ -3204,7 +3180,7 @@ version = "0.6.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fe39acfe60d3754452ea6881613c3240100b23ffd94a627c138863f8cd314b1b" dependencies = [ - "rustc_version 0.3.3", + "rustc_version", "winapi", ] diff --git a/deny.toml b/deny.toml index a08d581216..7f909d470e 100644 --- a/deny.toml +++ b/deny.toml @@ -45,7 +45,4 @@ skip = [ { name = "wast" }, # old one pulled in by witx { name = "itertools" }, # 0.9 pulled in by zstd-sys { name = "quick-error" }, # transitive dependencies - { name = "rustc_version" }, # transitive dependencies of criterion's build script (see https://github.com/japaric/cast.rs/pull/26) - { name = "semver" }, # transitive dependencies of criterion's build script (see https://github.com/japaric/cast.rs/pull/26) - { name = "semver-parser" }, # transitive dependencies of criterion's build script (see https://github.com/japaric/cast.rs/pull/26) ]