Repository navigation
Conversation
set_clipboard -> set_clipboard_text, clipboard_string -> clipboard_text, clipboard_has_string -> clipboard_has_text, after Clipboard.writeText, readText and hasText. The old names stay as deprecated aliases. Agent: rust-maintainer Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Part of the naming pass before the 0.9.0 API freeze: Rust names for the clipboard's text functions now follow TSX (
Clipboard.writeText/readText/hasText), the same way #3890 alignedNavStack,NavPageandDialog. Rust already saystextforClipboardItem.textandimagefor the image functions; only the text trio saidstring, and the write had no type at all next toset_clipboard_itemandset_clipboard_image.set_clipboard(text)set_clipboard_text(text)Clipboard.writeTextclipboard_string()clipboard_text()Clipboard.readTextclipboard_has_string()clipboard_has_text()Clipboard.hasTextModuleContext::set_clipboardModuleContext::set_clipboard_textClipboard.writeText#[deprecated(since = "0.9.0")]wrappers, re-exported from the prelude, so existing apps compile with a warning that names the replacement.services::*functions,Headless::set_clipboard(test fixture that sets the clipboard's contents) and the platform crates' ownsystem::set_clipboard.Release notes
set_clipboard,clipboard_stringandclipboard_has_stringare renamedset_clipboard_text,clipboard_textandclipboard_has_text, after TSX'sClipboard.writeText,readTextandhasText. The old names still work and warn until a later release removes them.Testing
cargo check -p nsh-core -p nsh-base -p nsh-testing -p nsh-engine --all-targets: no warningscargo test -p nsh-core --lib clipboard: 15 passedcargo test -p nsh-base --test base data_table: 32 passedcargo test -p nsh-testing --lib clipboard: 1 passedsystem::set_clipboard, untouched); CI covers them🤖 Noop (rust-maintainer) · Opus 5.5 acting for @huacnlee
🤖 Generated with Claude Code