ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Rust​Auto​Complete

by defuz ST3

A SublimeText binding for RACER (Rust auto completion tool)

Details

Installs

  • Total 33K
  • Win 16K
  • Mac 8K
  • Linux 10K
Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2 Nov 1 Oct 31 Oct 30 Oct 29 Oct 28 Oct 27 Oct 26 Oct 25 Oct 24 Oct 23 Oct 22 Oct 21 Oct 20 Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7
Windows 1 1 0 3 1 2 0 0 0 1 1 2 0 1 0 0 1 0 0 1 0 1 1 0 1 1 0 3 0 1 1 2 1 4 2 0 0 1 0 0 4 1 0 2 1 2
Mac 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 1 0 1 0 0 1 0 0 0 1 0 1 0
Linux 0 0 0 4 0 0 0 0 0 0 3 1 0 1 0 1 0 0 0 2 0 1 1 1 2 0 2 0 0 1 0 1 1 1 2 1 0 0 1 0 0 1 0 3 0 1

Readme

Source
raw.​githubusercontent.​com

RustAutoComplete

A binding for Sublime Text to the Rust auto completion tool by Phil Dawes (https://github.com/phildawes/racer).

Features

  • Auto complete (invoked automatically on Rust files).
  • Go to definition (default key binding is F2).

Example

Example

Status

Initial version. Works on the basic projects I have tested on. Partially works on Servo when the search paths are set correctly.

Pull requests for fixes and new features are very welcome.

I have only tested this on Linux (Ubuntu 14.04). It may work on Mac / Windows.

Requirements

  1. Install the Rust syntax highlighting package from Package Control: https://sublime.wbond.net/packages/Rust
  2. Clone and build the auto completion tool racer: https://github.com/phildawes/racer
  3. Install the package through package control (or clone from git if you prefer): https://sublime.wbond.net/packages/RustAutoComplete
  4. Configure the plugin to be able to find the racer executable and Rust source code. Open menu Preferences -> Package settings -> RustAutoComplete -> Settings - User and edit the settings file using below as a template:
{
  // The full path to the racer binary. If racer is already
  // in your system path, then this default will be fine.
  "racer": "racer",

  // A list of search paths. This should generally just
  // be the path to the rust compiler src/ directory.
  "search_paths": [
    "/home/git/rust-lang/rust/src"
  ]
}

Contact

https://github.com/glennw/RustAutoComplete