|
|
||
|---|---|---|
| .cargo | ||
| noxis-cli | ||
| noxis-rs | ||
| .gitignore | ||
| Cargo.toml | ||
| README.md | ||
| gdb_init | ||
| logo.png | ||
| rust-toolchain | ||
README.md
noxis-rs
In-container integrating util to handle processes runtime
( with amd64 and riscv64 support )
Depends on
rustup (>=1.27.1)gcc-riscv64-unknown-elfbuild-essentialgcc-riscv64-linux-gnubinutils-riscv64-linux-gnu
Setting up
Download and execute rustup.sh
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Building
- Clone this repo
runner-rs
git clone https://github.com/prplV/runner-rs
- Enter project's dir and set up toolchain list to compile code for RISC-V and AMD64
cd runner-rs/ && rustup target add riscv64gc-unknown-linux-gnu && rustup target add x86_64-unknown-linux-gnu
[!NOTE]
Cargo is configured to build an app for amd64/linux defaultly. RISCV-based compilation is optional.
3.1. Release build of app for amd64/linux
cargo x86_64
3.2. Release build of app for riscv64/linux
cargo riscv64
3.3. Release build of app for both (riscv64 and amd64)
cargo unibuild
Execution for amd64/linux
./target/x86_64-unknown-linux-gnu/release/runner-rs
or
cargo run_x86
Execution for riscv64/linux
./target/riscv64gc-unknown-linux-gnu/release/runner-rs
or
[!CAUTION]
cargo run_risc command is a temp broken. Better use the first one
cargo run_risc
