mirror of
https://github.com/actix/examples
synced 2024-11-27 16:02:57 +01:00
fix typo and update some deps (#390)
* chore: fix typo for `run-in-thread` * chore: update some deps for examples
This commit is contained in:
parent
5c8749c2a2
commit
89d2e4e3f7
511
Cargo.lock
generated
511
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@ -6,7 +6,7 @@ edition = "2018"
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
actix-web = "3"
|
actix-web = "3"
|
||||||
env_logger = "0.7"
|
env_logger = "0.8"
|
||||||
failure = "0.1.7"
|
failure = "0.1.7"
|
||||||
futures = "0.3.1"
|
futures = "0.3.1"
|
||||||
num_cpus = "1.13"
|
num_cpus = "1.13"
|
||||||
|
@ -6,7 +6,7 @@ edition = "2018"
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
actix-web = { version = "3", features = ["openssl"] }
|
actix-web = { version = "3", features = ["openssl"] }
|
||||||
env_logger = "0.7"
|
env_logger = "0.8"
|
||||||
futures = "0.3.1"
|
futures = "0.3.1"
|
||||||
serde = { version = "1.0.43", features = ["derive"] }
|
serde = { version = "1.0.43", features = ["derive"] }
|
||||||
serde_json = "1.0.16"
|
serde_json = "1.0.16"
|
||||||
|
@ -8,7 +8,7 @@ edition = "2018"
|
|||||||
actix-web = { version = "3", features = ["openssl"] }
|
actix-web = { version = "3", features = ["openssl"] }
|
||||||
actix-service = "1.0.0"
|
actix-service = "1.0.0"
|
||||||
bytes = "0.5.3"
|
bytes = "0.5.3"
|
||||||
env_logger = "0.7"
|
env_logger = "0.8"
|
||||||
futures = "0.3.1"
|
futures = "0.3.1"
|
||||||
serde = { version = "^1.0", features = ["derive"] }
|
serde = { version = "^1.0", features = ["derive"] }
|
||||||
serde_json = "1.0.39"
|
serde_json = "1.0.39"
|
||||||
|
@ -9,4 +9,4 @@ actix-web = "3"
|
|||||||
actix-files = "0.3"
|
actix-files = "0.3"
|
||||||
actix-session = "0.4"
|
actix-session = "0.4"
|
||||||
actix-utils = "2"
|
actix-utils = "2"
|
||||||
env_logger = "0.7"
|
env_logger = "0.8"
|
||||||
|
@ -6,5 +6,5 @@ edition = "2018"
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
actix-web = "3"
|
actix-web = "3"
|
||||||
casbin = "0.6.0"
|
casbin = "2"
|
||||||
loge = {version = "0.4", default-features = false, features = ["colored", "chrono"]}
|
loge = {version = "0.4", default-features = false, features = ["colored", "chrono"]}
|
||||||
|
@ -7,5 +7,5 @@ edition = "2018"
|
|||||||
[dependencies]
|
[dependencies]
|
||||||
actix-web = "3"
|
actix-web = "3"
|
||||||
actix-identity = "0.3"
|
actix-identity = "0.3"
|
||||||
env_logger = "0.7"
|
env_logger = "0.8"
|
||||||
rand = "0.7"
|
rand = "0.7"
|
||||||
|
@ -7,4 +7,4 @@ edition = "2018"
|
|||||||
[dependencies]
|
[dependencies]
|
||||||
actix-web = "3"
|
actix-web = "3"
|
||||||
actix-session = "0.4"
|
actix-session = "0.4"
|
||||||
env_logger = "0.7"
|
env_logger = "0.8"
|
||||||
|
@ -11,7 +11,7 @@ edition = "2018"
|
|||||||
actix-web = "3"
|
actix-web = "3"
|
||||||
diesel = { version = "^1.1.0", features = ["sqlite", "r2d2"] }
|
diesel = { version = "^1.1.0", features = ["sqlite", "r2d2"] }
|
||||||
dotenv = "0.15"
|
dotenv = "0.15"
|
||||||
env_logger = "0.7"
|
env_logger = "0.8"
|
||||||
failure = "0.1.8"
|
failure = "0.1.8"
|
||||||
futures = "0.3.1"
|
futures = "0.3.1"
|
||||||
r2d2 = "0.8"
|
r2d2 = "0.8"
|
||||||
|
@ -8,4 +8,4 @@ edition = "2018"
|
|||||||
actix-web = "3"
|
actix-web = "3"
|
||||||
derive_more = "0.99.2"
|
derive_more = "0.99.2"
|
||||||
rand = "0.7"
|
rand = "0.7"
|
||||||
env_logger = "0.7"
|
env_logger = "0.8"
|
||||||
|
@ -6,7 +6,7 @@ edition = "2018"
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
actix-web = "3"
|
actix-web = "3"
|
||||||
env_logger = "0.7"
|
env_logger = "0.8"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
actix-rt = "1"
|
actix-rt = "1"
|
||||||
|
@ -6,5 +6,5 @@ edition = "2018"
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
actix-web = { version = "3", features = ["openssl"] }
|
actix-web = { version = "3", features = ["openssl"] }
|
||||||
clap = "2.32.0"
|
clap = "2.33"
|
||||||
url = "2.0"
|
url = "2.0"
|
||||||
|
@ -7,8 +7,8 @@ edition = "2018"
|
|||||||
[dependencies]
|
[dependencies]
|
||||||
actix-web = "3"
|
actix-web = "3"
|
||||||
actix-service = "1.0.0"
|
actix-service = "1.0.0"
|
||||||
futures = "0.3.1"
|
futures = "0.3"
|
||||||
env_logger = "0.7"
|
env_logger = "0.8"
|
||||||
serde = { version = "1.0", features = ["derive"] }
|
serde = { version = "1.0", features = ["derive"] }
|
||||||
serde_json = "1.0"
|
serde_json = "1.0"
|
||||||
json = "0.12"
|
json = "0.12"
|
||||||
|
@ -7,7 +7,7 @@ edition = "2018"
|
|||||||
[dependencies]
|
[dependencies]
|
||||||
actix-web = "3"
|
actix-web = "3"
|
||||||
bytes = "0.5"
|
bytes = "0.5"
|
||||||
env_logger = "0.7"
|
env_logger = "0.8"
|
||||||
futures = "0.3.1"
|
futures = "0.3.1"
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
serde = { version = "1.0", features = ["derive"] }
|
serde = { version = "1.0", features = ["derive"] }
|
||||||
|
@ -16,7 +16,7 @@ r2d2 = "0.8"
|
|||||||
r2d2_mysql = "17.0"
|
r2d2_mysql = "17.0"
|
||||||
|
|
||||||
dotenv = "0.15"
|
dotenv = "0.15"
|
||||||
env_logger = "0.7"
|
env_logger = "0.8"
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
serde = { version = "1.0", features = ["derive"] }
|
serde = { version = "1.0", features = ["derive"] }
|
||||||
serde_json = "1.0"
|
serde_json = "1.0"
|
||||||
|
@ -7,7 +7,7 @@ edition = "2018"
|
|||||||
[dependencies]
|
[dependencies]
|
||||||
actix-web = "3"
|
actix-web = "3"
|
||||||
actix-cors = "0.4.0"
|
actix-cors = "0.4.0"
|
||||||
env_logger = "0.7.1"
|
env_logger = "0.8"
|
||||||
serde = "1.0.103"
|
serde = "1.0.103"
|
||||||
serde_json = "1.0.44"
|
serde_json = "1.0.44"
|
||||||
serde_derive = "1.0.103"
|
serde_derive = "1.0.103"
|
||||||
|
@ -8,6 +8,6 @@ edition = "2018"
|
|||||||
actix-service = "1"
|
actix-service = "1"
|
||||||
actix-web = "3"
|
actix-web = "3"
|
||||||
|
|
||||||
env_logger = "0.7"
|
env_logger = "0.8"
|
||||||
futures = "0.3.1"
|
futures = "0.3.1"
|
||||||
pin-project = "0.4"
|
pin-project = "0.4"
|
||||||
|
@ -12,6 +12,6 @@ readme = "README.md"
|
|||||||
[dependencies]
|
[dependencies]
|
||||||
actix-web = "3"
|
actix-web = "3"
|
||||||
actix-multipart = "0.3"
|
actix-multipart = "0.3"
|
||||||
futures = "0.3.1"
|
futures = "0.3.5"
|
||||||
async-std = "1.4.0"
|
async-std = "1.8.0"
|
||||||
sanitize-filename = "0.2"
|
sanitize-filename = "0.2"
|
||||||
|
@ -6,5 +6,5 @@ edition = "2018"
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
actix-web = { version = "3", features = ["openssl"] }
|
actix-web = { version = "3", features = ["openssl"] }
|
||||||
env_logger = "0.7"
|
env_logger = "0.8"
|
||||||
openssl = "0.10"
|
openssl = "0.10"
|
||||||
|
@ -7,7 +7,7 @@ edition = "2018"
|
|||||||
[dependencies]
|
[dependencies]
|
||||||
actix-web = "3"
|
actix-web = "3"
|
||||||
|
|
||||||
env_logger = "0.7"
|
env_logger = "0.8"
|
||||||
uuid = { version = "0.8", features = ["v4"] }
|
uuid = { version = "0.8", features = ["v4"] }
|
||||||
|
|
||||||
r2d2 = "0.8"
|
r2d2 = "0.8"
|
||||||
|
@ -8,7 +8,7 @@ edition = "2018"
|
|||||||
actix-web = "3"
|
actix-web = "3"
|
||||||
actix-session = "0.4"
|
actix-session = "0.4"
|
||||||
actix-redis = "0.9"
|
actix-redis = "0.9"
|
||||||
env_logger = "0.7"
|
env_logger = "0.8"
|
||||||
serde = { version = "1", features = ["derive"] }
|
serde = { version = "1", features = ["derive"] }
|
||||||
serde_json = "1"
|
serde_json = "1"
|
||||||
actix-service = "1"
|
actix-service = "1"
|
||||||
|
@ -11,4 +11,4 @@ actix-redis = "0.9"
|
|||||||
futures = "0.3"
|
futures = "0.3"
|
||||||
redis-async = "0.6.3"
|
redis-async = "0.6.3"
|
||||||
serde = { version = "1", features = ["derive"] }
|
serde = { version = "1", features = ["derive"] }
|
||||||
env_logger = "0.7"
|
env_logger = "0.8"
|
||||||
|
@ -7,4 +7,4 @@ description = "Run actix-web in separate thread"
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
actix-web = "3"
|
actix-web = "3"
|
||||||
env_logger = "0.7"
|
env_logger = "0.8"
|
||||||
|
@ -42,7 +42,7 @@ fn main() {
|
|||||||
|
|
||||||
let srv = rx.recv().unwrap();
|
let srv = rx.recv().unwrap();
|
||||||
|
|
||||||
println!("WATING 10 SECONDS");
|
println!("WAITING 10 SECONDS");
|
||||||
thread::sleep(time::Duration::from_secs(10));
|
thread::sleep(time::Duration::from_secs(10));
|
||||||
|
|
||||||
println!("STOPPING SERVER");
|
println!("STOPPING SERVER");
|
||||||
|
@ -9,7 +9,7 @@ name = "rustls-server"
|
|||||||
path = "src/main.rs"
|
path = "src/main.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
env_logger = "0.7"
|
env_logger = "0.8"
|
||||||
rustls = "0.18"
|
rustls = "0.18"
|
||||||
actix-web = { version = "3", features = ["rustls"] }
|
actix-web = { version = "3", features = ["rustls"] }
|
||||||
actix-files = "0.3"
|
actix-files = "0.3"
|
||||||
|
@ -6,6 +6,6 @@ edition = "2018"
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
actix-web = "3"
|
actix-web = "3"
|
||||||
env_logger = "0.7"
|
env_logger = "0.8"
|
||||||
futures = "0.3.1"
|
futures = "0.3.1"
|
||||||
tokio = { version = "0.2", features = ["sync"] }
|
tokio = { version = "0.2", features = ["sync"] }
|
||||||
|
@ -7,6 +7,6 @@ description = "Send a request to the server to shut it down"
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
actix-web = "3"
|
actix-web = "3"
|
||||||
env_logger = "0.7"
|
env_logger = "0.8"
|
||||||
futures = "0.3"
|
futures = "0.3"
|
||||||
tokio = { version = "0.2", features = ["signal"] }
|
tokio = { version = "0.2", features = ["signal"] }
|
||||||
|
@ -13,7 +13,7 @@ chrono = { version = "0.4.6", features = ["serde"] }
|
|||||||
derive_more = "0.99.0"
|
derive_more = "0.99.0"
|
||||||
diesel = { version = "1.4.5", features = ["postgres", "uuidv07", "r2d2", "chrono"] }
|
diesel = { version = "1.4.5", features = ["postgres", "uuidv07", "r2d2", "chrono"] }
|
||||||
dotenv = "0.15"
|
dotenv = "0.15"
|
||||||
env_logger = "0.7"
|
env_logger = "0.8"
|
||||||
futures = "0.3.1"
|
futures = "0.3.1"
|
||||||
r2d2 = "0.8"
|
r2d2 = "0.8"
|
||||||
rust-argon2 = "0.8"
|
rust-argon2 = "0.8"
|
||||||
|
@ -6,4 +6,4 @@ edition = "2018"
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
actix-web = "3"
|
actix-web = "3"
|
||||||
env_logger = "0.7"
|
env_logger = "0.8"
|
||||||
|
@ -7,4 +7,4 @@ edition = "2018"
|
|||||||
[dependencies]
|
[dependencies]
|
||||||
actix-web = "3"
|
actix-web = "3"
|
||||||
actix-files = "0.3"
|
actix-files = "0.3"
|
||||||
env_logger = "0.7"
|
env_logger = "0.8"
|
||||||
|
@ -5,7 +5,7 @@ authors = ["Nikolay Kim <fafhrd91@gmail.com>"]
|
|||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
env_logger = "0.7"
|
env_logger = "0.8"
|
||||||
tera = "1.0"
|
tera = "1.0"
|
||||||
actix-http = "2"
|
actix-http = "2"
|
||||||
actix-web = "3"
|
actix-web = "3"
|
||||||
|
@ -5,7 +5,7 @@ authors = ["Hanif Bin Ariffin <hanif.ariffin.4326@gmail.com>"]
|
|||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
env_logger = "0.7"
|
env_logger = "0.8"
|
||||||
tinytemplate = "1.1"
|
tinytemplate = "1.1"
|
||||||
actix-http = "2"
|
actix-http = "2"
|
||||||
actix-web = "3"
|
actix-web = "3"
|
||||||
|
@ -7,8 +7,8 @@ edition = "2018"
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
actix-web = "3"
|
actix-web = "3"
|
||||||
env_logger = "0.7"
|
env_logger = "0.8"
|
||||||
yarte = { version = "0.8", features = ["html-min"] }
|
yarte = { version = "0.13", features = ["html-min"] }
|
||||||
|
|
||||||
[build-dependencies.yarte_helpers]
|
[build-dependencies.yarte_helpers]
|
||||||
version = "0.8"
|
version = "0.8"
|
||||||
|
@ -10,7 +10,7 @@ actix-files = "0.3"
|
|||||||
actix-session = "0.4"
|
actix-session = "0.4"
|
||||||
|
|
||||||
dotenv = "0.15"
|
dotenv = "0.15"
|
||||||
env_logger = "0.7"
|
env_logger = "0.8"
|
||||||
futures = "0.3.1"
|
futures = "0.3.1"
|
||||||
log = "0.4.3"
|
log = "0.4.3"
|
||||||
serde = { version = "1.0.69", features = ["derive"] }
|
serde = { version = "1.0.69", features = ["derive"] }
|
||||||
|
@ -5,5 +5,5 @@ authors = ["Messense Lv <messense@icloud.com>"]
|
|||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
env_logger = "0.7"
|
env_logger = "0.8"
|
||||||
actix-web = "3"
|
actix-web = "3"
|
||||||
|
@ -12,4 +12,4 @@ path = "src/main.rs"
|
|||||||
actix = "0.10"
|
actix = "0.10"
|
||||||
actix-web = "3"
|
actix-web = "3"
|
||||||
actix-web-actors = "3"
|
actix-web-actors = "3"
|
||||||
env_logger = "0.7"
|
env_logger = "0.8"
|
||||||
|
@ -18,7 +18,7 @@ actix-files = "0.4"
|
|||||||
actix-rt = "1"
|
actix-rt = "1"
|
||||||
actix-web = "3"
|
actix-web = "3"
|
||||||
actix-web-actors = "3"
|
actix-web-actors = "3"
|
||||||
env_logger = "0.7"
|
env_logger = "0.8"
|
||||||
futures = "0.3"
|
futures = "0.3"
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
rand = "0.7"
|
rand = "0.7"
|
||||||
|
@ -18,6 +18,6 @@ rand = "0.7"
|
|||||||
bytes = "0.5"
|
bytes = "0.5"
|
||||||
byteorder = "1.3"
|
byteorder = "1.3"
|
||||||
futures = "0.3"
|
futures = "0.3"
|
||||||
env_logger = "0.7"
|
env_logger = "0.8"
|
||||||
serde = "1"
|
serde = "1"
|
||||||
serde_json = "1"
|
serde_json = "1"
|
||||||
|
@ -23,7 +23,7 @@ rand = "0.7"
|
|||||||
bytes = "0.5.3"
|
bytes = "0.5.3"
|
||||||
byteorder = "1.2"
|
byteorder = "1.2"
|
||||||
futures = "0.3"
|
futures = "0.3"
|
||||||
env_logger = "0.7"
|
env_logger = "0.8"
|
||||||
serde = { version = "1.0", features = ["derive"] }
|
serde = { version = "1.0", features = ["derive"] }
|
||||||
serde_json = "1.0"
|
serde_json = "1.0"
|
||||||
tokio = "0.2.4"
|
tokio = "0.2.4"
|
||||||
|
@ -19,6 +19,6 @@ actix-web = "3"
|
|||||||
actix-web-actors = "3"
|
actix-web-actors = "3"
|
||||||
actix-files = "0.3"
|
actix-files = "0.3"
|
||||||
awc = "2"
|
awc = "2"
|
||||||
env_logger = "0.7"
|
env_logger = "0.8"
|
||||||
futures = "0.3.1"
|
futures = "0.3.1"
|
||||||
bytes = "0.5.3"
|
bytes = "0.5.3"
|
||||||
|
Loading…
Reference in New Issue
Block a user