Skip to content

docs: update Example server#652

Merged
jplatte merged 4 commits intomainfrom
unknown repository
Feb 20, 2026
Merged

docs: update Example server#652
jplatte merged 4 commits intomainfrom
unknown repository

Conversation

@ghost
Copy link

@ghost ghost commented Feb 20, 2026

Motivation

Hey! I want to try in helping out with #509.

the current example was just building the service without a loop to listen for requests. I wanted to fix this so new users can copy-paste a working server right away.

Solution

To make this, I:

  • I incorporated the minimal server logic from @jplatte own caniuse.rs that are referenced in: here.
  • I added hyper to the dev-dependencies and toggled on the service and server features for hyper-util.
  • I ran cargo test --doc locally, and it's all green lights!

Copy link
Member

@jplatte jplatte left a comment

Choose a reason for hiding this comment

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

Thanks!

@jplatte jplatte enabled auto-merge (squash) February 20, 2026 13:15
@jplatte jplatte merged commit 2237ed6 into tower-rs:main Feb 20, 2026
11 checks passed
@ghost ghost deleted the docs/server-example branch February 20, 2026 18:52
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.

1 participant