chore(tonic-web): include crate in top-level workspace (#648)

This PR adds the tonic-web crate to tonic's workspace members. 
Unit and integration tests should now run as part of CI runs.
This commit is contained in:
Juan Alvarez
2021-06-03 11:48:53 -05:00
committed by GitHub
parent 3e95553c57
commit 8084f4ea26
21 changed files with 28 additions and 425 deletions
+2 -2
View File
@@ -7,9 +7,9 @@ edition = "2018"
[dependencies]
tonic = { path = "../../../tonic" }
tonic-web = { path = "../../tonic-web" }
tonic-web = { path = "../../../tonic-web" }
prost = "0.7"
tokio = { version = "1.0.1", features = ["macros", "rt", "net"] }
tokio = { version = "1", features = ["macros", "rt", "net"] }
base64 = "0.13"
bytes = "1.0"
tokio-stream = { version = "0.1", features = ["net"] }
+1 -1
View File
@@ -1,6 +1,6 @@
use std::pin::Pin;
use tokio_stream::{self as stream, StreamExt, Stream};
use tokio_stream::{self as stream, Stream, StreamExt};
use tonic::{Request, Response, Status, Streaming};
use pb::{test_server::Test, Input, Output};
@@ -68,7 +68,6 @@ async fn origin_not_allowed() {
assert_eq!(res.status(), StatusCode::FORBIDDEN);
}
async fn spawn(allowed_origin: &str) -> String {
let addr = SocketAddr::from(([127, 0, 0, 1], 0));
let listener = TcpListener::bind(addr).await.expect("listener");