From 3c1b2e4bb5f60fe8272acb745fc9aa2fa7e8f878 Mon Sep 17 00:00:00 2001 From: Lucio Franco Date: Tue, 1 Oct 2019 16:40:42 -0400 Subject: [PATCH] more readme updates --- .github/assets/tonic-banner.svg | 33 ++++++++++++++++---------------- .github/assets/tonic-banner2.svg | 29 ++++++++++++++++++++++++++++ README.md | 22 +++++++++++++++++++++ 3 files changed, 68 insertions(+), 16 deletions(-) create mode 100644 .github/assets/tonic-banner2.svg diff --git a/.github/assets/tonic-banner.svg b/.github/assets/tonic-banner.svg index 76a05ce..296ac1e 100644 --- a/.github/assets/tonic-banner.svg +++ b/.github/assets/tonic-banner.svg @@ -1,29 +1,30 @@ + viewBox="0 0 1500 350" style="enable-background:new 0 0 1500 350;" xml:space="preserve"> - - - - + + + + - - - + + + diff --git a/.github/assets/tonic-banner2.svg b/.github/assets/tonic-banner2.svg new file mode 100644 index 0000000..76a05ce --- /dev/null +++ b/.github/assets/tonic-banner2.svg @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + diff --git a/README.md b/README.md index 4cb4753..9996bc2 100644 --- a/README.md +++ b/README.md @@ -48,6 +48,28 @@ $ rustup component add rustfmt --toolchain beta $ cargo +beta build ``` +#### Protobuf + +```protobuf +package helloworld; + +// The greeting service definition. +service Greeter { + // Sends a greeting + rpc SayHello (HelloRequest) returns (HelloReply) {} +} + +// The request message containing the user's name. +message HelloRequest { + string name = 1; +} + +// The response message containing the greetings +message HelloReply { + string message = 1; +} +``` + #### Client ```rust