mirror of
https://github.com/actix/examples
synced 2025-06-26 17:17:42 +02:00
@ -6,9 +6,10 @@ edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
actix-web = "3"
|
||||
|
||||
bytes = "0.5"
|
||||
env_logger = "0.8"
|
||||
futures = "0.3.1"
|
||||
futures-util = "0.3"
|
||||
log = "0.4"
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
serde_json = "1.0"
|
||||
|
@ -1,14 +1,17 @@
|
||||
// Allow this lint since it's fine to use type directly in the short example.
|
||||
#![allow(clippy::type_complexity)]
|
||||
|
||||
use std::error;
|
||||
use std::pin::Pin;
|
||||
use std::sync::{Arc, RwLock};
|
||||
use std::time::Duration;
|
||||
use std::{
|
||||
error,
|
||||
future::Future,
|
||||
pin::Pin,
|
||||
sync::{Arc, RwLock},
|
||||
time::Duration,
|
||||
};
|
||||
|
||||
use actix_web::{middleware, web, App, Error, HttpResponse, HttpServer};
|
||||
use bytes::Bytes;
|
||||
use futures::{Future, FutureExt};
|
||||
use futures_util::FutureExt as _;
|
||||
use serde_json::Value;
|
||||
|
||||
#[allow(dead_code)]
|
||||
|
Reference in New Issue
Block a user