Compiling num-modular v0.6.1 (/home/sylvestre/dev/debian/num-modular)
error[E0432]: unresolved import `num_integer`
--> src/bigint.rs:3:5
|
3 | use num_integer::Integer;
| ^^^^^^^^^^^ use of undeclared crate or module `num_integer`
error[E0432]: unresolved import `num_traits`
--> src/bigint.rs:4:5
|
4 | use num_traits::{One, ToPrimitive, Zero};
| ^^^^^^^^^^ use of undeclared crate or module `num_traits`
error[E0432]: unresolved import `num_traits`
--> src/bigint.rs:109:9
|
109 | use num_traits::Signed;
| ^^^^^^^^^^ use of undeclared crate or module `num_traits`
error[E0599]: no method named `to_usize` found for reference `&BigUint` in the current scope
--> src/bigint.rs:131:33
|
131 | if let Some(sm) = m.to_usize() {
| ^^^^^^^^
|
= help: items from traits can only be used if the trait is in scope
help: trait `ToPrimitive` which provides `to_usize` is implemented but not in scope; perhaps you want to import it
|
107 + use num_traits::cast::ToPrimitive;
|
with trunk: