Skip to content

Commit 1a7942b

Browse files
hacker-volodyaSildDmitrii Korchagin
authored
Migrate to async client, add tower support (#9)
* start refactoring * work on request/response TL serialization * work on server * work on encoding to use with tokio-tower * upd tl * upd * remove codec * upd * update adnl, add layers * Update Cargo.toml * Update Cargo.toml * Add getBlockHeader flags * Add more logging * Add tcp.ping message type, make error wrapper work with request/response services instead of message * int -> uint for all fields which not require negative values * int -> uint * Add Eq + Hash to BlockIdExt * impl Hash for Int256 * Add seqno flag for LookupBlock * Add debug logs * Add block header modes for LookupBlock * Add GetConfigParams, GetConfigAll, ConfigInfo modes * Update config flags * Add flags for GetBlockProof * Support getLibraries method (#6) * Support getLibraries * Update github-ci --------- Co-authored-by: Dmitrii Korchagin <[email protected]> * Add LiteClient * Reimplement cli * Add GetLibraries and custom liteserver opts --------- Co-authored-by: Sild <[email protected]> Co-authored-by: Dmitrii Korchagin <[email protected]>
1 parent f18a4f1 commit 1a7942b

File tree

27 files changed

+3299
-3332
lines changed

27 files changed

+3299
-3332
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ on: [push, pull_request]
33
name: Continuous integration
44

55
jobs:
6-
check:
7-
name: Check
6+
build:
7+
name: Build liteapi
88
runs-on: ubuntu-latest
99
steps:
1010
- uses: actions/checkout@v2
@@ -15,50 +15,6 @@ jobs:
1515
override: true
1616
- uses: actions-rs/cargo@v1
1717
with:
18-
command: check
18+
command: build
19+
args: --manifest-path=liteapi/Cargo.toml
1920

20-
# test:
21-
# name: Test Suite
22-
# runs-on: ubuntu-latest
23-
# steps:
24-
# - uses: actions/checkout@v2
25-
# - uses: actions-rs/toolchain@v1
26-
# with:
27-
# profile: minimal
28-
# toolchain: stable
29-
# override: true
30-
# - uses: actions-rs/cargo@v1
31-
# with:
32-
# command: test
33-
34-
fmt:
35-
name: Rustfmt
36-
runs-on: ubuntu-latest
37-
steps:
38-
- uses: actions/checkout@v2
39-
- uses: actions-rs/toolchain@v1
40-
with:
41-
profile: minimal
42-
toolchain: stable
43-
override: true
44-
- run: rustup component add rustfmt
45-
- uses: actions-rs/cargo@v1
46-
with:
47-
command: fmt
48-
args: --all -- --check
49-
50-
clippy:
51-
name: Clippy
52-
runs-on: ubuntu-latest
53-
steps:
54-
- uses: actions/checkout@v2
55-
- uses: actions-rs/toolchain@v1
56-
with:
57-
profile: minimal
58-
toolchain: stable
59-
override: true
60-
- run: rustup component add clippy
61-
- uses: actions-rs/cargo@v1
62-
with:
63-
command: clippy
64-
args: -- -D warnings

0 commit comments

Comments
 (0)