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

Figure out how to support non-desktop families #323

Open
retep998 opened this issue Aug 22, 2016 · 2 comments
Open

Figure out how to support non-desktop families #323

retep998 opened this issue Aug 22, 2016 · 2 comments
Labels
help wanted Help is requested to deal with this issue question More info is needed on this issue

Comments

@retep998
Copy link
Owner

Currently winapi only supports the desktop family. However for anyone who wants to make a Windows app for a family other than desktop, they will need to have access to a different set of APIs, including linking to different import libraries.

I cannot use cargo features to select which family to use as cargo features are not mutually exclusive rust-lang/cargo#2980

Furthermore, unless the user limits themselves to no_std, they will need the collaboration of libstd as well, as it depends on system functionality which may not exist in the desired family, or may link in an import library which is for the wrong family.

@docbrown
Copy link
Contributor

docbrown commented Sep 10, 2017

Just brainstorming here, because I'm not very familiar with UWP... What about adding a new target to Rust for UWP apps (say, x86_64-pc-windowsapp-msvc, for example) and then treating target_os = "windows" as WINAPI_PARTITION_DESKTOP and target_os = "windowsapp" as WINAPI_PARTITION_APP?

@retep998 retep998 removed this from Issues to take care of in Winapi 0.3 transition Dec 1, 2017
@Susurrus
Copy link
Contributor

Note that rust-lang/rust#60260 is about to be merged which adds the i686-uwp-windows-gnu and x86_64-uwp-windows-gnu targets. These have the target_vendor set to uwp, which can be easily filtered on by cfg attributes.

@retep998 retep998 added help wanted Help is requested to deal with this issue question More info is needed on this issue labels Aug 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Help is requested to deal with this issue question More info is needed on this issue
Projects
None yet
Development

No branches or pull requests

3 participants