in-container integrating util to handle processes
 
 
 
Go to file
prplV 345abde741 no metrics warnings 2024-12-03 13:09:02 +03:00
.cargo alias for cross-building + readme update 2024-09-16 15:45:38 +03:00
src no metrics warnings 2024-12-03 13:09:02 +03:00
tests delete sock file 2024-12-03 10:43:19 +03:00
.gitignore no tracking sock file 2024-12-03 10:42:46 +03:00
Cargo.toml preboot settings added 2024-12-03 12:53:19 +03:00
Dockerfile Dockerfile changed a bit 2024-10-16 09:56:50 +03:00
README.md readme update 2024-09-16 15:47:32 +03:00
gdb_init setting up for cross-platform building 2024-08-23 11:57:41 +03:00
rust-toolchain rust-toolchain file added its needed (really needed) 2024-08-23 11:09:36 +03:00
settings.json Обновить settings.json 2024-11-26 15:41:42 +03:00
temp-process with no output now 2024-11-28 14:29:28 +03:00

README.md

runner-rs ( with amd64 and riscv64 support )

Logo
in-container integrating util to handle processes runtime

Depends on

  • rustup (>=1.27.1)
  • gcc-riscv64-unknown-elf
  • build-essential

Setting up

Download and execute rustup.sh

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Building

  1. Clone this repo runner-rs
  git clone https://github.com/prplV/runner-rs
  1. 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. RISC-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