You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/README.md
-2Lines changed: 0 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,8 +43,6 @@ The primary use for `rust-script` is for running Rust source files as scripts. F
43
43
$ echo'println!("Hello, World!");'> hello.rs
44
44
$ rust-script hello.rs
45
45
Hello, World!
46
-
$ rust-script hello # you can leave off the file extension
47
-
Hello, World!
48
46
```
49
47
50
48
Under the hood, a Cargo project will be generated and built (with the Cargo output hidden unless compilation fails or the `-o`/`--cargo-output` option is used). The first invocation of the script will be slower as the script is compiled - subsequent invocations of unmodified scripts will be fast as the built executable is cached.
0 commit comments