RACER = Rust Auto-Complete-er. A utility intended to provide rust code completion for editors and IDEs. Maybe one day the 'er' bit will be exploring + refactoring or something.
With cargo install
This method currently require a beta or nightly install of rust. Simply run:
cargo install --git 'https://github.com/phildawes/racer.git'
Or if you are using multirust:
multirust run beta cargo install --git 'https://github.com/phildawes/racer.git'
As mentioned in the command output, don't forget to add the installation directory to your PATH.
Clone the repository:
git clone https://github.com/phildawes/racer.git
cd racer; cargo build --release. The binary will now be in
Fetch the rust sourcecode from git, or download from https://www.rust-lang.org/install.html
RUST_SRC_PATHenv variable to point to the 'src' dir in the rust source installation
% export RUST_SRC_PATH=/usr/local/src/rust/src)
Test on the command line:
./target/release/racer complete std::io::B(should show some completions)
Emacs intergation has been moved to a separate project: emacs-racer
Vim intergation has been moved to a separate project: vim-racer
Enable 'Rust code completion' in the plugin list in the Kate config dialog
On the new 'Rust code completion' dialog page, make sure 'Racer command' and 'Rust source tree location' are set correctly