Hacker GitHub

← All repos

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

Mentions per year 52 mentions · busiest year 2021 (14)
20082026
  1. Docs: https://github.com/microsoft/windows-rs/blob/master/docs/rea...
  2. 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.…
  3. ▲ 4
    Microsoft ships a Rust WinUI3 library, React-like
    story by EFLKumo · 2026-06-01 · 1 comment
  4. ▲ 2
    Windows Reactor: UI library for Rust developers targeting WinUI 3
    story by tcfhgj · 2026-05-29 · 0 comments
  5. …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
  6. …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
  7. …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
  8. …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
  9. ▲ 4
    Rust for Windows
    story by apitman · 2025-03-12 · 0 comments
  10. …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]
  11. …[4] - https://github.com/microsoft/cppwinrt/issues/1289#issuecomme... [5] - https://github.com/microsoft/windows-rs
  12. …and Rust. https://github.com/thebrowsercompany/swift-winrt https://github.com/microsoft/cppwinrt https://github.com/microsoft/windows-rs
  13. …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
  14. …providing the standard look and feel simply isn't available to the majority of developers. [1]: https://github.com/microsoft/windows-rs/pull/1836
  15. …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
  16. …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
  17. There is an official Rust Windows API: https://github.com/microsoft/windows-rs
  18. …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
  19. …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
  20. …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)?;…
  21. 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.
  22. 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++
  23. ▲ 2
    Strings RFC
    story by alex_hirner · 2022-08-15 · 0 comments
  24. 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…
  25. …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
  26. 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
  27. …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
  28. Sure, https://github.com/microsoft/windows-rs/issues/1285#issuecom...
    comment by pjmlp · 2022-02-24 · in Is C++ Doomed?
  29. 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
  30. …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…
  31. …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
  32. …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?
  33. …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?
  34. Not just that, but like, https://github.com/microsoft/windows-rs . Microsoft is a member of the Rust Foundation. etc etc.
  35. …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
  36. …ub.com/microsoft/microsoft-ui-xaml/issues/2488 As mentioned on the thread, the current samples are at https://github.com/microsoft/windows-rs
  37. …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...
  38. …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
  39. 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
  40. 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
  41. …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
  42. 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
  43. …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
  44. ▲ 18
    Rust for Windows
    story by ingve · 2021-01-21 · 3 comments
  45. ▲ 785
    Rust for Windows
    story by dsr12 · 2021-01-21 · 293 comments
  46. …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
  47. …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)
  48. I don't think this is exactly what you want, but you might be interested in it: https://github.com/microsoft/winrt-rs
  49. …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.
  50. 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