RepositoryShell
RU

rust-cross/rust-musl-cross

Docker images for compiling static Rust binaries using musl-cross

749sao
80fork
7issue
4lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: musl-libc

#1 Repository của tháng

1
TINIX TRENDING·Chủ đề: musl-cross

#1 Repository của tháng

1
TINIX TRENDING·Chủ đề: docker-image

#1 Repository của tháng

🐳 Cross-compile Rust tĩnh đa nền tảng với musl-libc

Bộ Docker image dựng sẵn giúp biên dịch Rust thành binary tĩnh cho hơn 20 kiến trúc khác nhau chỉ bằng một lệnh docker run.

rust-musl-cross cung cấp các hình ảnh Docker đi kèm với [musl-cross-make][], [musl-gcc][], và [rustup][] để biên dịch các binary Rust tĩ (static) cho các mục tiêu (targets) khác nhau. Dự án được cảm hứng từ rust-musl-builder và hỗ trợ cả kiến trúc x86_64 (amd64) và aarch64 (arm64).

✨ Điểm nổi bật

  • Hơn 20 mục tiêu biên dịch: hỗ trợ các target như aarch64-unknown-linux-musl, armv7-unknown-linux-musleabihf, riscv64gc-unknown-linux-musl, v.v.
  • Hai kênh Rust: ổn định (stable) cho phần lớn target, bản nighly cho một số target như MIPS, PowerPC, s390x.
  • Alias theo TARGETARCH: các tag như amd64-musl, arm64-musl giúp dùng trực tiếp trong Dockerfile đa nền tảng.
  • Sử dụng musl-gcc + rustup target: tích hợp sẵn công cụ biên dịch và quản lý toolchain Rust.
  • Hỗ trợ strip binary: dùng lệnh musl-strip để rút gọn kích thước binary.
  • Dễ dùng với Docker volume: chỉ cần gắn thư mục làm việc vào /home/rust/src để biên dịch.

💡 Vì sao đáng chú ý

Không cần cài đặt toolchain riêng lẻ, chỉ cần pull image và chạy cargo build --release là có binary tĩ hoạt chạy trên thiết bị đích. Đặc biệt hữu ích khi phát triển phần mềm nhúng (embedded), router, hoặc triển khai trên các nền tảng không có glibc.


#Rust #musl #CrossCompile #Docker #StaticBinary #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

Modelsentence-similarity
sentence-transformers/all-MiniLM-L6-v2

all-MiniLM-L6-v2 This is a sentence-transformers(https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search. Usage (Sentence-Transformers) Using t...

♥0
157.6M
Jun 1, 2026
RepositoryRust
static-web-server/static-web-server

A cross-platform, high-performance and asynchronous web server for static files-serving. ⚡

2.4k
Nov 28, 2026
RepositoryRust
farion1231/cc-switch

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode,DeepSeek Harness and more. Only official website: ccswitch.io

158.7k
Dec 2, 2026
RepositoryRust
tauri-apps/tauri

Build smaller, faster, and more secure desktop and mobile applications with a web frontend.

113.4k
Dec 1, 2026
RepositoryRust
storytold/photocraft

PhotoCraft: An open-source photo editor written from scratch in pure Rust

82.7k
Dec 2, 2026
RepositoryTypeScript
toeverything/AFFiNE

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

81.6k
Dec 2, 2026
RepositoryRust
spacedriveapp/spacedrive

Spacedrive is an open source cross-platform file explorer, powered by a virtual distributed filesystem written in Rust.

39.6k
Nov 25, 2026
RepositoryTypeScript
nilbuild/developer-roadmap

Interactive roadmaps, guides and other educational content to help developers grow in their careers.

373.1k
Dec 1, 2026
RepositoryMarkdown
DigitalPlatDev/FreeDomain

Free domain registration and practical DNS learning resources for everyone.

209.9k
Aug 12, 2026