Skip to content

feat: add CoreError type#16

Merged
wavekat-eason merged 2 commits intomainfrom
feat/core-error
Apr 17, 2026
Merged

feat: add CoreError type#16
wavekat-eason merged 2 commits intomainfrom
feat/core-error

Conversation

@wavekat-eason
Copy link
Copy Markdown
Contributor

Summary

  • Add CoreError with Io and Audio variants to replace leaked hound::Error in the public API
  • Manual Display/Error/From impls — no thiserror dependency, keeps zero required deps
  • From<hound::Error> gated behind #[cfg(feature = "wav")]

Test plan

  • cargo test --all-features — all 12 unit tests + 5 doc-tests pass
  • cargo clippy --workspace --all-features -- -D warnings — clean
  • cargo fmt --all --check — clean

🤖 Generated with Claude Code

write_wav and from_wav previously exposed hound::Error in the public
API, coupling downstream crates to an implementation detail. CoreError
wraps Io and Audio variants with manual Display/Error impls (no
thiserror) to keep zero required dependencies.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 17, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@wavekat-eason wavekat-eason merged commit a9bb6b7 into main Apr 17, 2026
3 checks passed
@wavekat-eason wavekat-eason deleted the feat/core-error branch April 17, 2026 09:42
@github-actions github-actions bot mentioned this pull request Apr 17, 2026
wavekat-eason pushed a commit that referenced this pull request Apr 17, 2026
## 🤖 New release

* `wavekat-core`: 0.0.6 -> 0.0.7 (✓ API compatible changes)

<details><summary><i><b>Changelog</b></i></summary><p>

<blockquote>

##
[0.0.7](v0.0.6...v0.0.7)
- 2026-04-17

### Added

- add CoreError type
([#16](#16))
</blockquote>


</p></details>

---
This PR was generated with
[release-plz](https://github.com/release-plz/release-plz/).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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