macos-cross-compiler
cargo-bundle
macos-cross-compiler | cargo-bundle | |
---|---|---|
4 | 6 | |
324 | 994 | |
- | - | |
8.8 | 5.8 | |
3 months ago | 4 days ago | |
Earthly | Rust | |
GNU General Public License v3.0 only | 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.
macos-cross-compiler
-
I stopped worrying and loved Makefiles
Make is excellent if you use it properly to model your dependencies. This works really well for languages like C/C++, but I think Make really struggles with languages like Go, JavaScript, and Python or when your using a large combination of technologies.
I've found Earthly [0] to be the _perfect_ tool to replace Make. It's a familiar syntax (combination of Dockerfiles + Makefiles). Every target is run in an isolated Docker container, and each target can copy files from other targets. This allows Earthly to perform caching and parallelization for free, and in addition you get lots of safety with containerization. I've been using Earthly for a couple of years now and I love it.
Some things I've built with it:
* At work [1], we use it to build Docker images for E2E testing. This includes building a Go project, our mkdocs documentation, our Vue UI, and a ton of little scripts all over the place for generating documentation, release notes, dependency information (like the licenses of our deps), etc.
* I used it to create my macOS cross compiler project [2].
* A project for playing a collaborative game of Pokemon on Discord [3]
IMO Makefiles are great if you have a few small targets. If you're looking at more than >50 lines, if your project uses many languages, or you need to run targets in a Docker container, then Earthly is a great choice.
[0]: https://earthly.dev/
[1]: https://p3m.dev/
[2]: https://github.com/shepherdjerred/macos-cross-compiler
[3]: https://github.com/shepherdjerred/discord-plays-pokemon
-
Show HN: dockerc – Docker image to static executable "compiler"
It will depend heavily on the docker image you're trying to ship. For example with macos-cross-compiler[0] the resulting binary is over 2GB. With python:alpine[1] it's only 25MB.
Because image isn't copied whether the image is 2GB or 25MB the startup time will be nearly instantaneous for both.
The runtime adds 6-7MB of overhead although I expect that this can be reduced to less than 3MB with some work.
[0]: https://github.com/shepherdjerred/macos-cross-compiler
- So You Want to Ship a Command-Line Tool for macOS
- Show HN: macOS-cross-compiler – Compile binaries for macOS on Linux
cargo-bundle
-
So You Want to Ship a Command-Line Tool for macOS
[2] https://github.com/burtonageo/cargo-bundle
You wouldn't need to tangle with Swift, would only need enough Rust to hoist whatever script you're trying to run.
In general though I find the article a bit odd - there are also quite a few examples of signing/notarizing/etc for GitHub Actions out there already, I went through this exercise a week ago and it wasn't that bad.
-
My Return to Desktop Applications
Incidentally, if there's anyone into Windows installers and Rust, see [1][2] There's a Rust bundler for making installers cross-platform. Mac is done, Linux is partly done, and Windows needs someone familiar with the arcane world of Windows install files.
[1] https://github.com/neovide/neovide/issues/1374
[2] https://github.com/burtonageo/cargo-bundle/issues/116
-
How do I make my binary look like an app
Is cargo-bundle the kind of thing you're looking for?
- Have you guys tried cargo-deb? Amazing!
- Dioxus v0.1 - a new Rust GUI toolkit for Web, Desktop, Mobile, SSR, TUI that emphasizes developer experience [WebView-based rendering]
What are some alternatives?
dockerc - container image to single executable compiler
couchbase-lite-C - C language bindings for the Couchbase Lite embedded NoSQL database engine
enroot - A simple yet powerful tool to turn traditional container/OS images into unprivileged sandboxes.
ui-mock
dockcross - Cross compiling toolchains in Docker images
cargo-wix - A cargo subcommand to build Windows installers for rust projects using the WiX Toolset
ttrss-sandstorm - Sandstorm port of Tiny Tiny RSS
sciter-js-sdk - Sciter.JS - Sciter but with QuickJS on board instead of my TIScript
flutter-embedded-linux - Embedded Linux embedding for Flutter
logseq - A local-first, non-linear, outliner notebook for organizing and sharing your personal knowledge base. Use it to organize your todo list, to write your journals, or to record your unique life.
yew - Rust / Wasm framework for creating reliable and efficient web applications
TiddlyWiki - A self-contained JavaScript wiki for the browser, Node.js, AWS Lambda etc.