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

app cargo-advrunner

高级可配置的 cargo 运行器

2 个不稳定版本

0.2.0 2023年7月22日
0.1.0 2023年7月22日

464Cargo 插件

Download history 106/week @ 2024-03-11 123/week @ 2024-03-18 97/week @ 2024-03-25 370/week @ 2024-04-01 1175/week @ 2024-04-08 558/week @ 2024-04-15 364/week @ 2024-04-22 44/week @ 2024-04-29 422/week @ 2024-05-06 232/week @ 2024-05-13 38/week @ 2024-05-20 16/week @ 2024-05-27 26/week @ 2024-06-03 38/week @ 2024-06-10 17/week @ 2024-06-17 23/week @ 2024-06-24

每月116 次下载

MIT 许可证

4KB
66

cargo-advrunner

cargo 的高级可配置运行器。

用法

  1. 安装 cargo-advrunner

    cargo install cargo-advrunner
    
  2. .cargo/config.toml 中添加条目。

    runner = "cargo-advrunner"
    
  3. 添加 advrunner.toml 配置文件。

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

示例

WASM

advrunner.toml 中配置使用 wasm-server-runner 运行,使用 wasm-bindgen-test-runner 进行测试

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

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

.cargo/config.toml 中设置运行器仅用于 WASM

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

依赖

~0.9–9MB
~73K SLoC