| Crates.io | cargo-runner |
| lib.rs | cargo-runner |
| version | 0.1.1 |
| created_at | 2019-09-01 08:09:41.162718+00 |
| updated_at | 2019-09-01 08:26:58.21216+00 |
| description | Tool to help with the `.cargo/config` `target.$triple.runner` field. |
| homepage | |
| repository | https://github.com/DianaNites/cargo-runner |
| max_upload_size | |
| id | 161297 |
| size | 15,827 |
Tool to help with the .cargo/config target.$triple.runner field.
Primarily intended for use with cargo-sysroot and cargo-image.
Run cargo install cargo-runner.
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"