Mention rust-analyzer.cargo.loadOutDirsFromCheck setting in README (#561)

Fixes https://github.com/hyperium/tonic/issues/512
This commit is contained in:
David Pedersen
2021-04-14 09:08:08 +02:00
committed by GitHub
parent 8fa6daae92
commit 5bc1aa9371
+4
View File
@@ -36,6 +36,9 @@ contains the tools to build clients and servers from [`protobuf`] definitions.
Examples can be found in [`examples`] and for more complex scenarios [`interop`]
may be a good resource as it shows examples of many of the gRPC features.
If you're using [rust-analyzer] we recommend you set `"rust-analyzer.cargo.loadOutDirsFromCheck": true` to correctly load
the generated code.
### Rust Version
`tonic` currently works on rust `1.39` and above as it requires support for the `async_await`
@@ -110,3 +113,4 @@ terms or conditions.
[routeguide-tutorial]: https://github.com/hyperium/tonic/blob/master/examples/routeguide-tutorial.md
[helloworld-tutorial]: https://github.com/hyperium/tonic/blob/master/examples/helloworld-tutorial.md
[healthcheck]: https://github.com/grpc/grpc/blob/master/doc/health-checking.md
[rust-analyzer]: https://rust-analyzer.github.io