Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Rust Support #675

Closed
ghost opened this issue Apr 16, 2019 · 9 comments
Closed

Feature Request: Rust Support #675

ghost opened this issue Apr 16, 2019 · 9 comments
Labels
lang: rust Rust rules integration stale Issues or PRs that are stale (no activity for 30 days) type: plugin support requests Requests for supporting new languages or being compatible with other IDE tools

Comments

@ghost
Copy link

ghost commented Apr 16, 2019

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?

@petroseskinder
Copy link
Member

@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

@jin
Copy link
Member

jin commented Jun 21, 2019

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.

@mattboardman
Copy link

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

@vlad20012
Copy link

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

@jelmansouri
Copy link

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

@mai93 mai93 added the type: plugin support requests Requests for supporting new languages or being compatible with other IDE tools label Feb 12, 2021
@briansmith
Copy link

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.

Is forking this project still seen as the best way to getting Rust support added given the current state of the project?

Would you accept a PR to add direct Rust support now? Or...

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.

...is this completely blocked on implementing such a pluggable framework?

@alexjpwalker alexjpwalker mentioned this issue Jan 31, 2022
3 tasks
@alexjpwalker
Copy link

alexjpwalker commented Feb 1, 2022

I've opened a PR which integrates with the IntelliJ Rust plugin to deliver Rust support.

It depends on

I've uploaded an example project, and demo of the plugin's capabilities, at https://github.com/vaticle/bazel-intellij-rust-example

bazel-intellij-rust-demo.mov

The PR's architectures are suboptimal, looking for some insider knowledge to bring them to production grade!

@github-actions
Copy link

Thank you for contributing to the IntelliJ repository! This issue has been marked as stale since it has not had any activity in the last 6 months. It will be closed in the next 14 days unless any other activity occurs or one of the following labels is added: "not stale", "awaiting-maintainer". Please reach out to the triage team (@bazelbuild/triage) if you think this issue is still relevant or you are interested in getting the issue resolved.

@github-actions github-actions bot added the stale Issues or PRs that are stale (no activity for 30 days) label Mar 16, 2023
@github-actions
Copy link

This issue has been automatically closed due to inactivity. If you're still interested in pursuing this, please reach out to the triage team (@bazelbuild/triage). Thanks!

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lang: rust Rust rules integration stale Issues or PRs that are stale (no activity for 30 days) type: plugin support requests Requests for supporting new languages or being compatible with other IDE tools
Projects
None yet
Development

No branches or pull requests

8 participants