mirror of https://github.com/fafhrd91/actix-web
fix actix-web-actors build
This commit is contained in:
parent
35138f30b0
commit
5e0bf67a2e
|
@ -131,7 +131,6 @@ actix-multipart = { path = "actix-multipart" }
|
|||
actix-files = { path = "actix-files" }
|
||||
awc = { path = "awc" }
|
||||
|
||||
actix = { git = "https://github.com/actix/actix.git", branch = "master" }
|
||||
actix-tls = { git = "https://github.com/actix/actix-net.git", branch = "master" }
|
||||
actix-server = { git = "https://github.com/actix/actix-net.git", branch = "master" }
|
||||
actix-service = { git = "https://github.com/actix/actix-net.git", branch = "master" }
|
||||
|
|
|
@ -22,9 +22,9 @@ actix-http = "2.0.0"
|
|||
actix-web = { version = "3.0.0", default-features = false }
|
||||
|
||||
bytes = "1"
|
||||
futures-channel = { version = "0.3.7", default-features = false }
|
||||
futures-core = { version = "0.3.7", default-features = false }
|
||||
pin-project = "1.0.0"
|
||||
tokio = { version = "1", features = ["sync"] }
|
||||
|
||||
[dev-dependencies]
|
||||
actix-rt = "2.0.0-beta.1"
|
||||
|
|
|
@ -12,8 +12,8 @@ use actix::{
|
|||
};
|
||||
use actix_web::error::Error;
|
||||
use bytes::Bytes;
|
||||
use futures_channel::oneshot::Sender;
|
||||
use futures_core::Stream;
|
||||
use tokio::sync::oneshot::Sender;
|
||||
|
||||
/// Execution context for http actors
|
||||
pub struct HttpContext<A>
|
||||
|
|
|
@ -24,8 +24,8 @@ use actix_web::error::{Error, PayloadError};
|
|||
use actix_web::http::{header, Method, StatusCode};
|
||||
use actix_web::{HttpRequest, HttpResponse};
|
||||
use bytes::{Bytes, BytesMut};
|
||||
use futures_channel::oneshot::Sender;
|
||||
use futures_core::Stream;
|
||||
use tokio::sync::oneshot::Sender;
|
||||
|
||||
/// Do websocket handshake and start ws actor.
|
||||
pub fn start<A, T>(actor: A, req: &HttpRequest, stream: T) -> Result<HttpResponse, Error>
|
||||
|
|
Loading…
Reference in New Issue