29 lines
337 B
Markdown
29 lines
337 B
Markdown
|
# Rust Static Binary Example
|
||
|
|
||
|
This repository serves as an example of how to build static binaries in rust for
|
||
|
classic distribution or containerization.
|
||
|
|
||
|
## Dependencies
|
||
|
|
||
|
```
|
||
|
rustup target add x86_64-unknown-linux-musl
|
||
|
```
|
||
|
|
||
|
## Usage
|
||
|
|
||
|
```
|
||
|
make build
|
||
|
```
|
||
|
|
||
|
## Docker
|
||
|
|
||
|
```
|
||
|
make docker-image
|
||
|
```
|
||
|
|
||
|
### Run with Docker
|
||
|
|
||
|
```
|
||
|
make docker-run
|
||
|
```
|