cargo-script
cargo-script copied to clipboard
Cargo script subcommand
VSCode refuses to show autocompletion, even if I set Rust as a language and it recognizes the syntax. I think it’s because it doesn’t recognize it as a Cargo project....
Is it maintained by original developer? If no, it may be worth to explicitly mark it as unmaintained in README; or invite some other maintainer (i.e. convert Github repo to...
Surprisingly, due to cargo checking for dependencies on each run, it is not possible to run scripts when there is no network connection. Being able to forward arguments to cargo...
Is it possible to add support for input from terminal stdin like below? ```sh cargo script
``` casie:~/Downloads ⇢ cargo install --force cargo-script Updating crates.io index Downloaded cargo-script v0.2.8 Downloaded 1 crate (50.4 KB) in 1.19s Installing cargo-script v0.2.8 error: failed to compile `cargo-script v0.2.8`, intermediate...
A quick fix of "Impossible to install cargo-script #79" after rustc_version version "0.1.7" had been yanked. Updated rustc_version to "0.3.3" and rewrote "build.rs"'s logic in the the new rustc_version.
This large set of commits was a fun side-project of mine for a while now. These commits are divided by minimum version of Rust necessary to make subsequent dependency updates...
Hi, rust-nooby here. I've tried scriptifying the guessing game from the Rust language book which does not use extern crates at all. From reading up the .toml seems to handle...
I'm currently trying something like this, which doesn't seem supported: ```rust //! cargo-deps: some_local_dep = { path = "../some_local_dep" } ``` Normally, I'd consider using a Cargo workspace, but there...
Can be reproduced with the following script: Filename: `time.rs` ```rust #!/usr/bin/env run-cargo-script // cargo-deps: chrono extern crate chrono; fn main() { println!("Hello"); } ``` When trying to execute with `./time.rs`...