refactor(site): introduce Site trait and SITES registry

This commit is contained in:
2026-08-14 18:24:03 +08:00
parent 5e23916b40
commit bf4e6159b3
8 changed files with 237 additions and 101 deletions
+2 -1
View File
@@ -4,5 +4,6 @@ mod model;
pub use api::{PixivAPI, PixivError, disable, fetch, validate};
pub use interface::{
Illustration, PATTERN, cache_key, enabled, fetch_from_url, is_retryable, media_headers,
Illustration, PATTERN, PixivSite, cache_key, enabled, fetch_from_url, is_retryable,
media_headers,
};