samples-rs
core-foundation-rs
samples-rs | core-foundation-rs | |
---|---|---|
3 | 3 | |
64 | 915 | |
- | 2.8% | |
6.3 | 7.9 | |
over 3 years ago | 2 days ago | |
Rust | Rust | |
MIT License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
samples-rs
-
Microsoft unifies all Windows APIs under a single Rust library generated from metadata
Honestly doesn't seem that bad, from the examples in that repo all calls to win32 apis are unsafe, but all rust/winrt examples seem pretty clean. Check out this ocr example. It opens a file, reads a bitmap, then performs ocr. I didn't even know windows shipped with a builtin ocr api!
-
Rust for Windows
For someone not familliar with Windows API, why does creating a Windows needs unsafe and other pointer passing ect ...? I guess it's the same for the C++/C# version?
https://github.com/kennykerr/samples-rs/blob/master/create_w...
core-foundation-rs
-
macOS Apps in Rust
Rust has RAII so you can have retain on 'clone' operations and release on drops, just like the native Rc/Arc types do.
This is, incidentally, how the servo bindings to core-foundation work (I prefer those bindings where there is overlap).
Servo bindings: https://github.com/servo/core-foundation-rs
Other crates of interest on this topic:
-
Rust for Windows
For Mac fans, the closest you'll have to this in OS-X is core-foundation-rs[1], by the servo team.
[1] https://github.com/servo/core-foundation-rs
-
Rust GUI: Introduction, a.k.a. the state of Rust GUI libraries (As of January 2021)
Core-Foundation
What are some alternatives?
win32ada - Ada API to the Windows library
winapi-rs - Rust bindings to Windows API
MSRC-Security-Research - Security Research from the Microsoft Security Response Center (MSRC)
rust-zmq - Rust zeromq bindings.
win32metadata - Tooling to generate metadata for Win32 APIs in the Windows SDK.
conrod - An easy-to-use, 2D GUI library written entirely in Rust.
Cargo - The Rust package manager
windows-rs - Rust for Windows