Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/laysakura/aarch64-linux-hello-rs
A "Hellow World!" written in Rust, compiled into runnable binary for arm64 (aarch64) archtecture on Linux.
https://github.com/laysakura/aarch64-linux-hello-rs
aarch64 dockerfile helloworld rust
Last synced: about 1 month ago
JSON representation
A "Hellow World!" written in Rust, compiled into runnable binary for arm64 (aarch64) archtecture on Linux.
- Host: GitHub
- URL: https://github.com/laysakura/aarch64-linux-hello-rs
- Owner: laysakura
- License: cc0-1.0
- Created: 2020-03-06T05:23:43.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-03-06T06:13:31.000Z (almost 5 years ago)
- Last Synced: 2024-10-30T07:07:04.162Z (3 months ago)
- Topics: aarch64, dockerfile, helloworld, rust
- Language: Dockerfile
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# aarch64-linux-hello-rs
A "Hellow World!" written in Rust, compiled into runnable binary for arm64 (aarch64) archtecture on Linux.
## Features
- **Works in docker.** No need to insall compilers, linkers, and simulators by yourself.
- Compiled into **arm64 (aarch64) with Linux GNU ABI.**
- Uses **stable rustc build.** Not nightly.
- Uses cargo. Not xargo.
- (Optional) Runs with Visual Studio Code Remote Development Container.## Run in Docker
### In your host machine:
```bash
docker build --rm -t aarch64-linux-hello-rs .
docker run -it --rm --volume ${PWD}:/source --workdir /source aarch64-linux-hello-rs
```### In the docker image:
`Ctrl-a x` to quit QEMU monitor.
```bash
root@9da32352d17d:/workspaces/aarch64-linux-hello-rs# cargo run
Finished dev [unoptimized + debuginfo] target(s) in 0.02s
Running `qemu-aarch64 -L /usr/aarch64-linux-gnu/ target/aarch64-unknown-linux-gnu/debug/aarch64-linux-hello-rs`
Hello from Rust!
```## (Optional) Run with Visual Studio Code Remote Development Container
Open Visual Studio code with:
```bash
code .
```And select the `Remote-Containers: Add Development Container Configuration Files...` command from the Command Palette (F1) and pick a pre-defined container configuration file.