pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/hyperium/hyperium.github.io/pull/56

al-0bd78641c0a1f3e0.css" /> Update basic.md by aaronpkelly · Pull Request #56 · hyperium/hyperium.github.io · GitHub
Skip to content

Update basic.md#56

Open
aaronpkelly wants to merge 1 commit intohyperium:masterfrom
aaronpkelly:patch-1
Open

Update basic.md#56
aaronpkelly wants to merge 1 commit intohyperium:masterfrom
aaronpkelly:patch-1

Conversation

@aaronpkelly
Copy link
Copy Markdown

The full example has at https://github.com/hyperium/hyper/blob/master/examples/client.rs will not compile straight away, as it has an additional dependency which is not mentioned in the guide

The full example has at https://github.com/hyperium/hyper/blob/master/examples/client.rs will not compile straight away, as it has an additional dependency which is not mentioned in the guide
@tobymurray
Copy link
Copy Markdown

As a new user, I also ran into this. I started with the documentation, appreciated the fork between "client" and "server, went to https://hyper.rs/guides/client/basic/ and then to the "full example" which failed to compile. It is not intuitive that the dependencies for the example I was just reading are different than the dependencies for the example I'm lead to, so my first experience with this library was:

error[E0433]: failed to resolve: use of undeclared type or module `pretty_env_logger`
  --> src/main.rs:11:5
   |
11 |     pretty_env_logger::init();
   |     ^^^^^^^^^^^^^^^^^ use of undeclared type or module `pretty_env_logger`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0433`.

Whether this is updated as described in the pull request or reworked to make it more clear, I think it's worthwhile to change something so there's as little friction as possible on new user flow.

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

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy