Skip to content

docs(examples): document hyper-util dependency and TokioIo usage - #4197

Open
VivaMomentum wants to merge 1 commit into
hyperium:masterfrom
VivaMomentum:fix-examples-tokioio-3448
Open

VivaMomentum wants to merge 1 commit into
hyperium:masterfrom
VivaMomentum:fix-examples-tokioio-3448

Conversation

@VivaMomentum

Copy link
Copy Markdown

Examples in this repository use an internal benches/support module to avoid a cyclical workspace dependency on hyper-util. When users copy these examples into their own standalone projects, they encounter missing imports for TokioIo and TokioTimer.

This adds hyper-util to the list of dependencies and explains how to import TokioIo and TokioTimer from hyper_util::rt.

Solution

  • Added hyper-util to the dependency list in examples/README.md.
  • Added a "Using Examples in Your Own Project" section explaining that standalone projects should import TokioIo and TokioTimer from hyper_util::rt.

Closes #3448

Examples in this repository use an internal benches/support module to avoid a cyclical workspace dependency on hyper-util. When users copy these examples into their own standalone projects, they encounter missing imports for TokioIo and TokioTimer.

This adds hyper-util to the list of dependencies and explains how to import TokioIo and TokioTimer from hyper_util::rt.

Closes hyperium#3448
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.

Make examples usable (TokioIo)

1 participant