From 8109be2fafa057753f2733392f5abae425084b0e Mon Sep 17 00:00:00 2001 From: Patrik Stas Date: Sun, 23 Jul 2023 17:33:51 +0200 Subject: [PATCH] Specify default libvcx feature flags Signed-off-by: Patrik Stas --- libvcx/Cargo.toml | 1 + libvcx_core/src/api_vcx/api_global/pool.rs | 2 +- libvcx_core/src/api_vcx/api_global/wallet.rs | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/libvcx/Cargo.toml b/libvcx/Cargo.toml index 4eb879d145..d8d20640a1 100644 --- a/libvcx/Cargo.toml +++ b/libvcx/Cargo.toml @@ -13,6 +13,7 @@ doctest = false [features] fatal_warnings = [] +default = ["ledger_vdrtools", "anoncreds_vdrtools"] ledger_indyvdr = ["libvcx_core/ledger_indyvdr"] ledger_vdrtools = ["libvcx_core/ledger_vdrtools"] diff --git a/libvcx_core/src/api_vcx/api_global/pool.rs b/libvcx_core/src/api_vcx/api_global/pool.rs index 3f950deb86..091dcd5c60 100644 --- a/libvcx_core/src/api_vcx/api_global/pool.rs +++ b/libvcx_core/src/api_vcx/api_global/pool.rs @@ -114,7 +114,7 @@ async fn build_components_ledger( } #[cfg(not(any(feature = "ledger_indyvdr", feature = "ledger_vdrtools")))] { - panic!("No ledger implementation has been selected by feature flag upon build"); + compile_error!("No ledger implementation has been selected by feature flag upon build"); } } diff --git a/libvcx_core/src/api_vcx/api_global/wallet.rs b/libvcx_core/src/api_vcx/api_global/wallet.rs index 092008e38c..4bb2ad73b3 100644 --- a/libvcx_core/src/api_vcx/api_global/wallet.rs +++ b/libvcx_core/src/api_vcx/api_global/wallet.rs @@ -55,7 +55,7 @@ fn build_component_anoncreds(base_wallet: Arc) -> Arc