Skip to content

Commit bee14b7

Browse files
Ahnlich Protocol Swap Spec (#195)
* WIP: create Grpc spec for ahnlich protocol swap * Generate proto files for ai and db query,response. Build file now generates rust types into src crate * add generated files from protos. Build script automatically checks for changes in proto file * added ai and db service. Ran cargo fmt * setup protobuf in github actions * clippy lints in grpc build file * change NOTE to TODO in build.rs * use tonic to build server and client for ai and db * update build.rs * change grpc spec names for fix clippy errors * add utils mod and exclude from build.rs * add simple readme for protofiles * add comments to messages and update specs --------- Co-authored-by: Diretnan Domnan <[email protected]>
1 parent def56e3 commit bee14b7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+5266
-29
lines changed

.github/workflows/benchmark.yml

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ jobs:
2323
with:
2424
workspaces: ahnlich
2525

26+
- name: Install Protoc
27+
uses: arduino/setup-protoc@v3
28+
2629
- name: Install Cargo benchcmp
2730
working-directory: ./ahnlich
2831
run: cargo install critcmp

.github/workflows/release.yml

+17
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ jobs:
4343
with:
4444
toolchain: 1.81.0
4545

46+
- name: Install Protoc
47+
uses: arduino/setup-protoc@v3
48+
4649
- name: Build Linux Release for ${{ needs.prebuild_preparation.outputs.bin_name }}
4750
working-directory: ./ahnlich
4851
run: |
@@ -66,6 +69,9 @@ jobs:
6669
uses: actions-rs/toolchain@v1
6770
with:
6871
toolchain: 1.81.0
72+
73+
- name: Install Protoc
74+
uses: arduino/setup-protoc@v3
6975

7076
- name: Build Linux Release for ${{ needs.prebuild_preparation.outputs.bin_name }}
7177
working-directory: ./ahnlich
@@ -90,6 +96,10 @@ jobs:
9096
- name: "Checkout"
9197
uses: actions/checkout@v4
9298

99+
100+
- name: Install Protoc
101+
uses: arduino/setup-protoc@v3
102+
93103
- name: Build Aarch64 Darwin Release for ${{ needs.prebuild_preparation.outputs.bin_name }}
94104
working-directory: ./ahnlich
95105
run: |
@@ -119,6 +129,9 @@ jobs:
119129
with:
120130
toolchain: 1.81.0
121131

132+
- name: Install Protoc
133+
uses: arduino/setup-protoc@v3
134+
122135
- name: Build x86_64 Darwin Release for ${{ needs.prebuild_preparation.outputs.bin_name }}
123136
working-directory: ./ahnlich
124137
run: |
@@ -154,6 +167,10 @@ jobs:
154167
with:
155168
key: ${{ runner.os }}-cargo-${{ hashFiles('ahnlich/Cargo.lock') }}
156169

170+
171+
- name: Install Protoc
172+
uses: arduino/setup-protoc@v3
173+
157174
- name: Set Port Based on Bin Name
158175
id: set_port
159176
run: |

.github/workflows/rust_tag_and_deploy.yml

+3
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ jobs:
6868
with:
6969
toolchain: 1.81.0
7070

71+
- name: Install Protoc
72+
uses: arduino/setup-protoc@v3
73+
7174
- name: Deploy using tag
7275
working-directory: ./ahnlich
7376
run: |

.github/workflows/test.yml

+7
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ jobs:
2929
- name: Set up cargo and rustup tools
3030
run: |
3131
which cargo-nextest || cargo install cargo-nextest
32+
33+
- name: Install Protoc
34+
uses: arduino/setup-protoc@v3
3235

3336
- name: Cache Docker images.
3437
uses: ScribeMD/[email protected]
@@ -74,6 +77,7 @@ jobs:
7477
poetry-version: 1.7.0
7578
- name: View poetry --help
7679
run: poetry --help
80+
7781
- name: Cache using poetry lock
7882
uses: actions/cache@v4
7983
with:
@@ -90,6 +94,9 @@ jobs:
9094
poetry run isort . -c --profile black; echo $?
9195
poetry run black . --check; echo $?
9296
97+
- name: Install Protoc
98+
uses: arduino/setup-protoc@v3
99+
93100
- name: Complie Binaries
94101
working-directory: ./ahnlich
95102
run: |

0 commit comments

Comments
 (0)