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

Run Rust files and expressions as scripts without any setup or compilation step.

Results 49 rust-script issues
Sort by recently updated
recently updated
newest added
trafficstars

rust-script is trying to execute my file as 2018 edition which is wrong. I can't find any documentation on getting it to use 2021 edition and this does not work:...

rust-gdb - Could you please add some feature to make it easy to run rust-scripts with `gdb` ? I've found flag `--debug` to build in debug mode. However it :...

I've installed `rust-script` via nix like so: ``` nix-shell -p rust-script ``` In that shell, I can run the rust-script executable: ``` [nix-shell:~]$ rust-script --version rust-script 0.20.0 ``` However, if...

I wish to use rust-script with my i3blocks to obtain system temperature. My script works. But it required internet for compilation, and hence I could not run it during startup,...

enhancement

Consider: ``` # grep . *.rs h1.rs:fn main() { println!("hi") } h2.rs:#! /usr/bin/env cargo-eval h2.rs:fn main() { println!("hi") } h3.rs:#! /usr/bin/env rust-script h3.rs:fn main() { println!("hi") } # rustc h1.rs...

bug

I'd love a flag that makes this print the macro expansion of the input instead of compiling and running it. This could be done as a flag like `--macro-expand` that...

The `--help` right now just lists all the flags. It should also include info on how to write shebang scripts, both the cargo manifest version and the `cargo-deps:` version. This...

enhancement

I noticed the rust-script cache exploding very quickly in size... Is there a way to clean it up properly? I just butchered it manually in my files but I'd rather...

bug

I'm building an OS kernel and use rust-script for some build tasks. However, cargo's config.toml file is still used for the script, and that TOML file contains actions for building...

help wanted
question

If I have a script in a directory in my `$PATH`, say `/usr/local/bin/foo`, and it starts with `#!/usr/bin/env rust-script` and it has the executable flag set, then I can invoke...

bug
help wanted