1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-25 18:09:22 +02:00

upgrade to actix 0.4

This commit is contained in:
Nikolay Kim
2018-01-05 13:30:21 -08:00
parent dea354d6d8
commit 5ff35f5b99
19 changed files with 75 additions and 90 deletions

View File

@ -7,5 +7,5 @@ workspace = "../.."
[dependencies]
futures = "*"
env_logger = "0.4"
actix = "^0.3.5"
actix-web = { git = "https://github.com/actix/actix-web", features=["signal"] }
actix = "0.4"
actix-web = { git = "https://github.com/actix/actix-web" }

View File

@ -11,7 +11,6 @@ use actix::*;
use actix_web::*;
use actix_web::middleware::RequestSession;
use futures::future::{FutureResult, result};
#[cfg(unix)]
use actix::actors::signal::{ProcessSignals, Subscribe};
/// simple handler
@ -97,11 +96,8 @@ fn main() {
.start();
// Subscribe to unix signals
#[cfg(unix)]
{
let signals = actix::Arbiter::system_registry().get::<ProcessSignals>();
signals.send(Subscribe(addr.subscriber()));
}
let signals = actix::Arbiter::system_registry().get::<ProcessSignals>();
signals.send(Subscribe(addr.subscriber()));
println!("Starting http server: 127.0.0.1:8080");
let _ = sys.run();

View File

@ -6,8 +6,8 @@ workspace = "../.."
[dependencies]
env_logger = "0.4"
actix = "^0.3.5"
actix-web = { git = "https://github.com/actix/actix-web", features=["signal"] }
actix = "0.4"
actix-web = { git = "https://github.com/actix/actix-web" }
futures = "0.1"
uuid = { version = "0.5", features = ["serde", "v4"] }

View File

@ -6,5 +6,5 @@ workspace = "../.."
[dependencies]
env_logger = "0.4"
actix = "^0.3.5"
actix = "0.4"
actix-web = { path = "../../" }

View File

@ -14,5 +14,5 @@ serde_json = "1.0"
serde_derive = "1.0"
json = "*"
actix = "^0.3.5"
actix-web = { git = "https://github.com/actix/actix-web", features=["signal"] }
actix = "0.4"
actix-web = { git = "https://github.com/actix/actix-web" }

View File

@ -11,5 +11,5 @@ path = "src/main.rs"
[dependencies]
env_logger = "*"
futures = "0.1"
actix = "^0.3.5"
actix-web = { git = "https://github.com/actix/actix-web", features=["signal"] }
actix = "0.4"
actix-web = { git = "https://github.com/actix/actix-web" }

View File

@ -11,5 +11,5 @@ path = "src/main.rs"
[dependencies]
env_logger = "*"
futures = "0.1"
actix = "^0.3.5"
actix-web = { path = "../../", features=["signal"] }
actix = "0.4"
actix-web = { path = "../../" }

View File

@ -7,5 +7,5 @@ workspace = "../.."
[dependencies]
futures = "*"
env_logger = "0.4"
actix = "^0.3.5"
actix-web = { git = "https://github.com/actix/actix-web", features=["signal"] }
actix = "0.4"
actix-web = { git = "https://github.com/actix/actix-web" }

View File

@ -6,6 +6,6 @@ workspace = "../.."
[dependencies]
env_logger = "0.4"
actix = "^0.3.5"
actix-web = { git = "https://github.com/actix/actix-web", features=["signal"] }
actix = "0.4"
actix-web = { git = "https://github.com/actix/actix-web" }
tera = "*"

View File

@ -10,5 +10,5 @@ path = "src/main.rs"
[dependencies]
env_logger = "0.4"
actix = { version = "^0.3.5" }
actix-web = { git = "https://github.com/actix/actix-web", features=["signal", "alpn"] }
actix = "0.4"
actix-web = { git = "https://github.com/actix/actix-web", features=["alpn"] }

View File

@ -25,5 +25,5 @@ serde = "1.0"
serde_json = "1.0"
serde_derive = "1.0"
actix = { version = "^0.3.5" }
actix-web = { git = "https://github.com/actix/actix-web", features=["signal"] }
actix = "0.4"
actix-web = { git = "https://github.com/actix/actix-web" }

View File

@ -10,5 +10,5 @@ path = "src/main.rs"
[dependencies]
env_logger = "*"
futures = "0.1"
actix = "^0.3.5"
actix-web = { git = "https://github.com/actix/actix-web.git", features=["signal"] }
actix = "0.4"
actix-web = { git = "https://github.com/actix/actix-web.git" }