Skip to content

Commit d0e8d17

Browse files
authored
Merge pull request #308 from RGB-WG/develop
Remove bp-wallet dependency
2 parents b6b927c + f81d0f8 commit d0e8d17

30 files changed

Lines changed: 2800 additions & 959 deletions

.github/workflows/build.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,25 @@ jobs:
3434
fail-fast: false
3535
matrix:
3636
feature:
37+
- async
3738
- fs
39+
- log
3840
- serde
41+
- resolvers-all
42+
- resolver-electrum
43+
- resolver-esplora
44+
# - resolver-bitcoinrpc
45+
- resolvers-all-async
46+
# - resolver-electrum-async
47+
- resolver-esplora-async
48+
# - resolver-bitcoinrpc-async
3949
steps:
4050
- uses: actions/checkout@v4
4151
- uses: dtolnay/rust-toolchain@stable
4252
- name: Feature ${{matrix.feature}}
43-
run: cargo check --workspace --no-default-features --features=${{matrix.feature}}
53+
run: cargo check --no-default-features --features=${{matrix.feature}}
4454
- name: Feature ${{matrix.feature}}
45-
run: cargo check --workspace --features=${{matrix.feature}}
55+
run: cargo check --features=${{matrix.feature}}
4656
platforms:
4757
runs-on: ${{ matrix.os }}
4858
strategy:
@@ -54,7 +64,9 @@ jobs:
5464
- uses: actions/checkout@v4
5565
- uses: dtolnay/rust-toolchain@stable
5666
- name: Platform ${{matrix.os}}
57-
run: cargo check --workspace --all-features # we skip test targets here to be sure that the main library can be built
67+
run: cargo check --workspace --features=all # we skip test targets here to be sure that the main library can be built
68+
- name: Platform ${{matrix.os}} async
69+
run: cargo check --features=all-async # we skip test targets here to be sure that the main library can be built
5870
toolchains:
5971
runs-on: ubuntu-latest
6072
strategy:
@@ -67,4 +79,4 @@ jobs:
6779
with:
6880
toolchain: ${{matrix.toolchain}}
6981
- name: Toolchain ${{matrix.toolchain}}
70-
run: cargo +${{matrix.toolchain}} check --workspace --all-targets --all-features
82+
run: cargo +${{matrix.toolchain}} check --workspace --all-targets --features=all

.github/workflows/codecov.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ jobs:
2727
- uses: taiki-e/install-action@nextest
2828
- name: Collect coverage data (including doctests)
2929
run: |
30-
cargo +nightly llvm-cov --no-report nextest --workspace --all-features
31-
cargo +nightly llvm-cov --no-report --doc --workspace --all-features
30+
cargo +nightly llvm-cov --no-report nextest --workspace --features=all
31+
cargo +nightly llvm-cov --no-report --doc --workspace --features=all
3232
cargo +nightly llvm-cov report --doctests --lcov --output-path lcov.info
3333
- name: Upload coverage data to codecov
3434
uses: codecov/codecov-action@v4

.github/workflows/lint.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ jobs:
2828
with:
2929
components: clippy
3030
- name: Formatting
31-
run: cargo clippy --workspace --all-features --all-targets -- -D warnings
31+
run: cargo clippy --workspace --features=all --all-targets -- -D warnings
32+
- name: Formatting
33+
run: cargo clippy --features=all-async -- -D warnings
3234
doc:
3335
runs-on: ubuntu-latest
3436
steps:
@@ -37,7 +39,9 @@ jobs:
3739
with:
3840
components: rust-docs
3941
- name: Formatting
40-
run: cargo +nightly doc --workspace --all-features
42+
run: cargo +nightly doc --workspace --features=all
43+
- name: Formatting
44+
run: cargo +nightly doc --features=all-async
4145
typos:
4246
runs-on: ubuntu-latest
4347
steps:

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- uses: actions/checkout@v4
2828
- uses: dtolnay/rust-toolchain@stable
2929
- name: Test ${{matrix.os}}
30-
run: cargo test --workspace --all-features --no-fail-fast
30+
run: cargo test --workspace --features=all --no-fail-fast
3131
wasm-testing:
3232
runs-on: ubuntu-latest
3333
steps:
@@ -39,5 +39,5 @@ jobs:
3939
- name: Add wasm32 target
4040
run: rustup target add wasm32-unknown-unknown
4141
- name: Test in headless Chrome
42-
run: RUSTFLAGS='--cfg getrandom_backend="wasm_js"' wasm-pack test --headless --chrome --all-features
42+
run: RUSTFLAGS='--cfg getrandom_backend="wasm_js"' wasm-pack test --headless --chrome --features=all-async
4343

0 commit comments

Comments
 (0)