unageek / inari

A Rust implementation of interval arithmetic (IEEE 1788)
MIT License
32 stars 2 forks source link

Problem using this crate #58

Closed Chris00 closed 2 years ago

Chris00 commented 2 years ago

The following minimal project that simply does use inari::*; does not compile: RUSTFLAGS='-Ctarget-cpu=haswell' cargo build yields,

    Updating crates.io index
   Compiling libc v0.2.110
   Compiling gmp-mpfr-sys v1.4.7
   Compiling az v1.2.0
   Compiling memchr v2.4.1
   Compiling version_check v0.9.3
   Compiling rug v1.14.0
   Compiling minimal-lexical v0.2.1
   Compiling cfg-if v1.0.0
   Compiling nom v7.1.0
   Compiling inari v0.11.0
   Compiling test v0.0.1 (/tmp/test)
error[E0432]: unresolved import `inari`
 --> test.rs:1:5
  |
1 | use inari::*;
  |     ^^^^^ maybe a missing crate `inari`?

For more information about this error, try `rustc --explain E0432`.
error: could not compile `test` due to previous error
unageek commented 2 years ago

@Chris00 Hi! Please try adding edition = "2018" or edition = "2021" to the [package] section of the Cargo.toml.

Chris00 commented 2 years ago

Thanks for the quick answer.

Hope you do not mind, I'll have other questions on your package! 😀