in-container integrating util to handle processes
 
 
 
Go to file
prplV f4217cf8ad doctests fix 2024-11-26 17:11:06 +03:00
.cargo alias for cross-building + readme update 2024-09-16 15:45:38 +03:00
src doctests fix 2024-11-26 17:11:06 +03:00
tests cargo fmt 2024-11-01 16:55:23 +03:00
.gitignore gitignore zero update 2024-10-30 13:55:15 +03:00
Cargo.lock fixed all config error and questions 2024-11-12 16:14:11 +03:00
Cargo.toml fixed all config error and questions 2024-11-12 16:14:11 +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 added files for dummy ci 2024-09-03 15:29:25 +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