DanielKeep/cargo-script

Environment variable not defined

notdanilo opened this issue · 0 comments

fn main() {
   println!("{}", env!("CARGO_SCRIPT_SCRIPT_PATH"));
}

returns

error: environment variable `CARGO_SCRIPT_SCRIPT_PATH` not defined

What am I doing wrong?