Right way to set up Rust using Vim -


i've started dive rust , want clarify issues when comes setting nicely.

i'm using vim on linux , found nice plugin syntax highlighting. autocompletion troublesome though, using phildawes/racer.

the plugin needs src location rust in fact not big of deal, if know said directory (i found binaries , libs when using suggested curl <...> | sh install). sources downloadable separately, although didn't find install rust sets sources in let's e.g. /usr/local/src/rust binaries , libs.

second i've looked through cargo docs , and didn't find extern dependencies cloned (wouldn't source directory?)

also should rust sources updated setting manually kind of lame?

is quintessence clone rust repository , build yourself?

the plugin needs setting src location rust in fact not big of deal, if know said directory was

i couldn't find sources either. if want sources without history:

for 1.0.0,

git clone --depth=1 --branch 1.0.0 --single-branch https://github.com/rust-lang/rust/ 

or nightly

git clone --depth=1 --single-branch https://github.com/rust-lang/rust/ 

second i've looked through cargo docs , and didn't find extern dependencies cloned (wouldn't source directory?)

in standard installation, there's directory .cargo in home directory, contains git/checkouts cloned crates.

you should try multirust though, allows manage multiple rust installations in ~/.multirust.

with multirust, crate checkouts might in e.g. ~/.multirust/toolchains/nightly/cargo/git/checkouts, not ~/.cargo/git/checkout.

is quint essence clone rust repository , build yourself?

no, that's luckily not necessary anymore, unless you're working on compiler/stdlibs, or trying cross-compile. multirust, updating reduced multirust update or multirust update nightly, etc.


Comments

Popular posts from this blog

javascript - oscilloscope of speaker input stops rendering after a few seconds -

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -