* chore(clippy): scope crate lint policy
Keep panic-on-error lints at application target roots and scope signal dependencies to Linux.
* docs(agents): define Rust backend architecture boundaries
Document which layer owns Rust capabilities, fallible inputs, background work, and crate validation.
* refactor(draft): type async publication conflicts
Return typed conflicts for async Draft edits. Release the lock and edit permit before converting the error, and exercise overlapping updates.
* refactor(logging): use typed logger errors
Expose crate-owned logger errors and preserve the underlying error sources.
* refactor(subscription): extract response decoding
Keep HTTP and persistence in the app. Decode response metadata and framing in the crate, and fall back when the server filename is invalid.
* 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.
* refactor(profile): separate subscription refresh and scheduling policy
Separate download and scheduling policy from the subscription use case while retaining the existing write path.
* refactor(subscription): decode deep links in the subscription crate
* refactor(profile): extract selected node recovery rules
* docs(agents): define dependencies between capability crates
* refactor(task): move retry primitives into the task crate
* refactor(backup): extract backup ZIP writing
* refactor(subscription): keep profile writes outside proxy fallback
* fix(profile): preserve delays for future update timestamps
* fix(subscription): preserve filenames from response headers and URL paths
* fix(subscription): separate deep link parameters from nested URLs
* refactor(profile): look up the refresh target once
* refactor(subscription): pass the proxy directly to each download
* refactor(profile): build companion options in one place
* refactor(profile): remove companions from the deleted profile
* style(profile): keep profile fields together
* refactor(profile): name index operations after what they change
* refactor(profile): call the core reload directly
* refactor(backup): move archive validation to the restore change
clash-verge-draft and clash-verge-logging did not inherit
[workspace.lints], so cargo's missing_lints_inheritance warned and the
strict clippy set never applied to them. Inheriting the lints surfaced
six errors, now fixed:
- draft: drop the data lock before cloning the snapshot and before
returning in with_data_modify (significant_drop_tightening)
- draft: require T: Send + Sync on acquire_data_modify_permit so its
future is Send (future_not_send)
- draft bench: scope an allow for the runtime-init panic
- logging: make Logger::new const (missing_const_for_fn)
- logging: return the builder directly from generate_file_log_writer,
which never failed (unnecessary_wraps)
The three unused-dependency warnings that remain under
--all-features are cfg artifacts, not dead deps: tauri-build is only
called when the clippy feature is off, tauri-plugin-devtools is
compiled out when tokio-trace is enabled alongside tauri-dev, and
clash-verge-logging in clash-verge-signal is only referenced by the
Linux-only body of that crate.
- Add Cargo.toml for workspace management, including dependencies and profiles.
- Create clash-verge-draft crate with basic structure, including a benchmark for Draft functionality.
- Implement Draft management with shared state and asynchronous modifications.
- Add tests for Draft functionality to ensure correctness.
- Create clash-verge-logging crate for logging utilities with structured log types and macros.
- Update src-tauri to use new crates and remove unnecessary configurations.
- Refactor existing code to utilize the new Draft and logging functionalities.