In one of my projects, I used pixel-canvas
, which depends on glium
which dependents on glutin
which depends on winit
which depends on objc
. So, the dependency will be my_project->pixel_canvas->glium->glutin->winit->objc
. When I try to compile my code using beta rustc on my MacBook Pro M1, there is a compile error(mismatched types
) with winit
due to the change of objc
, and this error has been fixed in main
branch of winit
but not released.
Can I somehow change the Cargo.toml
of my project to force the compiler to use the latest version of winit
so to pass the compilation?
I have tried this in the Cargo.toml
of my project and then done cargo update
, but the problem remained unresolved.
[patch.crates-io]
winit = { git = "https://github.com/rust-windowing/winit.git" }
[dependencies]
pixel-canvas = "0.2.1"
FYI, the issue of winit
is here.