refactor(profile): extract profile models and index rules

Move profile models and index rules into the crate, preserving serialization and returning a typed missing-profile error.
This commit is contained in:
Tunglies
2026-12-02 02:10:09 +08:00
committed by GitHub
parent 0605236489
commit 9de413db1e
19 changed files with 1018 additions and 856 deletions
+3 -1
View File
@@ -12,7 +12,9 @@ pub(crate) mod snapshot;
mod verge;
pub(crate) use self::config::Config;
pub use self::{clash::*, encrypt::*, mixed_port::*, prfitem::*, profiles::*, verge::*};
pub(crate) use self::prfitem::{fetch_remote_profile, read_profile_item_file};
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) => {