Compile error regarding `div_ceil` usage
igor-yusupov opened this issue · 2 comments
igor-yusupov commented
I got an error when trying to run the example with the command cargo run -r --example hello_ocr rust-book.jpg
error[E0658]: use of unstable library feature 'int_roundings'
--> cargo/registry/src/index.crates.io-6f17d22bba15001f/rten-0.2.0/src/iter_util.rs:26:40
|
26 | let len = self.remainder.len().div_ceil(self.chunk_size);
| ^^^^^^^^
|
= note: see issue #88581 <https://github.com/rust-lang/rust/issues/88581> for more information
For more information about this error, try `rustc --explain E0658`.
error: could not compile `rten` (lib) due to previous error
warning: build failed, waiting for other jobs to finish...
igor-yusupov commented
btw I have updated rust version and now it works. I think we can close the issue :)
robertknight commented
Indeed, div_ceil
was stabilized only recently in Rust v1.73.0. This project will always compile with stable Rust, but it currently only promises to work with recent stable releases.