hyper/http 1.0 bumps #1101
Annotations
56 errors and 7 warnings
cargo deny (advisories)
The job was canceled because "bans_licenses_sources" failed.
|
failed to resolve: use of undeclared crate or module `oauth`:
kube-client/src/client/auth/mod.rs#L366
error[E0433]: failed to resolve: use of undeclared crate or module `oauth`
--> kube-client/src/client/auth/mod.rs:366:14
|
366 | GcpOauth(oauth::Gcp),
| ^^^^^ use of undeclared crate or module `oauth`
|
failed to resolve: use of undeclared crate or module `oidc`:
kube-client/src/client/auth/mod.rs#L360
error[E0433]: failed to resolve: use of undeclared crate or module `oidc`
--> kube-client/src/client/auth/mod.rs:360:10
|
360 | Oidc(oidc::Oidc),
| ^^^^ use of undeclared crate or module `oidc`
|
failed to resolve: use of undeclared crate or module `oidc`:
kube-client/src/client/auth/mod.rs#L179
error[E0433]: failed to resolve: use of undeclared crate or module `oidc`
--> kube-client/src/client/auth/mod.rs:179:20
|
179 | Oidc(Arc<Mutex<oidc::Oidc>>),
| ^^^^ use of undeclared crate or module `oidc`
|
failed to resolve: use of undeclared crate or module `oauth`:
kube-client/src/client/auth/mod.rs#L177
error[E0433]: failed to resolve: use of undeclared crate or module `oauth`
--> kube-client/src/client/auth/mod.rs:177:24
|
177 | GcpOauth(Arc<Mutex<oauth::Gcp>>),
| ^^^^^ use of undeclared crate or module `oauth`
|
failed to resolve: use of undeclared crate or module `oidc_errors`:
kube-client/src/client/auth/mod.rs#L100
error[E0433]: failed to resolve: use of undeclared crate or module `oidc_errors`
--> kube-client/src/client/auth/mod.rs:100:20
|
100 | Oidc(#[source] oidc_errors::Error),
| ^^^^^^^^^^^ use of undeclared crate or module `oidc_errors`
|
type annotations needed:
kube-client/src/client/mod.rs#L118
error[E0282]: type annotations needed
--> kube-client/src/client/mod.rs:118:50
|
118 | let service = MapResponseBodyLayer::new(|x| x.into_stream())
| ^ - type must be known at this point
|
help: consider giving this closure parameter an explicit type
|
118 | let service = MapResponseBodyLayer::new(|x: /* Type */| x.into_stream())
| ++++++++++++
|
the size for values of type `dyn http_body::Body` cannot be known at compilation time:
kube-client/src/client/builder.rs#L202
error[E0277]: the size for values of type `dyn http_body::Body` cannot be known at compilation time
--> kube-client/src/client/builder.rs:202:51
|
202 | Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
| ^^^^ doesn't have a size known at compile-time
|
= help: the trait `std::marker::Sized` is not implemented for `dyn http_body::Body`
= note: all function arguments must have a statically known size
= help: unsized fn params are gated as an unstable feature
|
`dyn http_body::Body` cannot be unpinned:
kube-client/src/client/builder.rs#L202
error[E0277]: `dyn http_body::Body` cannot be unpinned
--> kube-client/src/client/builder.rs:202:17
|
202 | Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ within `__Origin<'_, dyn Body, fn(<dyn Body as Body>::Error) -> Box<...> {<... as From<...>>::from}>`, the trait `std::marker::Unpin` is not implemented for `dyn http_body::Body`, which is required by `http_body_util::combinators::MapErr<dyn http_body::Body, fn(<dyn http_body::Body as http_body::Body>::Error) -> std::boxed::Box<dyn std::error::Error + std::marker::Send + std::marker::Sync> {<std::boxed::Box<dyn std::error::Error + std::marker::Send + std::marker::Sync> as std::convert::From<<dyn http_body::Body as http_body::Body>::Error>>::from}>: std::marker::Unpin`
|
= note: the full trait has been written to '/home/runner/work/kube/kube/target/debug/deps/kube_client-157e05995e1ae132.long-type-2142531551266536183.txt'
= note: consider using the `pin!` macro
consider using `Box::pin` if you need to access the pinned value outside of the current scope
note: required because it appears within the type `__Origin<'_, dyn Body, fn(<dyn Body as Body>::Error) -> Box<...> {<... as From<...>>::from}>`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/http-body-util-0.1.0/src/combinators/map_err.rs:10:1
|
10 | / pin_project! {
11 | | /// Body returned by the [`map_err`] combinator.
12 | | ///
13 | | /// [`map_err`]: crate::BodyExt::map_err
... |
19 | | }
20 | | }
| |_^
= note: required for `MapErr<dyn Body, fn(<dyn Body as Body>::Error) -> Box<dyn Error + Send + Sync> {<... as From<...>>::from}>` to implement `std::marker::Unpin`
= note: the full type name has been written to '/home/runner/work/kube/kube/target/debug/deps/kube_client-157e05995e1ae132.long-type-2200340862499726400.txt'
= note: required for the cast from `Box<MapErr<dyn Body, fn(<dyn Body as Body>::Error) -> Box<...> {<... as From<...>>::from}>>` to `Box<dyn Body<Data = Bytes, Error = Box<dyn Error + Send + Sync>> + Send + Unpin>`
= note: the full name for the type has been written to '/home/runner/work/kube/kube/target/debug/deps/kube_client-157e05995e1ae132.long-type-14212746158973268013.txt'
= note: this error originates in the macro `$crate::__pin_project_make_unpin_impl` which comes from the expansion of the macro `pin_project` (in Nightly builds, run with -Z macro-backtrace for more info)
|
`dyn http_body::Body` cannot be sent between threads safely:
kube-client/src/client/builder.rs#L202
error[E0277]: `dyn http_body::Body` cannot be sent between threads safely
--> kube-client/src/client/builder.rs:202:17
|
202 | Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `dyn http_body::Body` cannot be sent between threads safely
|
= note: the full trait has been written to '/home/runner/work/kube/kube/target/debug/deps/kube_client-157e05995e1ae132.long-type-2200340862499726400.txt'
= help: within `MapErr<dyn Body, fn(<dyn Body as Body>::Error) -> Box<dyn Error + Send + Sync> {<... as From<...>>::from}>`, the trait `std::marker::Send` is not implemented for `dyn http_body::Body`, which is required by `http_body_util::combinators::MapErr<dyn http_body::Body, fn(<dyn http_body::Body as http_body::Body>::Error) -> std::boxed::Box<dyn std::error::Error + std::marker::Send + std::marker::Sync> {<std::boxed::Box<dyn std::error::Error + std::marker::Send + std::marker::Sync> as std::convert::From<<dyn http_body::Body as http_body::Body>::Error>>::from}>: std::marker::Send`
note: required because it appears within the type `MapErr<dyn Body, fn(<dyn Body as Body>::Error) -> Box<dyn Error + Send + Sync> {<... as From<...>>::from}>`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/http-body-util-0.1.0/src/combinators/map_err.rs:15:16
|
15 | pub struct MapErr<B, F> {
| ^^^^^^
= note: required for the cast from `Box<MapErr<dyn Body, fn(<dyn Body as Body>::Error) -> Box<...> {<... as From<...>>::from}>>` to `Box<dyn Body<Data = Bytes, Error = Box<dyn Error + Send + Sync>> + Send + Unpin>`
= note: the full name for the type has been written to '/home/runner/work/kube/kube/target/debug/deps/kube_client-157e05995e1ae132.long-type-14212746158973268013.txt'
|
the trait bound `tower::util::BoxService<http::Request<bytes::Bytes>, http::Response<http_body_util::combinators::BoxBody<bytes::Bytes, std::boxed::Box<(dyn std::error::Error + std::marker::Send + std::marker::Sync + 'static)>>>, std::boxed::Box<(dyn std::error::Error + std::marker::Send + std::marker::Sync + 'static)>>: tower::Service<http::Request<hyper::body::Incoming>>` is not satisfied:
kube-client/src/client/builder.rs#L200
error[E0277]: the trait bound `tower::util::BoxService<http::Request<bytes::Bytes>, http::Response<http_body_util::combinators::BoxBody<bytes::Bytes, std::boxed::Box<(dyn std::error::Error + std::marker::Send + std::marker::Sync + 'static)>>>, std::boxed::Box<(dyn std::error::Error + std::marker::Send + std::marker::Sync + 'static)>>: tower::Service<http::Request<hyper::body::Incoming>>` is not satisfied
--> kube-client/src/client/builder.rs:200:9
|
199 | Ok(ClientBuilder::new(
| ------------------ required by a bound introduced by this call
200 | / BoxService::new(
201 | | MapResponseBodyLayer::new(|body| {
202 | | Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
203 | | })
204 | | .layer(service),
205 | | ),
| |_________^ the trait `tower::Service<http::Request<hyper::body::Incoming>>` is not implemented for `BoxService<Request<Bytes>, Response<BoxBody<Bytes, Box<dyn Error + Send + Sync>>>, Box<...>>`
|
= help: the trait `tower::Service<http::Request<bytes::Bytes>>` is implemented for `tower::util::BoxService<http::Request<bytes::Bytes>, http::Response<http_body_util::combinators::BoxBody<bytes::Bytes, std::boxed::Box<(dyn std::error::Error + std::marker::Send + std::marker::Sync + 'static)>>>, std::boxed::Box<(dyn std::error::Error + std::marker::Send + std::marker::Sync + 'static)>>`
= help: for that trait implementation, expected `bytes::Bytes`, found `hyper::body::Incoming`
note: required by a bound in `client::builder::ClientBuilder::<Svc>::new`
--> kube-client/src/client/builder.rs:40:14
|
38 | pub fn new(service: Svc, default_namespace: impl Into<String>) -> Self
| --- required by a bound in this associated function
39 | where
40 | Svc: Service<Request<Incoming>>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `ClientBuilder::<Svc>::new`
|
mismatched types:
kube-client/src/client/builder.rs#L200
error[E0308]: mismatched types
--> kube-client/src/client/builder.rs:200:9
|
199 | Ok(ClientBuilder::new(
| ------------------ arguments to this function are incorrect
200 | / BoxService::new(
201 | | MapResponseBodyLayer::new(|body| {
202 | | Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
203 | | })
204 | | .layer(service),
205 | | ),
| |_________^ expected `bytes::Bytes`, found `hyper::body::Incoming`
|
= note: expected struct `BoxService<Request<Bytes>, Response<BoxBody<Bytes, Box<dyn Error + Send + Sync>>>, Box<...>>`
found struct `tower::util::BoxService<http::Request<hyper::body::Incoming>, http::Response<_>, _>`
= note: the full type name has been written to '/home/runner/work/kube/kube/target/debug/deps/kube_client-157e05995e1ae132.long-type-13364074584950535413.txt'
note: associated function defined here
--> kube-client/src/client/builder.rs:38:12
|
38 | pub fn new(service: Svc, default_namespace: impl Into<String>) -> Self
| ^^^ ------------
|
type mismatch in closure arguments:
kube-client/src/client/builder.rs#L200
error[E0631]: type mismatch in closure arguments
--> kube-client/src/client/builder.rs:200:9
|
200 | / BoxService::new(
201 | | MapResponseBodyLayer::new(|body| {
| | ------ found signature defined here
202 | | Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
203 | | })
204 | | .layer(service),
205 | | ),
| |_________^ expected due to this
|
= note: expected closure signature `fn(tower_http::decompression::DecompressionBody<tower_http::trace::ResponseBody<hyper::body::Incoming, tower_http::classify::NeverClassifyEos<tower_http::classify::ServerErrorsFailureClass>, (), {closure@kube-client/src/client/builder.rs:176:25: 176:83}, {closure@kube-client/src/client/builder.rs:179:29: 179:92}>>) -> _`
found closure signature `fn(dyn http_body::Body) -> _`
= note: required for `MapResponseBody<BaseUri<Decompression<Either<Either<AddAuthorization<ExtraHeaders<...>>, ...>, ...>>>, ...>` to implement `tower::Service<http::Request<hyper::body::Incoming>>`
= note: the full type name has been written to '/home/runner/work/kube/kube/target/debug/deps/kube_client-157e05995e1ae132.long-type-9476931622157201287.txt'
|
the size for values of type `dyn http_body::Body` cannot be known at compilation time:
kube-client/src/client/builder.rs#L202
error[E0277]: the size for values of type `dyn http_body::Body` cannot be known at compilation time
--> kube-client/src/client/builder.rs:202:17
|
202 | Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
|
= help: the trait `std::marker::Sized` is not implemented for `dyn http_body::Body`
note: required by a bound in `http_body_util::combinators::MapErr`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/http-body-util-0.1.0/src/combinators/map_err.rs:15:23
|
15 | pub struct MapErr<B, F> {
| ^ required by this bound in `MapErr`
|
`<dyn http_body::Body as http_body::Body>::Error` cannot be shared between threads safely:
kube-client/src/client/builder.rs#L202
error[E0277]: `<dyn http_body::Body as http_body::Body>::Error` cannot be shared between threads safely
--> kube-client/src/client/builder.rs:202:17
|
202 | Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `<dyn http_body::Body as http_body::Body>::Error` cannot be shared between threads safely
|
= help: the trait `std::marker::Sync` is not implemented for `<dyn http_body::Body as http_body::Body>::Error`, which is required by `std::boxed::Box<dyn std::error::Error + std::marker::Send + std::marker::Sync>: std::convert::From<<dyn http_body::Body as http_body::Body>::Error>`
= help: the following other types implement trait `std::convert::From<T>`:
<std::boxed::Box<indexmap::map::slice::Slice<K, V>> as std::convert::From<&indexmap::map::slice::Slice<K, V>>>
<std::boxed::Box<indexmap::set::slice::Slice<T>> as std::convert::From<&indexmap::set::slice::Slice<T>>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<std::borrow::Cow<'_, std::ffi::OsStr>>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<std::ffi::OsString>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<&std::ffi::OsStr>>
<std::boxed::Box<std::path::Path> as std::convert::From<std::borrow::Cow<'_, std::path::Path>>>
<std::boxed::Box<std::path::Path> as std::convert::From<std::path::PathBuf>>
<std::boxed::Box<std::path::Path> as std::convert::From<&std::path::Path>>
and 21 others
= note: required for `std::boxed::Box<dyn std::error::Error + std::marker::Send + std::marker::Sync>` to implement `std::convert::From<<dyn http_body::Body as http_body::Body>::Error>`
|
`<dyn http_body::Body as http_body::Body>::Error` cannot be sent between threads safely:
kube-client/src/client/builder.rs#L202
error[E0277]: `<dyn http_body::Body as http_body::Body>::Error` cannot be sent between threads safely
--> kube-client/src/client/builder.rs:202:17
|
202 | Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `<dyn http_body::Body as http_body::Body>::Error` cannot be sent between threads safely
|
= help: the trait `std::marker::Send` is not implemented for `<dyn http_body::Body as http_body::Body>::Error`, which is required by `std::boxed::Box<dyn std::error::Error + std::marker::Send + std::marker::Sync>: std::convert::From<<dyn http_body::Body as http_body::Body>::Error>`
= help: the following other types implement trait `std::convert::From<T>`:
<std::boxed::Box<indexmap::map::slice::Slice<K, V>> as std::convert::From<&indexmap::map::slice::Slice<K, V>>>
<std::boxed::Box<indexmap::set::slice::Slice<T>> as std::convert::From<&indexmap::set::slice::Slice<T>>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<std::borrow::Cow<'_, std::ffi::OsStr>>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<std::ffi::OsString>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<&std::ffi::OsStr>>
<std::boxed::Box<std::path::Path> as std::convert::From<std::borrow::Cow<'_, std::path::Path>>>
<std::boxed::Box<std::path::Path> as std::convert::From<std::path::PathBuf>>
<std::boxed::Box<std::path::Path> as std::convert::From<&std::path::Path>>
and 21 others
= note: required for `std::boxed::Box<dyn std::error::Error + std::marker::Send + std::marker::Sync>` to implement `std::convert::From<<dyn http_body::Body as http_body::Body>::Error>`
|
the trait bound `<dyn http_body::Body as http_body::Body>::Error: std::error::Error` is not satisfied:
kube-client/src/client/builder.rs#L202
error[E0277]: the trait bound `<dyn http_body::Body as http_body::Body>::Error: std::error::Error` is not satisfied
--> kube-client/src/client/builder.rs:202:17
|
202 | Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::error::Error` is not implemented for `<dyn http_body::Body as http_body::Body>::Error`, which is required by `std::boxed::Box<dyn std::error::Error + std::marker::Send + std::marker::Sync>: std::convert::From<<dyn http_body::Body as http_body::Body>::Error>`
|
= help: the following other types implement trait `std::convert::From<T>`:
<std::boxed::Box<indexmap::map::slice::Slice<K, V>> as std::convert::From<&indexmap::map::slice::Slice<K, V>>>
<std::boxed::Box<indexmap::set::slice::Slice<T>> as std::convert::From<&indexmap::set::slice::Slice<T>>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<std::borrow::Cow<'_, std::ffi::OsStr>>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<std::ffi::OsString>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<&std::ffi::OsStr>>
<std::boxed::Box<std::path::Path> as std::convert::From<std::borrow::Cow<'_, std::path::Path>>>
<std::boxed::Box<std::path::Path> as std::convert::From<std::path::PathBuf>>
<std::boxed::Box<std::path::Path> as std::convert::From<&std::path::Path>>
and 21 others
= note: required for `std::boxed::Box<dyn std::error::Error + std::marker::Send + std::marker::Sync>` to implement `std::convert::From<<dyn http_body::Body as http_body::Body>::Error>`
|
the size for values of type `dyn http_body::Body` cannot be known at compilation time:
kube-client/src/client/builder.rs#L202
error[E0277]: the size for values of type `dyn http_body::Body` cannot be known at compilation time
--> kube-client/src/client/builder.rs:202:17
|
202 | Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
| ^^^^^^^^ doesn't have a size known at compile-time
|
= help: the trait `std::marker::Sized` is not implemented for `dyn http_body::Body`
note: required by a bound in `http_body_util::combinators::MapErr`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/http-body-util-0.1.0/src/combinators/map_err.rs:15:23
|
15 | pub struct MapErr<B, F> {
| ^ required by this bound in `MapErr`
|
`<dyn http_body::Body as http_body::Body>::Error` cannot be shared between threads safely:
kube-client/src/client/builder.rs#L202
error[E0277]: `<dyn http_body::Body as http_body::Body>::Error` cannot be shared between threads safely
--> kube-client/src/client/builder.rs:202:17
|
202 | Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
| ^^^^^^^^ `<dyn http_body::Body as http_body::Body>::Error` cannot be shared between threads safely
|
= help: the trait `std::marker::Sync` is not implemented for `<dyn http_body::Body as http_body::Body>::Error`, which is required by `std::boxed::Box<dyn std::error::Error + std::marker::Send + std::marker::Sync>: std::convert::From<<dyn http_body::Body as http_body::Body>::Error>`
= help: the following other types implement trait `std::convert::From<T>`:
<std::boxed::Box<indexmap::map::slice::Slice<K, V>> as std::convert::From<&indexmap::map::slice::Slice<K, V>>>
<std::boxed::Box<indexmap::set::slice::Slice<T>> as std::convert::From<&indexmap::set::slice::Slice<T>>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<std::borrow::Cow<'_, std::ffi::OsStr>>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<std::ffi::OsString>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<&std::ffi::OsStr>>
<std::boxed::Box<std::path::Path> as std::convert::From<std::borrow::Cow<'_, std::path::Path>>>
<std::boxed::Box<std::path::Path> as std::convert::From<std::path::PathBuf>>
<std::boxed::Box<std::path::Path> as std::convert::From<&std::path::Path>>
and 21 others
= note: required for `std::boxed::Box<dyn std::error::Error + std::marker::Send + std::marker::Sync>` to implement `std::convert::From<<dyn http_body::Body as http_body::Body>::Error>`
|
`<dyn http_body::Body as http_body::Body>::Error` cannot be sent between threads safely:
kube-client/src/client/builder.rs#L202
error[E0277]: `<dyn http_body::Body as http_body::Body>::Error` cannot be sent between threads safely
--> kube-client/src/client/builder.rs:202:17
|
202 | Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
| ^^^^^^^^ `<dyn http_body::Body as http_body::Body>::Error` cannot be sent between threads safely
|
= help: the trait `std::marker::Send` is not implemented for `<dyn http_body::Body as http_body::Body>::Error`, which is required by `std::boxed::Box<dyn std::error::Error + std::marker::Send + std::marker::Sync>: std::convert::From<<dyn http_body::Body as http_body::Body>::Error>`
= help: the following other types implement trait `std::convert::From<T>`:
<std::boxed::Box<indexmap::map::slice::Slice<K, V>> as std::convert::From<&indexmap::map::slice::Slice<K, V>>>
<std::boxed::Box<indexmap::set::slice::Slice<T>> as std::convert::From<&indexmap::set::slice::Slice<T>>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<std::borrow::Cow<'_, std::ffi::OsStr>>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<std::ffi::OsString>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<&std::ffi::OsStr>>
<std::boxed::Box<std::path::Path> as std::convert::From<std::borrow::Cow<'_, std::path::Path>>>
<std::boxed::Box<std::path::Path> as std::convert::From<std::path::PathBuf>>
<std::boxed::Box<std::path::Path> as std::convert::From<&std::path::Path>>
and 21 others
= note: required for `std::boxed::Box<dyn std::error::Error + std::marker::Send + std::marker::Sync>` to implement `std::convert::From<<dyn http_body::Body as http_body::Body>::Error>`
|
the trait bound `<dyn http_body::Body as http_body::Body>::Error: std::error::Error` is not satisfied:
kube-client/src/client/builder.rs#L202
error[E0277]: the trait bound `<dyn http_body::Body as http_body::Body>::Error: std::error::Error` is not satisfied
--> kube-client/src/client/builder.rs:202:17
|
202 | Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
| ^^^^^^^^ the trait `std::error::Error` is not implemented for `<dyn http_body::Body as http_body::Body>::Error`, which is required by `std::boxed::Box<dyn std::error::Error + std::marker::Send + std::marker::Sync>: std::convert::From<<dyn http_body::Body as http_body::Body>::Error>`
|
= help: the following other types implement trait `std::convert::From<T>`:
<std::boxed::Box<indexmap::map::slice::Slice<K, V>> as std::convert::From<&indexmap::map::slice::Slice<K, V>>>
<std::boxed::Box<indexmap::set::slice::Slice<T>> as std::convert::From<&indexmap::set::slice::Slice<T>>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<std::borrow::Cow<'_, std::ffi::OsStr>>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<std::ffi::OsString>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<&std::ffi::OsStr>>
<std::boxed::Box<std::path::Path> as std::convert::From<std::borrow::Cow<'_, std::path::Path>>>
<std::boxed::Box<std::path::Path> as std::convert::From<std::path::PathBuf>>
<std::boxed::Box<std::path::Path> as std::convert::From<&std::path::Path>>
and 21 others
= note: required for `std::boxed::Box<dyn std::error::Error + std::marker::Send + std::marker::Sync>` to implement `std::convert::From<<dyn http_body::Body as http_body::Body>::Error>`
|
the size for values of type `dyn http_body::Body` cannot be known at compilation time:
kube-client/src/client/builder.rs#L202
error[E0277]: the size for values of type `dyn http_body::Body` cannot be known at compilation time
--> kube-client/src/client/builder.rs:202:26
|
202 | Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
|
= help: the trait `std::marker::Sized` is not implemented for `dyn http_body::Body`
note: required by a bound in `http_body_util::combinators::MapErr`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/http-body-util-0.1.0/src/combinators/map_err.rs:15:23
|
15 | pub struct MapErr<B, F> {
| ^ required by this bound in `MapErr`
|
`<dyn http_body::Body as http_body::Body>::Error` cannot be shared between threads safely:
kube-client/src/client/builder.rs#L202
error[E0277]: `<dyn http_body::Body as http_body::Body>::Error` cannot be shared between threads safely
--> kube-client/src/client/builder.rs:202:26
|
202 | Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `<dyn http_body::Body as http_body::Body>::Error` cannot be shared between threads safely
|
= help: the trait `std::marker::Sync` is not implemented for `<dyn http_body::Body as http_body::Body>::Error`, which is required by `std::boxed::Box<dyn std::error::Error + std::marker::Send + std::marker::Sync>: std::convert::From<<dyn http_body::Body as http_body::Body>::Error>`
= help: the following other types implement trait `std::convert::From<T>`:
<std::boxed::Box<indexmap::map::slice::Slice<K, V>> as std::convert::From<&indexmap::map::slice::Slice<K, V>>>
<std::boxed::Box<indexmap::set::slice::Slice<T>> as std::convert::From<&indexmap::set::slice::Slice<T>>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<std::borrow::Cow<'_, std::ffi::OsStr>>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<std::ffi::OsString>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<&std::ffi::OsStr>>
<std::boxed::Box<std::path::Path> as std::convert::From<std::borrow::Cow<'_, std::path::Path>>>
<std::boxed::Box<std::path::Path> as std::convert::From<std::path::PathBuf>>
<std::boxed::Box<std::path::Path> as std::convert::From<&std::path::Path>>
and 21 others
= note: required for `std::boxed::Box<dyn std::error::Error + std::marker::Send + std::marker::Sync>` to implement `std::convert::From<<dyn http_body::Body as http_body::Body>::Error>`
|
`<dyn http_body::Body as http_body::Body>::Error` cannot be sent between threads safely:
kube-client/src/client/builder.rs#L202
error[E0277]: `<dyn http_body::Body as http_body::Body>::Error` cannot be sent between threads safely
--> kube-client/src/client/builder.rs:202:26
|
202 | Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `<dyn http_body::Body as http_body::Body>::Error` cannot be sent between threads safely
|
= help: the trait `std::marker::Send` is not implemented for `<dyn http_body::Body as http_body::Body>::Error`, which is required by `std::boxed::Box<dyn std::error::Error + std::marker::Send + std::marker::Sync>: std::convert::From<<dyn http_body::Body as http_body::Body>::Error>`
= help: the following other types implement trait `std::convert::From<T>`:
<std::boxed::Box<indexmap::map::slice::Slice<K, V>> as std::convert::From<&indexmap::map::slice::Slice<K, V>>>
<std::boxed::Box<indexmap::set::slice::Slice<T>> as std::convert::From<&indexmap::set::slice::Slice<T>>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<std::borrow::Cow<'_, std::ffi::OsStr>>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<std::ffi::OsString>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<&std::ffi::OsStr>>
<std::boxed::Box<std::path::Path> as std::convert::From<std::borrow::Cow<'_, std::path::Path>>>
<std::boxed::Box<std::path::Path> as std::convert::From<std::path::PathBuf>>
<std::boxed::Box<std::path::Path> as std::convert::From<&std::path::Path>>
and 21 others
= note: required for `std::boxed::Box<dyn std::error::Error + std::marker::Send + std::marker::Sync>` to implement `std::convert::From<<dyn http_body::Body as http_body::Body>::Error>`
|
the trait bound `<dyn http_body::Body as http_body::Body>::Error: std::error::Error` is not satisfied:
kube-client/src/client/builder.rs#L202
error[E0277]: the trait bound `<dyn http_body::Body as http_body::Body>::Error: std::error::Error` is not satisfied
--> kube-client/src/client/builder.rs:202:26
|
202 | Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::error::Error` is not implemented for `<dyn http_body::Body as http_body::Body>::Error`, which is required by `std::boxed::Box<dyn std::error::Error + std::marker::Send + std::marker::Sync>: std::convert::From<<dyn http_body::Body as http_body::Body>::Error>`
|
= help: the following other types implement trait `std::convert::From<T>`:
<std::boxed::Box<indexmap::map::slice::Slice<K, V>> as std::convert::From<&indexmap::map::slice::Slice<K, V>>>
<std::boxed::Box<indexmap::set::slice::Slice<T>> as std::convert::From<&indexmap::set::slice::Slice<T>>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<std::borrow::Cow<'_, std::ffi::OsStr>>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<std::ffi::OsString>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<&std::ffi::OsStr>>
<std::boxed::Box<std::path::Path> as std::convert::From<std::borrow::Cow<'_, std::path::Path>>>
<std::boxed::Box<std::path::Path> as std::convert::From<std::path::PathBuf>>
<std::boxed::Box<std::path::Path> as std::convert::From<&std::path::Path>>
and 21 others
= note: required for `std::boxed::Box<dyn std::error::Error + std::marker::Send + std::marker::Sync>` to implement `std::convert::From<<dyn http_body::Body as http_body::Body>::Error>`
|
`<dyn http_body::Body as http_body::Body>::Error` cannot be shared between threads safely:
kube-client/src/client/builder.rs#L202
error[E0277]: `<dyn http_body::Body as http_body::Body>::Error` cannot be shared between threads safely
--> kube-client/src/client/builder.rs:202:57
|
202 | Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
| ^^^^^^^^ `<dyn http_body::Body as http_body::Body>::Error` cannot be shared between threads safely
|
= help: the trait `std::marker::Sync` is not implemented for `<dyn http_body::Body as http_body::Body>::Error`, which is required by `std::boxed::Box<(dyn std::error::Error + std::marker::Send + std::marker::Sync + 'static)>: std::convert::From<<dyn http_body::Body as http_body::Body>::Error>`
= help: the trait `std::convert::From<std::string::String>` is implemented for `std::boxed::Box<(dyn std::error::Error + std::marker::Send + std::marker::Sync + 'static)>`
= help: for that trait implementation, expected `std::string::String`, found `<dyn http_body::Body as http_body::Body>::Error`
= note: required for `std::boxed::Box<(dyn std::error::Error + std::marker::Send + std::marker::Sync + 'static)>` to implement `std::convert::From<<dyn http_body::Body as http_body::Body>::Error>`
|
`<dyn http_body::Body as http_body::Body>::Error` cannot be sent between threads safely:
kube-client/src/client/builder.rs#L202
error[E0277]: `<dyn http_body::Body as http_body::Body>::Error` cannot be sent between threads safely
--> kube-client/src/client/builder.rs:202:57
|
202 | Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
| ^^^^^^^^ `<dyn http_body::Body as http_body::Body>::Error` cannot be sent between threads safely
|
= help: the trait `std::marker::Send` is not implemented for `<dyn http_body::Body as http_body::Body>::Error`, which is required by `std::boxed::Box<(dyn std::error::Error + std::marker::Send + std::marker::Sync + 'static)>: std::convert::From<<dyn http_body::Body as http_body::Body>::Error>`
= help: the trait `std::convert::From<std::string::String>` is implemented for `std::boxed::Box<(dyn std::error::Error + std::marker::Send + std::marker::Sync + 'static)>`
= help: for that trait implementation, expected `std::string::String`, found `<dyn http_body::Body as http_body::Body>::Error`
= note: required for `std::boxed::Box<(dyn std::error::Error + std::marker::Send + std::marker::Sync + 'static)>` to implement `std::convert::From<<dyn http_body::Body as http_body::Body>::Error>`
|
the trait bound `<dyn http_body::Body as http_body::Body>::Error: std::error::Error` is not satisfied:
kube-client/src/client/builder.rs#L202
error[E0277]: the trait bound `<dyn http_body::Body as http_body::Body>::Error: std::error::Error` is not satisfied
--> kube-client/src/client/builder.rs:202:57
|
202 | Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
| ^^^^^^^^ the trait `std::error::Error` is not implemented for `<dyn http_body::Body as http_body::Body>::Error`, which is required by `std::boxed::Box<(dyn std::error::Error + std::marker::Send + std::marker::Sync + 'static)>: std::convert::From<<dyn http_body::Body as http_body::Body>::Error>`
|
= help: the trait `std::convert::From<std::string::String>` is implemented for `std::boxed::Box<(dyn std::error::Error + std::marker::Send + std::marker::Sync + 'static)>`
= help: for that trait implementation, expected `std::string::String`, found `<dyn http_body::Body as http_body::Body>::Error`
= note: required for `std::boxed::Box<(dyn std::error::Error + std::marker::Send + std::marker::Sync + 'static)>` to implement `std::convert::From<<dyn http_body::Body as http_body::Body>::Error>`
|
`<dyn http_body::Body as http_body::Body>::Error` cannot be shared between threads safely:
kube-client/src/client/builder.rs#L202
error[E0277]: `<dyn http_body::Body as http_body::Body>::Error` cannot be shared between threads safely
--> kube-client/src/client/builder.rs:202:26
|
202 | Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
| ^^^^^^^^^^^^^^^^^^^^^^^^ `<dyn http_body::Body as http_body::Body>::Error` cannot be shared between threads safely
|
= help: the trait `std::marker::Sync` is not implemented for `<dyn http_body::Body as http_body::Body>::Error`, which is required by `std::boxed::Box<dyn std::error::Error + std::marker::Send + std::marker::Sync>: std::convert::From<<dyn http_body::Body as http_body::Body>::Error>`
= help: the following other types implement trait `std::convert::From<T>`:
<std::boxed::Box<indexmap::map::slice::Slice<K, V>> as std::convert::From<&indexmap::map::slice::Slice<K, V>>>
<std::boxed::Box<indexmap::set::slice::Slice<T>> as std::convert::From<&indexmap::set::slice::Slice<T>>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<std::borrow::Cow<'_, std::ffi::OsStr>>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<std::ffi::OsString>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<&std::ffi::OsStr>>
<std::boxed::Box<std::path::Path> as std::convert::From<std::borrow::Cow<'_, std::path::Path>>>
<std::boxed::Box<std::path::Path> as std::convert::From<std::path::PathBuf>>
<std::boxed::Box<std::path::Path> as std::convert::From<&std::path::Path>>
and 21 others
= note: required for `std::boxed::Box<dyn std::error::Error + std::marker::Send + std::marker::Sync>` to implement `std::convert::From<<dyn http_body::Body as http_body::Body>::Error>`
|
`<dyn http_body::Body as http_body::Body>::Error` cannot be sent between threads safely:
kube-client/src/client/builder.rs#L202
error[E0277]: `<dyn http_body::Body as http_body::Body>::Error` cannot be sent between threads safely
--> kube-client/src/client/builder.rs:202:26
|
202 | Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
| ^^^^^^^^^^^^^^^^^^^^^^^^ `<dyn http_body::Body as http_body::Body>::Error` cannot be sent between threads safely
|
= help: the trait `std::marker::Send` is not implemented for `<dyn http_body::Body as http_body::Body>::Error`, which is required by `std::boxed::Box<dyn std::error::Error + std::marker::Send + std::marker::Sync>: std::convert::From<<dyn http_body::Body as http_body::Body>::Error>`
= help: the following other types implement trait `std::convert::From<T>`:
<std::boxed::Box<indexmap::map::slice::Slice<K, V>> as std::convert::From<&indexmap::map::slice::Slice<K, V>>>
<std::boxed::Box<indexmap::set::slice::Slice<T>> as std::convert::From<&indexmap::set::slice::Slice<T>>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<std::borrow::Cow<'_, std::ffi::OsStr>>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<std::ffi::OsString>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<&std::ffi::OsStr>>
<std::boxed::Box<std::path::Path> as std::convert::From<std::borrow::Cow<'_, std::path::Path>>>
<std::boxed::Box<std::path::Path> as std::convert::From<std::path::PathBuf>>
<std::boxed::Box<std::path::Path> as std::convert::From<&std::path::Path>>
and 21 others
= note: required for `std::boxed::Box<dyn std::error::Error + std::marker::Send + std::marker::Sync>` to implement `std::convert::From<<dyn http_body::Body as http_body::Body>::Error>`
|
the trait bound `<dyn http_body::Body as http_body::Body>::Error: std::error::Error` is not satisfied:
kube-client/src/client/builder.rs#L202
error[E0277]: the trait bound `<dyn http_body::Body as http_body::Body>::Error: std::error::Error` is not satisfied
--> kube-client/src/client/builder.rs:202:26
|
202 | Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
| ^^^^^^^^^^^^^^^^^^^^^^^^ the trait `std::error::Error` is not implemented for `<dyn http_body::Body as http_body::Body>::Error`, which is required by `std::boxed::Box<dyn std::error::Error + std::marker::Send + std::marker::Sync>: std::convert::From<<dyn http_body::Body as http_body::Body>::Error>`
|
= help: the following other types implement trait `std::convert::From<T>`:
<std::boxed::Box<indexmap::map::slice::Slice<K, V>> as std::convert::From<&indexmap::map::slice::Slice<K, V>>>
<std::boxed::Box<indexmap::set::slice::Slice<T>> as std::convert::From<&indexmap::set::slice::Slice<T>>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<std::borrow::Cow<'_, std::ffi::OsStr>>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<std::ffi::OsString>>
<std::boxed::Box<std::ffi::OsStr> as std::convert::From<&std::ffi::OsStr>>
<std::boxed::Box<std::path::Path> as std::convert::From<std::borrow::Cow<'_, std::path::Path>>>
<std::boxed::Box<std::path::Path> as std::convert::From<std::path::PathBuf>>
<std::boxed::Box<std::path::Path> as std::convert::From<&std::path::Path>>
and 21 others
= note: required for `std::boxed::Box<dyn std::error::Error + std::marker::Send + std::marker::Sync>` to implement `std::convert::From<<dyn http_body::Body as http_body::Body>::Error>`
|
the size for values of type `dyn http_body::Body` cannot be known at compilation time:
kube-client/src/client/builder.rs#L201
error[E0277]: the size for values of type `dyn http_body::Body` cannot be known at compilation time
--> kube-client/src/client/builder.rs:201:40
|
201 | MapResponseBodyLayer::new(|body| {
| ^^^^ doesn't have a size known at compile-time
|
= help: the trait `std::marker::Sized` is not implemented for `dyn http_body::Body`
= note: all function arguments must have a statically known size
= help: unsized fn params are gated as an unstable feature
|
the size for values of type `dyn http_body::Body` cannot be known at compilation time:
kube-client/src/client/builder.rs#L202
error[E0277]: the size for values of type `dyn http_body::Body` cannot be known at compilation time
--> kube-client/src/client/builder.rs:202:26
|
202 | Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
| ^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
|
= help: the trait `std::marker::Sized` is not implemented for `dyn http_body::Body`
note: required by a bound in `http_body_util::BodyExt::map_err`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/http-body-util-0.1.0/src/lib.rs:59:15
|
57 | fn map_err<F, E>(self, f: F) -> MapErr<Self, F>
| ------- required by a bound in this associated function
58 | where
59 | Self: Sized,
| ^^^^^ required by this bound in `BodyExt::map_err`
|
trait objects must include the `dyn` keyword:
kube-client/src/client/builder.rs#L202
error[E0782]: trait objects must include the `dyn` keyword
--> kube-client/src/client/builder.rs:202:26
|
202 | Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
| ^^^^^^^^^^^^^^^
|
help: add `dyn` keyword before this trait
|
202 | Box::new(<dyn http_body::Body>::map_err(body, BoxError::from)) as Box<DynBody>
| ++++ +
|
the value of the associated types `Error` and `Data` in `http_body::Body` must be specified:
kube-client/src/client/builder.rs#L202
error[E0191]: the value of the associated types `Error` and `Data` in `http_body::Body` must be specified
--> kube-client/src/client/builder.rs:202:26
|
202 | Box::new(http_body::Body::map_err(body, BoxError::from)) as Box<DynBody>
| ^^^^^^^^^^^^^^^ help: specify the associated types: `http_body::Body<Data = Type, Error = Type>`
|
the trait bound `<H as tower::Service<http::Uri>>::Response: hyper::rt::Write` is not satisfied:
kube-client/src/client/builder.rs#L135
error[E0277]: the trait bound `<H as tower::Service<http::Uri>>::Response: hyper::rt::Write` is not satisfied
--> kube-client/src/client/builder.rs:135:55
|
135 | HyperBuilder::new(TokioExecutor::new()).build(connector)
| ----- ^^^^^^^^^ the trait `hyper::rt::Write` is not implemented for `<H as tower::Service<http::Uri>>::Response`, which is required by `hyper_rustls::HttpsConnector<H>: hyper_util::client::legacy::connect::Connect`
| |
| required by a bound introduced by this call
|
= note: required for `hyper_rustls::HttpsConnector<H>` to implement `tower::Service<http::Uri>`
= note: required for `hyper_rustls::HttpsConnector<H>` to implement `hyper_util::client::legacy::connect::Connect`
note: required by a bound in `hyper_util::client::legacy::Builder::build`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/hyper-util-0.1.3/src/client/legacy/client.rs:1476:12
|
1474 | pub fn build<C, B>(&self, connector: C) -> Client<C, B>
| ----- required by a bound in this associated function
1475 | where
1476 | C: Connect + Clone,
| ^^^^^^^ required by this bound in `Builder::build`
help: consider further restricting the associated type
|
105 | H::Error: 'static + Send + Sync + std::error::Error, <H as tower::Service<http::Uri>>::Response: hyper::rt::Write
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
the trait bound `<H as tower::Service<http::Uri>>::Response: hyper::rt::Read` is not satisfied:
kube-client/src/client/builder.rs#L135
error[E0277]: the trait bound `<H as tower::Service<http::Uri>>::Response: hyper::rt::Read` is not satisfied
--> kube-client/src/client/builder.rs:135:55
|
135 | HyperBuilder::new(TokioExecutor::new()).build(connector)
| ----- ^^^^^^^^^ the trait `hyper::rt::Read` is not implemented for `<H as tower::Service<http::Uri>>::Response`, which is required by `hyper_rustls::HttpsConnector<H>: hyper_util::client::legacy::connect::Connect`
| |
| required by a bound introduced by this call
|
= note: required for `hyper_rustls::HttpsConnector<H>` to implement `tower::Service<http::Uri>`
= note: required for `hyper_rustls::HttpsConnector<H>` to implement `hyper_util::client::legacy::connect::Connect`
note: required by a bound in `hyper_util::client::legacy::Builder::build`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/hyper-util-0.1.3/src/client/legacy/client.rs:1476:12
|
1474 | pub fn build<C, B>(&self, connector: C) -> Client<C, B>
| ----- required by a bound in this associated function
1475 | where
1476 | C: Connect + Clone,
| ^^^^^^^ required by this bound in `Builder::build`
help: consider further restricting the associated type
|
105 | H::Error: 'static + Send + Sync + std::error::Error, <H as tower::Service<http::Uri>>::Response: hyper::rt::Read
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
the trait bound `<H as tower::Service<http::Uri>>::Response: hyper_util::client::legacy::connect::Connection` is not satisfied:
kube-client/src/client/builder.rs#L135
error[E0277]: the trait bound `<H as tower::Service<http::Uri>>::Response: hyper_util::client::legacy::connect::Connection` is not satisfied
--> kube-client/src/client/builder.rs:135:55
|
135 | HyperBuilder::new(TokioExecutor::new()).build(connector)
| ----- ^^^^^^^^^ the trait `hyper_util::client::legacy::connect::Connection` is not implemented for `<H as tower::Service<http::Uri>>::Response`, which is required by `hyper_rustls::HttpsConnector<H>: hyper_util::client::legacy::connect::Connect`
| |
| required by a bound introduced by this call
|
= note: required for `hyper_rustls::HttpsConnector<H>` to implement `tower::Service<http::Uri>`
= note: required for `hyper_rustls::HttpsConnector<H>` to implement `hyper_util::client::legacy::connect::Connect`
note: required by a bound in `hyper_util::client::legacy::Builder::build`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/hyper-util-0.1.3/src/client/legacy/client.rs:1476:12
|
1474 | pub fn build<C, B>(&self, connector: C) -> Client<C, B>
| ----- required by a bound in this associated function
1475 | where
1476 | C: Connect + Clone,
| ^^^^^^^ required by this bound in `Builder::build`
help: consider further restricting the associated type
|
105 | H::Error: 'static + Send + Sync + std::error::Error, <H as tower::Service<http::Uri>>::Response: hyper_util::client::legacy::connect::Connection
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
the trait bound `tokio::net::TcpStream: hyper::rt::Write` is not satisfied:
kube-client/src/client/builder.rs#L94
error[E0277]: the trait bound `tokio::net::TcpStream: hyper::rt::Write` is not satisfied
--> kube-client/src/client/builder.rs:94:30
|
94 | make_generic_builder(connector, config)
| -------------------- ^^^^^^^^^ the trait `hyper::rt::Write` is not implemented for `tokio::net::TcpStream`, which is required by `hyper_util::rt::TokioIo<tokio::net::TcpStream>: tokio::io::AsyncWrite`
| |
| required by a bound introduced by this call
|
= help: the following other types implement trait `hyper::rt::Write`:
hyper_tls::MaybeHttpsStream<T>
hyper_rustls::MaybeHttpsStream<T>
hyper_timeout::stream::TimeoutReader<R>
hyper_timeout::stream::TimeoutWriter<W>
std::boxed::Box<T>
hyper_timeout::stream::TimeoutStream<S>
hyper::upgrade::Upgraded
hyper_util::rt::TokioIo<T>
and 2 others
= note: required for `hyper_util::rt::TokioIo<tokio::net::TcpStream>` to implement `tokio::io::AsyncWrite`
note: required by a bound in `client::builder::make_generic_builder`
--> kube-client/src/client/builder.rs:103:40
|
100 | fn make_generic_builder<H>(connector: H, config: Config) -> Result<ClientBuilder<GenericService>, Error>
| -------------------- required by a bound in this function
...
103 | H::Response: 'static + AsyncRead + AsyncWrite + Send + Unpin,
| ^^^^^^^^^^ required by this bound in `make_generic_builder`
|
the trait bound `tokio::net::TcpStream: hyper::rt::Read` is not satisfied:
kube-client/src/client/builder.rs#L94
error[E0277]: the trait bound `tokio::net::TcpStream: hyper::rt::Read` is not satisfied
--> kube-client/src/client/builder.rs:94:30
|
94 | make_generic_builder(connector, config)
| -------------------- ^^^^^^^^^ the trait `hyper::rt::Read` is not implemented for `tokio::net::TcpStream`, which is required by `hyper_util::rt::TokioIo<tokio::net::TcpStream>: tokio::io::AsyncRead`
| |
| required by a bound introduced by this call
|
= help: the following other types implement trait `hyper::rt::Read`:
hyper_tls::MaybeHttpsStream<T>
hyper_rustls::MaybeHttpsStream<T>
hyper_timeout::stream::TimeoutReader<R>
hyper_timeout::stream::TimeoutWriter<W>
std::boxed::Box<T>
hyper_timeout::stream::TimeoutStream<S>
hyper::upgrade::Upgraded
hyper_util::rt::TokioIo<T>
and 2 others
= note: required for `hyper_util::rt::TokioIo<tokio::net::TcpStream>` to implement `tokio::io::AsyncRead`
note: required by a bound in `client::builder::make_generic_builder`
--> kube-client/src/client/builder.rs:103:28
|
100 | fn make_generic_builder<H>(connector: H, config: Config) -> Result<ClientBuilder<GenericService>, Error>
| -------------------- required by a bound in this function
...
103 | H::Response: 'static + AsyncRead + AsyncWrite + Send + Unpin,
| ^^^^^^^^^ required by this bound in `make_generic_builder`
|
the trait bound `tokio::net::TcpStream: hyper::rt::Write` is not satisfied:
kube-client/src/client/builder.rs#L91
error[E0277]: the trait bound `tokio::net::TcpStream: hyper::rt::Write` is not satisfied
--> kube-client/src/client/builder.rs:91:41
|
91 | return make_generic_builder(connector, config);
| -------------------- ^^^^^^^^^ the trait `hyper::rt::Write` is not implemented for `tokio::net::TcpStream`, which is required by `hyper_util::rt::TokioIo<tokio::net::TcpStream>: tokio::io::AsyncWrite`
| |
| required by a bound introduced by this call
|
= help: the following other types implement trait `hyper::rt::Write`:
hyper_tls::MaybeHttpsStream<T>
hyper_rustls::MaybeHttpsStream<T>
hyper_timeout::stream::TimeoutReader<R>
hyper_timeout::stream::TimeoutWriter<W>
std::boxed::Box<T>
hyper_timeout::stream::TimeoutStream<S>
hyper::upgrade::Upgraded
hyper_util::rt::TokioIo<T>
and 2 others
= note: required for `hyper_util::rt::TokioIo<tokio::net::TcpStream>` to implement `tokio::io::AsyncWrite`
note: required by a bound in `client::builder::make_generic_builder`
--> kube-client/src/client/builder.rs:103:40
|
100 | fn make_generic_builder<H>(connector: H, config: Config) -> Result<ClientBuilder<GenericService>, Error>
| -------------------- required by a bound in this function
...
103 | H::Response: 'static + AsyncRead + AsyncWrite + Send + Unpin,
| ^^^^^^^^^^ required by this bound in `make_generic_builder`
|
the trait bound `tokio::net::TcpStream: hyper::rt::Read` is not satisfied:
kube-client/src/client/builder.rs#L91
error[E0277]: the trait bound `tokio::net::TcpStream: hyper::rt::Read` is not satisfied
--> kube-client/src/client/builder.rs:91:41
|
91 | return make_generic_builder(connector, config);
| -------------------- ^^^^^^^^^ the trait `hyper::rt::Read` is not implemented for `tokio::net::TcpStream`, which is required by `hyper_util::rt::TokioIo<tokio::net::TcpStream>: tokio::io::AsyncRead`
| |
| required by a bound introduced by this call
|
= help: the following other types implement trait `hyper::rt::Read`:
hyper_tls::MaybeHttpsStream<T>
hyper_rustls::MaybeHttpsStream<T>
hyper_timeout::stream::TimeoutReader<R>
hyper_timeout::stream::TimeoutWriter<W>
std::boxed::Box<T>
hyper_timeout::stream::TimeoutStream<S>
hyper::upgrade::Upgraded
hyper_util::rt::TokioIo<T>
and 2 others
= note: required for `hyper_util::rt::TokioIo<tokio::net::TcpStream>` to implement `tokio::io::AsyncRead`
note: required by a bound in `client::builder::make_generic_builder`
--> kube-client/src/client/builder.rs:103:28
|
100 | fn make_generic_builder<H>(connector: H, config: Config) -> Result<ClientBuilder<GenericService>, Error>
| -------------------- required by a bound in this function
...
103 | H::Response: 'static + AsyncRead + AsyncWrite + Send + Unpin,
| ^^^^^^^^^ required by this bound in `make_generic_builder`
|
type mismatch resolving `<Svc as Service<Request<Bytes>>>::Response == Response<BoxBody<Bytes, Box<dyn Error + Send + Sync>>>`:
kube-client/src/client/builder.rs#L69
error[E0271]: type mismatch resolving `<Svc as Service<Request<Bytes>>>::Response == Response<BoxBody<Bytes, Box<dyn Error + Send + Sync>>>`
--> kube-client/src/client/builder.rs:69:21
|
61 | pub fn build<B>(self) -> Client
| - found this type parameter
...
69 | Client::new(self.service, self.default_ns)
| ----------- ^^^^^^^^^^^^ expected `Response<BoxBody<Bytes, Box<...>>>`, found `Response<B>`
| |
| required by a bound introduced by this call
|
= note: expected struct `http::Response<http_body_util::combinators::BoxBody<bytes::Bytes, std::boxed::Box<(dyn std::error::Error + std::marker::Send + std::marker::Sync + 'static)>>>`
found struct `http::Response<B>`
note: required by a bound in `client::Client::new`
--> kube-client/src/client/mod.rs:110:36
|
108 | pub fn new<S, /*B,*/ T>(service: S, default_namespace: T) -> Self
| --- required by a bound in this associated function
109 | where
110 | S: Service<Request<Bytes>, Response = Response<BoxBody<Bytes, BoxError>>> + Send + 'static,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Client::new`
|
no method named `poll_data` found for struct `std::pin::Pin<&mut B>` in the current scope:
kube-client/src/client/body.rs#L30
error[E0599]: no method named `poll_data` found for struct `std::pin::Pin<&mut B>` in the current scope
--> kube-client/src/client/body.rs:30:29
|
30 | self.project().body.poll_data(cx)
| ^^^^^^^^^ method not found in `Pin<&mut B>`
|
the size for values of type `str` cannot be known at compilation time:
kube-client/src/client/mod.rs#L350
error[E0277]: the size for values of type `str` cannot be known at compilation time
--> kube-client/src/client/mod.rs:350:17
|
350 | Err(LinesCodecError::MaxLineLengthExceeded) => {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
|
= help: the trait `std::marker::Sized` is not implemented for `str`
note: required by a bound in `std::prelude::v1::Err`
--> /rustc/bf3c6c5bed498f41ad815641319a1ad9bcecb8e8/library/core/src/result.rs:511:5
|
the size for values of type `str` cannot be known at compilation time:
kube-client/src/client/mod.rs#L333
error[E0277]: the size for values of type `str` cannot be known at compilation time
--> kube-client/src/client/mod.rs:333:17
|
333 | Err(LinesCodecError::Io(e)) => match e.kind() {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
|
= help: the trait `std::marker::Sized` is not implemented for `str`
note: required by a bound in `std::prelude::v1::Err`
--> /rustc/bf3c6c5bed498f41ad815641319a1ad9bcecb8e8/library/core/src/result.rs:511:5
|
the size for values of type `str` cannot be known at compilation time:
kube-client/src/client/mod.rs#L316
error[E0277]: the size for values of type `str` cannot be known at compilation time
--> kube-client/src/client/mod.rs:316:17
|
316 | Ok(line) => match serde_json::from_str::<WatchEvent<T>>(&line) {
| ^^^^^^^^ doesn't have a size known at compile-time
|
= help: the trait `std::marker::Sized` is not implemented for `str`
note: required by a bound in `std::prelude::v1::Ok`
--> /rustc/bf3c6c5bed498f41ad815641319a1ad9bcecb8e8/library/core/src/result.rs:506:5
|
the size for values of type `str` cannot be known at compilation time:
kube-client/src/client/mod.rs#L316
error[E0277]: the size for values of type `str` cannot be known at compilation time
--> kube-client/src/client/mod.rs:316:20
|
316 | Ok(line) => match serde_json::from_str::<WatchEvent<T>>(&line) {
| ^^^^ doesn't have a size known at compile-time
|
= help: the trait `std::marker::Sized` is not implemented for `str`
= note: all local variables must have a statically known size
= help: unsized locals are gated as an unstable feature
|
the method `filter_map` exists for struct `FramedRead<StreamReader<MapErr<BoxBody<Bytes, Box<dyn Error + Send + Sync>>, ...>, ...>, ...>`, but its trait bounds were not satisfied:
kube-client/src/client/mod.rs#L314
error[E0599]: the method `filter_map` exists for struct `FramedRead<StreamReader<MapErr<BoxBody<Bytes, Box<dyn Error + Send + Sync>>, ...>, ...>, ...>`, but its trait bounds were not satisfied
--> kube-client/src/client/mod.rs:314:19
|
314 | Ok(frames.filter_map(|res| async {
| -------^^^^^^^^^^ method cannot be called due to unsatisfied trait bounds
|
::: /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-util-0.7.10/src/codec/framed_read.rs:14:1
|
14 | / pin_project! {
15 | | /// A [`Stream`] of messages decoded from an [`AsyncRead`].
16 | | ///
17 | | /// [`Stream`]: futures_core::Stream
... |
22 | | }
23 | | }
| |_- doesn't satisfy `_: Iterator`, `_: StreamExt` or `_: Stream`
|
= note: the full type name has been written to '/home/runner/work/kube/kube/target/debug/deps/kube_client-157e05995e1ae132.long-type-17098323485889533228.txt'
= note: the following trait bounds were not satisfied:
`tokio_util::codec::FramedRead<tokio_util::io::StreamReader<http_body_util::combinators::MapErr<http_body_util::combinators::BoxBody<bytes::Bytes, std::boxed::Box<(dyn std::error::Error + std::marker::Send + std::marker::Sync + 'static)>>, {closure@kube-client/src/client/mod.rs:299:55: 299:58}>, _>, tokio_util::codec::LinesCodec>: futures::Stream`
which is required by `tokio_util::codec::FramedRead<tokio_util::io::StreamReader<http_body_util::combinators::MapErr<http_body_util::combinators::BoxBody<bytes::Bytes, std::boxed::Box<(dyn std::error::Error + std::marker::Send + std::marker::Sync + 'static)>>, {closure@kube-client/src/client/mod.rs:299:55: 299:58}>, _>, tokio_util::codec::LinesCodec>: futures::StreamExt`
`&tokio_util::codec::FramedRead<tokio_util::io::StreamReader<http_body_util::combinators::MapErr<http_body_util::combinators::BoxBody<bytes::Bytes, std::boxed::Box<(dyn std::error::Error + std::marker::Send + std::marker::Sync + 'static)>>, {closure@kube-client/src/client/mod.rs:299:55: 299:58}>, _>, tokio_util::codec::LinesCodec>: futures::Stream`
which is required by `&tokio_util::codec::FramedRead<tokio_util::io::StreamReader<http_body_util::combinators::MapErr<http_body_util::combinators::BoxBody<bytes::Bytes, std::boxed::Box<(dyn std::error::Error + std::marker::Send + std::marker::Sync + 'static)>>, {closure@kube-client/src/client/mod.rs:299:55: 299:58}>, _>, tokio_util::codec::LinesCodec>: futures::StreamExt`
`&mut tokio_util::codec::FramedRead<tokio_util::io::StreamReader<http_body_util::combinators::MapErr<http_body_util::combinators::BoxBody<bytes::Bytes, std::boxed::Box<(dyn std::error::Error + std::marker::Send + std::marker::Sync + 'static)>>, {closure@kube-client/src/client/mod.rs:299:55: 299:58}>, _>, tokio_util::codec::LinesCodec>: futures::Stream`
which is required by `&mut tokio_util::codec::FramedRead<tokio_util::io::StreamReader<http_body_util::combinators::MapErr<http_body_util::combinators::BoxBody<bytes::Bytes, std::boxed::Box<(dyn std::error::Error + std::marker::Send + std::marker::Sync + 'static)>>, {closure@kube-client/src/client/mod.rs:299:55: 299:58}>, _>, tokio_util::codec::LinesCodec>: futures::StreamExt`
`tokio_util::codec::FramedRead<tokio_util::io::StreamReader<http_body_util::combinators::MapErr<http_body_util::combinators::BoxBody<bytes::Bytes, std::boxed::Box<(dyn std::error::Error + std::marker::Send + std::marker::Sync + 'static)>>, {closure@kube-client/src/client/mod.rs:299:55: 299:58}>, _>, tokio_util::codec::LinesCodec>: std::iter::Iterator`
which is required by `&mut tokio_util::codec::FramedRead<tokio_util::io::StreamReader<http_body_util::combinators::MapErr<http_body_util::combinators::BoxBody<bytes::Bytes, std::boxed::Box<(dyn std::error::Error + std::marker::Send + std::marker::Sync + 'static)>>, {closure@kube-client/src/client/mod.rs:299:55: 299:58}>, _>, tokio_util::codec::LinesCodec>: std::iter::Iterator`
|
the trait bound `http_body_util::combinators::MapErr<http_body_util::combinators::BoxBody<bytes::Bytes, std::boxed::Box<(dyn std::error::Error + std::marker::Send + std::marker::Sync + 'static)>>, {closure@kube-client/src/client/mod.rs:299:55: 299:58}>: futures::Stream` is not satisfied:
kube-client/src/client/mod.rs#L299
error[E0277]: the trait bound `http_body_util::combinators::MapErr<http_body_util::combinators::BoxBody<bytes::Bytes, std::boxed::Box<(dyn std::error::Error + std::marker::Send + std::marker::Sync + 'static)>>, {closure@kube-client/src/client/mod.rs:299:55: 299:58}>: futures::Stream` is not satisfied
--> kube-client/src/client/mod.rs:299:13
|
298 | let frames = FramedRead::new(
| --------------- required by a bound introduced by this call
299 | / StreamReader::new(res.into_body().map_err(|e| {
300 | | // Client timeout. This will be ignored.
301 | | if e.is_timeout() {
302 | | return std::io::Error::new(std::io::ErrorKind::TimedOut, e);
... |
309 | | std::io::Error::new(std::io::ErrorKind::Other, e)
310 | | })),
| |_______________^ the trait `futures::Stream` is not implemented for `MapErr<BoxBody<Bytes, Box<dyn Error + Send + Sync>>, {closure@mod.rs:299:55}>`, which is required by `tokio_util::io::StreamReader<http_body_util::combinators::MapErr<http_body_util::combinators::BoxBody<bytes::Bytes, std::boxed::Box<(dyn std::error::Error + std::marker::Send + std::marker::Sync + 'static)>>, {closure@kube-client/src/client/mod.rs:299:55: 299:58}>, _>: tokio::io::AsyncRead`
|
= help: the following other types implement trait `futures::Stream`:
futures::futures_channel::mpsc::Receiver<T>
futures::futures_channel::mpsc::UnboundedReceiver<T>
tokio_util::sync::PollSemaphore
std::boxed::Box<S>
tokio_tungstenite::WebSocketStream<T>
http_body_util::StreamBody<S>
http_body_util::BodyStream<B>
tokio_util::either::Either<L, R>
and 91 others
= note: required for `StreamReader<MapErr<BoxBody<Bytes, Box<dyn Error + Send + Sync>>, {closure@mod.rs:299:55}>, _>` to implement `tokio::io::AsyncRead`
= note: the full type name has been written to '/home/runner/work/kube/kube/target/debug/deps/kube_client-157e05995e1ae132.long-type-694493980185049951.txt'
note: required by a bound in `tokio_util::codec::FramedRead::<T, D>::new`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-util-0.7.10/src/codec/framed_read.rs:29:8
|
29 | T: AsyncRead,
| ^^^^^^^^^ required by this bound in `FramedRead::<T, D>::new`
...
33 | pub fn new(inner: T, decoder: D) -> FramedRead<T, D> {
| --- required by a bound in this associated function
|
the trait bound `http_body_util::combinators::MapErr<http_body_util::combinators::BoxBody<bytes::Bytes, std::boxed::Box<(dyn std::error::Error + std::marker::Send + std::marker::Sync + 'static)>>, {closure@kube-client/src/client/mod.rs:299:55: 299:58}>: futures::Stream` is not satisfied:
kube-client/src/client/mod.rs#L299
error[E0277]: the trait bound `http_body_util::combinators::MapErr<http_body_util::combinators::BoxBody<bytes::Bytes, std::boxed::Box<(dyn std::error::Error + std::marker::Send + std::marker::Sync + 'static)>>, {closure@kube-client/src/client/mod.rs:299:55: 299:58}>: futures::Stream` is not satisfied
--> kube-client/src/client/mod.rs:299:31
|
299 | StreamReader::new(res.into_body().map_err(|e| {
| _____________-----------------_^
| | |
| | required by a bound introduced by this call
300 | | // Client timeout. This will be ignored.
301 | | if e.is_timeout() {
302 | | return std::io::Error::new(std::io::ErrorKind::TimedOut, e);
... |
309 | | std::io::Error::new(std::io::ErrorKind::Other, e)
310 | | })),
| |______________^ the trait `futures::Stream` is not implemented for `MapErr<BoxBody<Bytes, Box<dyn Error + Send + Sync>>, {closure@mod.rs:299:55}>`
|
= help: the following other types implement trait `futures::Stream`:
futures::futures_channel::mpsc::Receiver<T>
futures::futures_channel::mpsc::UnboundedReceiver<T>
tokio_util::sync::PollSemaphore
std::boxed::Box<S>
tokio_tungstenite::WebSocketStream<T>
http_body_util::StreamBody<S>
http_body_util::BodyStream<B>
tokio_util::either::Either<L, R>
and 91 others
note: required by a bound in `tokio_util::io::StreamReader::<S, B>::new`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-util-0.7.10/src/io/stream_reader.rs:165:8
|
165 | S: Stream<Item = Result<B, E>>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `StreamReader::<S, B>::new`
...
178 | pub fn new(stream: S) -> Self {
| --- required by a bound in this associated function
|
no method named `is_timeout` found for struct `std::boxed::Box<(dyn std::error::Error + std::marker::Send + std::marker::Sync + 'static)>` in the current scope:
kube-client/src/client/mod.rs#L301
error[E0599]: no method named `is_timeout` found for struct `std::boxed::Box<(dyn std::error::Error + std::marker::Send + std::marker::Sync + 'static)>` in the current scope
--> kube-client/src/client/mod.rs:301:22
|
301 | if e.is_timeout() {
| ^^^^^^^^^^ method not found in `Box<dyn Error + Send + Sync>`
|
the method `into_async_read` exists for struct `MapErr<BoxBody<Bytes, Box<dyn Error + Send + Sync>>, {closure@mod.rs:259:22}>`, but its trait bounds were not satisfied:
kube-client/src/client/mod.rs#L260
error[E0599]: the method `into_async_read` exists for struct `MapErr<BoxBody<Bytes, Box<dyn Error + Send + Sync>>, {closure@mod.rs:259:22}>`, but its trait bounds were not satisfied
--> kube-client/src/client/mod.rs:260:17
|
260 | Ok(body.into_async_read())
| ^^^^^^^^^^^^^^^ method cannot be called due to unsatisfied trait bounds
|
::: /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/http-body-util-0.1.0/src/combinators/map_err.rs:10:1
|
10 | / pin_project! {
11 | | /// Body returned by the [`map_err`] combinator.
12 | | ///
13 | | /// [`map_err`]: crate::BodyExt::map_err
... |
19 | | }
20 | | }
| |_- doesn't satisfy `_: TryStreamExt` or `_: TryStream`
|
= note: the full type name has been written to '/home/runner/work/kube/kube/target/debug/deps/kube_client-157e05995e1ae132.long-type-15696477962621008611.txt'
= note: the following trait bounds were not satisfied:
`http_body_util::combinators::MapErr<http_body_util::combinators::BoxBody<bytes::Bytes, std::boxed::Box<(dyn std::error::Error + std::marker::Send + std::marker::Sync + 'static)>>, {closure@kube-client/src/client/mod.rs:259:22: 259:25}>: futures::TryStream`
which is required by `http_body_util::combinators::MapErr<http_body_util::combinators::BoxBody<bytes::Bytes, std::boxed::Box<(dyn std::error::Error + std::marker::Send + std::marker::Sync + 'static)>>, {closure@kube-client/src/client/mod.rs:259:22: 259:25}>: futures::TryStreamExt`
`&http_body_util::combinators::MapErr<http_body_util::combinators::BoxBody<bytes::Bytes, std::boxed::Box<(dyn std::error::Error + std::marker::Send + std::marker::Sync + 'static)>>, {closure@kube-client/src/client/mod.rs:259:22: 259:25}>: futures::TryStream`
which is required by `&http_body_util::combinators::MapErr<http_body_util::combinators::BoxBody<bytes::Bytes, std::boxed::Box<(dyn std::error::Error + std::marker::Send + std::marker::Sync + 'static)>>, {closure@kube-client/src/client/mod.rs:259:22: 259:25}>: futures::TryStreamExt`
`&mut http_body_util::combinators::MapErr<http_body_util::combinators::BoxBody<bytes::Bytes, std::boxed::Box<(dyn std::error::Error + std::marker::Send + std::marker::Sync + 'static)>>, {closure@kube-client/src/client/mod.rs:259:22: 259:25}>: futures::TryStream`
which is required by `&mut http_body_util::combinators::MapErr<http_body_util::combinators::BoxBody<bytes::Bytes, std::boxed::Box<(dyn std::error::Error + std::marker::Send + std::marker::Sync + 'static)>>, {closure@kube-client/src/client/mod.rs:259:22: 259:25}>: futures::TryStreamExt`
|
cannot find type `OAuthError` in this scope:
kube-client/src/client/auth/mod.rs#L94
error[E0412]: cannot find type `OAuthError` in this scope
--> kube-client/src/client/auth/mod.rs:94:21
|
94 | OAuth(#[source] OAuthError),
| ^^^^^^^^^^ not found in this scope
|
failed to resolve: use of undeclared crate or module `oauth`:
kube-client/src/client/auth/mod.rs#L469
error[E0433]: failed to resolve: use of undeclared crate or module `oauth`
--> kube-client/src/client/auth/mod.rs:469:13
|
469 | oauth::Gcp::default_credentials_with_scopes(provider.config.get("scopes"))
| ^^^^^ use of undeclared crate or module `oauth`
|
failed to resolve: use of undeclared crate or module `oidc`:
kube-client/src/client/auth/mod.rs#L387
error[E0433]: failed to resolve: use of undeclared crate or module `oidc`
--> kube-client/src/client/auth/mod.rs:387:5
|
387 | oidc::Oidc::from_config(&provider.config)
| ^^^^ use of undeclared crate or module `oidc`
|
help: there is an enum variant `crate::client::AuthError::Oidc` and 3 others; try using the variant's enum
|
387 | crate::client::AuthError(&provider.config)
| ~~~~~~~~~~~~~~~~~~~~~~~~
387 | crate::client::auth::ProviderToken(&provider.config)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
387 | crate::client::auth::RefreshableToken(&provider.config)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
rustfmt
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions-rs/toolchain@v1.0.7. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
rustfmt
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1.0.7. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
rustfmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
rustfmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
rustfmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
rustfmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
unused imports: `Scope`, `verbs`:
kube-client/src/discovery/apigroup.rs#L4
warning: unused imports: `Scope`, `verbs`
--> kube-client/src/discovery/apigroup.rs:4:32
|
4 | pub use kube_core::discovery::{verbs, ApiCapabilities, ApiResource, Scope};
| ^^^^^ ^^^^^
|
= note: `#[warn(unused_imports)]` on by default
|