Add client, client codegen, helloworld and routeguide client examples

This commit is contained in:
Lucio Franco
2019-08-17 23:31:32 -04:00
parent 3951bcf7fe
commit 2ebad2d778
26 changed files with 883 additions and 364 deletions
+8 -3
View File
@@ -10,14 +10,18 @@ edition = "2018"
name = "helloworld-server"
path = "src/helloworld/server.rs"
# [[bin]]
# name = "helloworld-client"
# path = "src/helloworld/client.rs"
[[bin]]
name = "helloworld-client"
path = "src/helloworld/client.rs"
[[bin]]
name = "routeguide-server"
path = "src/routeguide/server.rs"
[[bin]]
name = "routeguide-client"
path = "src/routeguide/client.rs"
[dependencies]
tonic = { path = "../tonic" }
tower-h2 = { path = "../tower-h2" }
@@ -29,6 +33,7 @@ bytes = "0.4"
serde_json = "1.0"
serde = { version = "1.0", features = ["derive"] }
async-stream = "0.1"
http = "0.1"
[build-dependencies]
tonic-build = { path = "../tonic-build" }