fakecargo

Crates.iofakecargo
lib.rsfakecargo
version0.7.0
sourcesrc
created_at2019-04-23 19:40:26.495627
updated_at2021-09-05 22:58:10.138696
descriptionfake cargo for single rust files
homepage
repositoryhttps://github.com/sigmaSd/fakecargo
max_upload_size
id129717
size11,716
Bedis Nbiba (sigmaSd)

documentation

README

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
Commit count: 29

cargo fmt