#cross-compilation #runner #target-triple #compilation #cross #sysroot #no-std

no-std app cargo-runner

Tool to help with the .cargo/config target.$triple.runner field

2 releases

0.1.1 Sep 1, 2019
0.1.0 Sep 1, 2019

#13 in #target-triple

MIT/Apache

5KB
53 lines

Cargo-runner

Tool to help with the .cargo/config target.$triple.runner field.

Primarily intended for use with cargo-sysroot and cargo-image.

Install

Run cargo install cargo-runner.

Usage

In .cargo/config

[target.$triple]
runner = "cargo runner"

In Cargo.toml

[package.metadata.cargo_runner]
# The string `$TARGET_FILE` will be replaced with the path from cargo.
command = [
    "qemu-system-x86_64",
    "-drive",
    "format=raw,file=$TARGET_FILE"
]

# Add `.bin` to the `$TARGET_FILE` given by cargo.
suffix = ".bin"

Dependencies

~2.8–4MB
~70K SLoC