Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
refactor(configs): make kms module and KmsDecrypt pub (#1274)
Abhishek Marrivaguf0db9937c7b3
diff --git a/crates/router/src/configs.rs b/crates/router/src/configs.rsindex 95bdd52402..bb8f61646f 100644--- a/crates/router/src/configs.rs+++ b/crates/router/src/configs.rs@@ -1,5 +1,5 @@mod defaults;#[cfg(feature = "kms")]-pub(super) mod kms;+pub mod kms;pub mod settings;mod validations;diff --git a/crates/router/src/configs/kms.rs b/crates/router/src/configs/kms.rsindex 367a1b6a4a..5f1c4726d7 100644--- a/crates/router/src/configs/kms.rs+++ b/crates/router/src/configs/kms.rs@@ -6,7 +6,7 @@ use crate::configs::settings;#[async_trait::async_trait]// This trait performs inplace decryption of the structure on which this is implemented-pub(crate) trait KmsDecrypt {+pub trait KmsDecrypt {async fn decrypt_inner(self, kms_config: &kms::KmsConfig) -> CustomResult<Self, kms::KmsError>whereSelf: Sized;