For now Deta Space Micro runtime have installed glibc 2.27
.
So for Rust applications to work on it, they need to be built on similar systems (Ubuntu 18.04 glibc 2.27)
.
Building on Deta Space
with its pipeline exceeds the timeout (also for now).
For this purpose, I create a docker image where such applications can be easily built.
Command to run in application directory:
docker run --rm --name rustc --mount type=bind,source="$(pwd)",target=/app somespecialone/deta-rust-builder:latest cargo build --release
For Windows users or Docker engine version >=23:
docker run --rm --name rustc --mount type=bind,source=.,target=/app somespecialone/deta-rust-builder:latest cargo build --release