Unverified Commit 9ab44832 authored by Qinxuan Chen's avatar Qinxuan Chen Committed by GitHub
Browse files

Bump some dependencies (#270)



* Bump proc-macro-crate to v1.0.0
Signed-off-by: default avatarkoushiro <koushiro.cqx@gmail.com>

* Bump honggfuzz and arbitrary
Signed-off-by: default avatarkoushiro <koushiro.cqx@gmail.com>

* Bump quickcheck to v1.0
Signed-off-by: default avatarkoushiro <koushiro.cqx@gmail.com>
parent 166d748a
Pipeline #139885 passed with stages
in 19 minutes and 24 seconds
......@@ -13,9 +13,9 @@ dependencies = [
[[package]]
name = "arbitrary"
version = "0.4.5"
version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7cb544f1057eaaff4b34f8c4dcf56fc3cd04debd291998405d135017a7c3c0f4"
checksum = "237430fd6ed3740afe94eefcc278ae21e050285be882804e0d6e8695f0c94691"
dependencies = [
"derive_arbitrary",
]
......@@ -245,9 +245,9 @@ dependencies = [
[[package]]
name = "derive_arbitrary"
version = "0.4.5"
version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "02b43185d3e7ce7dcd44a23ca761ec026359753ebf480283a571e6463853d2ef"
checksum = "5f1281ee141df08871db9fe261ab5312179eac32d1e314134ceaa8dd7c042f5a"
dependencies = [
"proc-macro2",
"quote",
......@@ -262,9 +262,9 @@ checksum = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457"
[[package]]
name = "env_logger"
version = "0.7.1"
version = "0.8.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "44533bbbb3bb3c1fa17d9f2e4e38bbbaf8396ba82193c4cb1b6445d711445d36"
checksum = "17392a012ea30ef05a610aa97dfb49496e71c9f676b27879922ea5bdf60d9d3f"
dependencies = [
"log",
"regex",
......@@ -288,9 +288,9 @@ dependencies = [
[[package]]
name = "getrandom"
version = "0.1.16"
version = "0.2.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce"
checksum = "7fcd999463524c52659517fe2cea98493cfe485d10565e7b0fb07dbba7ad2753"
dependencies = [
"cfg-if 1.0.0",
"libc",
......@@ -314,9 +314,9 @@ dependencies = [
[[package]]
name = "honggfuzz"
version = "0.5.51"
version = "0.5.54"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6f085725a5828d7e959f014f624773094dfe20acc91be310ef106923c30594bc"
checksum = "bea09577d948a98a5f59b7c891e274c4fb35ad52f67782b3d0cb53b9c05301f1"
dependencies = [
"arbitrary",
"lazy_static",
......@@ -488,40 +488,34 @@ dependencies = [
"plotters-backend",
]
[[package]]
name = "ppv-lite86"
version = "0.2.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ac74c624d6b2d21f425f752262f42188365d7b8ff1aff74c82e45136510a4857"
[[package]]
name = "proc-macro-crate"
version = "0.1.5"
version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1d6ea3c4595b96363c13943497db34af4460fb474a95c43f4446ad341b8c9785"
checksum = "41fdbd1df62156fbc5945f4762632564d7d038153091c3fcf1067f6aef7cff92"
dependencies = [
"thiserror",
"toml",
]
[[package]]
name = "proc-macro2"
version = "1.0.19"
version = "1.0.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "04f5f085b5d71e2188cb8271e5da0161ad52c3f227a661a3c135fdf28e258b12"
checksum = "f0d8caf72986c1a598726adc988bb5984792ef84f5ee5aa50209145ee8077038"
dependencies = [
"unicode-xid",
]
[[package]]
name = "quickcheck"
version = "0.9.2"
version = "1.0.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a44883e74aa97ad63db83c4bf8ca490f02b2fc02f92575e720c8551e843c945f"
checksum = "588f6378e4dd99458b60ec275b4477add41ce4fa9f64dcba6f15adccb19b50d6"
dependencies = [
"env_logger",
"log",
"rand",
"rand_core",
]
[[package]]
......@@ -541,45 +535,22 @@ checksum = "e9e006811e1fdd12672b0820a7f44c18dde429f367d50cec003d22aa9b3c8ddc"
[[package]]
name = "rand"
version = "0.7.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03"
dependencies = [
"getrandom",
"libc",
"rand_chacha",
"rand_core",
"rand_hc",
]
[[package]]
name = "rand_chacha"
version = "0.2.2"
version = "0.8.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402"
checksum = "0ef9e7e66b4468674bfcb0c81af8b7fa0bb154fa9f28eb840da5c447baeb8d7e"
dependencies = [
"ppv-lite86",
"rand_core",
]
[[package]]
name = "rand_core"
version = "0.5.1"
version = "0.6.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19"
checksum = "34cf66eb183df1c5876e2dcf6b13d57340741e8dc255b48e40a26de954d06ae7"
dependencies = [
"getrandom",
]
[[package]]
name = "rand_hc"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c"
dependencies = [
"rand_core",
]
[[package]]
name = "rayon"
version = "1.5.0"
......@@ -717,9 +688,9 @@ dependencies = [
[[package]]
name = "syn"
version = "1.0.38"
version = "1.0.72"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e69abc24912995b3038597a7a593be5053eb0fb44f3cc5beec0deb421790c1f4"
checksum = "a1e8cdbefb79a9a5a65e0db8b47b723ee907b7c7f8496c76a1770b5c310bab82"
dependencies = [
"proc-macro2",
"quote",
......@@ -741,6 +712,26 @@ dependencies = [
"unicode-width",
]
[[package]]
name = "thiserror"
version = "1.0.25"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fa6f76457f59514c7eeb4e59d891395fab0b2fd1d40723ae737d64153392e9c6"
dependencies = [
"thiserror-impl",
]
[[package]]
name = "thiserror-impl"
version = "1.0.25"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8a36768c0fbf1bb15eca10defa29526bda730a2376c2ab4393ccfa16fb1a318d"
dependencies = [
"proc-macro2",
"quote",
"syn",
]
[[package]]
name = "thread_local"
version = "1.1.2"
......@@ -806,9 +797,9 @@ dependencies = [
[[package]]
name = "wasi"
version = "0.9.0+wasi-snapshot-preview1"
version = "0.10.2+wasi-snapshot-preview1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519"
checksum = "fd6fbd9a79829dd1ad0cc20627bf1ed606756a7f77edff7b66b7064f9cb327c6"
[[package]]
name = "wasm-bindgen"
......
......@@ -15,13 +15,13 @@ parity-scale-codec-derive = { path = "derive", version = "2.1.0", default-featur
bitvec = { version = "0.20.1", default-features = false, features = ["alloc"], optional = true }
byte-slice-cast = { version = "1.0.0", default-features = false }
generic-array = { version = "0.14.4", optional = true }
arbitrary = { version = "0.4.1", features = ["derive"], optional = true }
arbitrary = { version = "1.0.1", features = ["derive"], optional = true }
[dev-dependencies]
criterion = "0.3.0"
serde_derive = { version = "1.0" }
parity-scale-codec-derive = { path = "derive", version = "2.1.0", default-features = false }
quickcheck = "0.9"
quickcheck = "1.0"
[[bench]]
name = "benches"
......
......@@ -10,10 +10,10 @@ edition = "2018"
proc-macro = true
[dependencies]
syn = { version = "1.0.8", features = [ "full", "visit" ] }
syn = { version = "1.0.8", features = ["full", "visit"] }
quote = "1.0.2"
proc-macro2 = "1.0.6"
proc-macro-crate = "0.1.4"
proc-macro-crate = "1.0.0"
[dev-dependencies]
parity-scale-codec = { path = "..", version = "2.0.1" }
......@@ -24,7 +24,7 @@ extern crate syn;
extern crate quote;
use proc_macro2::{Ident, Span};
use proc_macro_crate::crate_name;
use proc_macro_crate::{crate_name, FoundCrate};
use syn::spanned::Spanned;
use syn::{Data, Field, Fields, DeriveInput, Error};
......@@ -40,7 +40,8 @@ fn include_parity_scale_codec_crate() -> proc_macro2::TokenStream {
quote!( extern crate parity_scale_codec as _parity_scale_codec; )
} else {
match crate_name("parity-scale-codec") {
Ok(parity_codec_crate) => {
Ok(FoundCrate::Itself) => quote!( extern crate parity_scale_codec as _parity_scale_codec; ),
Ok(FoundCrate::Name(parity_codec_crate)) => {
let ident = Ident::new(&parity_codec_crate, Span::call_site());
quote!( extern crate #ident as _parity_scale_codec; )
},
......
......@@ -6,7 +6,7 @@ edition = "2018"
publish = false
[dependencies]
parity-scale-codec = { path = "../", features = [ "derive", "bit-vec", "fuzz" ] }
honggfuzz = "0.5.47"
arbitrary = { version = "0.4.1", features = ["derive"] }
parity-scale-codec = { path = "..", features = ["derive", "bit-vec", "fuzz"] }
honggfuzz = "0.5.54"
arbitrary = { version = "1.0.1", features = ["derive"] }
bitvec = { version = "0.20.1", features = ["alloc"] }
......@@ -15,8 +15,8 @@ pub struct MockStruct{
#[derive(Encode, Decode, Clone, PartialEq, Debug)]
pub struct BitVecWrapper<O: BitOrder, T: BitStore>(BitVec<O, T>);
impl<O: 'static + BitOrder, T: 'static + BitStore + Arbitrary> Arbitrary for BitVecWrapper<O, T> {
fn arbitrary(u: &mut Unstructured<'_>) -> ArbResult<Self> {
impl<'a, O: 'static + BitOrder, T: 'static + BitStore + Arbitrary<'a>> Arbitrary<'a> for BitVecWrapper<O, T> {
fn arbitrary(u: &mut Unstructured<'a>) -> ArbResult<Self> {
let v = Vec::<T>::arbitrary(u)?;
Ok(BitVecWrapper(BitVec::<O, T>::from_vec(v)))
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment