agrinman / tunnelto

Expose your local web server to the internet with a public URL.
https://tunnelto.dev
MIT License
2.11k stars 114 forks source link

Fix build error on cargo install #45

Closed jreyes33 closed 3 years ago

jreyes33 commented 3 years ago

Hey! Thanks for the great crate and service!

Starting on version 0.1.16, there's an error when trying to install via cargo install tunnelto:

error[E0599]: no method named `json` found for struct `reqwest::Response` in the current scope

The error can also be reproduced by cloning the repo and running:

cd tunnelto
cargo build

The fix was to enable the json feature on the reqwest dependency.

agrinman commented 3 years ago

Thanks @jreyes33! Interestingly, it builds when you build from within the workspace because the Cargo.toml pulls in the right reqwest features. Appreciate the report, will cargo release a 0.1.17 shortly...