rust-objc
core-foundation-rs
rust-objc | core-foundation-rs | |
---|---|---|
6 | 3 | |
377 | 915 | |
- | 2.8% | |
0.0 | 7.9 | |
7 months ago | 3 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.
rust-objc
- macOS Apps in Rust
-
Where do I start for creating a windowed app in pure rust?
If you find dealing with the Obj-C bindings a bit daunting (I would), I'd recommend you use the objc crate. That will like you dive into the details of creating and updating Mac windows without having to figure out how to call Objective C from Rust.
-
Calling Apple built-in (Swift) APIs from Rust
There is https://github.com/SSheldon/rust-objc which is abandoned.
-
How to capture the contents of applications' windows and display them in real-time
On macOS, per-window capture is actually exceedingly easy and officially supported by Apple, either including window shadows or not. I'm not aware of any crate for doing it cross-platform, but the way to do it on macOS is documented all over the Internet and the bindings you need are in the objc and core-graphics crates.
-
GPU computing on Apple Silicon
That looks like Objective C, not C. You can call Objective C methods from Rust via the objc crate.
- Wish we had Mac APIs for Rust
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?
rFmt
winapi-rs - Rust bindings to Windows API
rusty-tags - Create ctags/etags for a cargo project
rust-zmq - Rust zeromq bindings.
fruity - Rusty bindings for Apple libraries
win32ada - Ada API to the Windows library
cbindgen - A project for generating C bindings from Rust code
MSRC-Security-Research - Security Research from the Microsoft Security Response Center (MSRC)
iree - A retargetable MLIR-based machine learning compiler and runtime toolkit.
samples-rs
onnx-mlir - Representation and Reference Lowering of ONNX Models in MLIR Compiler Infrastructure
conrod - An easy-to-use, 2D GUI library written entirely in Rust.