chore: Use feature resolver v2 and turn off unused features (#1270)
* chore: Use feature resolver version 2 * chore(web): Turn off unused features
This commit is contained in:
@@ -24,3 +24,4 @@ members = [
|
|||||||
"tonic-web/tests/integration",
|
"tonic-web/tests/integration",
|
||||||
"tests/service_named_result",
|
"tests/service_named_result",
|
||||||
]
|
]
|
||||||
|
resolver = "2"
|
||||||
|
|||||||
@@ -20,9 +20,9 @@ bytes = "1.0"
|
|||||||
futures-core = "0.3"
|
futures-core = "0.3"
|
||||||
http = "0.2"
|
http = "0.2"
|
||||||
http-body = "0.4"
|
http-body = "0.4"
|
||||||
hyper = "0.14"
|
hyper = {version = "0.14", default-features = false, features = ["stream"]}
|
||||||
pin-project = "1"
|
pin-project = "1"
|
||||||
tonic = {version = "0.8", path = "../tonic", default-features = false, features = ["transport"]}
|
tonic = {version = "0.8", path = "../tonic", default-features = false}
|
||||||
tower-service = "0.3"
|
tower-service = "0.3"
|
||||||
tower-layer = "0.3"
|
tower-layer = "0.3"
|
||||||
tower-http = { version = "0.3", features = ["cors"] }
|
tower-http = { version = "0.3", features = ["cors"] }
|
||||||
|
|||||||
@@ -6,8 +6,10 @@ use std::task::{Context, Poll};
|
|||||||
use http::{header, HeaderMap, HeaderValue, Method, Request, Response, StatusCode, Version};
|
use http::{header, HeaderMap, HeaderValue, Method, Request, Response, StatusCode, Version};
|
||||||
use hyper::Body;
|
use hyper::Body;
|
||||||
use pin_project::pin_project;
|
use pin_project::pin_project;
|
||||||
use tonic::body::{empty_body, BoxBody};
|
use tonic::{
|
||||||
use tonic::transport::NamedService;
|
body::{empty_body, BoxBody},
|
||||||
|
server::NamedService,
|
||||||
|
};
|
||||||
use tower_service::Service;
|
use tower_service::Service;
|
||||||
use tracing::{debug, trace};
|
use tracing::{debug, trace};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user