-
Notifications
You must be signed in to change notification settings - Fork 145
Open
Description
Hi, it looks like building for windows is currently brocken.
using 197049945935f0e0c2d1e42e5c0ff136dd4146ce (latest on main rn)
cargo build --target x86_64-pc-windows-gnu
Compiling accesskit_winit v0.30.0 (https://github.com/wash2/accesskit?tag=cosmic-0.14#f0599eed)
error[E0782]: expected a type, found a trait
--> /home/snoweuph/.local/share/cargo/git/checkouts/accesskit-c5e0fd64a779e7b6/f0599ee/platforms/winit/src/platform_impl/windows.rs:20:18
|
20 | window: &Window,
| ^^^^^^
|
help: use a new generic type parameter, constrained by `Window`
|
18 ~ pub fn new<T: Window>(
19 | _event_loop: &dyn ActiveEventLoop,
20 ~ window: &T,
|
help: you can also use an opaque type, but users won't be able to specify the type parameter when calling the `fn`, having to rely exclusively on type inference
|
20 | window: &impl Window,
| ++++
help: alternatively, use a trait object to accept any type that implements `Window`, accessing its methods at runtime using dynamic dispatch
|
20 | window: &dyn Window,
| +++Cargo.toml
[target.'cfg(target_os = "linux")'.dependencies.libcosmic]
git = "https://github.com/pop-os/libcosmic.git"
rev = "197049945935f0e0c2d1e42e5c0ff136dd4146ce"
default-features = false
features = ["a11y", "about", "multi-window", "smol", "winit", "wayland", "wgpu"]
[target.'cfg(not(target_os = "linux"))'.dependencies.libcosmic]
git = "https://github.com/pop-os/libcosmic.git"
rev = "197049945935f0e0c2d1e42e5c0ff136dd4146ce"
default-features = false
features = ["a11y", "about", "multi-window", "smol", "winit", "wgpu"]I am cross compiling using mingw, but that shouldn't matter as this is clearly not a cross platform problem
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels