Skip to content

Update the examples for 0.13 #1849

Description

@seanmonstar

Most of the examples/*.rs files still need to be updated to work with std::future::Future. Most can be more easily written using #[tokio::main], like in this example.

Activity

  1. added
    E-easyEffort: easy. A task that would be a great starting point for a new contributor.
    A-docsArea: documentation.
    on Jul 9, 2019
  2. added this to the 0.13 milestone on Jul 9, 2019
  3. liufuyang commented on Jul 10, 2019

    @liufuyang
    Contributor

    Can I try update a simple example? Looks like you already got the hello example updated, right?
    https://github.com/hyperium/hyper/blob/master/examples/hello.rs

    And I should try further update it to use #[tokio::main] ? :)

  4. liufuyang commented on Jul 10, 2019

    @liufuyang
    Contributor

    I made a simple change like this: #1852
    let me know whether that is the right thing to do :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-docsArea: documentation.E-easyEffort: easy. A task that would be a great starting point for a new contributor.

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions