defuz/RustAutoComplete

Allow CARGO_HOME to be set in config

Opened this issue · 2 comments

With a Multirust-rs/Rustup installation, the search path is no longer necessary, instead there is CARGO_HOME, which is needed to enable autocompletion on third-party crates. Can RustAutoComplete support that?

@lorenz
I too am using a rustup installation. Can you show me what user preferences you set to allow this extension to keep working?

@dchammond
Are you using my fork? If yes, you can use

{
  "racer": "/home/your_user/.cargo/bin/racer",
  "cargo_home": "/home/your_user/.cargo",
  "search_paths": [
    "/wherever/you/clone/rust"
  ]
}

You need to have clone of the Rust repository for the autocompletion of the standard library to work and put its location into search_paths.