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:
@@ -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,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");
|
||||
|
||||
Reference in New Issue
Block a user