Skip to content

Replace arboard clipboard backend with copypasta#17

Merged
enijburg merged 1 commit into
mainfrom
codex/remove-arboard-and-add-copypasta
May 15, 2026
Merged

Replace arboard clipboard backend with copypasta#17
enijburg merged 1 commit into
mainfrom
codex/remove-arboard-and-add-copypasta

Conversation

@enijburg
Copy link
Copy Markdown
Owner

Motivation

  • Replace the arboard clipboard dependency with the cross-platform copypasta crate to simplify platform-specific transitive dependencies and unify clipboard API usage.

Description

  • Add copypasta = "0.10" to Cargo.toml and remove the direct arboard dependency from the project manifest.
  • Update src/main.rs to use copypasta::{ClipboardContext, ClipboardProvider} instead of arboard::Clipboard and change initialization from Clipboard::new() to ClipboardContext::new().
  • Adjust the clipboard helper copy_selection_to_clipboard to accept Option<ClipboardContext> and replace calls to set_text with set_contents to match the copypasta API.
  • Regenerate Cargo.lock, removing many platform-specific crates that were pulled in by the previous clipboard backend and updating windows-sys entries.

Testing

  • Ran cargo build which completed successfully.
  • Ran cargo test which completed successfully (no failing unit tests in the changed code paths).

Codex Task

@enijburg enijburg merged commit 085988c into main May 15, 2026
2 checks passed
@enijburg enijburg deleted the codex/remove-arboard-and-add-copypasta branch May 15, 2026 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant