Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(client, server): remove runtime cargo feature #2975

Merged
merged 6 commits into from
Sep 15, 2022

Conversation

oddgrd
Copy link
Contributor

@oddgrd oddgrd commented Sep 3, 2022

This removes the runtime cargo feature flag.

Removing tokio as a opt-in runtime means the common::exec::Exec::Default variant will always panic. This should be refactored in a follow-up PR/issue, so that the user must always provide an executor (ref discussion in review comment).

Closes #2857

removing the `runtime` feature flag enables code that was previously ignored by miri running without the `runtime` flag, in places that had flags like `#[cfg(all(feature = "runtime", feature = "http2"))]`
@oddgrd
Copy link
Contributor Author

oddgrd commented Sep 3, 2022

Woops, a few more CI hiccups than expected here. I'll try to fix them soon 😄

@oddgrd oddgrd force-pushed the feat/remove-runtime-cargo-feature branch from 860f0f3 to bccd03c Compare September 4, 2022 16:13
src/common/exec.rs Outdated Show resolved Hide resolved
panic on all uses of `Exec::Default` variant as there is no longer a default async runtime, and update tests that relied on the default executor
@seanmonstar seanmonstar merged commit 23a5600 into hyperium:master Sep 15, 2022
@oddgrd oddgrd deleted the feat/remove-runtime-cargo-feature branch September 16, 2022 10:23
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.

Remove the runtime cargo feature
2 participants