lndk/justfile
Ignacio Porte e9b29f4eb8 fix: use correct google.rpc.Status with structured error details
Replace custom JSON error info format with tonic_types ErrorDetails. Add missing import for google/rpc/error_details.proto in lndkrpc.proto to enable proper decoding of ErrorInfo messages in grpcurl and other clients.
2025-09-17 11:58:23 -03:00

40 lines
933 B
Makefile

default:
@just --choose
clean:
cargo clean
fmt:
cargo fmt -- --config unstable_features=true --config wrap_comments=true --config comment_width=100
lib-test:
cargo test --lib
cli-test:
cargo test --bin lndk-cli
clippy:
cargo clippy
itest:
#!/usr/bin/env bash
TMP_DIR=${TMPDIR:-/tmp}
git submodule update --init --recursive
cd lnd/cmd/lnd; go build -tags="peersrpc signrpc walletrpc dev" -o $TMP_DIR/lndk-tests/bin/lnd-itest
RUSTFLAGS="--cfg itest" cargo test --features itest --test '*' -- --test-threads=1 --nocapture
test:
@just lib-test
@just cli-test
test-all:
@just lib-test
@just cli-test
@just itest
fetch-external-protos:
#!/usr/bin/env bash
EXTERNAL_DIR="proto/external"
mkdir -p "${EXTERNAL_DIR}/google/rpc"
curl -sSfL -o "${EXTERNAL_DIR}/google/rpc/error_details.proto" "https://raw.githubusercontent.com/googleapis/googleapis/master/google/rpc/error_details.proto"