Skip to content

A cargo runner that can distinguish between test and run and execute different commands.

Notifications You must be signed in to change notification settings

MOZGIII/cargo-advrunner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"

About

A cargo runner that can distinguish between test and run and execute different commands.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages