Re:Rust 2021 Roadmap
by andrekandre on Saturday December 19, 2020 @05:56PM
(#25482062)
interesting... though since winrt is c/c++ based its probably easier for rust to interface with, guessing...
but afaik with swift there is static type information encoded at the binary level that swiftui (e.g `some View`) utilizes to do type-based tree diffing, so i wondered how rust can generate that, even with macros...
maybe im mistaken though!
(thanks for the reply btw)
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 triggering a bunch of lifetime errors. WinRT gets around this because it is built on COM, so you get reference counting no matter what.