Skip to content

Upgrade deps 2026 03 07#6386

Merged
Nutomic merged 5 commits intomainfrom
upgrade-deps-2026-03-07
Mar 9, 2026
Merged

Upgrade deps 2026 03 07#6386
Nutomic merged 5 commits intomainfrom
upgrade-deps-2026-03-07

Conversation

@dessalines
Copy link
Copy Markdown
Member

No description provided.

deadpool = { version = "0.12.3", features = ["rt_tokio_1"], optional = true }
deadpool-runtime = { version = "0.1.4", features = [
"tokio_1",
], optional = true }
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why switch the crate here? Readme says that it shouldnt be used directly.

https://github.com/deadpool-rs/deadpool/tree/main/crates/deadpool-runtime

Copy link
Copy Markdown
Member Author

@dessalines dessalines Mar 9, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The upgraded diesel async needed it, only for a type definition for the runtime.

diesel async actually uses its own embedded deadpool in a feature, and the runtime is necessary when you use timeouts (its called unmanaged). Otherwise we could remove every deadpool dep and let diesel-async use a managed pool.

Anyways it works otherwise the tests would be failing.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Usually that type should be reexported by diesel-async, but its not possible because diesel-async doesnt enable the tokio_1 feature for deadpool.

However I tried with deadpool as dependency instead and it works just fine (using version 0.12.3 and feature rt_tokio_1). Better keep using that instead of deadpool-runtime.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

K, I'll try it out.

@Nutomic Nutomic enabled auto-merge (squash) March 9, 2026 14:44
@Nutomic Nutomic merged commit 9c32307 into main Mar 9, 2026
2 checks passed
@Nutomic Nutomic deleted the upgrade-deps-2026-03-07 branch March 9, 2026 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants