Skip to content
This repository has been archived by the owner on Nov 18, 2022. It is now read-only.

Proposal: add rust-script support #960

Open
crabdancing opened this issue Aug 1, 2022 · 1 comment
Open

Proposal: add rust-script support #960

crabdancing opened this issue Aug 1, 2022 · 1 comment

Comments

@crabdancing
Copy link

rust-script, for those who aren't aware, is a popular mechanism by which Rust projects can be distributed as a single all-in-one shell script style file.

Its use cases are varied -- probably mostly sysops/devops, providing superior performance (after first run) to other solutions like Python & Bash, while inheriting the superior syntax and feature set of the full Rust language. It has the potential to bring the safety-first performant benefits of Rust to an entire new use case, making maintainable performant scripting a much easier problem to solve.

Unfortunately, the ecosystem is not very rust-script aware, which makes it a pain to use in practice. vscode-rust intellisense doesn't seem to work without an external Cargo manifest. Syntax highlighting doesn't work with the .ers extension. There are probably some other issues, but they aren't coming to mind at the moment.

@lnicola
Copy link
Member

lnicola commented Aug 1, 2022

This extension is unmaintained. You want rust-lang/rust-analyzer#9609.

I suppose we could add .ers support, but running without a Cargo.toml isn't trivial.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants