Implementation is much expressive than initially discussed in the issue.
lightmon will attempt to resolve the exec command to cargo run if src/main.rs is present, and cargo test if src/lib.rs is present.
However, you can specify the cargo sub command as well as pass any arguments very easily. For example, the following command will resolve the exec command as cargo build --bin my_bin:
Closes #19
Implementation is much expressive than initially discussed in the issue.
lightmon
will attempt to resolve the exec command tocargo run
ifsrc/main.rs
is present, andcargo test
ifsrc/lib.rs
is present.However, you can specify the cargo sub command as well as pass any arguments very easily. For example, the following command will resolve the exec command as
cargo build --bin my_bin
: