microsoft/windows-rs
View on GitHub ↗ ★ 12,886 Rust
Rust for Windows
52 mentions on Hacker News by 39 people: 7 stories, 45 comments · first 2020-04-30 · latest 2026-06-13
20082026
-
Docs: https://github.com/microsoft/windows-rs/blob/master/docs/rea...
comment by fbilhaut · 2026-06-13 · in The state of building user interfaces in Rust -
While part of the Windows crate, I think windows-reactor deserves explicit mention. https://github.com/microsoft/windows-rs/tree/master/crates/s... It's a react-style API for WinUI3 apps, meaning it's not trying to mimic the Windows LAF.…
comment by OptionOfT · 2026-06-13 · in The state of building user interfaces in Rust -
…course, but Win32 isn't one of them -- one can use it from a memory safe language just fine, e.g. https://github.com/microsoft/windows-rs
comment by ojeda · 2026-03-22 · in Windows native app development is a mess -
…if out.is_null() || out.write(BSTR::from(RIBBON_XML)).is_err() { return E_POINTER; }; S_OK } } https://github.com/microsoft/windows-rs/issues/3832 Thanks for pushing on the issue! I've updated the blog post for GetCustomUI.
comment by piker · 2025-12-13 · in COM Like a Bomb: Rust Outlook Add-in -
…you should probably fix it. See also this issue report I found (not exactly on point but related): https://github.com/microsoft/windows-rs/issues/3230
comment by comex · 2025-12-11 · in COM Like a Bomb: Rust Outlook Add-in -
…Rust code… but when I do, it’s because I’m calling the Win32 API. Check out windows-rs instead. https://github.com/microsoft/windows-rs
comment by bdhcuidbebe · 2025-04-07 · in Show HN: I built a Rust crate for running unsafe code safely -
…and is constantly being worked on and improved. [1]: https://github.com/LGUG2Z/komorebi [2]: https://github.com/microsoft/windows-rs
comment by bsnnkv · 2025-02-26 · in Microsoft is Getting Rusty [video] -
…[4] - https://github.com/microsoft/cppwinrt/issues/1289#issuecomme... [5] - https://github.com/microsoft/windows-rs
comment by pjmlp · 2024-07-01 · in Writing GUI apps for Windows is painful -
…and Rust. https://github.com/thebrowsercompany/swift-winrt https://github.com/microsoft/cppwinrt https://github.com/microsoft/windows-rs
comment by favorited · 2024-04-30 · in Arc Browser for Windows, now generally available -
…Windows bindings [1]. The bigger problem is just inertia: large game engines are enormous. [1]: https://github.com/microsoft/windows-rs
comment by pcwalton · 2024-04-26 · in Leaving Rust gamedev after 3 years -
…providing the standard look and feel simply isn't available to the majority of developers. [1]: https://github.com/microsoft/windows-rs/pull/1836
comment by rossy · 2023-09-12 · in Ask HN: What is the best way to build a desktop app in Windows in 2023? -
…but still quite a niche product and was an oddly sudden dive into Rust from Microsoft at the time. https://github.com/microsoft/windows-rs
comment by jug · 2023-04-28 · in Microsoft exec says Windows 11 kernel will soon be booting with Rust inside -
…I would interpret "for a while" as more than ~7 weeks. Version 0.46 added initial WDK support: https://github.com/microsoft/windows-rs/releases/tag/0.46.0
comment by seritools · 2023-04-28 · in Microsoft exec says Windows 11 kernel will soon be booting with Rust inside -
There is an official Rust Windows API: https://github.com/microsoft/windows-rs
comment by whyever · 2023-02-11 · in A brief interview with Tcl creator John Ousterhout -
…it because, sadly, XAML/WinUI is squarely designed to be used with C# and Visual Studio. See also: https://github.com/microsoft/windows-rs/issues/2153#issuecom...
comment by withinrafael · 2022-12-14 · in Rust: State of GUI, December 2022 -
…API (pretty easy with the excellent developer documentation), the sky is really the limit.[2] [1]: https://github.com/microsoft/windows-rs [2]: With the exception of the Virtual Desktops API. I'm still salty about this, see more here:…
comment by bsnnkv · 2022-10-24 · in My next Mac might be the last -
…Not impossible, but not a trivial effort either! The best and most authoritative bindings are: https://github.com/microsoft/windows-rs The "demo" looks okay at first glance: unsafe { let event = CreateEventW(None, true, false, None)?;…
comment by jiggawatts · 2022-09-20 · in It's time to halt starting any new projects in C/C++ -
It looks like this official MS Rust library adds a lot of Win32 support: https://github.com/microsoft/windows-rs It should work well with VS Code.
comment by zibby8 · 2022-09-20 · in It's time to halt starting any new projects in C/C++ -
https://github.com/microsoft/windows-rs They're a founding member - no idea as to the amount of financial support that Microsoft provides to the Rust Foundation....
comment by daviddever23box · 2022-09-20 · in It's time to halt starting any new projects in C/C++ -
You can have a look at its issues, https://github.com/microsoft/windows-rs Note the lack of of safe wrappers for Windows APIs, and still no good way to create the Windows Runtime objects necessary to interoperate with XAML. Also the basic…
comment by pjmlp · 2022-07-27 · in Programming languages endorsed for server-side use at Meta -
…it could lead to the same thoughtless inefficiency as in the story about the Chrome omnibox. [1]: https://github.com/microsoft/windows-rs
comment by mwcampbell · 2022-06-22 · in Experimenting with Rust in Chromium -
There has been a Microsoft supported Rust projection of WinRT for a few years now [1]. [1] https://github.com/microsoft/windows-rs
comment by steeleduncan · 2022-06-14 · in Why Rust is a great choice for startups -
…methods were generated for derived classes (structs). This was removed due to high compile times https://github.com/microsoft/windows-rs
comment by gefhfffh · 2022-03-02 · in CXX-Qt: Safe Rust bindings for Qt -
Sure, https://github.com/microsoft/windows-rs/issues/1285#issuecom...
comment by pjmlp · 2022-02-24 · in Is C++ Doomed? -
Nope, I was speaking about this, https://github.com/microsoft/windows-rs/tree/23ff38bbbf46fb5... Apparently since last November they decided to replace it with another approach, so my information is outdated.
comment by pjmlp · 2022-02-16 · in Rust Survey 2021 Results -
…with a build.rs script for Rust/WinRT, otherwise no one would bother to wait for the build. https://github.com/microsoft/windows-rs/tree/master/.windows Also seeing the same crate consumed in multiple version being compiled multiple times…
comment by pjmlp · 2022-01-22 · in I'm making a Typescript type-checker in Rust -
…This task is/was too big to do by hand (and sensitive to changes) so they have automated it. See: https://github.com/microsoft/windows-rs
comment by flumpcakes · 2022-01-14 · in We used C++20 to eliminate a class of runtime bugs -
…incremental builds. Microsoft has to ship binary libraries with build scripts to work around it, https://github.com/microsoft/windows-rs/tree/master/.windows
comment by pjmlp · 2021-12-31 · in Why is my Rust build so slow? -
…The Rust/WinRT folks have a big binary crate that they use to workaround Rust's compilation times, https://github.com/microsoft/windows-rs/tree/master/.windows
comment by pjmlp · 2021-12-31 · in Why is my Rust build so slow? -
Not just that, but like, https://github.com/microsoft/windows-rs . Microsoft is a member of the Rust Foundation. etc etc.
comment by steveklabnik · 2021-12-09 · in Monoio – A thread-per-core Rust async runtime with io_uring -
…iPhone into, as "iPhone for Ford Trucks". edit: Look at the title in the Rust for Windows github: https://github.com/microsoft/windows-rs > Rust for the Windows SDK What does that even mean? "Rust implementation of the Windows SDK API", or…
comment by skohan · 2021-09-18 · in DOS Subsystem for Linux -
…ub.com/microsoft/microsoft-ui-xaml/issues/2488 As mentioned on the thread, the current samples are at https://github.com/microsoft/windows-rs
comment by pjmlp · 2021-07-09 · in Are we GUI Yet? The state of building user interfaces in Rust -
…investing in Rust for a while. - https://msrc-blog.microsoft.com/2019/07/22/why-rust-for-safe... - https://github.com/microsoft/windows-rs - https://cloudblogs.microsoft.com/opensource/2021/02/08/micro...
comment by mtobeiyf · 2021-06-25 · in Microsoft's Introduction to Rust Video Course -
…the Windows API. [0]: https://docs.microsoft.com/en-us/windows/dev-environment/rus... [1]: https://github.com/microsoft/windows-rs
comment by creata · 2021-05-08 · in Rust for Windows 0.9 -
They released a while back Rust crate for Windows API: https://github.com/microsoft/windows-rs
comment by yannikyeo · 2021-04-18 · in First steps with Rust -
I'm helping work on the compile times :) https://github.com/microsoft/windows-rs/issues/420
comment by jynelson · 2021-01-22 · in Rust for Windows -
…You can find them here[0]. For cross-compilation use-cases, the main blocker is [1]. [0] https://github.com/microsoft/windows-rs/tree/master/crates/w... [1] https://github.com/microsoft/windows-rs/issues/142
comment by roblabla · 2021-01-21 · in Rust for Windows -
https://github.com/microsoft/windows-rs/issues/143#issuecomm... > we could support this in future, but it is not an immediate goal. If this is something that folks would like to do, feel free to chime in on this issue and let us know. Note…
comment by est31 · 2021-01-21 · in Rust for Windows -
…windows-rs doesn't yet support cross compilation as easily as winapi. Here's the issue tracking it: https://github.com/microsoft/windows-rs/issues/142 [0]: https://github.com/retep998/winapi-rs/tree/0.3/x86_64/def
comment by roblabla · 2021-01-21 · in Rust for Windows -
…information, similar to how Qt, wxWidgets do it, and Rust/WinRT is in the process of doing. https://github.com/microsoft/winrt-rs But that is the easy part, the hard part is having the ability to plug a widget anywhere on the tree without…
comment by pjmlp · 2020-12-19 · in Rust 2021 Roadmap -
…all time downloads: https://crates.io/crates/winapi And the other bindings I was talking about https://github.com/microsoft/winrt-rs
comment by steveklabnik · 2020-09-06 · in Rust is not a good C replacement (2019) -
I don't think this is exactly what you want, but you might be interested in it: https://github.com/microsoft/winrt-rs
comment by s_y_n_t_a_x · 2020-06-13 · in Microsoft: Rust Is the Industry’s ‘Best Chance’ at Safe Systems Programming -
…language projection for the Windows Runtime to Rust is interesting, it is also a public repository: https://github.com/microsoft/winrt-rs I’d take this article with a grain of salt until we hear more.
comment by jug · 2020-05-07 · in Microsoft's GitHub account allegedly hacked, 500GB stolen -
The raw pointers are wrapped in `ComPtr` defined here: https://github.com/microsoft/winrt-rs/blob/master/src/com_pt... Those `ComPtr`s are then wrapped in convenience types that handle method dispatch, via code generated here:…
comment by Rusky · 2020-05-01 · in Rust/WinRT Public Preview -
The article has a very prominent https://github.com/microsoft/winrt-rs in it, where you will find that this is MIT licensed.
comment by steveklabnik · 2020-04-30 · in Rust/WinRT Public Preview