fschutt / azul

Desktop GUI Framework
https://azul.rs/
Mozilla Public License 2.0
5.89k stars 220 forks source link

Cargo run error, could nto find IOReader in bincode #265

Closed raveltan closed 3 years ago

raveltan commented 3 years ago

Description

Cargo run after adding azul to deps failed with the current message:

   Compiling webrender_api v0.60.0
error[E0433]: failed to resolve: could not find `IoReader` in `bincode`
   --> /home/ravel/.cargo/registry/src/github.com-1ecc6299db9ec823/webrender_api-0.60.0/src/display_list.rs:270:35
    |
270 |             let reader = bincode::IoReader::new(UnsafeReader::new(&mut self.data));
    |                                   ^^^^^^^^ not found in `bincode`
    |
help: consider importing this struct
    |
5   | use bincode::de::read::IoReader;
    |

error: aborting due to previous error

For more information about this error, try `rustc --explain E0433`.
error: could not compile `webrender_api`

To learn more, run the command again with --verbose.

Version / OS

rustc 1.48.0 (7eac88abb 2020-11-16)

Steps to Reproduce