14 unstable releases (6 breaking)

0.7.0 Sep 5, 2021
0.6.0 Sep 5, 2021
0.5.0 Sep 5, 2021
0.4.0 Jan 11, 2020
0.1.1 Apr 23, 2019

#289 in Build Utils

MIT license

10KB
241 lines

Fakecargo

fake cargo for single rust files

Use-cases examples:

fakecargo fmt myawesome_rust_script.rs

fakecargo clippy myawesome_rust_script.rs

fakecargo flamegraph myawesome_rust_script.rs -- arg1 arg2

fakecargo compile myawesome_rust_script.rs => build script in release mode and print its path

Example: Use external dependencies with single script (Requires cargo-edit):

mycoolscript.rs:

use secret_msg::SecretMessage;
fn main() {
  println!("{}", "hello".one_way_encrypt());
}

fakecargo add secret_msg mycoolscript.rs

fakecargo mycoolscript.rs

Shell replacement example

See fake_tests.rs, to run it:

  • fakecargo add xshell fake_tests.rs
  • fakecargo fake_tests.rs

No runtime deps