Crates.io | fakecargo |
lib.rs | fakecargo |
version | 0.7.0 |
source | src |
created_at | 2019-04-23 19:40:26.495627 |
updated_at | 2021-09-05 22:58:10.138696 |
description | fake cargo for single rust files |
homepage | |
repository | https://github.com/sigmaSd/fakecargo |
max_upload_size | |
id | 129717 |
size | 11,716 |
fake cargo for single rust files
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
See fake_tests.rs
, to run it:
fakecargo add xshell fake_tests.rs
fakecargo fake_tests.rs