From 305b5a5d5fee58ff4dc9241e901aa8f864ea9b17 Mon Sep 17 00:00:00 2001 From: LimpidCrypto Date: Tue, 18 Jun 2024 15:01:15 +0000 Subject: [PATCH] improve tool features --- .cargo-husky/hooks/pre-commit | 3 +++ .github/workflows/unit_test.yml | 9 +++++++++ Cargo.toml | 12 +++++++++--- 3 files changed, 21 insertions(+), 3 deletions(-) diff --git a/.cargo-husky/hooks/pre-commit b/.cargo-husky/hooks/pre-commit index f3dc3d3f..89664689 100755 --- a/.cargo-husky/hooks/pre-commit +++ b/.cargo-husky/hooks/pre-commit @@ -16,6 +16,9 @@ cargo test --no-default-features --features std,websocket-client-std cargo test --no-default-features --features std,websocket-client cargo test --no-default-features --features json-rpc-client-std cargo test --no-default-features --features std,json-rpc-client +cargo test --no-default-features --features std,websocket-client-std,asynch-tools,transaction-tools +cargo test --no-default-features --features std,websocket-client-std,asynch-tools,account-tools +cargo test --no-default-features --features std,websocket-client-std,asynch-tools,ledger-tools cargo test --all-features cargo clippy --fix --allow-staged --allow-dirty cargo doc --no-deps diff --git a/.github/workflows/unit_test.yml b/.github/workflows/unit_test.yml index 3313c665..11fc7605 100644 --- a/.github/workflows/unit_test.yml +++ b/.github/workflows/unit_test.yml @@ -82,3 +82,12 @@ jobs: with: command: test args: --no-default-features --features std,json-rpc-client + with: + command: test + args: --no-default-features --features std,websocket-client-std,asynch-tools,transaction-tools + with: + command: test + args: --no-default-features --features std,websocket-client-std,asynch-tools,account-tools + with: + command: test + args: --no-default-features --features std,websocket-client-std,asynch-tools,ledger-tools diff --git a/Cargo.toml b/Cargo.toml index b001a74b..a3d772ac 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -136,9 +136,15 @@ all-tools = [ ] synch-tools = ["asynch-tools"] asynch-tools = [] -account-tools = [] -ledger-tools = [] -transaction-tools = [] +account-tools = ["core", "ledger-models", "request-models", "result-models"] +ledger-tools = ["amount-models", "request-models", "result-models"] +transaction-tools = [ + "account-tools", + "ledger-tools", + "transaction-models", + "request-models", + "result-models", +] wallet-tools = [] # clients json-rpc-client = [