Skip to content

refactor: address rust-code-reviewer findings - #19

Merged
pranc1ngpegasus merged 6 commits into
mainfrom
refactor/rust-code-review-cleanups
May 28, 2026
Merged

refactor: address rust-code-reviewer findings#19
pranc1ngpegasus merged 6 commits into
mainfrom
refactor/rust-code-review-cleanups

Conversation

@pranc1ngpegasus

Copy link
Copy Markdown
Member

Summary

  • Unify SourceLabel by re-exporting wisp_core::SourceLabel from wisp-audiokit, removing the duplicate enum
  • Tighten FFI callback handling: match MIC/SYSTEM explicitly and discard unknown source values instead of defaulting to System
  • Strengthen ID newtypes (SessionId, SegmentId) with private inner fields and From<i64>
  • Simplify storage row mapping (row_to_segment no longer uses double-Result; Sessions::list uses collect)
  • Small desktop/storage ergonomics: VecDeque log ring buffer, Debug impls, FromStr for SourceLabel, remove redundant format_err

Test plan

  • cargo clippy --workspace --all-targets
  • cargo test --workspace (30 tests)

Made with Cursor

pranc1ngpegasus and others added 6 commits May 28, 2026 22:05
Unify SourceLabel through wisp-core, tighten FFI source mapping, and clean up storage/desktop ergonomics surfaced by the review loop.

Co-authored-by: Cursor <cursoragent@cursor.com>
GitHub Actions failed before cargo fmt/clippy because the locked
flake-utils tarball returned HTTP 404. Inline eachDefaultSystem instead.

Co-authored-by: Cursor <cursoragent@cursor.com>
Run rustc/cargo via `nix develop .#ci` so cache keys match the Nix
toolchain. macOS workflow uses the same ci devShell for consistency.

Co-authored-by: Cursor <cursoragent@cursor.com>
Replace magic-nix-cache with flakehub-cache-action and grant
id-token: write so GitHub OIDC can authenticate to FlakeHub Cache.

Co-authored-by: Cursor <cursoragent@cursor.com>
Linux CI builds wisp-desktop via GPUI; audiokit only exported macOS-gated
types. Stub the public API so the workspace compiles everywhere.

Co-authored-by: Cursor <cursoragent@cursor.com>
GPUI links against X11 libraries unavailable in the ci devShell.
The app targets macOS only; check it on macos runners instead.

Co-authored-by: Cursor <cursoragent@cursor.com>
@pranc1ngpegasus
pranc1ngpegasus merged commit e9b448d into main May 28, 2026
4 checks passed
@pranc1ngpegasus
pranc1ngpegasus deleted the refactor/rust-code-review-cleanups branch May 28, 2026 13:41
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