Skip to content

neeme-praks-sympower/helloworld-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HelloWorld gRPC API

A sample to demonstrate how to separate gRPC API definition (.proto file) from the implementation code.

Building

$ cargo build

Using from a project

Declare the dependency in Cargo.tml:

rust_hello_api = { version = "0.1.0", git = "../helloworld-api" }

or a local path:

rust_hello_api = { version = "0.1.0", git = "https://github.com/neeme-praks-sympower/helloworld-api" }

And then from your Rust server code:

use helloworld_lib::hello_world::greeter_server::{Greeter, GreeterServer};
use helloworld_lib::hello_world::{HelloReply, HelloRequest};

Or Rust client code:

use helloworld_lib::hello_world::greeter_client::GreeterClient;
use helloworld_lib::hello_world::HelloRequest;

About

API for HelloWorld gRPC service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages