update to stable toolchain (#122)

* update to stable toolchain

* remove toolchan note from routeguide
This commit is contained in:
Juan Alvarez
2019-11-09 09:54:18 +00:00
committed by Lucio Franco
parent 029950904a
commit 3809f18dc6
4 changed files with 9 additions and 17 deletions
+5 -5
View File
@@ -37,13 +37,13 @@ may be a good resource as it shows examples of many of the gRPC features.
### Rust Version ### Rust Version
`tonic` currently works on rust `1.39-beta` and above as it requires support for the `async_await` `tonic` currently works on rust `1.39` and above as it requires support for the `async_await`
feature. To install the beta simply follow the commands below: feature.
```bash ```bash
$ rustup install beta $ rustup update
$ rustup component add rustfmt --toolchain beta $ rustup component add rustfmt
$ cargo +beta build $ cargo build
``` ```
### Tutorials ### Tutorials
-1
View File
@@ -1 +0,0 @@
beta
+4 -7
View File
@@ -21,17 +21,14 @@ $ cargo new helloworld-tonic
$ cd helloworld-tonic $ cd helloworld-tonic
``` ```
`tonic` currently only works on rust `1.39-beta` and above as it requires support for the `async_await` `tonic` works on rust `1.39` and above as it requires support for the `async_await`
feature. To install the beta simply follow the commands below: feature.
```bash ```bash
$ rustup install beta $ rustup update
$ rustup component add rustfmt --toolchain beta $ rustup component add rustfmt
$ rustup default beta
``` ```
We recommend setting `rustup default` to `beta` as this is the version tools like RLS and rust-analyzer will use to watch your code, and could degrade your experience when developing using Tonic as they will not be able to provide support.
## Defining the HelloWorld service ## Defining the HelloWorld service
Our first step is to define the gRPC _service_ and the method _request_ and _response_ types using Our first step is to define the gRPC _service_ and the method _request_ and _response_ types using
-4
View File
@@ -53,10 +53,6 @@ Tonic uses `rustfmt` to tidy up the code it generates, so we'll make sure it's i
$ rustup component add rustfmt $ rustup component add rustfmt
``` ```
**Note** Prior to rust's 1.39 release, Tonic may be pinned to a specific toolchain version. Running
the above command may first download and install a different toolchain. Check the project's [readme]
for the latest requirements.
Run the server Run the server
```shell ```shell
$ cargo run --bin routeguide-server $ cargo run --bin routeguide-server