From 13282bc04458e39c65a4d772d447f33483564d69 Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Wed, 2 Feb 2022 01:43:51 +0000 Subject: [PATCH] edition = 2021 --- basics/basics/Cargo.toml | 2 +- basics/docker_sample/Cargo.toml | 2 +- basics/error_handling/Cargo.toml | 2 +- basics/http-proxy/Cargo.toml | 2 +- basics/json-validation/Cargo.toml | 2 +- basics/middleware-ext-mut/Cargo.toml | 2 +- basics/middleware-http-to-https/Cargo.toml | 4 +--- basics/middleware/Cargo.toml | 2 +- basics/run-in-thread/Cargo.toml | 2 +- basics/shutdown-server/Cargo.toml | 2 +- basics/static_index/Cargo.toml | 2 +- basics/todo/Cargo.toml | 2 +- database_interactions/diesel/Cargo.toml | 4 ++-- database_interactions/mongodb/Cargo.toml | 2 +- database_interactions/pg/Cargo.toml | 2 +- database_interactions/redis/Cargo.toml | 2 +- database_interactions/simple-auth-server/Cargo.toml | 2 +- graphql/graphql-demo/Cargo.toml | 2 +- graphql/juniper-advanced/Cargo.toml | 2 +- graphql/juniper/Cargo.toml | 2 +- json/json/Cargo.toml | 2 +- json/json_decode_error/Cargo.toml | 2 +- json/json_error/Cargo.toml | 2 +- json/jsonrpc/Cargo.toml | 2 +- other/data_factory/Cargo.toml | 2 +- other/protobuf/Cargo.toml | 2 +- other/server-sent-events/Cargo.toml | 2 +- other/unix-socket/Cargo.toml | 2 +- security/rustls-client-cert/Cargo.toml | 2 +- session/cookie-auth/Cargo.toml | 2 +- session/cookie-session/Cargo.toml | 2 +- session/redis-session/Cargo.toml | 2 +- template_engines/askama/Cargo.toml | 2 +- template_engines/handlebars/Cargo.toml | 2 +- template_engines/tera/Cargo.toml | 2 +- template_engines/tinytemplate/Cargo.toml | 2 +- template_engines/yarte/Cargo.toml | 2 +- websockets/autobahn/Cargo.toml | 2 +- websockets/chat-broker/Cargo.toml | 2 +- websockets/chat/Cargo.toml | 2 +- websockets/tcp-chat/Cargo.toml | 2 +- websockets/websocket/Cargo.toml | 2 +- 42 files changed, 43 insertions(+), 45 deletions(-) diff --git a/basics/basics/Cargo.toml b/basics/basics/Cargo.toml index e42e7351..3fdccd75 100644 --- a/basics/basics/Cargo.toml +++ b/basics/basics/Cargo.toml @@ -2,7 +2,7 @@ name = "basics" version = "2.0.0" authors = ["Nikolay Kim "] -edition = "2018" +edition = "2021" [dependencies] actix-web = "4.0.0-beta.21" diff --git a/basics/docker_sample/Cargo.toml b/basics/docker_sample/Cargo.toml index ad41f78d..f1d677e5 100644 --- a/basics/docker_sample/Cargo.toml +++ b/basics/docker_sample/Cargo.toml @@ -2,7 +2,7 @@ name = "docker_sample" version = "0.1.0" authors = ["docker_sample "] -edition = "2018" +edition = "2021" [dependencies] actix-web = "4.0.0-beta.21" diff --git a/basics/error_handling/Cargo.toml b/basics/error_handling/Cargo.toml index c19db0d7..33696b9b 100644 --- a/basics/error_handling/Cargo.toml +++ b/basics/error_handling/Cargo.toml @@ -2,7 +2,7 @@ name = "error_handling" version = "1.0.0" authors = ["dowwie "] -edition = "2018" +edition = "2021" [dependencies] actix-web = "3" diff --git a/basics/http-proxy/Cargo.toml b/basics/http-proxy/Cargo.toml index 3d1ff287..84078e9d 100644 --- a/basics/http-proxy/Cargo.toml +++ b/basics/http-proxy/Cargo.toml @@ -2,7 +2,7 @@ name = "http-proxy" version = "2.0.0" authors = ["Nikolay Kim ", "Rotem Yaari "] -edition = "2018" +edition = "2021" [dependencies] actix-web = { version = "3", features = ["openssl"] } diff --git a/basics/json-validation/Cargo.toml b/basics/json-validation/Cargo.toml index 2bf9d0ba..6615c86e 100644 --- a/basics/json-validation/Cargo.toml +++ b/basics/json-validation/Cargo.toml @@ -2,7 +2,7 @@ name = "awc_examples" version = "2.0.0" authors = ["dowwie "] -edition = "2018" +edition = "2021" [dependencies] actix-web = { version = "3", features = ["openssl"] } diff --git a/basics/middleware-ext-mut/Cargo.toml b/basics/middleware-ext-mut/Cargo.toml index 11767665..409a3ec7 100644 --- a/basics/middleware-ext-mut/Cargo.toml +++ b/basics/middleware-ext-mut/Cargo.toml @@ -2,7 +2,7 @@ name = "middleware-ext-mut" version = "0.1.0" authors = ["Eric McCarthy "] -edition = "2018" +edition = "2021" [dependencies] actix-web = "4.0.0-rc.1" diff --git a/basics/middleware-http-to-https/Cargo.toml b/basics/middleware-http-to-https/Cargo.toml index 1eb866de..4060c214 100644 --- a/basics/middleware-http-to-https/Cargo.toml +++ b/basics/middleware-http-to-https/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "middleware-http-to-https" version = "0.1.0" -edition = "2018" +edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -10,5 +10,3 @@ actix-web = {version = "4.0.0-beta.21", features = ["rustls"]} rustls = "0.20.2" rustls-pemfile = "0.2.1" # these are now in an external library futures = "0.3" - - diff --git a/basics/middleware/Cargo.toml b/basics/middleware/Cargo.toml index 5d91c0a2..20a8d308 100644 --- a/basics/middleware/Cargo.toml +++ b/basics/middleware/Cargo.toml @@ -2,7 +2,7 @@ name = "middleware-example" version = "2.0.0" authors = ["Gorm Casper ", "Sven-Hendrik Haase "] -edition = "2018" +edition = "2021" [dependencies] actix-web = "4.0.0-rc.1" diff --git a/basics/run-in-thread/Cargo.toml b/basics/run-in-thread/Cargo.toml index 545b30b2..50d34607 100644 --- a/basics/run-in-thread/Cargo.toml +++ b/basics/run-in-thread/Cargo.toml @@ -2,7 +2,7 @@ name = "run-in-thread" version = "2.0.0" authors = ["Nikolay Kim "] -edition = "2018" +edition = "2021" description = "Run actix-web in separate thread" [dependencies] diff --git a/basics/shutdown-server/Cargo.toml b/basics/shutdown-server/Cargo.toml index 6be6921c..0b414ddd 100644 --- a/basics/shutdown-server/Cargo.toml +++ b/basics/shutdown-server/Cargo.toml @@ -2,7 +2,7 @@ name = "shutdown-server" version = "2.0.0" authors = ["Rob Ede "] -edition = "2018" +edition = "2021" description = "Send a request to the server to shut it down" [dependencies] diff --git a/basics/static_index/Cargo.toml b/basics/static_index/Cargo.toml index 4216d96c..e38c6cfd 100644 --- a/basics/static_index/Cargo.toml +++ b/basics/static_index/Cargo.toml @@ -2,7 +2,7 @@ name = "static_index" version = "2.0.0" authors = ["Jose Marinez "] -edition = "2018" +edition = "2021" [dependencies] actix-web = "4.0.0-rc.1" diff --git a/basics/todo/Cargo.toml b/basics/todo/Cargo.toml index b62185cb..5a8a8089 100644 --- a/basics/todo/Cargo.toml +++ b/basics/todo/Cargo.toml @@ -2,7 +2,7 @@ authors = ["Dan Munckton "] name = "actix-todo" version = "2.0.0" -edition = "2018" +edition = "2021" [dependencies] actix-web = "3" diff --git a/database_interactions/diesel/Cargo.toml b/database_interactions/diesel/Cargo.toml index 54e7e6d4..c0cedb04 100644 --- a/database_interactions/diesel/Cargo.toml +++ b/database_interactions/diesel/Cargo.toml @@ -5,7 +5,7 @@ authors = [ "Nikolay Kim ", "Rob Ede ", ] -edition = "2018" +edition = "2021" [dependencies] actix-web = "4.0.0-beta.21" @@ -16,4 +16,4 @@ failure = "0.1.8" futures = "0.3.1" serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" -uuid = { version = "0.8", features = ["serde", "v4"] } \ No newline at end of file +uuid = { version = "0.8", features = ["serde", "v4"] } diff --git a/database_interactions/mongodb/Cargo.toml b/database_interactions/mongodb/Cargo.toml index bc6ca326..9998832f 100644 --- a/database_interactions/mongodb/Cargo.toml +++ b/database_interactions/mongodb/Cargo.toml @@ -2,7 +2,7 @@ name = "mongodb" version = "0.1.0" authors = ["Isabel Atkinson "] -edition = "2018" +edition = "2021" [dependencies] actix-rt = "2.2.0" diff --git a/database_interactions/pg/Cargo.toml b/database_interactions/pg/Cargo.toml index 535114f3..28c0a253 100644 --- a/database_interactions/pg/Cargo.toml +++ b/database_interactions/pg/Cargo.toml @@ -2,7 +2,7 @@ name = "async_pg" version = "0.1.0" authors = ["dowwie "] -edition = "2018" +edition = "2021" [dependencies] actix-web = "3" diff --git a/database_interactions/redis/Cargo.toml b/database_interactions/redis/Cargo.toml index a572c0c1..1ab57196 100644 --- a/database_interactions/redis/Cargo.toml +++ b/database_interactions/redis/Cargo.toml @@ -2,7 +2,7 @@ name = "actix_redis" version = "1.0.0" authors = ["dowwie "] -edition = "2018" +edition = "2021" [dependencies] actix = "0.10" diff --git a/database_interactions/simple-auth-server/Cargo.toml b/database_interactions/simple-auth-server/Cargo.toml index 2060b2c5..fe27500c 100644 --- a/database_interactions/simple-auth-server/Cargo.toml +++ b/database_interactions/simple-auth-server/Cargo.toml @@ -2,7 +2,7 @@ name = "simple-auth-server" version = "2.0.0" authors = ["mygnu "] -edition = "2018" +edition = "2021" workspace = "../.." [dependencies] diff --git a/graphql/graphql-demo/Cargo.toml b/graphql/graphql-demo/Cargo.toml index e0ad14b2..1c4e889c 100644 --- a/graphql/graphql-demo/Cargo.toml +++ b/graphql/graphql-demo/Cargo.toml @@ -2,7 +2,7 @@ name = "async-graphql-demo" version = "0.1.0" authors = ["sunli "] -edition = "2018" +edition = "2021" [dependencies] actix-web = "3.0.0" diff --git a/graphql/juniper-advanced/Cargo.toml b/graphql/juniper-advanced/Cargo.toml index 9ad49a1b..01f6b9c0 100644 --- a/graphql/juniper-advanced/Cargo.toml +++ b/graphql/juniper-advanced/Cargo.toml @@ -2,7 +2,7 @@ name = "juniper-advanced" version = "2.0.0" authors = ["Dwi Sulfahnur "] -edition = "2018" +edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/graphql/juniper/Cargo.toml b/graphql/juniper/Cargo.toml index f5dacf4b..09db0cc6 100644 --- a/graphql/juniper/Cargo.toml +++ b/graphql/juniper/Cargo.toml @@ -2,7 +2,7 @@ name = "juniper-example" version = "0.2.0" authors = ["pyros2097 "] -edition = "2018" +edition = "2021" [dependencies] actix-web = "3" diff --git a/json/json/Cargo.toml b/json/json/Cargo.toml index a9a15c5d..8a8db96d 100644 --- a/json/json/Cargo.toml +++ b/json/json/Cargo.toml @@ -2,7 +2,7 @@ name = "json-example" version = "0.1.0" authors = ["Nikolay Kim "] -edition = "2018" +edition = "2021" [dependencies] actix-web = "4.0.0-rc.1" diff --git a/json/json_decode_error/Cargo.toml b/json/json_decode_error/Cargo.toml index 36588ebd..758654a7 100644 --- a/json/json_decode_error/Cargo.toml +++ b/json/json_decode_error/Cargo.toml @@ -2,7 +2,7 @@ name = "json_decode_error" version = "0.1.0" authors = ["Stig Johan Berggren "] -edition = "2018" +edition = "2021" [dependencies] actix-web = "4.0.0-rc.1" diff --git a/json/json_error/Cargo.toml b/json/json_error/Cargo.toml index e6ea86cf..721529fc 100644 --- a/json/json_error/Cargo.toml +++ b/json/json_error/Cargo.toml @@ -2,7 +2,7 @@ name = "json_error" version = "1.0.0" authors = ["Kai Yao "] -edition = "2018" +edition = "2021" [dependencies] actix-web = "4.0.0-rc.1" diff --git a/json/jsonrpc/Cargo.toml b/json/jsonrpc/Cargo.toml index d4b9e224..c737a566 100644 --- a/json/jsonrpc/Cargo.toml +++ b/json/jsonrpc/Cargo.toml @@ -2,7 +2,7 @@ name = "jsonrpc-example" version = "2.0.0" authors = ["mohanson "] -edition = "2018" +edition = "2021" [dependencies] actix-web = "3" diff --git a/other/data_factory/Cargo.toml b/other/data_factory/Cargo.toml index f1b91312..3f837349 100644 --- a/other/data_factory/Cargo.toml +++ b/other/data_factory/Cargo.toml @@ -2,7 +2,7 @@ name = "async_data_factory" version = "0.1.0" authors = ["fakeshadow <24548779@qq.com>"] -edition = "2018" +edition = "2021" [dependencies] actix-web = "3" diff --git a/other/protobuf/Cargo.toml b/other/protobuf/Cargo.toml index eec02b41..674cc678 100644 --- a/other/protobuf/Cargo.toml +++ b/other/protobuf/Cargo.toml @@ -2,7 +2,7 @@ name = "protobuf-example" version = "0.2.0" authors = ["kingxsp , Yuki Okushi "] -edition = "2018" +edition = "2021" [dependencies] actix = "0.10" diff --git a/other/server-sent-events/Cargo.toml b/other/server-sent-events/Cargo.toml index aecdfd71..773a1750 100644 --- a/other/server-sent-events/Cargo.toml +++ b/other/server-sent-events/Cargo.toml @@ -2,7 +2,7 @@ name = "server-sent-events" version = "1.0.0" authors = ["Arve Seljebu"] -edition = "2018" +edition = "2021" [dependencies] actix-web = "3" diff --git a/other/unix-socket/Cargo.toml b/other/unix-socket/Cargo.toml index 0d831dfc..fbdb3752 100644 --- a/other/unix-socket/Cargo.toml +++ b/other/unix-socket/Cargo.toml @@ -2,7 +2,7 @@ name = "unix-socket" version = "1.0.0" authors = ["Messense Lv "] -edition = "2018" +edition = "2021" [dependencies] env_logger = "0.9.0" diff --git a/security/rustls-client-cert/Cargo.toml b/security/rustls-client-cert/Cargo.toml index 6aa962a6..5f2ee510 100644 --- a/security/rustls-client-cert/Cargo.toml +++ b/security/rustls-client-cert/Cargo.toml @@ -2,7 +2,7 @@ name = "rustls-client-cert" version = "1.0.0" authors = ["Rob Ede "] -edition = "2018" +edition = "2021" [dependencies] actix-tls = "3.0" diff --git a/session/cookie-auth/Cargo.toml b/session/cookie-auth/Cargo.toml index 587cf884..bb8adbf9 100644 --- a/session/cookie-auth/Cargo.toml +++ b/session/cookie-auth/Cargo.toml @@ -2,7 +2,7 @@ name = "cookie-auth" version = "2.0.0" authors = ["Nikolay Kim "] -edition = "2018" +edition = "2021" [dependencies] actix-web = "3" diff --git a/session/cookie-session/Cargo.toml b/session/cookie-session/Cargo.toml index a42dd57f..2fee70a0 100644 --- a/session/cookie-session/Cargo.toml +++ b/session/cookie-session/Cargo.toml @@ -2,7 +2,7 @@ name = "cookie-session" version = "1.0.0" authors = ["Nikolay Kim "] -edition = "2018" +edition = "2021" [dependencies] actix-web = "3" diff --git a/session/redis-session/Cargo.toml b/session/redis-session/Cargo.toml index 066672e6..d7776a26 100644 --- a/session/redis-session/Cargo.toml +++ b/session/redis-session/Cargo.toml @@ -2,7 +2,7 @@ name = "redis_session" version = "2.0.0" authors = ["Nikolay Kim ", "dowwie "] -edition = "2018" +edition = "2021" [dependencies] actix-web = "3" diff --git a/template_engines/askama/Cargo.toml b/template_engines/askama/Cargo.toml index 45094212..c45fd216 100644 --- a/template_engines/askama/Cargo.toml +++ b/template_engines/askama/Cargo.toml @@ -2,7 +2,7 @@ name = "template-askama" version = "2.0.0" authors = ["Nikolay Kim "] -edition = "2018" +edition = "2021" [dependencies] env_logger = "0.8" diff --git a/template_engines/handlebars/Cargo.toml b/template_engines/handlebars/Cargo.toml index df5ad1b6..d905416c 100644 --- a/template_engines/handlebars/Cargo.toml +++ b/template_engines/handlebars/Cargo.toml @@ -2,7 +2,7 @@ name = "template_handlebars" version = "1.0.0" authors = ["Alexandru Tiniuc "] -edition = "2018" +edition = "2021" [dependencies] actix-http = "2" diff --git a/template_engines/tera/Cargo.toml b/template_engines/tera/Cargo.toml index 4216718a..251dd014 100644 --- a/template_engines/tera/Cargo.toml +++ b/template_engines/tera/Cargo.toml @@ -2,7 +2,7 @@ name = "template-tera" version = "2.0.0" authors = ["Nikolay Kim "] -edition = "2018" +edition = "2021" [dependencies] env_logger = "0.8" diff --git a/template_engines/tinytemplate/Cargo.toml b/template_engines/tinytemplate/Cargo.toml index a0ac545c..af94836f 100644 --- a/template_engines/tinytemplate/Cargo.toml +++ b/template_engines/tinytemplate/Cargo.toml @@ -2,7 +2,7 @@ name = "template-tinytemplate" version = "2.0.0" authors = ["Hanif Bin Ariffin "] -edition = "2018" +edition = "2021" [dependencies] env_logger = "0.8" diff --git a/template_engines/yarte/Cargo.toml b/template_engines/yarte/Cargo.toml index 75f7c173..69a9eb4c 100644 --- a/template_engines/yarte/Cargo.toml +++ b/template_engines/yarte/Cargo.toml @@ -3,7 +3,7 @@ name = "template_yarte" version = "0.0.1" authors = ["Juan Aguilar Santillana "] publish = false -edition = "2018" +edition = "2021" [dependencies] actix-web = "4.0.0-rc.1" diff --git a/websockets/autobahn/Cargo.toml b/websockets/autobahn/Cargo.toml index 5c42876f..9ed21e59 100644 --- a/websockets/autobahn/Cargo.toml +++ b/websockets/autobahn/Cargo.toml @@ -2,7 +2,7 @@ name = "websocket-autobahn" version = "2.0.0" authors = ["Mark Lodato ", "Rob Ede ", ] -edition = "2018" +edition = "2021" [[bin]] name = "server" diff --git a/websockets/chat/Cargo.toml b/websockets/chat/Cargo.toml index 03a14e6c..cda9bf66 100644 --- a/websockets/chat/Cargo.toml +++ b/websockets/chat/Cargo.toml @@ -2,7 +2,7 @@ name = "websocket-example" version = "2.0.0" authors = ["Nikolay Kim "] -edition = "2018" +edition = "2021" [[bin]] name = "websocket-chat-server" diff --git a/websockets/tcp-chat/Cargo.toml b/websockets/tcp-chat/Cargo.toml index 790c81d5..0fc93ae2 100644 --- a/websockets/tcp-chat/Cargo.toml +++ b/websockets/tcp-chat/Cargo.toml @@ -2,7 +2,7 @@ name = "websocket-tcp-example" version = "2.0.0" authors = ["Nikolay Kim "] -edition = "2018" +edition = "2021" [[bin]] name = "websocket-tcp-server" diff --git a/websockets/websocket/Cargo.toml b/websockets/websocket/Cargo.toml index a926e613..bb593bb2 100644 --- a/websockets/websocket/Cargo.toml +++ b/websockets/websocket/Cargo.toml @@ -2,7 +2,7 @@ name = "websocket" version = "2.0.0" authors = ["Nikolay Kim "] -edition = "2018" +edition = "2021" [[bin]] name = "websocket-server"