1
0
mirror of https://github.com/actix/actix-extras.git synced 2024-11-27 17:22:57 +01:00

use actix 0.5 release

This commit is contained in:
Nikolay Kim 2018-02-17 13:33:38 -08:00
parent 3e3d3279b8
commit 0da382a7a4
14 changed files with 15 additions and 18 deletions

View File

@ -78,8 +78,7 @@ openssl = { version="0.10", optional = true }
tokio-openssl = { version="0.2", optional = true }
[dependencies.actix]
#version = "0.5"
git = "https://github.com/actix/actix.git"
version = "0.5"
[dev-dependencies]
env_logger = "0.5"

View File

@ -7,5 +7,5 @@ workspace = "../.."
[dependencies]
futures = "*"
env_logger = "0.5"
actix = { git = "https://github.com/actix/actix.git" }
actix = "0.5"
actix-web = { path="../.." }

View File

@ -6,7 +6,7 @@ workspace = "../.."
[dependencies]
env_logger = "0.5"
actix = { git = "https://github.com/actix/actix.git/" }
actix = "0.5"
actix-web = { path = "../../" }
futures = "0.1"

View File

@ -6,5 +6,5 @@ workspace = "../.."
[dependencies]
env_logger = "0.5"
actix = { git = "https://github.com/actix/actix.git" }
actix = "0.5"
actix-web = { path = "../../" }

View File

@ -14,5 +14,5 @@ serde_json = "1.0"
serde_derive = "1.0"
json = "*"
actix = { git = "https://github.com/actix/actix.git" }
actix = "0.5"
actix-web = { path="../../" }

View File

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

View File

@ -6,7 +6,7 @@ workspace = "../.."
[dependencies]
env_logger = "0.5"
actix = { git = "https://github.com/actix/actix.git/" }
actix = "0.5"
actix-web = { path = "../../" }
futures = "0.1"

View File

@ -7,6 +7,5 @@ workspace = "../.."
[dependencies]
futures = "*"
env_logger = "0.5"
#actix = "0.4.6"
actix = {git = "https://github.com/actix/actix.git"}
actix = "0.5"
actix-web = { path = "../../" }

View File

@ -6,6 +6,6 @@ workspace = "../.."
[dependencies]
env_logger = "0.5"
actix = "0.4"
actix = "0.5"
actix-web = { path = "../../" }
tera = "*"

View File

@ -10,6 +10,6 @@ path = "src/main.rs"
[dependencies]
env_logger = "0.5"
actix = { git = "https://github.com/actix/actix.git" }
actix = "0.5"
actix-web = { path = "../../", features=["alpn"] }
openssl = { version="0.10" }

View File

@ -10,7 +10,7 @@ serde_derive = "1.0"
serde_json = "1.0"
http = "0.1"
actix = { git = "https://github.com/actix/actix.git" }
actix = "0.5"
actix-web = { path = "../../../" }
dotenv = "0.10"
env_logger = "0.5"

View File

@ -25,5 +25,5 @@ serde = "1.0"
serde_json = "1.0"
serde_derive = "1.0"
actix = { git="https://github.com/actix/actix.git" }
actix = "0.5"
actix-web = { path="../../" }

View File

@ -16,6 +16,5 @@ path = "src/client.rs"
env_logger = "*"
futures = "0.1"
tokio-core = "0.1"
#actix = "^0.4.6"
actix = { git = "https://github.com/actix/actix.git" }
actix = "0.5"
actix-web = { path="../../" }

View File

@ -72,7 +72,7 @@ can access it.
```rust,ignore
/// This is state where we will store *DbExecutor* address.
struct State {
db: SyncAddress<DbExecutor>,
db: Addr<Syn, DbExecutor>,
}
fn main() {
@ -106,7 +106,7 @@ fn index(req: HttpRequest<State>) -> Box<Future<Item=HttpResponse, Error=Error>>
let name = &req.match_info()["name"];
// Send message to `DbExecutor` actor
req.state().db.call_fut(CreateUser{name: name.to_owned()})
req.state().db.send(CreateUser{name: name.to_owned()})
.from_err()
.and_then(|res| {
match res {