Use fully qualified path for futures_core::Stream in codegen (#591)

This commit is contained in:
Ben Sully
2021-03-28 19:31:20 +02:00
committed by GitHub
parent 2788628916
commit 6c898a239f
7 changed files with 40 additions and 4 deletions
+15
View File
@@ -0,0 +1,15 @@
[package]
name = "stream_conflict"
version = "0.1.0"
authors = ["Ben Sully <[email protected]>"]
publish = false
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
tonic = { path = "../../tonic" }
prost = "0.7"
[build-dependencies]
tonic-build = { path = "../../tonic-build" }
+3
View File
@@ -0,0 +1,3 @@
fn main() {
tonic_build::compile_protos("proto/stream_conflict.proto").unwrap();
}
@@ -0,0 +1,10 @@
syntax = "proto3";
package StreamConflict;
message Message {
bool ok = 1;
}
service Stream {
rpc RunStream(Message) returns (stream Message);
}
+7
View File
@@ -0,0 +1,7 @@
mod stream_conflict {
tonic::include_proto!("stream_conflict");
}
fn main() {
println!("Hello, world!");
}