cargo-script
cargo-script copied to clipboard
Cargo script subcommand
Hello! In https://github.com/rust-lang/rust/pull/59928 we are making https://github.com/rust-lang/rust/issues/57644 a deny-by-default lint. To be forward compatible with that, here's a simple fix.
Adds support for executing Rust scripts from GitHub, Gists and other raw HTTP sources.
```rust fn main() { println!("{}", env!("CARGO_SCRIPT_SCRIPT_PATH")); } ``` returns ``` error: environment variable `CARGO_SCRIPT_SCRIPT_PATH` not defined ``` What am I doing wrong?
fix #67 Currently, `cargo_target_by_message` calls `wait` on the child process before reading its stdout. This causes a deadlock.
Rustdoc has moved from using hoedown to using pulldown_cmark. There are many upsides to using pulldown_cmark, but the most practical reason to move to it is to remove reliance on...
Something like `cargo-script export myfile.csr output/` should write `output/Cargo.toml` and `output/src/main.rs`.
When running `cargo script` I get this warning: ```sh [cargo-make] INFO - Execute Command: "cargo" "script" "/var/folders/dm/hk5h5c8n0rg2cvsn67d0kjd00000gn/T/cargo-make/Yso0d56VD0.rs" Updating crates.io index Compiling Yso0d56VD0 v0.1.0 (/Users/jack/.cargo/script-cache/file-Yso0d56VD0-195512b2c76e7c26) warning: crate `Yso0d56VD0` should have a...
For some reason `cargo script --dep rand --dep rand_derive -e '1+2'` will cause one of cargo-script's children to hang on my system (using process explorer I can see 0 cpu...
**reqwest.rs** ```rust // 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...