cargo-script icon indicating copy to clipboard operation
cargo-script copied to clipboard

Cargo script subcommand

Results 40 cargo-script issues
Sort by recently updated
recently updated
newest added

In a lot of situations I need to pipe Rust code to `cargo script` but right now it can only read the source from a file, right? Can you please...

I've tried copy pasting the scripts in the readme but get the following output: ``` echo Hello | cargo script --loop 'let mut n=0; move |l| {n+=1; println!("{:>6}: {}",n,l.trim_right())}' error:...

```rust $ cargo script -e 'panic!()' --use-shared-binary-cache=no (20986696, 32736, 20986626) $ cargo script -e 'panic!()' --use-shared-binary-cache=no (2847947592, 32650, 2847947522) $ cargo script -e 'panic!()' --use-shared-binary-cache=no (3250600776, 32680, 3250600706) ``` This...

When I try to run a script that's in my PATH (on Windows 8.1), I get: ```internal error: could not find script``` cargo-script should find scripts if they are in...

Should also allow for specifying an alternate target.

This hack is supposed to increment on each run: ``` rust use std::fs::File;use std::io::Write;fn main(){let c=0; let mut v = vec![]; ::std::io::Read::read_to_end(&mut File::open("q").unwrap(),&mut v).unwrap(); let mut q = &mut File::create("q").unwrap();...

Is anyone implementing Gist/Web support at this time? If not, I can do it.

Given that rust-lang/cargo#354 is now fixed, and I complained about Cargo not locking its files, it seems only fair that `cargo-script` should properly lock its own cache. One complication is...

Presumably, this would be `crates.io` and _possibly_ GitHub and/or raw Git urls. Something like: - `cargo script pkg:some-tool` - fetch, build and execute the latest version of the `some-tool` package...

Existing maintained fork: [fornwall/rust-script](https://github.com/fornwall/rust-script) Tracking issue for built-in `cargo script`: https://github.com/rust-lang/cargo/issues/12207