Intellij: Feature Request: Rust Support

Created on 16 Apr 2019  路  5Comments  路  Source: bazelbuild/intellij

I've been working on integrating a Rust project with a large multi-language repository, and we're successfully building Rust binaries via rules_rust and cargo raze. However, we have not been able to get the projects working within CLion or Intellij IDEA, I think in part because the plugin does not yet support it.

Is Rust support something that the Intellij plugin authors would be open to? I am happy to dedicate time to making this come to fruition, if it is desired. Roughly speaking, what would it take to get this working?

rust plugin support requests

Most helpful comment

Currently, we don't have bandwidth or domain expertise to support new languages like Rust, and there isn't a process to add a new language yet. It's possible to work on a fork of this project to add Rust support, but until the details are ironed out, we cannot support this yet.

One of the things that's high on my list to do is to implement a pluggable framework so that rule owners / domain experts (e.g. rules_rust) can integrate with this plugin without having to extend the core IntelliJ plugin, similar to how Starlark has provided Bazel core with extensibility.

All 5 comments

@jin there seems to already be support for go, cpp, dart, javascript, python, scala, kotlin and java.

What is the process for adding a new language? Barring scala which wix added support for, each of the existing languages are used internally within Google. I presume one concern is who would be on the hook for supporting the language support after the initial implementation

Currently, we don't have bandwidth or domain expertise to support new languages like Rust, and there isn't a process to add a new language yet. It's possible to work on a fork of this project to add Rust support, but until the details are ironed out, we cannot support this yet.

One of the things that's high on my list to do is to implement a pluggable framework so that rule owners / domain experts (e.g. rules_rust) can integrate with this plugin without having to extend the core IntelliJ plugin, similar to how Starlark has provided Bazel core with extensibility.

Any updates on this? Will this be scoped out or prioritized in/for 2021?

By the way, could someone link an example of a project that uses Bazel with Rust?

https://github.com/bazelbuild/rules_rust/tree/master/examples has a couple of samples.
I can build a repo that mimics the common components used in internal monorepos using bazel if it might help.
And here you can find an example of crates where cargo raze was used to generate build files:
https://github.com/bazelbuild/rules_rust/tree/master/bindgen/raze/remote

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Maririri picture Maririri  路  7Comments

KaoruDev picture KaoruDev  路  4Comments

brownry1986 picture brownry1986  路  8Comments

jschaf picture jschaf  路  4Comments

ruudud picture ruudud  路  8Comments