rust-objc
cacao
rust-objc | cacao | |
---|---|---|
6 | 22 | |
377 | 1,742 | |
- | - | |
0.0 | 6.7 | |
7 months ago | 3 months ago | |
Rust | Rust | |
MIT License | MIT License |
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
cacao
-
So You Want to Ship a Command-Line Tool for macOS
This is really specific, but for this point in the article:
> There’s a long guide on Embedding a Command-Line Tool in a Sandboxed App, so I followed that, and then slowly, painfully, factored Xcode out of it, so that I wouldn’t have to figure out how to get a 10GB Xcode install onto the CI machine (remember, you need to be signed in to an Apple ID to download Xcode, and there’s no way to do it from the command-line).
You could actually solve this with Rust and no Xcode whatsoever. cacao [1] and cargo-bundle [2] will produce an app bundle you could sign/notarize/distribute without needing to ever open Xcode.
[1] https://github.com/ryanmcgrath/cacao
- macOS Apps in Rust
- GitHub - ryanmcgrath/cacao: Rust bindings for AppKit (macOS) and UIKit (iOS/tvOS). Experimental, but working!
-
A new open-sourcing project launches!!! A declarative, compose-based and cross-platform GUI
I've had basic animation support in cacao for about a year now, but I don't think anybody even realizes it.
-
Library Concept for Interoperating with Objective-C - Seeking Feedback
But I will reiterate what I say on many posts like these, which is that it would be even cooler if we could stop having a million projects reinvent this wheel - and I say this as someone who wrote a large Rust library that is backed by ObjC. madsmtm has an ongoing effort to put together a best in class ObjC Rust wrapper, which would be great to see even more support for.
-
What bindings do I need for making a modern Windows 11 GUI?
MacOS; I have to call the AppKit API. I can use a library like this which offers Rust bindings for AppKit - otherwise I can write my own maybe?
-
Can I Use Rust For IOS Development?
Yes, you can: https://github.com/ryanmcgrath/cacao
What are some alternatives?
rFmt
evdi - Extensible Virtual Display Interface
rusty-tags - Create ctags/etags for a cargo project
Warp - Warp is a modern, Rust-based terminal with AI built in so you and your team can build great software, faster.
fruity - Rusty bindings for Apple libraries
cbindgen - A project for generating C bindings from Rust code
prost - PROST! a Protocol Buffers implementation for the Rust Language
iree - A retargetable MLIR-based machine learning compiler and runtime toolkit.
MoltenVK - MoltenVK is a Vulkan Portability implementation. It layers a subset of the high-performance, industry-standard Vulkan graphics and compute API over Apple's Metal graphics framework, enabling Vulkan applications to run on macOS, iOS and tvOS.
onnx-mlir - Representation and Reference Lowering of ONNX Models in MLIR Compiler Infrastructure
macdriver - Native Mac APIs for Go. Soon to be renamed DarwinKit!