Use fully qualified path for futures_core::Stream in codegen (#591)
This commit is contained in:
@@ -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" }
|
||||
@@ -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);
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
mod stream_conflict {
|
||||
tonic::include_proto!("stream_conflict");
|
||||
}
|
||||
|
||||
fn main() {
|
||||
println!("Hello, world!");
|
||||
}
|
||||
Reference in New Issue
Block a user