cargo-lipo
homebrew-musl-cross
Our great sponsors
cargo-lipo | homebrew-musl-cross | |
---|---|---|
2 | 3 | |
507 | 517 | |
- | - | |
4.4 | 5.5 | |
3 months ago | 9 days ago | |
Rust | Ruby | |
Apache License 2.0 | ISC 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.
cargo-lipo
-
Build on mac M1
Yes. You can target aarch64 and x86_64. Universals binaries can be created manually or via cargo-lipo.
-
Building Rust libraries for iOS in 2021
When I created the library a few years ago, the go-to way for this was cargo-lipo. That worked fine when building for aarch64-apple-ios and x86_64-apple-ios, but when building both for ARM64 iOS and M1 the linker fails:
homebrew-musl-cross
-
Show HN: Sqinn-Go is a Golang library for accessing SQLite databases in pure Go
Or with musl-cross:
https://github.com/FiloSottile/homebrew-musl-cross
It works pretty well! It's a thing you might keep in your back pocket to test builds from your ARM dev machine on a dev host, and then let the CI/CD system build the real version later.
-
M1 Users - How are you Cross Compiling?
The musl-cross tap: https://github.com/FiloSottile/homebrew-musl-cross
-
Build on mac M1
BUT! If you need some cross-compile, which usually we did by homebrew-musl (AWS Lambda, for example), currently this is not working without several unstable workarounds. Github issue: https://github.com/FiloSottile/homebrew-musl-cross/issues/23
What are some alternatives?
ObjCrust - Using Rust to create an iOS static library
rust - Empowering everyone to build reliable and efficient software.
cargo-mobile - Rust on mobile made easy!
zig - General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.
glean - Modern cross-platform telemetry
go-sqlite-bench - Benchmarks for Golang SQLite Drivers
Cargo - The Rust package manager
gosqlite - SQLite driver for the Go programming language
creator - A state management library that enables concise, fluid, readable and testable business logic code.
rust - Rust for the xtensa architecture. Built in targets for the ESP32 and ESP8266
cross - “Zero setup” cross compilation and “cross testing” of Rust crates
sqinn - SQLite over stdin/stdout