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
pull/10489/head
Jonathan Lebon 7 months ago committed by GitHub
parent 69e08d9e91
commit 36ee9ba7d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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 = [

Loading…
Cancel
Save