mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-12-03 20:30:11 +08:00
36 lines
933 B
Rust
36 lines
933 B
Rust
mod clash;
|
|
#[allow(clippy::module_inception)]
|
|
mod config;
|
|
pub(crate) mod dns;
|
|
mod encrypt;
|
|
pub(crate) mod mihomo_yaml;
|
|
mod mixed_port;
|
|
mod port;
|
|
mod prfitem;
|
|
pub(crate) mod profile_storage;
|
|
pub mod profiles;
|
|
pub mod runtime;
|
|
pub(crate) mod snapshot;
|
|
mod verge;
|
|
|
|
pub(crate) use self::config::Config;
|
|
pub(crate) use self::prfitem::{
|
|
build_remote_profile, download_subscription, read_profile_item_file, subscription_proxy,
|
|
};
|
|
pub use self::{clash::*, encrypt::*, mixed_port::*, profiles::*, verge::*};
|
|
pub use clash_verge_profile::{PrfExtra, PrfItem, PrfOption, PrfSelected};
|
|
|
|
macro_rules! patch_opt_field {
|
|
($lv:expr, $rv:expr, $key:tt) => {
|
|
if ($rv.$key).is_some() {
|
|
$lv.$key = $rv.$key.clone();
|
|
}
|
|
};
|
|
}
|
|
pub(crate) use patch_opt_field;
|
|
|
|
pub const DEFAULT_PAC: &str = r#"function FindProxyForURL(url, host) {
|
|
return "PROXY 127.0.0.1:%mixed-port%; SOCKS5 127.0.0.1:%mixed-port%; DIRECT;";
|
|
}
|
|
"#;
|