From 8ba5ab3ca2b3288c16f85769bac2ae9a840485e2 Mon Sep 17 00:00:00 2001 From: Kris Nuttycombe Date: Mon, 11 Apr 2022 09:48:41 -0600 Subject: [PATCH] Replace the deprecated `bigint` crate with `primitive-types`. `bigint`'s deprecation message suggests to use `uint` instead. `uint`'s documentation suggests using `primitive-types` for 128 and 256 bit unsigned integers; these use `uint` under the hood but do provide a somewhat more complete (and hopefully stable) API. Fixes #527 --- zcash_history/Cargo.toml | 2 +- zcash_history/src/node_data.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/zcash_history/Cargo.toml b/zcash_history/Cargo.toml index 2f864f461..96522cb43 100644 --- a/zcash_history/Cargo.toml +++ b/zcash_history/Cargo.toml @@ -12,7 +12,7 @@ assert_matches = "1.3.0" quickcheck = "0.9" [dependencies] -bigint = "4" +primitive-types = "0.11" byteorder = "1" blake2 = { package = "blake2b_simd", version = "1" } diff --git a/zcash_history/src/node_data.rs b/zcash_history/src/node_data.rs index efd49bcd8..0507336ee 100644 --- a/zcash_history/src/node_data.rs +++ b/zcash_history/src/node_data.rs @@ -1,5 +1,5 @@ -use bigint::U256; use byteorder::{LittleEndian, ReadBytesExt, WriteBytesExt}; +use primitive_types::U256; use crate::Version;