mirror of
https://github.com/fafhrd91/actix-web
synced 2024-11-24 00:21:08 +01:00
Merge branch 'master' into cookie-handling
This commit is contained in:
commit
9e0e081c90
@ -27,7 +27,7 @@ name = "actix_web"
|
|||||||
path = "src/lib.rs"
|
path = "src/lib.rs"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = []
|
default = ["session"]
|
||||||
|
|
||||||
# tls
|
# tls
|
||||||
tls = ["native-tls", "tokio-tls"]
|
tls = ["native-tls", "tokio-tls"]
|
||||||
@ -35,6 +35,9 @@ tls = ["native-tls", "tokio-tls"]
|
|||||||
# openssl
|
# openssl
|
||||||
alpn = ["openssl", "openssl/v102", "openssl/v110", "tokio-openssl"]
|
alpn = ["openssl", "openssl/v102", "openssl/v110", "tokio-openssl"]
|
||||||
|
|
||||||
|
# sessions
|
||||||
|
session = ["cookie/secure"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
actix = "^0.5.2"
|
actix = "^0.5.2"
|
||||||
|
|
||||||
@ -63,7 +66,7 @@ time = "0.1"
|
|||||||
encoding = "0.2"
|
encoding = "0.2"
|
||||||
language-tags = "0.2"
|
language-tags = "0.2"
|
||||||
url = { version="1.7", features=["query_encoding"] }
|
url = { version="1.7", features=["query_encoding"] }
|
||||||
cookie = { version="0.10", features=["percent-encode", "secure"] }
|
cookie = { version="0.10", features=["percent-encode"] }
|
||||||
|
|
||||||
# io
|
# io
|
||||||
mio = "^0.6.13"
|
mio = "^0.6.13"
|
||||||
|
@ -6,12 +6,16 @@ use httprequest::HttpRequest;
|
|||||||
use httpresponse::HttpResponse;
|
use httpresponse::HttpResponse;
|
||||||
|
|
||||||
mod logger;
|
mod logger;
|
||||||
|
|
||||||
|
#[cfg(feature = "session")]
|
||||||
mod session;
|
mod session;
|
||||||
mod defaultheaders;
|
mod defaultheaders;
|
||||||
pub mod cors;
|
pub mod cors;
|
||||||
pub mod csrf;
|
pub mod csrf;
|
||||||
pub use self::logger::Logger;
|
pub use self::logger::Logger;
|
||||||
pub use self::defaultheaders::{DefaultHeaders, DefaultHeadersBuilder};
|
pub use self::defaultheaders::{DefaultHeaders, DefaultHeadersBuilder};
|
||||||
|
|
||||||
|
#[cfg(feature = "session")]
|
||||||
pub use self::session::{RequestSession, Session, SessionImpl, SessionBackend, SessionStorage,
|
pub use self::session::{RequestSession, Session, SessionImpl, SessionBackend, SessionStorage,
|
||||||
CookieSessionError, CookieSessionBackend, CookieSessionBackendBuilder};
|
CookieSessionError, CookieSessionBackend, CookieSessionBackendBuilder};
|
||||||
|
|
||||||
|
@ -17,5 +17,5 @@ rand = "0.4"
|
|||||||
time = "*"
|
time = "*"
|
||||||
num_cpus = "1"
|
num_cpus = "1"
|
||||||
tokio-core = "0.1"
|
tokio-core = "0.1"
|
||||||
actix = { git = "https://github.com/actix/actix.git" }
|
actix = "0.5"
|
||||||
actix-web = { path="../../" }
|
actix-web = { path="../../" }
|
||||||
|
Loading…
Reference in New Issue
Block a user