Skip to content

Commit

Permalink
update to stable toolchain (hyperium#122)
Browse files Browse the repository at this point in the history
* update to stable toolchain

* remove toolchan note from routeguide
  • Loading branch information
alce authored and LucioFranco committed Nov 9, 2019
1 parent 0299509 commit 3809f18
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 17 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ may be a good resource as it shows examples of many of the gRPC features.

### Rust Version

`tonic` currently works on rust `1.39-beta` and above as it requires support for the `async_await`
feature. To install the beta simply follow the commands below:
`tonic` currently works on rust `1.39` and above as it requires support for the `async_await`
feature.

```bash
$ rustup install beta
$ rustup component add rustfmt --toolchain beta
$ cargo +beta build
$ rustup update
$ rustup component add rustfmt
$ cargo build
```

### Tutorials
Expand Down
1 change: 0 additions & 1 deletion rust-toolchain

This file was deleted.

11 changes: 4 additions & 7 deletions tonic-examples/helloworld-tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,14 @@ $ cargo new helloworld-tonic
$ cd helloworld-tonic
```

`tonic` currently only works on rust `1.39-beta` and above as it requires support for the `async_await`
feature. To install the beta simply follow the commands below:
`tonic` works on rust `1.39` and above as it requires support for the `async_await`
feature.

```bash
$ rustup install beta
$ rustup component add rustfmt --toolchain beta
$ rustup default beta
$ rustup update
$ rustup component add rustfmt
```

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

Our first step is to define the gRPC _service_ and the method _request_ and _response_ types using
Expand Down
4 changes: 0 additions & 4 deletions tonic-examples/routeguide-tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

**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
```shell
$ cargo run --bin routeguide-server
Expand Down

0 comments on commit 3809f18

Please sign in to comment.