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

Support Rust Codegen #686

Open
1 of 4 tasks
huwaireb opened this issue Jul 10, 2024 · 2 comments
Open
1 of 4 tasks

Support Rust Codegen #686

huwaireb opened this issue Jul 10, 2024 · 2 comments

Comments

@huwaireb
Copy link

Describe the use-case for this feature

Rust is the choice of many editors e.g Helix, Zed, LSPs e.g rust-analyzer and build systems e.g buck2.

What do you propose

Offer a bsp4rs crate.
I'd be happy to contribute an implementation, as I need it for a project of mine.

I've checked to make sure there isn't already a way to support this in the current protocol

  • I've checked the existing protocol and there isn't a way to do this currently

Maintainer approval (This is for the maintainers)

  • Jetbrains
  • Metals
  • Scala Center
@616b2f
Copy link

616b2f commented Jul 10, 2024

@huwaireb there is already some effort done here:

https://github.com/cargo-bsp/cargo-bsp

it's currently not published as a crate, but should be easily done, you may try to propose it there.

@huwaireb
Copy link
Author

huwaireb commented Jul 10, 2024

@huwaireb there is already some effort done here:

cargo-bsp/cargo-bsp

it's currently not published as a crate, but should be easily done, you may try to propose it there.

I'm aware of that implementation, among others. However none seem to be maintained? cargo-bsp hasn't seen activity for 9 months, and doesn't seem to be using smithy for codegen either?

edit:

Looks like their codegen was located elsewhere, using the current method of codegen:

https://github.com/agluszak/bsp-generators/tree/main/codegen/src/main/kotlin/org/jetbrains/bsp/generators/bsp4rs.

In light of this, @agluszak curious how can we proceed here.
Is it possible to adapt and merge into upstream. Alongside publishing a crate?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants