Skip to content

Commit 7acaed8

Browse files
committed
fix build
1 parent 4dfed0b commit 7acaed8

File tree

4 files changed

+207
-15
lines changed

4 files changed

+207
-15
lines changed

.github/workflows/rust.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -387,11 +387,8 @@ jobs:
387387
sudo apt install -y protobuf-compiler libssl-dev libpq-dev libsqlite3-dev pkg-config
388388

389389
- name: Install uniffi
390-
uses: actions-rs/[email protected]
391-
with:
392-
crate: uniffi_bindgen
393-
version: 0.29.3
394-
use-tool-cache: true
390+
run: |
391+
cargo add uniffi_bindgen --version 0.29.3
395392
396393
- name: Clippy and fmt
397394
uses: actions-rs/toolchain@v1

Cargo.lock

Lines changed: 201 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/chain-wallet-libs/bindings/wallet-uniffi/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ chain-crypto = { path = "../../../chain-libs/chain-crypto" }
2020
chain-time = { path = "../../../chain-libs/chain-time" }
2121
chain-ser = { path = "../../../chain-libs/chain-ser" }
2222
thiserror = {version = "1.0", default-features = false}
23+
uniffi_bindgen = "0.29.3"
2324

2425
[build-dependencies]
2526
uniffi_build = "0.21"

src/chain-wallet-libs/bindings/wallet-uniffi/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ use wallet_core::Options;
2121
use wallet_core::Settings as InnerSettings;
2222
use wallet_core::Wallet as InnerWallet;
2323

24+
// Allow clippy warnings for generated uniffi code
25+
#[allow(clippy::unneeded_struct_pattern)]
26+
#[allow(clippy::useless_conversion)]
2427
include!(concat!(env!("OUT_DIR"), "/lib.uniffi.rs"));
2528

2629
#[derive(Debug, thiserror::Error)]

0 commit comments

Comments
 (0)