1
0
mirror of https://github.com/actix/examples synced 2024-11-23 22:41:07 +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_askama",
"template_handlebars", "template_handlebars",
"template_tera", "template_tera",
"template_yarte", # "template_yarte",
"todo", "todo",
# "udp-echo", # "udp-echo",
"unix-socket", "unix-socket",

View File

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

View File

@ -7,7 +7,7 @@ workspace = ".."
[dependencies] [dependencies]
actix-rt = "1.0.0" 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" futures = "0.3.1"
serde = "1.0.43" serde = "1.0.43"

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -7,7 +7,7 @@ edition = "2018"
[dependencies] [dependencies]
actix-rt = "1.0.0" 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" clap = "2.32.0"
futures = "0.3.1" futures = "0.3.1"
failure = "0.1.3" failure = "0.1.3"

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -7,6 +7,6 @@ workspace = ".."
[dependencies] [dependencies]
actix-rt = "1.0.0" 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" env_logger = "0.6"
openssl = "0.10" openssl = "0.10"

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -2,11 +2,10 @@
name = "state" name = "state"
version = "2.0.0" version = "2.0.0"
authors = ["Nikolay Kim <fafhrd91@gmail.com>"] authors = ["Nikolay Kim <fafhrd91@gmail.com>"]
workspace = ".."
edition = "2018" edition = "2018"
[dependencies] [dependencies]
actix-web = "2.0.0-alpha.6" actix-web = "2.0.0-rc"
actix-rt = "1.0.0" actix-rt = "1.0.0"
futures = "0.3.1" futures = "0.3.1"
env_logger = "0.6" 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 //! Application may have multiple data objects that are shared across
//! all handlers within same Application. Data could be added //! all handlers within same Application. Data could be added
//! with `App::data()` method, multiple different data objects 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 //move is necessary to give closure below ownership of counter
HttpServer::new(move || { HttpServer::new(move || {
App::new() App::new()
.register_data(counter.clone()) // <- create app with shared state .app_data(counter.clone()) // <- create app with shared state
// enable logger // enable logger
.wrap(middleware::Logger::default()) .wrap(middleware::Logger::default())
// register simple handler, handle all methods // register simple handler, handle all methods

View File

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

View File

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

View File

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

View File

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

View File

@ -8,5 +8,5 @@ edition = "2018"
[dependencies] [dependencies]
env_logger = "0.6" env_logger = "0.6"
tera = "1.0" tera = "1.0"
actix-web = "2.0.0-alpha.6" actix-web = "2.0.0-rc"
actix-rt = "1.0.0" 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"] } yarte = { git = "https://github.com/botika/yarte", features = ["with-actix-web"] }
actix-rt = "1.0" actix-rt = "1.0"
actix-web = "2.0.0-alpha" actix-web = "2.0.0-rc"
[build-dependencies] [build-dependencies]
yarte = { git = "https://github.com/botika/yarte", features = ["with-actix-web"] } yarte = { git = "https://github.com/botika/yarte", features = ["with-actix-web"] }

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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