Skip to content

cargo-script hangs after building binary #67

Description

@yogesum

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions