A Docker container on an Apple Silicon M1 can be used to produce a Linux ARM64 environment. Building a manylinux wheel (e.g., manylinux2014-aarch64) can be the way to go.
From Discussion in the Matrix Room
there is a manylinux for aarch64: https://github.com/pypa/manylinux
so I'd say that it should be fine to use the correct docker image for manylinux aarch64
update the rust toolchain
update the cli for maturin
installing another toolchain in
|
&& rustup toolchain install nightly --target x86_64-unknown-linux-musl \ |
should be easy
same as building,
|
RUN maturin build --target x86_64-unknown-linux-musl --manylinux off |
what might be harder is building musl for arm64
|
&& make install -j$(expr $(nproc) \+ 1) \ |