mirror of
https://github.com/denoland/deno.git
synced 2025-10-03 07:34:36 +00:00
remove macro_use (#9884)
This commit is contained in:
parent
6c6f3e87c1
commit
f46e39c5c5
44 changed files with 101 additions and 107 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue