Unnamed repository; edit this file 'description' to name the repository.
languages/rust: add `rust-script` and `cargo` shebangs (#10484)
The former is one of the more popular forks of the original idea:
https://rust-script.org/
The latter is an RFC for folding that functionality into cargo itself,
available on nightly:
https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#script
| -rw-r--r-- | languages.toml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/languages.toml b/languages.toml index 2a322d93..51610de6 100644 --- a/languages.toml +++ b/languages.toml @@ -202,6 +202,7 @@ scope = "source.rust" injection-regex = "rust" file-types = ["rs"] roots = ["Cargo.toml", "Cargo.lock"] +shebangs = ["rust-script", "cargo"] auto-format = true comment-tokens = ["//", "///", "//!"] block-comment-tokens = [ |