DanielKeep / cargo-script

Cargo script subcommand
Other
729 stars 37 forks source link

`cargo-script` hangs after building binary #67

Open yogesum opened 5 years ago

yogesum commented 5 years ago

reqwest.rs

// cargo-deps: reqwest

extern crate reqwest;

fn main() {
    println!("{}", reqwest::get("https://www.rust-lang.org/en-US/").unwrap().text().unwrap());
}

Above file don't run on executing cargo script reqwest.rs. After build process it hangs and does not run binary.

command output

   Compiling reqwest v0.1.0 ($HOME/.cargo/script-cache/file-reqwest-e49a49733bde173c)
   Finished release [optimized] target(s) in 6.97s

   # get stuck here

in case of running with --build-only same happens.

theduke commented 5 years ago

I have the same problem with the newest stable compiler.