Skip to content

hyper::server::conn::AddrIncoming "required features" doc is wrong #2425

@Arnavion

Description

@Arnavion

https://docs.rs/hyper/0.14.4/hyper/server/conn/struct.AddrIncoming.html says:

This is supported on crate feature server and (crate features http1 or http2) only.

Actually, the tcp feature also needs to be enabled.

https://github.com/hyperium/hyper/blob/v0.14.4/src/server/conn.rs#L77-L78

If I just enable the http1 and server features, the hyper::server::conn::AddrIncoming item does not exist.

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions