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

rust language #448

Closed
henrikrudstrom opened this issue Aug 25, 2021 · 5 comments
Closed

rust language #448

henrikrudstrom opened this issue Aug 25, 2021 · 5 comments

Comments

@henrikrudstrom
Copy link

Are there any plans to implement support for Rust?

@johanbrandhorst
Copy link
Contributor

If we're talking about generating protobuf stubs, there should be no reason it doesn't already work with Rust, though I'm not familiar with the exact generation patterns commonly used. What generator plugin do you want to use? It needs to be available in the $PATH for buf to find it.

@bufdev
Copy link
Member

bufdev commented Aug 25, 2021

Buf doesn't support a specific language - plugins (such as those for rust) are separate from Buf, and Buf supports all languages.

Specifically if you're looking for prost, see tokio-rs/prost#492

@bufdev bufdev closed this as completed Aug 25, 2021
@johanbrandhorst
Copy link
Contributor

https://github.com/stepancheg/rust-protobuf/tree/master/protobuf-codegen#protoc-gen-rust is also available if you want something today, but note that it strips the import paths from the protobuf files and dumps all files in the same directory.

@hexfusion
Copy link

Buf doesn't support a specific language - plugins (such as those for rust) are separate from Buf, and Buf supports all languages.

Specifically if you're looking for prost, see tokio-rs/prost#492

The prost protoc plugin appears close to being complete even though the issue is closed....[1]. As noted protoc-gen-rust has shortcomings and possible future maintenance issues[2].

[1] tokio-rs/prost#492 (comment)
[2] https://github.com/stepancheg/rust-protobuf/blob/master/doc/past-present-future.md

@hexfusion
Copy link

hexfusion commented Apr 27, 2022

see https://github.com/neoeinstein/protoc-gen-prost

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

4 participants