Bug Report for `blitz-core` Project: Version Mismatch in `keyboard-types`
QEU-B-458 opened this issue · comments
UnTamedStArBlOb commented
Bug Report: Version Mismatch in keyboard-types
for blitz-core
Project
Issue Description
While compiling the blitz-core
project, I encountered a compilation error. The error seems to be due to a type mismatch between different versions (0.6.2
and 0.7.0
) of the keyboard_types
crate.
Error Output
error[E0308]: arguments to this function are incorrect
--> blitz-core\src\events.rs:171:65
|
171 | let data = Arc::new(EventData::Keyboard(KeyboardData::new(
| ^^^^^^^^^^^^^^^^^
...
error[E0308]: mismatched types
--> blitz-core\src\events.rs:514:24
|
514 | .unwrap_or(Code::Unidentified),
| ^^^^^^^^^^^^^^^^^^
...
error[E0308]: `match` arms have incompatible types
--> blitz-core\src\events.rs:513:14
|
513 | _ => input_data::keyboard_types::Code::from_str(&code.to_string())
| -----------------------------------------------------------
514 | .unwrap_or(Code::Unidentified),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
cargo tree
Output
# Output for 0.6.2 version
keyboard-types v0.6.2
└── blitz-core v0.1.0
# Output for 0.7.0 version
keyboard-types v0.7.0
├── dioxus-html v0.4.2
│ └── blitz-core v0.1.0
└── dioxus-native-core v0.4.2
└── blitz-core v0.1.0
**Solution
The conflict was resolved by updating blitz-core
to use keyboard-types
version 0.7.0
instead of 0.6.2
.
**Suggested Actions
- Update the
keyboard-types
dependency in theCargo.toml
ofblitz-core
to0.7.0
to align with other dependencies. - If the need arises for different versions to coexist, consider using feature flags or conditional compilation to separate version-specific code.
Environment:
- Renderer version: [
Dioxus 0.4.2
] - Rust version: [1.72.0,
stable
] - OS info: [windows 10.0.19045 Build 19045"]
Questionnaire
- I'm interested in fixing this myself but don't know where to start
- I would like to fix and I have a solution
- I don't have time to fix this right now, but maybe later