error[E0432]: unresolved import `crate::client`
--> kube/src/lib.rs:197:46
|
197 | #[allow(unreachable_pub)] pub use crate::client::ConfigExt as _;
| ^^^^^^ could not find `client` in the crate root
|
note: found an item that was configured out
--> kube/src/lib.rs:140:26
|
140 | pub use kube_client::client;
| ^^^^^^
= note: the item is gated behind the `client` feature
warning: unused import: `crate::client::ConfigExt as _`
--> kube/src/lib.rs:197:39
|
197 | #[allow(unreachable_pub)] pub use crate::client::ConfigExt as _;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
For more information about this error, try `rustc --explain E0432`.
warning: `kube` (lib) generated 1 warning
error: could not compile `kube` (lib) due to 1 previous error; 1 warning emitted
Possible solution
Add #[cfg(feature = "client")] constraint on #[allow(unreachable_pub)] pub use crate::client::ConfigExt as _;
Please see #1549
Additional context
No response
Environment
Development Environment: Local
Kubernetes: N/A
Container: N/A
Source: v0.93 ~ main#5b3b73d
Configuration and features
kube = { version = "0.93", default-features = false }
Current and expected behavior
Problem Situation
Expected behavior
Current behavior
Possible solution
Add
#[cfg(feature = "client")]
constraint on#[allow(unreachable_pub)] pub use crate::client::ConfigExt as _;
Please see #1549
Additional context
No response
Environment
v0.93
~main#5b3b73d
Configuration and features
Affected crates
No response
Would you like to work on fixing this bug?
yes