Finer-grained dependencies
This commit is contained in:
parent
648f1909d8
commit
1121da0b75
|
@ -9,7 +9,8 @@ edition = "2021"
|
|||
base64 = "0.13"
|
||||
bytemuck = "1.12"
|
||||
dtoa = "0.4"
|
||||
num = "0.4"
|
||||
num-bigint = "0.4"
|
||||
num-traits = "0.2"
|
||||
regex = "1.5"
|
||||
|
||||
[package.metadata.workspaces]
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
use num::bigint::BigInt;
|
||||
use num_bigint::BigInt;
|
||||
use std::convert::From;
|
||||
use std::io;
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
use crate::{ValueClass, AtomClass, Atom};
|
||||
use crate::error::{self, ExpectedKind, io_eof};
|
||||
|
||||
use num::bigint::BigInt;
|
||||
use num::traits::cast::{FromPrimitive, ToPrimitive};
|
||||
use num_bigint::BigInt;
|
||||
use num_traits::cast::{FromPrimitive, ToPrimitive};
|
||||
|
||||
use std::borrow::Cow;
|
||||
use std::convert::TryFrom;
|
||||
|
@ -168,7 +168,7 @@ impl<'de, 'src, S: BinarySource<'de>> PackedReader<'de, 'src, S> {
|
|||
if count - i <= 16 {
|
||||
Ok(SignedInteger::from(u128::from_be_bytes(bs[bs.len() - 16..].try_into().unwrap())))
|
||||
} else {
|
||||
Ok(SignedInteger::from(Cow::Owned(BigInt::from_bytes_be(num::bigint::Sign::Plus, &bs[i..]))))
|
||||
Ok(SignedInteger::from(Cow::Owned(BigInt::from_bytes_be(num_bigint::Sign::Plus, &bs[i..]))))
|
||||
}
|
||||
} else {
|
||||
// Negative.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
use num::bigint::BigInt;
|
||||
use num::cast::ToPrimitive;
|
||||
use num_bigint::BigInt;
|
||||
use num_traits::cast::ToPrimitive;
|
||||
use std::convert::TryInto;
|
||||
use std::io;
|
||||
use std::io::Write;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
use num::bigint::BigInt;
|
||||
use num::traits::cast::ToPrimitive;
|
||||
use num::traits::sign::Signed;
|
||||
use num_bigint::BigInt;
|
||||
use num_traits::cast::ToPrimitive;
|
||||
use num_traits::sign::Signed;
|
||||
use std::borrow::Cow;
|
||||
use std::cmp::{Ord, Ordering, PartialOrd};
|
||||
use std::convert::TryFrom;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
use num::bigint::BigInt;
|
||||
use num_bigint::BigInt;
|
||||
use std::io;
|
||||
|
||||
use crate::SignedInteger;
|
||||
|
|
Loading…
Reference in New Issue