-
Notifications
You must be signed in to change notification settings - Fork 1.7k
recognize and support rust-script #9609
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Rust script is for one off scripts. It allows you to write an entire program in a single file while still supporting arbitrary cargo dependencies. It is not a "language" that you can embed in an existing program like a game. It also doesn't make compilation any faster. You just write a regular cargo based project except that |
We could actually implement this and it would be useful for one-off scripts, since we already have two project model implementations. On the other hand, we run And then we'd also have to support other |
🤦 ( |
Maybe there is possibility for two projects to collaborate to make it work? |
I think there will always be the possibility of another took like that to show up, using a different syntax for dependencies. |
I'm happy to help out with discussing and implementing changes to rust-script that could help out with implementing support in rust-analyzer, whether that be adding library functionality, CLI options, or changing/removing functionality to present a leaner and more minimal script runner functionality in general.
Agreed! Note that templates currently only works for snippets passed directly to rust-script (as in |
I'm assuming #15318 takes precedence over this? Granted, right now the two systems are fairly related (though we haven't finalized how to embed manifests yet). The main new thing is that |
To me two are definitely related! |
1 similar comment
To me two are definitely related! |
Just maybe for the context on importance - in light of adoption of LLMs (like OpenAI GPT-4 , LLaMA 2 , Starcoder...), tools that help them to work with Rust , I believe will help in Rust adoption in organizations (due to improving software economics). Therefore my hypothesis is that it's way easier for models to operate on standalone files, where everything is in one file, self contained, and people to use it that way (e.g. copy&paste to/from chat interface). Cross-linking: |
FYI, I've created a language server for |
Closing in favor of #15318 |
Could you consider recognizing and supporting rust script files?
https://rust-script.org/
The text was updated successfully, but these errors were encountered: