macdriver
cacao
macdriver | cacao | |
---|---|---|
13 | 22 | |
4,350 | 1,742 | |
- | - | |
7.9 | 6.7 | |
about 2 months ago | 3 months ago | |
Go | 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.
macdriver
- Are there native bindings for native UI development with Go? Window, GTK, MacOS
-
Towards the Personal Potential of Software
The first big release of the year was the macdriver project, which got a significant response on Hacker News. It gives us Objective-C and Apple framework bindings for Go, letting you build simple Apple apps entirely from Go. That wasn't possible before, so it was a little exciting, but it was early. The native Go APIs included for commonly used Foundation and Cocoa classes were far from complete. They could still be used if you knew what you were doing, but with an ideal of total coverage of Apple frameworks, that wouldn't be enough. There were also unresolved issues just deciding how to best manage memory and pointers, which I knew would fall on me to figure out and take some time.
-
Apple API schemas for code generation and more
Even less common are schemas for non-web APIs. In 2016, Electron started releasing a JSON schema of all their APIs that allowed me to build a bridge to use Electron APIs from Go. I had that prototype in mind when I started the macdriver project that was released a couple months ago. Right now we're manually wrapping Apple framework classes with Go types so you can write native Apple platform applications that look like this:
-
Customize your computer screen with HTML
It started as a demo for macdriver, but over the last week or so I've been making a standalone version. 90% of that time was playing around with it while trying to make demos.
-
Native Mac APIs for Go
Done https://github.com/progrium/macdriver/issues/12
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?
appify - Create a macOS Application from an executable (like a Go binary)
evdi - Extensible Virtual Display Interface
micromdm - Mobile Device Management server
Warp - Warp is a modern, Rust-based terminal with AI built in so you and your team can build great software, faster.
go-smc - Golang library to read and write the OSX System Management Controller (SMC)
fruity - Rusty bindings for Apple libraries
go-pmset - Go library to get OSX assertions, like the command line pmset -g assertions
prost - PROST! a Protocol Buffers implementation for the Rust Language
goplay2 - Airplay 2 Receiver written in Go
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.
ludo - A libretro frontend written in golang
menuet - Go library to create menubar apps- programs that live only in OSX's NSStatusBar