rust-script
rust-analyzer
rust-script | rust-analyzer | |
---|---|---|
27 | 136 | |
1,302 | 14,541 | |
2.3% | 1.3% | |
6.0 | 10.0 | |
17 days ago | 2 days ago | |
Rust | Rust | |
Apache License 2.0 | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
rust-script
- Rust-script: Run Rust files and expressions as scripts
- What are your favourite websites that display a lot of data / tables?
-
Rust 101
There is also rust-script[1] which runs "Rust files and expressions as scripts without any setup or compilation step." I wrote a data loader[2] in it for my Observable Framework project and have been very happy with its performance and overall ease including hot-reloading.
[1] https://rust-script.org
[2] https://observablehq.com/framework/loaders#routing
-
How to convince my boss that Rust is usable
To address your concerns about non-trivial building process making Rust less suitable for small scripts : https://rust-script.org/ Work is actively being done. (not by me)
-
I made a scriptable spaced repetition CLI with Rust and Rhai!
I started this as a little script made with rust-script, which took only a few hours to mock up, and then I was able to refactor the core logic into a much larger scriptable system over only about a day. And, Rust being Rust, it worked first time once I got it compiling! Also, I have to say, having a full-blown custom scripting engine just work is a novelty coming from web programming, and Rhai is a great choice if you need this sort of functionality in your own projects!
-
Organizing a large collection of Rust "scripts"?
Use rust-script ! Instead of having a folder for each script, your script could be a single file, just like you would in python. Then you can put all the files in a single directory with a readme describing the functionality and use-case of each script.
-
Pre-RFC: `cargo-script` for everyone
In case you didn't notice in the Prior Art section, rust-script is the most actively maintained descendant of cargo-script (from which the cargo-eval crate is forked as well).
-
Rust tech stack
Someone even wrote https://rust-script.org/ to make that "shell scripting using Rust" use-case more convenient.
-
would you use rust for scripting?
Is rust-script close enough?
-
Why is Rust always advertised as system programming not general purpose programming?
That may have been more of the originator of the idea, but what I believe I had used was rust-script, looking into it more. That one isn't maintained.
rust-analyzer
-
Flattening ASTs (and Other Compiler Data Structures)
Rust-analyzer uses a similar technique for parsing https://github.com/rust-lang/rust-analyzer/blob/master/crate... which then gets fed into https://github.com/rust-analyzer/rowan (lossless syntax tree)
-
Zig's Comptime Is Bonkers Good
Also see e.g.
https://github.com/rust-lang/rust-analyzer/issues/14375
- LSP: The Good, the Bad, and the Ugly
- Higher RAII, and the Seven Arcane Uses of Linear Types
-
Cranelift code generation comes to Rust
go build 3.62s user 0.76s system 171% cpu 2.545 total
I was looking forward to parallel front-end[4], but I have not seen any improvement for these small changes.
[1]: https://github.com/rust-lang/rust-analyzer
-
A guide on Neovim's LSP client
For example, intelephense can show diagnostics in real time, there is no need to save the file to get new diagnostics. But rust-analyzer, the language server for rust, can only update diagnostics after saving the file.
-
Top 10 Rusty Repositories for you to start your Open Source Journey
6. Rust Analyzer
-
The rust-analyzer vscode extension is not working at all.
The rust-analyzer readme suggests you go here for support request. But even there, you'll need to provide more details to get useful help.
-
LSP could have been better
For example: https://github.com/rust-lang/rust-analyzer/blob/master/docs/...
> If you create an LSP, it will work best in VS Code.
Any editor can work just as well as (or even better than) VS Code.
-
Discussion Thread
So, apparently the reason why rust-analyzer, the LSP server for Rust does not have persistent caching is because it would make "optimizing initial passes less important".
What are some alternatives?
cargo-script - Cargo script subcommand
vscode-rust - Rust extension for Visual Studio Code
evcxr
intellij-rust - Rust plugin for the IntelliJ Platform
dotfiles - My configuration files and personal collection of scripts.
rustfmt - Format Rust code
rust-cli-boilerplate - Rust project boilerplate for CLI applications
sublime-rust - The official Sublime Text 4 package for the Rust Programming Language
rust-analyzer - A Rust compiler front-end for IDEs [Moved to: https://github.com/rust-lang/rust-analyzer]
eglot - A client for Language Server Protocol servers
cargo-script - Cargo script subcommand
coc-rust-analyzer - rust-analyzer extension for coc.nvim