Skip to content
This repository has been archived by the owner on Aug 3, 2022. It is now read-only.
/ WinRT-Rust Public archive

Sample app that shows wrapping a Rust function into an WinRT application.

License

Notifications You must be signed in to change notification settings

pjmlp/WinRT-Rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Introduction

An example on how to use Rust as shared library in WinRT applications.

Overview

The sample application is composed of a simple form written in XAML and C#, which makes use of a WinRT Component done in C++/CX is used to expose the Rust function to the WinRT world.

The application after starting it:

Starting

After entering some text, the function gets called and its result is displayed:

Message

Future plans

If Rust eventually supports the creation of WinRT components, the C++/CX wrapper code can be replaced by pure Rust code.

As .NET Native isn't getting any updates beyond .NET Core 3, C++/CX got replaced with C++/WinRT, and Rust/WinRT is still work in progress, I am archiving this repo.

About

Sample app that shows wrapping a Rust function into an WinRT application.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published