News for hackers. Stuff that matters.
Re:A Rust FFI adventure in unsafety by Nelkins on Wednesday October 10, 2018 @12:20PM (#18186323)
What do you use as your development environment?
Re:A Rust FFI adventure in unsafety by ilovecaching on Wednesday October 10, 2018 @12:48PM (#18186608)
vim + w0rp/ale, ale has LSP support and I now use it as a one stop shop for go to dec, find refs, and autocomplete. It has support for linting with cargo, rustc, rls, and autoformatting with rustfmt. rustup makes installing rls extremely painless.
Re:A Rust FFI adventure in unsafety by imc on Wednesday October 10, 2018 @01:38PM (#18187166)
mind sticking up the relevant sections of your vimrc somewhere so I could take a look?

the rust stuff in my vim dates to v. early post 1.0 and would love to link ale + rls up.

Re:A Rust FFI adventure in unsafety by ilovecaching on Wednesday October 10, 2018 @02:25PM (#18187591)
Sure, install w0rp/ale using your favorite plugin manager, install rustup and run:

  rustup component add rls-preview rust-analysis rust-src --toolchain nightly
then add this to .vim/ftplugin/rust.vim:

  let b:ale_linters = {'rust': ['rls','cargo','rustc']}
  let g:ale_fixers = {'rust': ['rustfmt']}
  let g:ale_completion_enabled = 1
Re:A Rust FFI adventure in unsafety by imc on Wednesday October 10, 2018 @07:28PM (#18189840)
perfect, thanks!
Re:A Rust FFI adventure in unsafety by mamcx on Wednesday October 10, 2018 @03:22PM (#18188023)
IntelliJ IDEA CE is way better than VS Code, IMHO. Much more reliable in the type inference.
Re:A Rust FFI adventure in unsafety by pitaj on Wednesday October 10, 2018 @12:23PM (#18186348)
In my experience, the majority of the community uses VSCode with the RLS plugin or IntelliJ with the rust plugin (which is, ironically, written in Kotlin)