https://github.com/colinfinck/hermit_rust_app
https://github.com/colinfinck/hermit_rust_app
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/colinfinck/hermit_rust_app
- Owner: ColinFinck
- Created: 2018-08-03T09:28:37.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-03T10:07:34.000Z (almost 8 years ago)
- Last Synced: 2025-04-14T20:16:14.329Z (about 1 year ago)
- Language: Rust
- Size: 1000 Bytes
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Multithreaded example application for HermitCore-rs written in Rust
The HermitCore-rs Unikernel written in Rust now also supports applications written in Rust!
## Current Status of the Rust compiler
* [](https://github.com/rust-lang/rust/pull/52861)
* [](https://github.com/rust-lang/libc/pull/1048)
* [](https://github.com/rust-lang/llvm/pull/122)
Compiling HermitCore-rs applications in Rust only works as soon as all 3 pull requests have been applied.
In the meantime, you need to build a patched Rust compiler on your own.
## Building the test application
I assume that you have built a patched Rust compiler yourself.
The Rust Git repository is cloned to `$HOME/rust` and the patched compiler has been installed to `$HOME/rust-install`.
```
$ export PATH=/opt/hermit/bin:$HOME/rust-install/bin:$PATH
$ export XARGO_RUST_SRC=$HOME/rust/src
$ xargo build --target=x86_64-unknown-hermit
```
This may get easier and not require Xargo at all as soon as the required code is committed upstream.