chore: move authenticator into gateway crate (#5982)

* removed unused bits of authenticator config

* moved authenticator into gateway

* cleaned up imports

* clippy
This commit is contained in:
Jędrzej Stuczyński
2025-08-27 09:05:02 +01:00
committed by GitHub
parent 0a48fa6172
commit 724420f97c
24 changed files with 196 additions and 603 deletions
+1 -1
View File
@@ -7,6 +7,7 @@ use clap::crate_version;
use nym_gateway::node::{
LocalAuthenticatorOpts, LocalIpPacketRouterOpts, LocalNetworkRequesterOpts,
};
use nym_gateway::nym_authenticator;
// a temporary solution until further refactoring is made
fn ephemeral_gateway_config(config: &Config) -> nym_gateway::config::Config {
@@ -182,7 +183,6 @@ pub fn gateway_tasks_config(config: &Config) -> GatewayTasksConfig {
.authenticator
.to_common_client_paths(),
},
logging: config.logging,
},
custom_mixnet_path: None,
};
+1
View File
@@ -21,6 +21,7 @@ use nym_config::{
must_get_home, parse_urls, read_config_from_toml_file, save_formatted_config_to_file,
NymConfigTemplate, DEFAULT_CONFIG_DIR, DEFAULT_CONFIG_FILENAME, DEFAULT_DATA_DIR, NYM_DIR,
};
use nym_gateway::nym_authenticator;
use serde::{Deserialize, Serialize};
use std::env;
use std::fmt::{Display, Formatter};