#cargo #configurable #runner #toml #run #toml-config #advrunner

app cargo-advrunner

An advanced configurable cargo runner

2 unstable releases

0.2.0 Jul 22, 2023
0.1.0 Jul 22, 2023

#630 in Cargo plugins

Download history 21/week @ 2024-07-22 129/week @ 2024-07-29 90/week @ 2024-08-05 76/week @ 2024-08-12 16/week @ 2024-08-19 14/week @ 2024-08-26 139/week @ 2024-09-02 327/week @ 2024-09-09 44/week @ 2024-09-16 31/week @ 2024-09-23 29/week @ 2024-09-30 27/week @ 2024-10-07 29/week @ 2024-10-14 15/week @ 2024-10-21 14/week @ 2024-10-28 30/week @ 2024-11-04

105 downloads per month

MIT license

4KB
66 lines

cargo-advrunner

An advanced configurable runner for cargo.

Usage

  1. Install cargo-advrunner

    cargo install cargo-advrunner
    
  2. Add the .cargo/config.toml entry.

    runner = "cargo-advrunner"
    
  3. Add the advrunner.toml config file.

    [test]
    command = "<command to use for cargo test>"
    
    [run]
    command = "<command to use for cargo run>"
    

Examples

WASM

Configure advrunner.toml to run using wasm-server-runner, test using wasm-bindgen-test-runner:

[test]
command = "wasm-bindgen-test-runner"

[run]
command = "wasm-server-runner"

Set the runner to only be used for WASM at .cargo/config.toml:

[target.wasm32-unknown-unknown]
runner = "cargo-advrunner"

Dependencies

~0.8–8MB
~66K SLoC