[config] load_script = """ #!@rust fn main() { println!("test load script invocation via rust"); } """ [tasks.rust] script_runner = "@rust" script = ''' //! ```cargo //! [dependencies] //! envmnt = "*" //! ``` fn main() { let value = envmnt::get_or("PATH", "NO PATH VAR DEFINED"); println!("Path Value: {}", &value); } ''' [tasks.rust-simple] script_runner = "@rust" script = ''' fn main() { println!("test"); } ''' [tasks.cargo-script] env = { "CARGO_MAKE_RUST_SCRIPT_PROVIDER" = "cargo-script" } script_runner = "@rust" script = ''' fn main() { println!("test"); } ''' [tasks.cargo-play] env = { "CARGO_MAKE_RUST_SCRIPT_PROVIDER" = "cargo-play" } script_runner = "@rust" script = ''' fn main() { println!("test"); } ''' [tasks.rust-script] env = { "CARGO_MAKE_RUST_SCRIPT_PROVIDER" = "rust-script" } script_runner = "@rust" script = ''' fn main() { println!("test"); } '''