Skip to content

Conversation

CBenoit
Copy link
Contributor

@CBenoit CBenoit commented Jun 26, 2025

Closes #174

This issue has been closed already because enabling the feature hyper is fixing the compilation error, but my understanding is that the build being broken when it is not enabled is still accidental and something undesirable that needs to be fixed.

In this PR, I fixed that problem, and simplified a little bit the imports in conditional code for Windows by putting the uses directly into the conditional code.
This allow local reasoning, rendering much easier understanding which imports are required when and why, avoiding both compilation errors and warnings various feature combinations.

Advice: ideally, you should test multiple feature combinations in your CI. cargo-hack is a common way of doing that.

Do you think you could also release a hotfix release soon so we can benefit from this quickly, please?

Simplifying the imports in conditional code for Windows.
@CBenoit
Copy link
Contributor Author

CBenoit commented Jul 2, 2025

Hello @jrobsonchase

I’m not sure who is the appropriate person for that, but it seems that the problem in the CI is unrelated to the changes in my PR. My guess would be a permission problem when an external contributor open a PR, where the CI does not have access to the appropriate secrets.

@bmpngrok
Copy link
Contributor

bmpngrok commented Jul 8, 2025

@CBenoit Thanks for the PR! You're right that the CI error is not your fault. In general, improving the CI on this repository is something we need to get around to.

Short-term, let me test this by hand on our matrix and then cut a 1.5.1 build if it looks okay

Copy link
Contributor

@bmpngrok bmpngrok left a comment

Choose a reason for hiding this comment

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

Looks good to me! Thanks again, @CBenoit

@bmpngrok bmpngrok merged commit e84be16 into ngrok:main Jul 8, 2025
10 of 11 checks passed
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.

[Windows] Cannot build ngrok-rust due to error of error[E0433]: failed to resolve: use of undeclared type ClientOptions
2 participants