Skip to content

How to use Server in V1.4.* #2493

@daiguadaidai

Description

@daiguadaidai

hyper version: 1.4.*
in lib.rs file:

cfg_feature! {
    #![all(feature = "server")]

    pub mod server;
    #[cfg(any(feature = "http1", feature = "http2"))]
    #[doc(no_inline)]
    pub use crate::server::Server;
}

IDEClion+Rust Pulgin can not import Server

hyper version: 1.3.*

pub use crate::server::Server;
...
pub mod server;

IDE can import Server

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions