You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+38-4Lines changed: 38 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -12,18 +12,24 @@ With this crate you can easily connect to any TiKV deployment, interact with it,
12
12
13
13
This is an open source (Apache 2) project hosted by the Cloud Native Computing Foundation (CNCF) and maintained by the TiKV Authors. *We'd love it if you joined us in improving this project.*
14
14
15
-
## Install
15
+
## Using the client
16
16
17
-
There are no special requirements to use this. It is a Rust 2018 edition crate supporting stable and nightly.
17
+
The TiKV client is a Rust library (crate). It requires version 1.36 of the compiler and standard libraries (which will be stable from the 4th July 2019, see below for ensuring compatibility).
18
18
19
-
To use this crate in your project, add it as a dependency in the`Cargo.toml` of your Rust project:
19
+
To use this crate in your project, add it as a dependency in your`Cargo.toml`:
The client requires a Git dependency until we can [publish it](https://github.com/tikv/client-rust/issues/32).
28
+
29
+
There are [examples](examples) which show how to use the client in a Rust program.
30
+
31
+
The examples and documentation use async/await syntax. This is a new feature in Rust and is currently unstable. To use async/await you'll need to add the feature flag `#![async_await]` to your crate and use a nightly compiler (see below).
32
+
27
33
## Access the documentation
28
34
29
35
We recommend using the cargo-generated documentation to browse and understand the API. We've done
@@ -37,3 +43,31 @@ You can access the documentation on your machine by running the following in any
37
43
cargo doc --package tikv-client --open
38
44
# If it didn't work, browse file URL it tried to open with your browser.
39
45
```
46
+
47
+
## Toolchain versions
48
+
49
+
To check what version of Rust you are using, run
50
+
51
+
```bash
52
+
rustc --version
53
+
```
54
+
55
+
You'll see something like `rustc 1.36.0-nightly (a784a8022 2019-05-09)` where the `1.36.0` is the toolchain version, and `nightly` is the channel (stable/beta/nightly). To install another toolchain use
56
+
57
+
```bash
58
+
rustup toolchain install nightly
59
+
```
60
+
61
+
Where `nightly` here is the channel to add. To update your toolchains, run
62
+
63
+
```bash
64
+
rustup update
65
+
```
66
+
67
+
To build your project using a specified toolchain, use something like
68
+
69
+
```bash
70
+
cargo +nightly build
71
+
```
72
+
73
+
Where `nightly` names the toolchain (by specifying the channel, in this case).
0 commit comments