1
0
mirror of https://github.com/actix/examples synced 2024-11-27 16:02:57 +01:00

update dependencies

This commit is contained in:
Nikolay Kim 2019-12-20 22:30:26 +06:00
parent 7b35cd32c7
commit d914b1c694
42 changed files with 70 additions and 80 deletions

View File

@ -31,7 +31,7 @@ members = [
"template_askama",
"template_handlebars",
"template_tera",
"template_yarte",
# "template_yarte",
"todo",
# "udp-echo",
"unix-socket",

View File

@ -7,7 +7,7 @@ workspace = ".."
[dependencies]
actix-rt = "1.0.0"
actix-web = "2.0.0-alpha.6"
actix-web = "2.0.0-rc"
dotenv = "0.10"
env_logger = "0.6"

View File

@ -7,7 +7,7 @@ workspace = ".."
[dependencies]
actix-rt = "1.0.0"
actix-web = { version="2.0.0-alpha.6", features=["openssl"] }
actix-web = { version="2.0.0-rc", features=["openssl"] }
futures = "0.3.1"
serde = "1.0.43"

View File

@ -7,10 +7,10 @@ workspace = ".."
[dependencies]
actix-rt = "1.0.0"
actix-web = { version="2.0.0-alpha.6", features=["openssl"] }
actix-multipart = "0.2.0-alpha.2"
actix-web = { version="2.0.0-rc", features=["openssl"] }
actix-multipart = "0.2.0"
actix-service = "1.0.0"
bytes = "0.5.2"
bytes = "0.5.3"
env_logger = "0.6.1"
futures = "0.3.1"
serde = { version = "^1.0", features = ["derive"] }

View File

@ -7,9 +7,9 @@ edition = "2018"
[dependencies]
actix-rt = "1.0.0"
actix-web = "2.0.0-alpha.6"
actix-files = "0.2.0-alpha.3"
actix-session = "0.3.0-alpha.3"
actix-web = "2.0.0-rc"
actix-files = "0.2.0"
actix-session = "0.3.0"
actix-utils = "1.0.3"
futures = "0.3.1"

View File

@ -6,7 +6,7 @@ edition = "2018"
workspace = ".."
[dependencies]
actix-web = "2.0.0-alpha.6"
actix-identity = "0.2.0-alpha.1"
actix-web = "2.0.0-rc"
actix-identity = "0.2.0"
actix-rt = "1.0.0"
env_logger = "0.6"

View File

@ -6,8 +6,8 @@ workspace = ".."
edition = "2018"
[dependencies]
actix-web = "2.0.0-alpha.6"
actix-session = "0.3.0-alpha.3"
actix-web = "2.0.0-rc"
actix-session = "0.3.0"
actix-rt = "1.0.0"
futures = "0.3.1"

View File

@ -7,7 +7,7 @@ edition = "2018"
[dependencies]
actix-rt = "1.0.0"
actix-web = "2.0.0-alpha.6"
actix-web = "2.0.0-rc"
bytes = "0.4"
env_logger = "0.6"

View File

@ -6,7 +6,7 @@ edition = "2018"
workspace = ".."
[dependencies]
actix-web = "2.0.0-alpha.6"
actix-web = "2.0.0-rc"
actix-rt = "1.0.0"
derive_more = "0.99.2"
futures = "0.3.1"

View File

@ -6,7 +6,7 @@ edition = "2018"
workspace = ".."
[dependencies]
actix-web = "2.0.0-alpha.6"
actix-web = "2.0.0-rc"
actix-rt = "1.0.0"
serde = "1.0"
serde_derive = "1.0"

View File

@ -3,12 +3,11 @@ name = "actix-graphql-demo"
version = "2.0.0"
authors = ["Dwi Sulfahnur <hello@dwisulfahnur.com>"]
edition = "2018"
workspace = ".."
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
actix-web = "2.0.0-alpha.6"
actix-web = "2.0.0-rc"
actix-rt = "1.0.0"
futures = "0.3.1"

View File

@ -2,10 +2,9 @@
name = "hello-world"
version = "2.0.0"
authors = ["Nikolay Kim <fafhrd91@gmail.com>"]
workspace = ".."
edition = "2018"
[dependencies]
actix-web = "2.0.0-alpha.6"
actix-web = "2.0.0-rc"
actix-rt = "1.0.0"
env_logger = "0.6"

View File

@ -7,7 +7,7 @@ edition = "2018"
[dependencies]
actix-rt = "1.0.0"
actix-web = { version = "2.0.0-alpha.6", features=["openssl"] }
actix-web = { version = "2.0.0-rc", features=["openssl"] }
clap = "2.32.0"
futures = "0.3.1"
failure = "0.1.3"

View File

@ -6,7 +6,7 @@ workspace = ".."
edition = "2018"
[dependencies]
actix-web = "2.0.0-alpha.6"
actix-web = "2.0.0-rc"
actix-rt = "1.0.0"
actix-service = "1.0.0"

View File

@ -5,7 +5,7 @@ authors = ["Kai Yao <kai.b.yao@gmail.com>"]
edition = "2018"
[dependencies]
actix-web = "2.0.0-alpha.6"
actix-web = "2.0.0-rc"
actix-rt = "1.0.0"
failure = "0.1"
futures = "0.3"

View File

@ -6,7 +6,7 @@ edition = "2018"
workspace = ".."
[dependencies]
actix-web = "2.0.0-alpha.6"
actix-web = "2.0.0-rc"
actix-rt = "1.0.0"
bytes = "0.5"
env_logger = "0.6"

View File

@ -2,11 +2,10 @@
name = "juniper-example"
version = "0.2.0"
authors = ["pyros2097 <pyros2097@gmail.com>"]
workspace = ".."
edition = "2018"
[dependencies]
actix-web = "2.0.0-alpha.6"
actix-web = "2.0.0-rc"
actix-rt = "1.0.0"
env_logger = "0.7.1"
serde = "1.0.103"

View File

@ -3,12 +3,11 @@ name = "middleware-example"
version = "1.0.0"
authors = ["Gorm Casper <gcasper@gmail.com>", "Sven-Hendrik Haase <svenstaro@gmail.com>"]
edition = "2018"
workspace = ".."
[dependencies]
actix-service = "1.0.0"
actix-rt = "1.0.0"
actix-web = "2.0.0-alpha.6"
actix-web = "2.0.0-rc"
futures = "0.3.1"
env_logger = "0.6"
bytes = "0.5"

View File

@ -11,6 +11,6 @@ readme = "README.md"
[dependencies]
futures = "0.3.1"
actix-multipart = "0.2.0-alpha.3"
actix-web = "2.0.0-alpha.6"
actix-multipart = "0.2.0"
actix-web = "2.0.0-rc"
actix-rt = "1.0.0"

View File

@ -7,6 +7,6 @@ workspace = ".."
[dependencies]
actix-rt = "1.0.0"
actix-web = { version="2.0.0-alpha.6", features=["openssl"] }
actix-web = { version="2.0.0-rc", features=["openssl"] }
env_logger = "0.6"
openssl = "0.10"

View File

@ -3,15 +3,14 @@ name = "r2d2-example"
version = "1.0.0"
authors = ["Nikolay Kim <fafhrd91@gmail.com>"]
edition = "2018"
workspace = ".."
[dependencies]
actix-rt = "1.0.0"
actix-web = "2.0.0-alpha.6"
actix-web = "2.0.0-rc"
futures = "0.3.1"
env_logger = "0.6"
uuid = { version = "0.7", features = ["v4"] }
uuid = { version = "0.8", features = ["v4"] }
r2d2 = "0.8"
r2d2_sqlite = "0.8"

View File

@ -6,9 +6,9 @@ edition = "2018"
[dependencies]
actix-rt = "1.0.0"
actix-web = "2.0.0-alpha.6"
actix-session = "0.3.0-alpha.3"
actix-redis = { version = "0.8.0-alpha.1", features = ["web"] }
actix-web = "2.0.0-rc"
actix-session = "0.3.0"
actix-redis = { version = "0.8.0", features = ["web"] }
env_logger = "0.6"
serde = { version = "^1.0", features = ["derive"] }
actix-service = "1.0.0"

View File

@ -5,10 +5,10 @@ authors = ["dowwie <dkcdkg@gmail.com>"]
edition = "2018"
[dependencies]
actix = "0.9.0-alpha.2"
actix = "0.9.0"
actix-rt = "1.0.0"
actix-web = "2.0.0-alpha.6"
actix-redis = "0.8.0-alpha.1"
actix-web = "2.0.0-rc"
actix-redis = "0.8.0"
futures = "0.3.1"
redis-async = "0.6.1"
serde = "1.0.71"

View File

@ -12,6 +12,6 @@ path = "src/main.rs"
[dependencies]
env_logger = "0.5"
rustls = "0.16"
actix-web = { version = "2.0.0-alpha.6", features=["rustls"] }
actix-files = "0.2.0-alpha.3"
actix-web = { version = "2.0.0-rc", features=["rustls"] }
actix-files = "0.2.0"
actix-rt = "1.0.0"

View File

@ -7,7 +7,7 @@ edition = "2018"
[dependencies]
actix-rt = "1.0.0"
actix-web = "2.0.0-alpha.6"
actix-web = "2.0.0-rc"
env_logger = "0.6"
futures = "0.3.1"
tokio = "0.2"

View File

@ -17,7 +17,7 @@ async fn main() -> std::io::Result<()> {
HttpServer::new(move || {
App::new()
.register_data(data.clone())
.app_data(data.clone())
.route("/", web::get().to(index))
.route("/events", web::get().to(new_client))
.route("/broadcast/{msg}", web::get().to(broadcast))

View File

@ -6,8 +6,8 @@ edition = "2018"
workspace = ".."
[dependencies]
actix-identity = "0.2.0-alpha.1"
actix-web = "2.0.0-alpha.6"
actix-identity = "0.2.0"
actix-web = "2.0.0-rc"
actix-rt = "1.0.0"
argonautica = "0.2.0"
chrono = { version = "0.4.6", features = ["serde"] }

View File

@ -2,11 +2,10 @@
name = "state"
version = "2.0.0"
authors = ["Nikolay Kim <fafhrd91@gmail.com>"]
workspace = ".."
edition = "2018"
[dependencies]
actix-web = "2.0.0-alpha.6"
actix-web = "2.0.0-rc"
actix-rt = "1.0.0"
futures = "0.3.1"
env_logger = "0.6"

View File

@ -1,4 +1,3 @@
#![allow(clippy::needless_pass_by_value)]
//! Application may have multiple data objects that are shared across
//! all handlers within same Application. Data could be added
//! with `App::data()` method, multiple different data objects could be added.
@ -34,7 +33,7 @@ async fn main() -> io::Result<()> {
//move is necessary to give closure below ownership of counter
HttpServer::new(move || {
App::new()
.register_data(counter.clone()) // <- create app with shared state
.app_data(counter.clone()) // <- create app with shared state
// enable logger
.wrap(middleware::Logger::default())
// register simple handler, handle all methods

View File

@ -9,6 +9,6 @@ edition = "2018"
futures = "0.3.1"
env_logger = "0.6"
actix-web = "2.0.0-alpha.6"
actix-files = "0.2.0-alpha.3"
actix-web = "2.0.0-rc"
actix-files = "0.2.0"
actix-rt = "1.0.0"

View File

@ -2,11 +2,10 @@
name = "template-askama"
version = "2.0.0"
authors = ["Nikolay Kim <fafhrd91@gmail.com>"]
workspace = ".."
edition = "2018"
[dependencies]
actix-web = "2.0.0-alpha.6"
actix-web = "2.0.0-rc"
actix-rt = "1.0.0"
env_logger = "0.6"
askama = "0.8"

View File

@ -5,7 +5,7 @@ authors = ["Alexandru Tiniuc <tiniuc.alexandru@gmail.com>"]
edition = "2018"
[dependencies]
actix-web = "2.0.0-alpha.6"
actix-web = "2.0.0-rc"
actix-rt = "1.0.0"
handlebars = "2.0.0-beta.2"
handlebars = "2.0.0"
serde_json = "1.0"

View File

@ -49,7 +49,7 @@ async fn main() -> io::Result<()> {
HttpServer::new(move || {
App::new()
.register_data(handlebars_ref.clone())
.app_data(handlebars_ref.clone())
.service(index)
.service(user)
})

View File

@ -8,5 +8,5 @@ edition = "2018"
[dependencies]
env_logger = "0.6"
tera = "1.0"
actix-web = "2.0.0-alpha.6"
actix-web = "2.0.0-rc"
actix-rt = "1.0.0"

View File

@ -13,7 +13,7 @@ env_logger = "0.7"
yarte = { git = "https://github.com/botika/yarte", features = ["with-actix-web"] }
actix-rt = "1.0"
actix-web = "2.0.0-alpha"
actix-web = "2.0.0-rc"
[build-dependencies]
yarte = { git = "https://github.com/botika/yarte", features = ["with-actix-web"] }

View File

@ -2,13 +2,12 @@
authors = ["Dan Munckton <dangit@munckfish.net>"]
name = "actix-todo"
version = "2.0.0"
workspace = ".."
edition = "2018"
[dependencies]
actix-web = "2.0.0-alpha.6"
actix-files = "0.2.0-alpha.3"
actix-session = "0.3.0-alpha.3"
actix-web = "2.0.0-rc"
actix-files = "0.2.0"
actix-session = "0.3.0"
actix-rt = "1.0.0"
dotenv = "0.13.0"
env_logger = "0.5.10"

View File

@ -7,5 +7,5 @@ edition = "2018"
[dependencies]
env_logger = "0.6"
actix-web = "2.0.0-alpha.6"
actix-web = "2.0.0-rc"
actix-rt = "1.0.0"

View File

@ -6,8 +6,8 @@ edition = "2018"
[dependencies]
actix-rt = "1.0.0"
actix-web = "2.0.0-alpha.6"
actix-cors = "0.2.0-alpha.3"
actix-web = "2.0.0-rc"
actix-cors = "0.2.0"
serde = "1.0"
serde_derive = "1.0"
serde_json = "1.0"

View File

@ -3,7 +3,6 @@ name = "websocket-broker-example"
version = "0.1.0"
authors = ["Chris Ricketts <chris.ricketts@steribar.com>"]
edition = "2018"
workspace = ".."
[[bin]]
name = "server"

View File

@ -10,10 +10,10 @@ path = "src/main.rs"
[dependencies]
actix-rt = "1.0.0"
actix = "0.9.0-alpha.1"
actix-web = "2.0.0-alpha.5"
actix-web-actors = "2.0.0-alpha.1"
actix-files = "0.2.0-alpha.3"
actix = "0.9.0"
actix-web = "2.0.0-rc"
actix-web-actors = "2.0.0"
actix-files = "0.2.0"
rand = "0.6"
bytes = "0.5.3"

View File

@ -13,10 +13,10 @@ name = "websocket-tcp-client"
path = "src/client.rs"
[dependencies]
actix = "0.9.0-alpha.2"
actix-web = "2.0.0-alpha.6"
actix-web-actors = "2.0.0-alpha.1"
actix-files = "0.2.0-alpha.3"
actix = "0.9.0"
actix-web = "2.0.0-rc"
actix-web-actors = "2.0.0"
actix-files = "0.2.0"
actix-rt = "1.0.0"
actix-codec = "0.2.0"

View File

@ -13,13 +13,13 @@ name = "websocket-client"
path = "src/client.rs"
[dependencies]
actix = "0.9.0-alpha.2"
actix = "0.9.0"
actix-codec = "0.2.0"
actix-web = "2.0.0-alpha.6"
actix-web-actors = "2.0.0-alpha.1"
actix-files = "0.2.0-alpha.3"
actix-web = "2.0.0-rc"
actix-web-actors = "2.0.0"
actix-files = "0.2.0"
actix-rt = "1.0.0"
awc = "1.0.0"
awc = "1.0.1"
env_logger = "0.6"
futures = "0.3.1"
bytes = "0.5.3"