remove macro_use (#9884)

This commit is contained in:
Ryan Dahl 2021-03-26 12:34:25 -04:00 committed by GitHub
parent 6c6f3e87c1
commit f46e39c5c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
44 changed files with 101 additions and 107 deletions

View file

@ -1,10 +1,6 @@
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
// Usage: provide a port as argument to run hyper_hello benchmark server
// otherwise this starts multiple servers on many ports for test endpoints.
#[macro_use]
extern crate lazy_static;
use futures::FutureExt;
use futures::Stream;
use futures::StreamExt;
@ -16,9 +12,8 @@ use hyper::Body;
use hyper::Request;
use hyper::Response;
use hyper::StatusCode;
use lazy_static::lazy_static;
use os_pipe::pipe;
#[cfg(unix)]
pub use pty;
use regex::Regex;
use serde::Serialize;
use std::collections::HashMap;
@ -48,6 +43,9 @@ use tokio_rustls::rustls;
use tokio_rustls::TlsAcceptor;
use tokio_tungstenite::accept_async;
#[cfg(unix)]
pub use pty;
const PORT: u16 = 4545;
const TEST_AUTH_TOKEN: &str = "abcdef123456789";
const REDIRECT_PORT: u16 = 4546;