Skip to content
This repository has been archived by the owner on Mar 10, 2023. It is now read-only.

Update Actix, Tokio -> 0.2 and Futures ->0.3 #28

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ name = "actix_lua"
path = "src/lib.rs"

[dependencies]
actix = "0.7"
futures = "0.1"
tokio = "0.1"
rlua = "0.16"
uuid = { version = "0.6", features = ["v4"] }
actix = "0.9"
futures = "0.3"
tokio = "0.2"
rlua = "0.17"
uuid = { version = "0.8", features = ["v4"] }
regex = "1"

[dev-dependencies]
futures-timer = "0.1"
futures-timer = "0.3"
6 changes: 3 additions & 3 deletions examples/actix-web/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ version = "0.1.0"
authors = ["Poga Po <poga.bahamut@gmail.com>"]

[dependencies]
actix = "0.7.3"
actix-web = "0.7.4"
actix = "0.9"
actix-web = "2"
env_logger = "0.5.12"
futures = "0.1.23"
futures = "0.3"

actix-lua = { path = "../.." }
4 changes: 2 additions & 2 deletions examples/actix-web/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ extern crate futures;
use actix::prelude::*;
use actix_lua::{LuaActor, LuaActorBuilder, LuaMessage};
use actix_web::{
http, middleware, server, App, AsyncResponder, FutureResponse, HttpResponse, Path, State,
http, middleware, App, HttpResponse,
};
use futures::Future;

Expand Down Expand Up @@ -46,7 +46,7 @@ fn main() {
});

// Start http server
server::new(move || {
actix_web:: ::new(move || {
App::with_state(AppState{lua: addr.clone()})
// enable logger
.middleware(middleware::Logger::default())
Expand Down
Loading