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
This commit is contained in:
Kris Nuttycombe 2022-04-11 09:48:41 -06:00
parent f78a6786eb
commit 8ba5ab3ca2
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ assert_matches = "1.3.0"
quickcheck = "0.9" quickcheck = "0.9"
[dependencies] [dependencies]
bigint = "4" primitive-types = "0.11"
byteorder = "1" byteorder = "1"
blake2 = { package = "blake2b_simd", version = "1" } blake2 = { package = "blake2b_simd", version = "1" }

View File

@ -1,5 +1,5 @@
use bigint::U256;
use byteorder::{LittleEndian, ReadBytesExt, WriteBytesExt}; use byteorder::{LittleEndian, ReadBytesExt, WriteBytesExt};
use primitive_types::U256;
use crate::Version; use crate::Version;