-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathjustfile
28 lines (24 loc) · 901 Bytes
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
binding:
./contrib/bindings.sh
clean:
rm -fRd target
rm -fRd rust/joinstr/include/*
rm -fRd rust/joinstr_wallet/include/*
rm -fRd dart/lib/joinstr.dart
rm -fRd dart/android
rm -fRd dart/ios
rm -fRd dart/.dart_tool
lint:
set -e
cargo fmt -- --check
cargo clippy --all-features --all-targets -- -D warnings
test:
just lint
cargo test -- --nocapture
wallet:
cbindgen --lang c --crate joinstr_wallet -o rust/joinstr_wallet/include/c/joinstr.h
cbindgen --crate joinstr_wallet -o rust/joinstr_wallet/include/cpp/joinstr.h
cargo build -p joinstr_wallet --release
cp target/release/libjoinstr_wallet.a rust/joinstr_wallet/include/libjoinstr_wallet.a
cp target/release/libjoinstr_wallet.d rust/joinstr_wallet/include/libjoinstr_wallet.d
cp target/release/libjoinstr_wallet.so rust/joinstr_wallet/include/libjoinstr_wallet.so