Skip to content

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

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

Closed
koma-private opened this issue Apr 4, 2025 · 4 comments

Comments

@koma-private
Copy link

I still need to stick to version "0.14.0-pre.16" of ngrok-rust due to compilation error.
I'd appreciate it if you could instruct me how to solve this issue.

My environment

  • Windows (stable-x86_64-pc-windows-msvc)
  • rustc 1.85.1 (4eb161250 2025-03-15)

Build Result

Version Result
0.14.0-pre.16 OK
0.14.0-pre.17 ERROR
0.14.0-pre.18 ERROR
0.15.0 ERROR

Details of error

error[E0433]: failed to resolve: use of undeclared type ClientOptions

0.14.0-pre.17

Image

0.14.0-pre.18

Image

0.15.0

Image
@ghost
Copy link

ghost commented Apr 9, 2025

@koma-private - Hi Masanori! We are aware of the issue and currently working on it. I do not have an ETA for you but will keep this thread updated. Thank you for reaching out.

@ghost ghost self-assigned this Apr 9, 2025
@koma-private
Copy link
Author

@dthomasngrokker
thank you for working on this!

@ghost
Copy link

ghost commented Apr 22, 2025

Hi @koma-private! I apologize for the wait. In your Cargo.toml, for the ngrok crate, do you have any features enabled? If not, could you add "hyper" and let me know if this resolves your issue?

@koma-private
Copy link
Author

@dthomasngrokker

Thank you for your advice. I was able to build the program successfully.
This issue only occurred on Windows, not on macOS or Linux, so I didn't realize that I needed to add "hyper" to features.

Thank you for your support. I will close this issue.

Cargo.toml Result Details
ngrok = { version = "0.15.0" } ERROR error[E0433]: failed to resolve: use of undeclared type ClientOptions
ngrok = { version = "0.15.0", features = ["hyper"] } OK

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

No branches or pull requests

1 participant