Skip to content

Commit

Permalink
Specify default libvcx feature flags
Browse files Browse the repository at this point in the history
Signed-off-by: Patrik Stas <[email protected]>
  • Loading branch information
Patrik-Stas authored and bobozaur committed Jul 24, 2023
1 parent 702b209 commit 8109be2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions libvcx/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
2 changes: 1 addition & 1 deletion libvcx_core/src/api_vcx/api_global/pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
}

Expand Down
2 changes: 1 addition & 1 deletion libvcx_core/src/api_vcx/api_global/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ fn build_component_anoncreds(base_wallet: Arc<dyn BaseWallet>) -> Arc<dyn BaseAn
}
#[cfg(not(any(feature = "anoncreds_vdrtools", feature = "anoncreds_credx")))]
{
panic!("No anoncreds implementation enabled by feature flag upon build");
compile_error!("No anoncreds implementation enabled by feature flag upon build");
}
}

Expand Down

0 comments on commit 8109be2

Please sign in to comment.