Skip to content

refactor(daemon): reduce crate:: refs 19→9 via use consolidation#10

Merged
juice094 merged 1 commit into
mainfrom
fix/daemon-coupling-cleanup
May 11, 2026
Merged

refactor(daemon): reduce crate:: refs 19→9 via use consolidation#10
juice094 merged 1 commit into
mainfrom
fix/daemon-coupling-cleanup

Conversation

@juice094
Copy link
Copy Markdown
Owner

daemon.rs 耦合治理:

  • 集中导入外部模块(Config, registry, health, knowledge_engine, discovery_engine, digest, i18n)
  • 消除 10 个行内 crate:: 全路径引用
  • crate:: 引用: 19 → 9 (-53%)

验证: cargo check 0 errors; clippy 0 warnings; test 503 passed / 0 failed

**问题**: daemon.rs 有 19 个行内 crate:: 引用,耦合度偏高。

**方案**:
集中导入外部模块,消除行内全路径引用:
-  →
-
-
-
-
-
-

**效果**:
- daemon.rs crate:: 引用: 19 → 9 (-53%)
- 零运行时行为变更

验证:
- cargo check --workspace: 0 errors
- cargo clippy --workspace --all-targets: 0 warnings
- cargo test --workspace: 503 passed / 0 failed / 4 ignored
@juice094 juice094 merged commit 23132ec into main May 11, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant