Skip to content

Feature Request: Rust Support #675

Closed as not planned
Closed as not planned

Description

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?

Activity

  1. petroseskinder commented on Jun 21, 2019

    @petroseskinder
    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

  2. jin commented on Jun 21, 2019

    @jin
    Member

    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.

  3. mattboardman commented on Dec 15, 2020

    @mattboardman

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

  4. vlad20012 commented on Dec 15, 2020

    @vlad20012

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

  5. jelmansouri commented on Dec 17, 2020

    @jelmansouri

    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

  6. added
    type: plugin support requestsRequests for supporting new languages or being compatible with other IDE tools
    on Feb 12, 2021
  7. briansmith commented on Jul 2, 2021

    @briansmith

    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?

  8. alexjpwalker commented on Feb 1, 2022

    @alexjpwalker

    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!

  9. github-actions commented on Mar 16, 2023

    @github-actions

    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.

  10. added
    staleIssues or PRs that are stale (no activity for 30 days)
    on Mar 16, 2023
  11. github-actions commented on Mar 31, 2023

    @github-actions

    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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    lang: rustRust rules integrationstaleIssues or PRs that are stale (no activity for 30 days)type: plugin support requestsRequests for supporting new languages or being compatible with other IDE tools

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions