Re:Four years with Rust
by namelezz on Wednesday December 21, 2016 @02:13PM
(#13231762)
I would appreciate if anyone can share your dev setup for Rust. I tried Rust and Racer long time ago and it's not a pleasant experience.
[ Parent
| on HN ]
Re:Four years with Rust
by allengeorge on Wednesday December 21, 2016 @02:49PM
(#13232054)
I use IntelliJ-Rust with the IDEA vim plugin daily and I recommend it. I can jump to definition for functions, get some autocomplete and type inference (it's not perfect) and the project is actively maintained. Moreover, the maintainers are very welcoming and it's a pleasure to work with them to fix bugs and submit PRs.
Re:Four years with Rust
by Manishearth on Wednesday December 21, 2016 @02:47PM
(#13232046)
VS Code with RLS is amazing. Still a work-in-progress, but some stuff works and it's only going to get better.
I'm mostly just used to sublime and vim with minimal tooling so it doesn't matter as much for me. But I'll probably eventually write a plugin for RLS for sublime.
> VS Code with RLS is amazing.
The only reason I have to install it.
Re:Four years with Rust
by belovedeagle on Wednesday December 21, 2016 @03:04PM
(#13232164)
A single tmux window, with vim on the left (with no special IDE plugins). On the right, autocall.zsh watches ./src and runs 'cargo build' whenever a file changes. (More specifically, I autocall running in a small pane up top and have it run cargo build piped through less [but you need to fake this as a tty to get cargo to output colors] in a specific, larger pane on the bottom.
> get cargo to output colors
cargo build --color=always
Re:Four years with Rust
by belovedeagle on Thursday December 22, 2016 @04:40PM
(#13240622)
It might be fixed now but when I set it up either that didn't exist or even that couldn't convince cargo to output color control chars to a non-tty pipe.
Fair enough. I just know that it worked with tup, for whatever reason I was playing with that instead of just entr+cargo:
ls src/*.rs | entr -c cargo build
(entr is pretty awesome :)
Sublime with the Rust plugin. It works well for small projects but I haven't yet tried this with a large project.
Re:Four years with Rust
by kazagistar on Thursday December 22, 2016 @12:18AM
(#13235044)
Atom with a properly configured racer and rustfmt has been nice, though I have run into one or two very minor annoyances.