text stringlengths 70 351k | source stringclasses 4
values |
|---|---|
<|fim_prefix|>
// file: hyperswitch/crates/analytics/src/api_event/metrics.rs | crate: analytics
use api_models::analytics::{
api_event::{
ApiEventDimensions, ApiEventFilters, ApiEventMetrics, ApiEventMetricsBucketIdentifier,
},
Granularity, TimeRange,
};
use crate::{
query::{Aggregate, GroupByC... | ast_fragments |
// file: hyperswitch/crates/analytics/src/api_event/metrics/status_code_count.rs | crate: analytics
use std::collections::HashSet;
use api_models::analytics::{
api_event::{ApiEventDimensions, ApiEventFilters, ApiEventMetricsBucketIdentifier},
Granularity, TimeRange,
};
use common_utils::errors::ReportSwitchExt;... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/analytics/src/payment_intents/metrics.rs | crate: analytics
use std::collections::HashSet;
use api_models::analytics::{
payment_intents::{
PaymentIntentDimensions, PaymentIntentFilters, PaymentIntentMetrics,
PaymentIntentMetricsBucketIdentifier,
},
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/analytics/src/payment_intents/filters.rs | crate: analytics
use api_models::analytics::{payment_intents::PaymentIntentDimensions, Granularity, TimeRange};
use common_utils::errors::ReportSwitchExt;
use time::PrimitiveDateTime;
use crate::{
query::{Aggregate, GroupByClause,... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/analytics/src/active_payments/core.rs | crate: analytics
use std::collections::HashMap;
use api_models::analytics::{
active_payments::{
ActivePaymentsMetrics, ActivePaymentsMetricsBucketIdentifier, MetricsBucketResponse,
},
AnalyticsMetadata, GetActivePayme... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/analytics/src/active_payments/metrics/active_payments.rs | crate: analytics
use std::collections::HashSet;
use api_models::analytics::{
active_payments::ActivePaymentsMetricsBucketIdentifier, Granularity, TimeRange,
};
use common_utils::errors::ReportSwitchExt;
use error_s... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/analytics/src/sdk_events/events.rs | crate: analytics
use api_models::analytics::{
sdk_events::{SdkEventNames, SdkEventsRequest},
Granularity,
};
use common_utils::errors::ReportSwitchExt;
use time::PrimitiveDateTime;
use crate::{
query::{Aggregate, FilterTypes, Gr... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/analytics/src/sdk_events/filters.rs | crate: analytics
use api_models::analytics::{sdk_events::SdkEventDimensions, Granularity, TimeRange};
use time::PrimitiveDateTime;
use crate::{
query::{Aggregate, GroupByClause, QueryBuilder, QueryFilter, ToSql, Window},
types::{An... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/analytics/src/disputes/core.rs | crate: analytics
use api_models::analytics::{
disputes::{
DisputeDimensions, DisputeMetrics, DisputeMetricsBucketIdentifier,
DisputeMetricsBucketResponse,
},
DisputeFilterValue, DisputeFiltersResponse, DisputesAnalyt... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/analytics/src/disputes/core.rs | crate: analytics
use std::collections::HashMap;
use api_models::analytics::{
disputes::{
DisputeDimensions, DisputeMetrics, DisputeMetricsBucketIdentifier,
DisputeMetricsBucketResponse,
},
DisputeFilterValue, Dispute... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/analytics/src/disputes/filters.rs | crate: analytics
use api_models::analytics::{disputes::DisputeDimensions, Granularity, TimeRange};
use time::PrimitiveDateTime;
use crate::{
enums::AuthInfo,
query::{Aggregate, GroupByClause, QueryBuilder, QueryFilter, ToSql, Window}... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/analytics/src/auth_events/filters.rs | crate: analytics
use api_models::analytics::{auth_events::AuthEventDimensions, Granularity, TimeRange};
use common_utils::errors::ReportSwitchExt;
use time::PrimitiveDateTime;
use crate::{
query::{Aggregate, GroupByClause, QueryBuilde... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/analytics/src/refunds/distribution.rs | crate: analytics
use api_models::analytics::{
refunds::{
RefundDimensions, RefundDistributions, RefundFilters, RefundMetricsBucketIdentifier,
RefundType,
},
Granularity, RefundDistributionBody, TimeRange,
};
u... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/analytics/src/refunds/filters.rs | crate: analytics
use api_models::analytics::{
refunds::{RefundDimensions, RefundType},
Granularity, TimeRange,
};
use time::PrimitiveDateTime;
use crate::{
enums::AuthInfo,
query::{Aggregate, GroupByClause, QueryBuilder, Query... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/tests/payouts.rs | crate: router
async fn payouts_todo() {
<|fim_suffix|>
<|fim_middle|>
}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/compatibility/stripe/customers.rs | crate: router
use actix_web::{web, HttpRequest, HttpResponse};
use common_utils::id_type;
use router_env::{instrument, tracing, Flow};
use crate::{
compatibility::{stripe::errors, wrap},
core::{api_locking, customers, paym... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/compatibility/stripe/customers.rs | crate: router
use actix_web::{web, HttpRequest, HttpResponse};
use common_utils::id_type;
use router_env::{instrument, tracing, Flow};
use crate::{
compatibility::{stripe::errors, wrap},
core::{api_locking, customers, paym... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/compatibility/stripe/customers.rs | crate: router
use actix_web::{web, HttpRequest, HttpResponse};
use common_utils::id_type;
use error_stack::report;
use router_env::{instrument, tracing, Flow};
use crate::{
compatibility::{stripe::errors, wrap},
core::{api... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/compatibility/stripe/customers.rs | crate: router
use actix_web::{web, HttpRequest, HttpResponse};
use common_utils::id_type;
use router_env::{instrument, tracing, Flow};
use crate::{
compatibility::{stripe::errors, wrap},
core::{api_locking, customers, paym... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/compatibility/stripe/customers.rs | crate: router
use actix_web::{web, HttpRequest, HttpResponse};
use error_stack::report;
use router_env::{instrument, tracing, Flow};
use crate::{
compatibility::{stripe::errors, wrap},
core::{api_locking, customers, paymen... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/storage/payment_link.rs | crate: router
use diesel::{associations::HasTable, ExpressionMethods, QueryDsl};
pub use diesel_models::{
payment_link::{PaymentLink, PaymentLinkNew},
schema::payment_link::dsl,
};
use crate::{
connection::PgPooledConn,
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/storage/mandate.rs | crate: router
use common_utils::errors::CustomResult;
use diesel::{associations::HasTable, ExpressionMethods, QueryDsl};
use diesel_models::{errors, schema::mandate::dsl};
use crate::{connection::PgPooledConn, logger};
async fn filter_by_c... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/types/domain/user_key_store.rs | crate: router
use common_utils::{
crypto::Encryptable,
date_time, type_name,
types::keymanager::{Identifier, KeyManagerState},
};
use hyperswitch_domain_models::type_encryption::{crypto_operation, CryptoOperation};
use ma... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/workflows/revenue_recovery.rs | crate: router
use api_models::payments::PaymentsGetIntentRequest;
use common_utils::{
ext_traits::{StringExt, ValueExt},
id_type,
};
use hyperswitch_domain_models::payments::PaymentIntentData;
use router_env::logger;
use sched... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/workflows/revenue_recovery.rs | crate: router
use scheduler::{consumer::workflows::ProcessTrackerWorkflow, errors};
use storage_impl::errors as storage_errors;
use crate::{
core::{
admin, payments,
revenue_recovery::{self as pcr, types},
},
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/workflows/revenue_recovery.rs | crate: router
use api_models::payments::PaymentsGetIntentRequest;
use common_utils::{
ext_traits::{StringExt, ValueExt},
id_type,
};
use hyperswitch_domain_models::payments::PaymentIntentData;
use scheduler::{consumer::workflo... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/configs/secrets_transformers.rs | crate: router
use common_utils::{errors::CustomResult, ext_traits::AsyncExt};
use hyperswitch_interfaces::secrets_interface::{
secret_handler::SecretsHandler,
secret_state::{RawSecret, SecretStateContainer, SecuredSecret},
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/configs/secrets_transformers.rs | crate: router
use hyperswitch_interfaces::secrets_interface::{
secret_handler::SecretsHandler,
secret_state::{RawSecret, SecretStateContainer, SecuredSecret},
SecretManagementInterface, SecretsManagementError,
};
use cra... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/db/health_check.rs | crate: router
use diesel_models::ConfigNew;
use router_env::{instrument, logger, tracing};
use crate::{
connection,
core::errors::{self, CustomResult},
types::storage,
};
async fn health_check_db(&self) -> CustomResult<(), errors::He... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/routes/verification.rs | crate: router
use actix_web::{web, HttpRequest, Responder};
use api_models::verifications;
use router_env::{instrument, tracing, Flow};
use super::app::AppState;
use crate::{
core::{api_locking, verification},
services::{api, authent... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/routes/verification.rs | crate: router
use actix_web::{web, HttpRequest, Responder};
use api_models::verifications;
use router_env::{instrument, tracing, Flow};
use super::app::AppState;
use crate::{
core::{api_locking, verification},
services::{api, authent... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/routes/files.rs | crate: router
use actix_web::{web, HttpRequest, HttpResponse};
use router_env::{instrument, tracing, Flow};
use crate::core::api_locking;
use super::app::AppState;
use crate::{
core::files::*,
services::{api, authentication as auth},
ty... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/routes/files.rs | crate: router
use actix_web::{web, HttpRequest, HttpResponse};
use router_env::{instrument, tracing, Flow};
use crate::core::api_locking;
use super::app::AppState;
use crate::{
core::files::*,
services::{api, authentication as auth},
ty... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/routes/files.rs | crate: router
use actix_multipart::Multipart;
use actix_web::{web, HttpRequest, HttpResponse};
use router_env::{instrument, tracing, Flow};
use crate::core::api_locking;
use super::app::AppState;
use crate::{
core::files::*,
services::{api,... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/routes/webhooks.rs | crate: router
use actix_web::{web, HttpRequest, Responder};
use router_env::{instrument, tracing, Flow};
use super::app::AppState;
use crate::{
core::{
api_locking,
webhooks::{self, types},
},
services::{api, authenti... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/routes/webhooks.rs | crate: router
use actix_web::{web, HttpRequest, Responder};
use router_env::{instrument, tracing, Flow};
use super::app::AppState;
use crate::{
core::{
api_locking,
webhooks::{self, types},
},
services::{api, authenti... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/routes/webhooks.rs | crate: router
use actix_web::{web, HttpRequest, Responder};
use router_env::{instrument, tracing, Flow};
use super::app::AppState;
use crate::{
core::{
api_locking,
webhooks::{self, types},
},
services::{api, authenti... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/routes/webhooks.rs | crate: router
use actix_web::{web, HttpRequest, Responder};
use router_env::{instrument, tracing, Flow};
use super::app::AppState;
use crate::{
core::{
api_locking,
webhooks::{self, types},
},
services::{api, authenti... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/routes/webhook_events.rs | crate: router
use actix_web::{web, HttpRequest, Responder};
use router_env::{instrument, tracing, Flow};
use crate::{
core::{api_locking, webhooks::webhook_events},
routes::AppState,
services::{
api,
authenticat... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/routes/webhook_events.rs | crate: router
use actix_web::{web, HttpRequest, Responder};
use router_env::{instrument, tracing, Flow};
use crate::{
core::{api_locking, webhooks::webhook_events},
routes::AppState,
services::{
api,
authenticat... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/routes/webhook_events.rs | crate: router
use actix_web::{web, HttpRequest, Responder};
use router_env::{instrument, tracing, Flow};
use crate::{
core::{api_locking, webhooks::webhook_events},
routes::AppState,
services::{
api,
authenticat... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/routes/webhook_events.rs | crate: router
use actix_web::{web, HttpRequest, Responder};
use router_env::{instrument, tracing, Flow};
use crate::{
core::{api_locking, webhooks::webhook_events},
routes::AppState,
services::{
api,
authenticat... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/routes/relay.rs | crate: router
use actix_web::{web, Responder};
use router_env::{instrument, tracing, Flow};
use crate::{
self as app,
core::{api_locking, relay},
services::{api, authentication as auth},
};
pub async fn relay_retrieve(
state: web::D... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/routes/relay.rs | crate: router
use actix_web::{web, Responder};
use router_env::{instrument, tracing, Flow};
use crate::{
self as app,
core::{api_locking, relay},
services::{api, authentication as auth},
};
pub async fn relay(
state: web::Data<app::... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/routes/metrics/bg_metrics_collector.rs | crate: router
use storage_impl::redis::cache;
pub fn spawn_metrics_collector(metrics_collection_interval_in_secs: Option<u16>) {
{<|fim_suffix|>
<|fim_middle|>
}}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/routes/process_tracker/revenue_recovery.rs | crate: router
use actix_web::{web, HttpRequest, HttpResponse};
use api_models::process_tracker::revenue_recovery as revenue_recovery_api;
use router_env::Flow;
use crate::{
core::{api_locking, revenue_recovery},
r... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/services/kafka/dispute_event.rs | crate: router
use crate::types::storage::dispute::Dispute;
pub fn from_storage(dispute: &'a Dispute) -> Self {
{<|fim_suffix|>
<|fim_middle|>
}}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/services/kafka/authentication_event.rs | crate: router
use diesel_models::{authentication::Authentication, enums as storage_enums};
pub fn from_storage(authentication: &'a Authentication) -> Self {
{<|fim_suffix|>
<|fim_middle|>
}}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch-card-vault/benches/encryption.rs | crate: benches
use criterion::{black_box, criterion_group, criterion_main, Criterion};
use josekit::jwe;
use rand::rngs::OsRng;
use rsa::{pkcs8::EncodePrivateKey, pkcs8::EncodePublicKey, RsaPrivateKey, RsaPublicKey};
use tartarus::crypto::encryption... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch-card-vault/benches/encryption.rs | crate: benches
use criterion::{black_box, criterion_group, criterion_main, Criterion};
use rand::rngs::OsRng;
use tartarus::crypto::encryption_manager::{
encryption_interface::Encryption,
managers::{aes, jw},
};
pub fn criterion_aes(c: &mut ... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch-card-vault/benches/hashing.rs | crate: benches
use criterion::{black_box, criterion_group, criterion_main, Criterion};
use tartarus::crypto::hash_manager::{hash_interface::Encode, managers::sha::HmacSha512};
pub fn criterion_hmac_sha512(c: &mut Criterion) {
{<|fim_suffix|>
<|fim_midd... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch-card-vault/src/middleware.rs | crate: src
use crate::{
crypto::encryption_manager::{
encryption_interface::Encryption,
managers::jw::{self, JWEncryption},
},
error::{self, ContainerError, ResultContainerExt},
};
use crate::custom_extractors::TenantStateRes... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/analytics/src/payments/metrics/retries_count.rs | crate: analytics
use std::collections::HashSet;
use api_models::{
analytics::{
payments::{PaymentDimensions, PaymentFilters, PaymentMetricsBucketIdentifier},
Granularity, TimeRange,
},
enums::IntentS... | ast_fragments |
// file: hyperswitch/crates/analytics/src/payments/metrics/avg_ticket_size.rs | crate: analytics
use std::collections::HashSet;
use api_models::analytics::{
payments::{PaymentDimensions, PaymentFilters, PaymentMetricsBucketIdentifier},
Granularity, TimeRange,
};
use diesel_models::enums as storage_enums;
use er... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/analytics/src/api_event/events.rs | crate: analytics
use api_models::analytics::{
api_event::{ApiLogsRequest, QueryType},
Granularity,
};
use common_utils::errors::ReportSwitchExt;
use router_env::Flow;
use time::PrimitiveDateTime;
use crate::{
query::{Aggregate, G... | ast_fragments |
// file: hyperswitch/crates/analytics/src/api_event/metrics/latency.rs | crate: analytics
use std::collections::HashSet;
use api_models::analytics::{
api_event::{ApiEventDimensions, ApiEventFilters, ApiEventMetricsBucketIdentifier},
Granularity, TimeRange,
};
use common_utils::errors::ReportSwitchExt;
use error... | ast_fragments |
// file: hyperswitch/crates/analytics/src/payment_intents/metrics/sessionized_metrics/payment_intent_count.rs | crate: analytics
use std::collections::HashSet;
use api_models::analytics::{
payment_intents::{
PaymentIntentDimensions, PaymentIntentFilters, PaymentIntentMetricsBucketIdentifier,
},
Gran... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/analytics/src/payment_intents/metrics/sessionized_metrics/payment_processed_amount.rs | crate: analytics
use std::collections::HashSet;
use api_models::analytics::{
payment_intents::{
PaymentIntentDimensions, PaymentIntentFilters, PaymentIntentMetricsBucketIdentifi... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/analytics/src/sdk_events/metrics/payment_method_selected_count.rs | crate: analytics
use std::collections::HashSet;
use api_models::analytics::{
sdk_events::{
SdkEventDimensions, SdkEventFilters, SdkEventMetricsBucketIdentifier, SdkEventNames,
},
Granularit... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/analytics/src/frm/metrics/frm_blocked_rate.rs | crate: analytics
use api_models::analytics::{
frm::{FrmDimensions, FrmFilters, FrmMetricsBucketIdentifier},
Granularity, TimeRange,
};
use common_utils::errors::ReportSwitchExt;
use error_stack::ResultExt;
use super::FrmM... | ast_fragments |
// file: hyperswitch/crates/analytics/src/auth_events/metrics.rs | crate: analytics
use std::collections::HashSet;
use api_models::analytics::{
auth_events::{
AuthEventDimensions, AuthEventFilters, AuthEventMetrics, AuthEventMetricsBucketIdentifier,
},
Granularity, TimeRange,
};
use crate::{
que... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/analytics/src/auth_events/metrics/frictionless_success_count.rs | crate: analytics
use std::collections::HashSet;
use api_models::analytics::{
auth_events::{AuthEventDimensions, AuthEventFilters, AuthEventMetricsBucketIdentifier},
Granularity, TimeRange,
};
use common_... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/analytics/src/auth_events/metrics/challenge_attempt_count.rs | crate: analytics
use std::collections::HashSet;
use api_models::analytics::{
auth_events::{AuthEventDimensions, AuthEventFilters, AuthEventMetricsBucketIdentifier},
Granularity, TimeRange,
};
use common_enu... | ast_fragments |
// file: hyperswitch/crates/analytics/src/refunds/metrics/sessionized_metrics/refund_success_rate.rs | crate: analytics
use std::collections::HashSet;
use api_models::analytics::{
refunds::{RefundDimensions, RefundFilters, RefundMetricsBucketIdentifier},
Granularity, TimeRange,
};
use error_stack::ResultExt;
us... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/analytics/src/refunds/metrics/sessionized_metrics/refund_reason.rs | crate: analytics
use std::collections::HashSet;
use api_models::analytics::{
refunds::{RefundDimensions, RefundFilters, RefundMetricsBucketIdentifier},
Granularity, TimeRange,
};
use error_stack::Resu... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/analytics/src/refunds/distribution/sessionized_distribution/refund_reason.rs | crate: analytics
use api_models::analytics::{
refunds::{RefundDimensions, RefundFilters, RefundMetricsBucketIdentifier},
Granularity, RefundDistributionBody, TimeRange,
};
use error_stack::R... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/routes/payments/helpers.rs | crate: router
use error_stack::ResultExt;
use crate::{
core::errors::{self, RouterResult},
logger,
types::{self, api},
utils::{Encode, ValueExt},
};
pub fn populate_browser_info(
req: &actix_web::HttpRequest,
payl... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/services/pm_auth.rs | crate: router
use pm_auth::{
consts,
core::errors::ConnectorError,
types::{self as pm_auth_types, api::BoxedConnectorIntegration, PaymentAuthRouterData},
};
use crate::{
core::errors::{self},
logger,
routes::SessionState... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/euclid/src/frontend/dir/transformers.rs | crate: euclid
use crate::{dirval, dssa::types::AnalysisErrorType, enums as global_enums, frontend::dir};
fn into_dir_value(self) -> Result<dir::DirValue, AnalysisErrorType> {
<|fim_suffix|>
<|fim_middle|>
}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/compatibility/wrap.rs | crate: router
use std::{future::Future, sync::Arc, time::Instant};
use actix_web::{HttpRequest, HttpResponse, Responder};
use common_utils::errors::{CustomResult, ErrorSwitch};
use router_env::{instrument, tracing, Tag};
use serde::Serialize;... | ast_fragments |
# file: hyperswitch-encryption-service/Cargo.toml | crate: Cargo.toml
[dependencies]
cargo_metadata = "0.18.1"
error-stack = "0.4.1"
thiserror = "1.0.58"
aws-config = { version = "1.5.0" }
aws-sdk-kms = { version = "1.29.0" }
axum = { version = "0.7.5", features = ["macros"] }
axum-server = {git = "https://github.com/d... | ast_fragments |
# file: hyperswitch-encryption-service/Cargo.toml | crate: Cargo.toml
[package]
name = "cripta"
version = "0.1.0"
edition = "2021"
rust-version = "1.78"
| ast_fragments |
# file: hyperswitch-encryption-service/Cargo.toml | crate: Cargo.toml
[patch.crates-io]
tokio-rustls = { git = "https://github.com/rustls/tokio-rustls", rev = "3a153acec6c4d189eb5de501b2155b4484b8651b" } # main
# All the AES,AWS,Vault features will be used as a runtime feature flag rather than compiletime
| ast_fragments |
# file: hyperswitch-encryption-service/Cargo.toml | crate: Cargo.toml
[features]
aes = []
mtls = ["dep:rustls", "dep:rustls-pemfile", "axum-server/tls-rustls"]
aws = []
release = ["aws", "mtls", "postgres_ssl"]
vault = []
postgres_ssl = ["dep:rustls", "dep:rustls-native-certs", "dep:rustls-pemfile", "dep:tokio-postgres... | ast_fragments |
# file: hyperswitch-encryption-service/Cargo.toml | crate: Cargo.toml
[dev-dependencies]
criterion = "0.5.1"
rand = "0.8.5"
| ast_fragments |
# file: hyperswitch-encryption-service/Cargo.toml | crate: Cargo.toml
[build-dependencies]
cargo_metadata = "0.18.1"
| ast_fragments |
# file: hyperswitch-encryption-service/Cargo.toml | crate: Cargo.toml
[lints.rust]
unsafe_code = "forbid"
rust_2018_idioms = { level = "warn", priority = -1 }
| ast_fragments |
# file: hyperswitch-encryption-service/diesel.toml | crate: diesel.toml
[print_schema]
file = "src/schema.rs"
import_types = ["diesel::sql_types::*"]
generate_missing_sql_type_definitions = false
| ast_fragments |
# file: hyperswitch-encryption-service/config/development.toml | crate: config
[metrics_server]
host = "127.0.0.1"
port = 6128
| ast_fragments |
# file: hyperswitch-encryption-service/config/development.toml | crate: config
[server]
host = "127.0.0.1"
port = 5000
| ast_fragments |
# file: hyperswitch-encryption-service/config/development.toml | crate: config
[database]
user = "db_user"
password = "db_pass"
host = "localhost"
port = 5432
dbname = "encryption_db"
pool_size = 5
min_idle = 2
enable_ssl = false
| ast_fragments |
# file: hyperswitch-encryption-service/config/development.toml | crate: config
[multitenancy.tenants.public]
cache_prefix = "public"
schema = "public"
| ast_fragments |
# file: hyperswitch-encryption-service/config/development.toml | crate: config
[multitenancy.tenants.global]
cache_prefix = "global"
schema = "global"
| ast_fragments |
# file: hyperswitch-encryption-service/config/development.toml | crate: config
[log]
log_level = "debug"
log_format = "console"
| ast_fragments |
# file: hyperswitch-encryption-service/config/development.toml | crate: config
[secrets]
master_key = "6d761d32f1b14ef34cf016d726b29b02b5cfce92a8959f1bfb65995c8100925e"
access_token = "secret123"
hash_context = "keymanager:hyperswitch"
| ast_fragments |
# file: hyperswitch/Cargo.toml
[workspace.lints.clippy]
as_conversions = "warn"
cloned_instead_of_copied = "warn"
dbg_macro = "warn"
expect_used = "warn"
fn_params_excessive_bools = "warn"
index_refutable_slice = "warn"
indexing_slicing = "warn"
large_futures = "warn"
match_on_vec_items = "warn"
missing_panics_doc = "w... | ast_fragments |
# file: hyperswitch/Cargo.toml
[workspace]
resolver = "2"
members = ["crates/*"]
exclude = ["crates/openapi"]
package.edition = "2021"
package.rust-version = "1.80.0"
package.license = "Apache-2.0"
| ast_fragments |
# file: hyperswitch/Cargo.toml
[workspace.dependencies]
tracing = { version = "0.1.40" }
# Most of the lint configuration is based on https://github.com/EmbarkStudios/rust-ecosystem/blob/main/lints.toml
| ast_fragments |
# file: hyperswitch/Cargo.toml
[workspace.lints.rust]
unsafe_code = "forbid"
rust_2018_idioms = { level = "warn", priority = -1 } # Remove priority once https://github.com/rust-lang/rust-clippy/pull/12827 is available in stable clippy
unused_qualifications = "warn"
# missing_debug_implementations = "warn"
# missing_doc... | ast_fragments |
# file: hyperswitch/Cargo.toml
[profile.release]
strip = true
lto = true
codegen-units = 1
| ast_fragments |
# file: hyperswitch/diesel_v2.toml
[print_schema]
file = "crates/diesel_models/src/schema_v2.rs"
import_types = ["diesel::sql_types::*", "crate::enums::diesel_exports::*"]
generate_missing_sql_type_definitions = false
| ast_fragments |
# file: hyperswitch/cog.toml
[commit_types]
feat = { changelog_title = "<!-- 0 -->Features" }
fix = { changelog_title = "<!-- 1 -->Bug Fixes" }
perf = { changelog_title = "<!-- 2 -->Performance" }
refactor = { changelog_title = "<!-- 3 -->Refactors" }
test = { changelog_title = "<!-- 4 -->Testing" }
docs = { changelog_... | ast_fragments |
# file: hyperswitch/cog.toml
[changelog]
path = "CHANGELOG.md"
template = ".github/cocogitto-changelog-template"
remote = "github.com"
owner = "juspay"
repository = "hyperswitch"
| ast_fragments |
# file: hyperswitch/.deepsource.toml
[analyzers.meta]
msrv = "1.80.0"
| ast_fragments |
<|meta_start|><|file|> hyperswitch/package.json<|meta_end|>
{
"name": "hyperswitch",
"version": "0.0.0",
"private": true,
"description": "This is just to run automated newman tests for this service",
"devDependencies": {
"newman": "git+ssh://git@github.com:knutties/newman.git#7106e194c15d49d066fa09d9a2f18... | ast_fragments |
# file: hyperswitch/diesel.toml
[print_schema]
file = "crates/diesel_models/src/schema.rs"
import_types = ["diesel::sql_types::*", "crate::enums::diesel_exports::*"]
generate_missing_sql_type_definitions = false
patch_file="crates/diesel_models/drop_id.patch"
| ast_fragments |
# file: hyperswitch/.typos.toml
[default.extend-identifiers]
ABD = "ABD" # Aberdeenshire, UK ISO 3166-2 code
ACTIVITE = "ACTIVITE" # French translation of activity
AER = "AER" # An alias to Api Error Response
ANG = "ANG" # Netherlands Antillean guilder currency code
BA = "BA" # Bosnia and Herzegovina country code
bot... | ast_fragments |
# file: hyperswitch/.typos.toml
[default]
check-filename = true
extend-ignore-identifiers-re = [
"UE_[0-9]{3,4}", # Unified error codes
]
| ast_fragments |
# file: hyperswitch/.typos.toml
[default.extend-words]
aci = "aci" # Name of a connector
afe = "afe" # Commit id
ba = "ba" # ignore minor commit conversions
daa = "daa" # Commit id
deriver = "deriver"
ede = "ede" # ignore minor commit conversions
encrypter = "encrypter" # Used by the `ring` crate
guid = "guid" # global... | ast_fragments |
# file: hyperswitch/.typos.toml
[files]
extend-exclude = [
"config/redis.conf", # `typos` also checked "AKE" in the file, which is present as a quoted string
"openapi/open_api_spec.yaml", # no longer updated
"crates/router/src/utils/user/blocker_emails.txt", # this file contains various email domains
"C... | ast_fragments |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.