Rustlings
rust.vim
Our great sponsors
Rustlings | rust.vim | |
---|---|---|
223 | 19 | |
33,821 | 3,383 | |
5.2% | 1.9% | |
9.4 | 0.0 | |
6 days ago | about 2 months ago | |
Rust | Vim Script | |
MIT License | 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.
Rustlings
-
Bongo Copy Cat: A Tauri Cat that wants to be involved in everything you do π¨βπ»π©βπ»
So here's the story. I decided to learn Rust, read the docs, solved the rustlings challenges. The next step in learning a new programming language is to build something with it. And so began my dilemma.
-
Is this an idiomatic or an idiotic use of '?' ?
I'm learning Rust and solving the rustlings exercises.
-
From High-Level to Systems Programming: A Practical Guide to Rust, Part 1
Rustlings is a CLI-based open source project of small challenges that help to grow your knowledge of the language.
-
High-performance language recommendation
i can't truly speak to the relative steepness, i think like both rust and c++ can get quite steep depending on what you're doing but can also be simple in other cases. best to just try it out i'd say :) the rustlings guide https://github.com/rust-lang/rustlings which parallels the rust book https://doc.rust-lang.org/book/ is a good way to learn. doing things like advent of code could also help. the most common hurdles with rust are "lifetimes" and "the borrow checker", and it just takes practice to figure them out
-
need some help returning a value
I recommend checking out the Rustlings exercises - they provide a really good overview of approaching concepts in Rust, if you're having difficulty with the docs.
perfect thank you so much for the explanation and for the link i got it working :)
-
What's everyone working on this week (52/2022)?
Working through the rustlings exercises
-
How to learn Rust (for backend) ?
The book is great and was my original introduction to the language, but rustlings or Rust By Example might be more interesting for an interactive (and more self paced) approach.
-
Learning rust
Rustlings: This is a great resource for getting started with Rust, with small exercises to help you get comfortable reading and writing code.
rust.vim
-
Struggling to get basic diagnostic working with LSP
Coworker was getting syntax error without saving because of using https://github.com/rust-lang/rust.vim and not from lsp/rust-analyzer
If you need basic syntax checking on leaving insert mode (without saving file), https://github.com/rust-lang/rust.vim can be used
-
Is it possible to have Rust doc test comments highlighted in Neovim?
Seems like there's a tree-sitter solution, but I do want to note that this works out of the box with rust.vim: https://github.com/rust-lang/rust.vim/issues/63. It might be the built-in Rust support is out of date -- using that repo as a plugin would do the trick.
-
Default mappings override user mappings in Rust ( [[ and ]] mappings )
Most of the customizations in the $VIMRUNTIME's rust ftplugin are guarded behind a flag (g:rust_fold, g:rustfmt_autosave,g:rust_recommended_style, etc.) to control enabling and disabling them, but for some reason the navigation mappings are unconditionally defined, with no flag to turn them off... It might be worth going through the issues in https://github.com/rust-lang/rust.vim to see if that ever came up before.
-
Config For rust dev
Is having rust.vim necessary if I'm using rust-tools already?
-
Need help for setting up neovim.
Primeagen has a series, you could also try spacevim or lunarvim( i prefer lunarvim). If you want to read the docs and setup yourself 1. lsp and code completion mentioned in #5. 2. treesitter 3. lsp handles that, you have to install java's lsp, this improves its look. 4. Make your own remaps, some languages have a plugin for this but i can't find one for java, this is the one for rust. 5. Install cmp and one of the snippet engines.
-
Configure NeoVim for Rust Dev
As for plugins for Rust development, Iβd recommend Conquer of Completion (using the coc-rust-analyser coc plugin), Rust langβs rust plugin, and the Toml plugin
-
`:errorformat` for Vim + Rust
It seems, https://github.com/rust-lang/rust.vim already covers all that. Does your solution provide any advantage over the plugin?
-
What's the NeoVim feature/bugfix you're craving for?
Funny you should mention it, I wrote a complete syntax file for Rust with regex and didn't have much trouble with it. I personally think the :syntax API is awesome.
-
cargo-limit 0.0.9: Automatically jump to Rust compilation errors/warnings in Neovim
For other Vimmers on here who like using the quickfix list instead, as long as you have makeprg set (I use https://github.com/rust-lang/rust.vim and I believe it auto-sets that), you can just run:
What are some alternatives?
Clippy - A bunch of lints to catch common mistakes and improve your Rust code. Book: https://doc.rust-lang.org/clippy/
rust-koans - Koans for the Rust programming language
coc-rust-analyzer - rust-analyzer extension for coc.nvim
rust-by-example - Learn Rust with examples (Live code editor included)
doom-emacs - An Emacs framework for the stubborn martian hacker [Moved to: https://github.com/doomemacs/doomemacs]
YouCompleteMe - A code-completion engine for Vim
Exercism - Scala Exercises - Crowd-sourced code mentorship. Practice having thoughtful conversations about code.
book - The Rust Programming Language
rust-learning - A bunch of links to blog posts, articles, videos, etc for learning Rust
rusty-tags - Create ctags/etags for a cargo project
vim-cargo - Rust Cargo command bindings
ziglings - Learn the Zig programming language by fixing tiny broken programs.