Paul Krill
Editor at Large

Developers invited to try out Rust Language Server alpha release

news
Jan 19, 20172 mins

The server enables IDEs and other tools use Mozilla's Rust programming language

chain rust link heavy iron metal
Credit: cortixxx

The Rust Language Server, which enables IDEs and other tools to accommodate the Rust programming language, has moved to an alpha release stage.

In this release, RLS allows tools to access capabilities including auto-completion, find all references, rename/refactor, show errors, and goto-definition. RLS leverages Language Server Protocol, a Microsoft- and Red Hat-backed effort to extend IDEs and code editors to multiple languages.

“Rather than leaving each editor plugin to have to parse and understand the types in your program and provide you with capabilities like refactoring, the RLS centralizes all this logic and provides it to the editor via a standard language server protocol,” said Jonathan Turner, an engineer with Rust sponsor Mozilla.

RLS will work with any IDE supporting the protocol. Current supportive clients include the Eclipse and Eclipse IDEs along with Microsoft Visual Studio Code. Next up for RLS is a second alpha release followed by a beta version, due March 17.

The alpha release has been run on Linux, Mac, and Windows. It was built from two tools: the Racer Rust code completion utility and the Rust compiler. “Racer allows us to get quick-and-dirty completions, allow you to get completion results in sub-second times,” Turner said. “The trade-off this makes is that the results are not as accurate.” For tasks requiring higher accuracy, like code refactoring, RLS users the compiler directly.

Developers interested in RLS are encourage to report on how it works for them and contribute to the project. In particular, more refactorings and Rust-centric code navigation is sought along with more advanced features such as lifetime visualization and macro debugging. Developers also can contribute an editor plugin and hack on the compiler, Turner said.

Paul Krill

Paul Krill is editor at large at InfoWorld. Paul has been covering computer technology as a news and feature reporter for more than 35 years, including 30 years at InfoWorld. He has specialized in coverage of software development tools and technologies since the 1990s, and he continues to lead InfoWorld’s news coverage of software development platforms including Java and .NET and programming languages including JavaScript, TypeScript, PHP, Python, Ruby, Rust, and Go. Long trusted as a reporter who prioritizes accuracy, integrity, and the best interests of readers, Paul is sought out by technology companies and industry organizations who want to reach InfoWorld’s audience of software developers and other information technology professionals. Paul has won a “Best Technology News Coverage” award from IDG.

More from this author