rust-musl-cross
muslrust
Our great sponsors
rust-musl-cross | muslrust | |
---|---|---|
5 | 5 | |
572 | 885 | |
3.7% | - | |
7.2 | 7.7 | |
24 days ago | about 2 months ago | |
Shell | 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-musl-cross
- How do I cross compile for Rasperry Pi 64 bit on Windows?
-
Hey Rustaceans! Got a question? Ask here! (36/2022)!
Is my best bet just to use (rust-musl-cross)[https://github.com/messense/rust-musl-cross] as the builder image?
-
Guidance about cross compilation tools, especially targeting musl
rust-musl-cross: active as last commit was 10 days ago. It said it based on rust-musl-builder. But this repo was created years ago. So why would this exist when there is also rust-musl-builder. What are the differences compared to rust-musl-builder and muslrust?
-
Running Rust on AWS Lambda on ARM64
The example that is provided in the AWS Rust runtime repository shows them using a custom linker and rustup target in order to cross-compile for x86-based lambdas. I attempted to dive into how to get a arm64-based linker, but in the process of trying to figure out how to get that linker installed locally (no convenient packages for Ubuntu, sorry), I stumbled across a project that provides cross-compilation tooling for various platforms via Docker. That made my life a lot easier - Using the rust-musl-cross Docker container, all I have to do is wrap the call to cargo build, and it builds for the proper architecture:
- rust-musl-cross docker images added linux/arm64 architecture support
muslrust
-
Outlook in the terminal
That's isn't true, one can make fully independent static binary in rust
-
Idiot's guide to a Docker deployment?
The winning combo that I found works great is a multistage build, using clux/muslrust to build the dependencies + the binary itself, then using a scratch image as the final stage. Depending on the complexity, the statically linked images I use range from ~9MB to ~22MB. The 9MB image was ported from an existing container that was dynamically linked, and if I remember right, the image was in the ~70-80MB range using debian:buster-slim as the final stage.
-
Guidance about cross compilation tools, especially targeting musl
muslrust: seems to be active last commit on Oct 2, 2021. But what is the difference compared to the one above?
-
"internal compiler error: failed to process buffered lint" with actix-http, only on linux on azure pipeline
Oh, I remember that I use https://github.com/clux/muslrust and is there what the bug is triggered. Weirdly, running it locally not show it.
-
Porting a serverless chatbot from Python to Rust
After a lot of searching I came across a Docker image which provides a clean environment for building Rust linked against musl libc. It includes curl, pq, sqlite3, and zlib, but the main one I needed was OpenSSL. This container image solved my problem and I can run using Docker locally as well as in the GitHub Action build workflow.
What are some alternatives?
docker-rust - The official Docker images for Rust
rust-musl-builder - Docker images for compiling static Rust binaries using musl-libc and musl-gcc, with static versions of useful C libraries. Supports openssl and diesel crates.
rust-on-raspberry-pi
upx-action - Strips and runs upx on binaries
docker-ipsec-vpn-server - Docker image to run an IPsec VPN server, with IPsec/L2TP, Cisco IPsec and IKEv2
oasis - a small statically-linked linux system
docker-rustup - Automated builded images for rust-lang with rustup, "the ultimate way to install RUST"
rab - Rusty Armor Builds - Monster Hunter Rise Armor Set Creation Tool
aws-lambda-rust-runtime - A Rust runtime for AWS Lambda
mini-docker-rust - Very small rust docker image
actix-web - Actix Web is a powerful, pragmatic, and extremely fast web framework for Rust.