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 20K
  • Win 9K
  • OS X 5K
  • Linux 6K
Nov 23 Nov 22 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
Windows 9 9 15 5 9 1 6 9 7 10 4 6 5 9 6 9 10 8 13 6 8 5 5 7 11 6 5 2 7 7 6 5 6 5 11 12 11 5 9 7 15 4 8 1 5 7
OS X 4 2 1 5 5 3 5 1 1 2 1 0 6 2 2 2 2 2 1 5 1 4 2 2 4 2 2 0 2 4 3 3 4 5 0 3 1 2 0 3 7 7 3 5 0 8
Linux 0 1 0 8 12 9 5 12 6 4 3 1 7 2 1 2 6 2 3 1 4 2 5 6 7 3 6 2 3 6 3 3 4 2 4 2 1 3 5 4 2 2 4 3 5 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