mirror of https://github.com/rust-lang/async-book
Migrate to Rust 2021
This commit is contained in:
parent
919f1c2b77
commit
e409a5c10f
|
@ -2,7 +2,7 @@
|
|||
name = "example_01_02_why_async"
|
||||
version = "0.1.0"
|
||||
authors = ["Taylor Cramer <cramertj@google.com>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[lib]
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
name = "example_01_04_async_await_primer"
|
||||
version = "0.1.0"
|
||||
authors = ["Taylor Cramer <cramertj@google.com>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[lib]
|
||||
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
name = "example_02_02_future_trait"
|
||||
version = "0.1.0"
|
||||
authors = ["Taylor Cramer <cramertj@google.com>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[lib]
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
name = "example_02_03_timer"
|
||||
version = "0.1.0"
|
||||
authors = ["Taylor Cramer <cramertj@google.com>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[lib]
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
name = "example_02_04_executor"
|
||||
version = "0.1.0"
|
||||
authors = ["Taylor Cramer <cramertj@google.com>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[lib]
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
name = "example_03_01_async_await"
|
||||
version = "0.1.0"
|
||||
authors = ["Taylor Cramer <cramertj@google.com>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[lib]
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
name = "example_05_01_streams"
|
||||
version = "0.1.0"
|
||||
authors = ["Taylor Cramer <cramertj@google.com>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[lib]
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
name = "example_05_02_iteration_and_concurrency"
|
||||
version = "0.1.0"
|
||||
authors = ["Taylor Cramer <cramertj@google.com>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[lib]
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
name = "example_06_02_join"
|
||||
version = "0.1.0"
|
||||
authors = ["Taylor Cramer <cramertj@google.com>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[lib]
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
name = "example_06_03_select"
|
||||
version = "0.1.0"
|
||||
authors = ["Taylor Cramer <cramertj@google.com>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[lib]
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
name = "example_07_05_recursion"
|
||||
version = "0.1.0"
|
||||
authors = ["Taylor Cramer <cramertj@google.com>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[lib]
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
name = "sync_tcp_server"
|
||||
version = "0.1.0"
|
||||
authors = ["Your Name <you@example.com"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
name = "async_tcp_server"
|
||||
version = "0.1.0"
|
||||
authors = ["Your Name <you@example.com"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
name = "slow_request"
|
||||
version = "0.1.0"
|
||||
authors = ["Your Name <you@example.com"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
name = "concurrent_tcp_server"
|
||||
version = "0.1.0"
|
||||
authors = ["Your Name <you@example.com"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
name = "final_tcp_server"
|
||||
version = "0.1.0"
|
||||
authors = ["Your Name <you@example.com"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ a new dependency:
|
|||
name = "timer_future"
|
||||
version = "0.1.0"
|
||||
authors = ["XYZ Author"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
futures = "0.3"
|
||||
|
|
Loading…
Reference in New Issue