Skip to content

Using the sm-winit feature on UWP #56

@asajeffrey

Description

@asajeffrey

If a user builds with the sm-winit feature on UWP, there's a compile error caused by

/// A placeholder native widget type for UWP, which isn't supported at the moment.
#[cfg(target_vendor = "uwp")]
pub struct NativeWidget;
and
#[cfg(feature = "sm-winit")]
#[inline]
pub fn create_native_widget_from_winit_window(&self, window: &Window)
-> Result<NativeWidget, Error> {
let hwnd = window.get_hwnd() as HWND;
if hwnd.is_null() {
Err(Error::IncompatibleNativeWidget)
} else {
Ok(NativeWidget { window_handle: hwnd })
}
}
. For extra fun, rust-lang/cargo#4463.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions