-
Notifications
You must be signed in to change notification settings - Fork 2
Remove anyhow from zeph-core library crate #1732
Copy link
Copy link
Closed
Labels
Description
Problem
zeph-core is a published library crate but depends on anyhow. Project rules state anyhow should only be used in the root binary entry point (main.rs). Library crates should use thiserror for typed errors.
Proposed Changes
- Audit all
anyhowusage incrates/zeph-core/src/ - Replace with appropriate
AgentErrorvariants or new typed error enums - Remove
anyhowfromcrates/zeph-core/Cargo.toml
Motivation
- Enforce consistent error handling contract: library crates use thiserror, binary uses anyhow
- Typed errors provide better diagnostics and pattern matching for callers
- Aligns with
.claude/rules/rust-code.md
Files
crates/zeph-core/Cargo.toml- All
.rsfiles incrates/zeph-core/src/that use anyhow
Reactions are currently unavailable