-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/tikv/client-rust into and…
…ylokandy/master
- Loading branch information
Showing
68 changed files
with
14,263 additions
and
431 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
src/generated/ diff=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,12 @@ on: | |
push: | ||
branches: | ||
- master | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
name: CI | ||
|
||
|
@@ -11,42 +17,36 @@ jobs: | |
name: check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: nightly | ||
override: true | ||
- run: rustup component add rustfmt clippy | ||
- uses: actions/checkout@v4 | ||
- name: Install Protoc | ||
uses: arduino/setup-protoc@v1 | ||
with: | ||
version: '3.x' | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Rust Cache | ||
uses: Swatinem/rust-cache@v1.4.0 | ||
uses: Swatinem/rust-cache@v2 | ||
- name: make check | ||
run: make check | ||
- name: Catch unexpected changes in the generated code | ||
run: | | ||
git diff --exit-code | ||
unit-test: | ||
name: unit test | ||
env: | ||
CARGO_INCREMENTAL: 0 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: nightly | ||
override: true | ||
- uses: actions/checkout@v4 | ||
- name: Install Protoc | ||
uses: arduino/setup-protoc@v1 | ||
with: | ||
version: '3.x' | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Rust Cache | ||
uses: Swatinem/[email protected] | ||
uses: Swatinem/rust-cache@v2 | ||
- name: Install latest nextest release | ||
uses: taiki-e/install-action@nextest | ||
- name: unit test | ||
run: make unit-test | ||
|
||
|
@@ -56,19 +56,14 @@ jobs: | |
CARGO_INCREMENTAL: 0 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: nightly | ||
override: true | ||
- uses: actions/checkout@v4 | ||
- name: Install Protoc | ||
uses: arduino/setup-protoc@v1 | ||
with: | ||
version: '3.x' | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Rust Cache | ||
uses: Swatinem/rust-cache@v1.4.0 | ||
uses: Swatinem/rust-cache@v2 | ||
- name: install tiup | ||
run: curl --proto '=https' --tlsv1.2 -sSf https://tiup-mirrors.pingcap.com/install.sh | sh | ||
- name: start tiup playground | ||
|
@@ -81,5 +76,7 @@ jobs: | |
[[ "$(curl -I http://127.0.0.1:2379/pd/api/v1/regions 2>/dev/null | head -n 1 | cut -d$' ' -f2)" -ne "405" ]] || break | ||
sleep 1 | ||
done | ||
- name: Install latest nextest release | ||
uses: taiki-e/install-action@nextest | ||
- name: integration test | ||
run: MULTI_REGION=1 make integration-test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[package] | ||
name = "tikv-client-proto-build" | ||
version = "0.0.0" | ||
publish = false | ||
|
||
keywords = ["TiKV", "KV", "distributed-systems"] | ||
license = "Apache-2.0" | ||
authors = ["The TiKV Project Authors"] | ||
repository = "https://github.com/tikv/client-rust" | ||
description = "The Rust language implementation of TiKV client." | ||
edition = "2021" | ||
|
||
[dependencies] | ||
glob = "0.3" | ||
tonic-build = { version = "0.10", features = ["cleanup-markdown"] } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[toolchain] | ||
channel = "stable" | ||
components = ["rustfmt", "clippy"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
edition = "2021" | ||
version = "Two" | ||
reorder_imports = true | ||
imports_granularity = "Item" | ||
group_imports = "StdExternalCrate" | ||
where_single_line = true | ||
trailing_comma = "Vertical" | ||
overflow_delimited_expr = true | ||
format_code_in_doc_comments = true | ||
normalize_comments = true | ||
|
||
# Those options are disabled for not supported in stable rust. | ||
# We should enable them back once stabilized. | ||
# | ||
# version = "Two" | ||
# imports_granularity = "Item" | ||
# group_imports = "StdExternalCrate" | ||
# where_single_line = true | ||
# trailing_comma = "Vertical" | ||
# overflow_delimited_expr = true | ||
# format_code_in_doc_comments = true | ||
# normalize_comments = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.