mirror of
https://github.com/actix/actix-web.git
synced 2024-12-20 15:17:07 +00:00
use actix 0.5 release
This commit is contained in:
parent
3e3d3279b8
commit
0da382a7a4
14 changed files with 15 additions and 18 deletions
|
@ -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"
|
||||
|
|
|
@ -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="../.." }
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -6,5 +6,5 @@ workspace = "../.."
|
|||
|
||||
[dependencies]
|
||||
env_logger = "0.5"
|
||||
actix = { git = "https://github.com/actix/actix.git" }
|
||||
actix = "0.5"
|
||||
actix-web = { path = "../../" }
|
||||
|
|
|
@ -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="../../" }
|
||||
|
|
|
@ -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="../../" }
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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 = "../../" }
|
||||
|
|
|
@ -6,6 +6,6 @@ workspace = "../.."
|
|||
|
||||
[dependencies]
|
||||
env_logger = "0.5"
|
||||
actix = "0.4"
|
||||
actix = "0.5"
|
||||
actix-web = { path = "../../" }
|
||||
tera = "*"
|
||||
|
|
|
@ -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" }
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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="../../" }
|
||||
|
|
|
@ -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="../../" }
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue