grpc / grpc/grpc-rust

Update helloworld-tutorial to include protos split over multiple files

Open
#1,003 4 comments 5 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
12.5k
Forks
1.3k
Avg merge
4d 7h
Merged PRs (30d)
24

Description

## Feature Request

I believe the tutorial at https://github.com/hyperium/tonic/blob/master/examples/helloworld-tutorial.md should be updated to put the `HelloReply` and `HelloRequest` in a separate file from the service

### Motivation

Despite a lot of experience with proto & gRPC in golang & python, I had trouble making the basic switch to split files

Tonic & Rust present some style differences that are not present in other languages. Protos in multiple files is a very simple thing that should have better examples. It is also not directly accessible via documentation.

### Alternatives

Give more explicit documentation on how to handle splitting/importing protos across files

### Changes Required

I will put up a PR for this shortly

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.