Skip to content

somespecialone/deta-rust-builder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deta Rust Builder

Note

Image name is somespecialone/deta-rust-builder

Docker link

Why? 🤔

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.

How?

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

Example usage