Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running emu with --all-features brings out some errors #683

Open
42plamusse opened this issue May 12, 2022 · 1 comment
Open

Running emu with --all-features brings out some errors #683

42plamusse opened this issue May 12, 2022 · 1 comment
Labels
Bug Something isn't working

Comments

@42plamusse
Copy link
Collaborator

42plamusse commented May 12, 2022

edit:

error[E0433]: failed to resolve: use of undeclared crate or module `gb_lcd`
 --> gb-ppu/src/ppu/de_ser.rs:3:9
  |
3 |     use gb_lcd::render::{SCREEN_HEIGHT, SCREEN_WIDTH};
  |         ^^^^^^ use of undeclared crate or module `gb_lcd`

error[E0425]: cannot find value `SCREEN_HEIGHT` in this scope
  --> gb-ppu/src/ppu/de_ser.rs:11:38
   |
11 |     const PIXEL_BUFFER_SIZE: usize = SCREEN_HEIGHT * SCREEN_WIDTH * 3;
   |                                      ^^^^^^^^^^^^^ not found in this scope

error[E0425]: cannot find value `SCREEN_WIDTH` in this scope
  --> gb-ppu/src/ppu/de_ser.rs:11:54
   |
11 |     const PIXEL_BUFFER_SIZE: usize = SCREEN_HEIGHT * SCREEN_WIDTH * 3;
   |                                                      ^^^^^^^^^^^^ not found in this scope

error[E0425]: cannot find value `SCREEN_WIDTH` in this scope
  --> gb-ppu/src/ppu/de_ser.rs:13:36
   |
13 |     type PixelsBuffer = [[[u8; 3]; SCREEN_WIDTH]; SCREEN_HEIGHT];
   |                                    ^^^^^^^^^^^^ not found in this scope

error[E0425]: cannot find value `SCREEN_HEIGHT` in this scope
  --> gb-ppu/src/ppu/de_ser.rs:13:51
   |
13 |     type PixelsBuffer = [[[u8; 3]; SCREEN_WIDTH]; SCREEN_HEIGHT];
   |                                                   ^^^^^^^^^^^^^ not found in this scope

error[E0425]: cannot find value `SCREEN_WIDTH` in this scope
  --> gb-ppu/src/ppu/de_ser.rs:50:40
   |
50 |             let mut pixels = [[[0; 3]; SCREEN_WIDTH]; SCREEN_HEIGHT];
   |                                        ^^^^^^^^^^^^ not found in this scope

error[E0425]: cannot find value `SCREEN_HEIGHT` in this scope
  --> gb-ppu/src/ppu/de_ser.rs:50:55
   |
50 |             let mut pixels = [[[0; 3]; SCREEN_WIDTH]; SCREEN_HEIGHT];
   |                                                       ^^^^^^^^^^^^^ not found in this scope

error[E0425]: cannot find value `SCREEN_WIDTH` in this scope
  --> gb-ppu/src/ppu/de_ser.rs:55:32
   |
55 |                     pixels[p / SCREEN_WIDTH][p % SCREEN_WIDTH][b % 3] = byte;
   |                                ^^^^^^^^^^^^ not found in this scope

error[E0425]: cannot find value `SCREEN_WIDTH` in this scope
  --> gb-ppu/src/ppu/de_ser.rs:55:50
   |
55 |                     pixels[p / SCREEN_WIDTH][p % SCREEN_WIDTH][b % 3] = byte;
   |                                                  ^^^^^^^^^^^^ not found in this scope

error[E0277]: the trait bound `io_registers::Speed: io_registers::_::_serde::Deserialize<'_>` is not satisfied
    --> gb-cpu/src/io_registers.rs:32:5
     |
32   |     pub current_speed: Speed,
     |     ^^^ the trait `io_registers::_::_serde::Deserialize<'_>` is not implemented for `io_registers::Speed`
     |
note: required by a bound in `io_registers::_::_serde::de::SeqAccess::next_element`
    --> /Users/pierre/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.137/src/de/mod.rs:1725:12
     |
1725 |         T: Deserialize<'de>,
     |            ^^^^^^^^^^^^^^^^ required by this bound in `io_registers::_::_serde::de::SeqAccess::next_element`

error[E0277]: the trait bound `io_registers::Speed: io_registers::_::_serde::Deserialize<'_>` is not satisfied
    --> gb-cpu/src/io_registers.rs:32:5
     |
32   |     pub current_speed: Speed,
     |     ^^^ the trait `io_registers::_::_serde::Deserialize<'_>` is not implemented for `io_registers::Speed`
     |
note: required by a bound in `io_registers::_::_serde::de::MapAccess::next_value`
    --> /Users/pierre/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.137/src/de/mod.rs:1864:12
     |
1864 |         V: Deserialize<'de>,
     |            ^^^^^^^^^^^^^^^^ required by this bound in `io_registers::_::_serde::de::MapAccess::next_value`

error[E0277]: the trait bound `io_registers::Speed: io_registers::_::_serde::Serialize` is not satisfied
    --> gb-cpu/src/io_registers.rs:32:5
     |
32   |     pub current_speed: Speed,
     |     ^^^ the trait `io_registers::_::_serde::Serialize` is not implemented for `io_registers::Speed`
     |
note: required by a bound in `io_registers::_::_serde::ser::SerializeStruct::serialize_field`
    --> /Users/pierre/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.137/src/ser/mod.rs:1899:12
     |
1899 |         T: Serialize;
     |            ^^^^^^^^^ required by this bound in `io_registers::_::_serde::ser::SerializeStruct::serialize_field`
@42plamusse 42plamusse added the Bug Something isn't working label May 12, 2022
@FirelightFlagboy
Copy link
Collaborator

some issue may be conflicting with others

and the cargo output to see the errors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants