-
-
Notifications
You must be signed in to change notification settings - Fork 351
Closed
Labels
bugSomething isn't workingSomething isn't workingmsrvrelated to minimum supported rust versionrelated to minimum supported rust versionruntimecontroller runtime relatedcontroller runtime related
Description
Current and expected behavior
1.57 behaviour
- Check out https://gitlab.com/teozkr/repros/-/tree/kube/rs1.57-compile-regression.
rustup update 1.57.0
cargo +1.57.0 build
- Note that the full build gets stuck for several minutes on
rs157-compile-regression(bin)
touch src/main.rs
cargo +1.57.0 build
- Note that the incremental build takes ~40s (on my machine, scale to yours)
1.56 behaviour
rustup update 1.56.1
cargo +1.56.1 build
- Note that the full build completes in ~30s (on my machine, scale to yours)
touch src/main.rs
cargo +1.56.1 build
- Note that the incremental build takes ~3s (on my machine, scale to yours)
Possible solution
More of a workaround, but boxing queue
:
diff --git a/src/main.rs b/src/main.rs
index a306bba..6e08d03 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -25,7 +25,8 @@ async fn main() {
stream::empty::<Result<watcher::Event<ConfigMap>, watcher::Error>>(),
)),
(),
- ),
+ )
+ .boxed(),
)
.boxed()
.for_each(|_| async {})
brings the incremental rebuild time down to ~4s.
Additional context
No response
Environment
Arch Linux
Rustc 1.57 (bad), 1.56.1 (good)
K8s cluster is irrelevant since this is a build issue
Configuration and features
kube = { version = "0.64.0", features = ["runtime"] }
k8s-openapi = { version = "0.13.1", features = ["v1_22"] }
Affected crates
kube-runtime
Would you like to work on fixing this bug?
yes
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingmsrvrelated to minimum supported rust versionrelated to minimum supported rust versionruntimecontroller runtime relatedcontroller runtime related