Cross-compiling Rust (targets)
Në shqip: Kompajlimi për platforma të tjera
ShpjegimiSQ
Me rustup target add mund të ndërtosh për Linux, Windows, ARM ose WebAssembly nga i njëjti kompjuter. Mjeti cross e lehtëson duke përdorur Docker. Një skedar binar i vetëm, pa varësi.
EnglishEN
With rustup target add you can build for Linux, Windows, ARM or WebAssembly from the same computer. The cross tool makes it easier using Docker. A single binary, no dependencies.
Si ta mendosh
Si një rrobaqepës që qep për çdo madhësi pa lëvizur nga punishtja.
Lexoje në anglisht
Like a tailor sewing for every size without leaving the workshop.
Shembull kodibash
rustup target add aarch64-unknown-linux-gnu
cargo build --release --target aarch64-unknown-linux-gnu