Skip to content

Support for building pure UWP apps in Rust #283

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

Closed
jaigak opened this issue Jul 23, 2020 · 5 comments
Closed

Support for building pure UWP apps in Rust #283

jaigak opened this issue Jul 23, 2020 · 5 comments
Labels
question Further information is requested

Comments

@jaigak
Copy link

jaigak commented Jul 23, 2020

This requires modifications to the Rust runtime so that it doesn't call prohibited APIs in a UWP app. Currently building a AppContainer app using Rust fails validation.

@jaigak jaigak changed the title Support for build pure UWP apps in Rust Support for building pure UWP apps in Rust Jul 23, 2020
@bdbai
Copy link
Contributor

bdbai commented Jul 23, 2020

Try using *-uwp-windows-* targets instead of *-pc-windows-* targets. Xargo is good at this cross compilation work.

Also see https://github.com/bdbai/firstuwp-rs (not completed though). Since authoring composable object is not implemented so far, it is cumbersome that we have to implement COM interfaces by hand.

@uhuntu
Copy link
Contributor

uhuntu commented Jul 23, 2020

Not sure if it is suitable to say here, but just FYI: https://github.com/uhuntu/win_ui

@jaigak
Copy link
Author

jaigak commented Jul 23, 2020

Not sure if it is suitable to say here, but just FYI: https://github.com/uhuntu/win_ui

That's a desktop app, not a UWP app.

@kennykerr
Copy link
Collaborator

Yes, it's not that this isn't supported. It's just that we don't really have any good samples to share at the moment. Working on that! 😉

@kennykerr kennykerr added the question Further information is requested label Jul 23, 2020
@kennykerr
Copy link
Collaborator

kennykerr commented Aug 4, 2020

@robmikh also shared an example here: https://github.com/robmikh/minesweeper-rs/tree/uwp

Beyond that I'm focused on getting support in Rust for authoring WinRT types #81 as that's a major obstacle in getting support for things like Xaml and UWP apps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants