fix: remove nightly references

This commit is contained in:
petrSchreiber 2019-11-09 09:41:29 +01:00 committed by Taylor Cramer
parent a5165dab4e
commit a276e7ebdc
14 changed files with 16 additions and 19 deletions

View File

@ -2,7 +2,7 @@ sudo: false
dist: trusty
language: rust
cache: cargo
rust: nightly-2019-08-21 # minimum required version for async/await
rust: stable
addons:
apt:
packages:
@ -11,8 +11,8 @@ addons:
before_script:
- (test -x $HOME/.cargo/bin/cargo-install-update || cargo install cargo-update)
- (test -x $HOME/.cargo/bin/mdbook || cargo install --vers "0.3.1" --debug --force mdbook)
- (test -x $HOME/.cargo/bin/mdbook-linkcheck || cargo install --vers "0.3.1" --debug --force mdbook-linkcheck)
- (test -x $HOME/.cargo/bin/mdbook || cargo install --debug --force mdbook)
- (test -x $HOME/.cargo/bin/mdbook-linkcheck || cargo install --debug --force mdbook-linkcheck)
- cargo install-update -a
script:

View File

@ -7,4 +7,4 @@ edition = "2018"
[lib]
[dev-dependencies]
futures-preview = { version = "=0.3.0-alpha.17", features = ["async-await", "nightly"] }
futures = "0.3"

View File

@ -7,4 +7,4 @@ edition = "2018"
[lib]
[dev-dependencies]
futures-preview = { version = "=0.3.0-alpha.17", features = ["async-await", "nightly"] }
futures = "0.3"

View File

@ -11,7 +11,7 @@ edition = "2018"
# for writing async code. Enable the "compat" feature to include the
# functions for using futures 0.3 and async/await with the Hyper library,
# which use futures 0.1.
futures-preview = { version = "=0.3.0-alpha.17", features = ["compat"] }
futures = { version = "0.3", features = ["compat"] }
# Hyper is an asynchronous HTTP library. We'll use it to power our HTTP
# server and to make HTTP requests.

View File

@ -7,4 +7,4 @@ edition = "2018"
[lib]
[dependencies]
futures-preview = { version = "=0.3.0-alpha.17", features = ["async-await", "nightly"] }
futures = "0.3"

View File

@ -7,5 +7,5 @@ edition = "2018"
[lib]
[dependencies]
futures-preview = { version = "=0.3.0-alpha.17" }
futures = "0.3"
timer_future = { package = "02_03_timer", path = "../02_03_timer" }

View File

@ -7,4 +7,4 @@ edition = "2018"
[lib]
[dev-dependencies]
futures-preview = { version = "=0.3.0-alpha.17", features = ["async-await", "nightly"] }
futures = "0.3"

View File

@ -7,4 +7,4 @@ edition = "2018"
[lib]
[dev-dependencies]
futures-preview = { version = "=0.3.0-alpha.17", features = ["async-await", "nightly"] }
futures = "0.3"

View File

@ -7,4 +7,4 @@ edition = "2018"
[lib]
[dev-dependencies]
futures-preview = { version = "=0.3.0-alpha.17", features = ["async-await", "nightly"] }
futures = "0.3"

View File

@ -7,4 +7,4 @@ edition = "2018"
[lib]
[dev-dependencies]
futures-preview = { version = "=0.3.0-alpha.17", features = ["async-await", "nightly"] }
futures = "0.3"

View File

@ -7,4 +7,4 @@ edition = "2018"
[lib]
[dev-dependencies]
futures-preview = { version = "=0.3.0-alpha.17", features = ["async-await", "nightly"] }
futures = "0.3"

View File

@ -7,4 +7,4 @@ edition = "2018"
[lib]
[dev-dependencies]
futures-preview = { version = "=0.3.0-alpha.17", features = ["async-await", "nightly"] }
futures = "0.3"

View File

@ -1,5 +1,4 @@
#![cfg(test)]
#![feature(async_await)]
#![allow(dead_code)]
// ANCHOR: example

View File

@ -2,10 +2,8 @@
Let's use `async`/`.await` to build an echo server!
To start, run `rustup update nightly` to make sure you've got the latest and
greatest copy of Rust-- we're working with bleeding-edge features, so it's
essential to stay up-to-date. Once you've done that, run
`cargo +nightly new async-await-echo` to create a new project, and open up
To start, run `rustup update stable` to make sure you've got stable Rust 1.39 or newer. Once you've done that, run
`cargo new async-await-echo` to create a new project, and open up
the resulting `async-await-echo` folder.
Let's add some dependencies to the `Cargo.toml` file: