{"id":18454293,"url":"https://github.com/1password/arboard","last_synced_at":"2025-05-13T19:04:17.282Z","repository":{"id":37644910,"uuid":"277085996","full_name":"1Password/arboard","owner":"1Password","description":"A clipboard for Rust","archived":false,"fork":false,"pushed_at":"2025-04-03T17:43:56.000Z","size":432,"stargazers_count":753,"open_issues_count":29,"forks_count":83,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-05-08T05:34:33.973Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/1Password.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE-APACHE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-07-04T10:15:12.000Z","updated_at":"2025-05-06T17:06:55.000Z","dependencies_parsed_at":"2023-12-29T21:53:21.341Z","dependency_job_id":"596641d1-93e4-467d-95c2-769307053640","html_url":"https://github.com/1Password/arboard","commit_stats":{"total_commits":211,"total_committers":47,"mean_commits":4.48936170212766,"dds":0.6966824644549763,"last_synced_commit":"efedfb9e2058eaa97073bda49f1b7deae762c2fb"},"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1Password%2Farboard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1Password%2Farboard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1Password%2Farboard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1Password%2Farboard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/1Password","download_url":"https://codeload.github.com/1Password/arboard/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254010798,"owners_count":21998993,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T08:03:34.860Z","updated_at":"2025-05-13T19:04:17.259Z","avatar_url":"https://github.com/1Password.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Arboard (Arthur's Clipboard)\n\n[![Latest version](https://img.shields.io/crates/v/arboard?color=mediumvioletred)](https://crates.io/crates/arboard)\n[![Documentation](https://docs.rs/arboard/badge.svg)](https://docs.rs/arboard)\n![MSRV](https://img.shields.io/badge/rustc-1.71.0+-blue.svg)\n\n## General\n\nThis is a cross-platform library for interacting with the clipboard. It allows\nto copy and paste both text and image data in a platform independent way on\nLinux, Mac, and Windows.\n\n## GNU/Linux\n\nThe GNU/Linux implementation uses the X protocol by default for managing the\nclipboard but *fear not*  because Wayland works with the X11 protocol just as\nwell. Furthermore this implementation uses the Clipboard selection (as opposed\nto the primary selection) and it sends the data to the clipboard manager when\nthe application exits so that the data placed onto the clipboard with your\napplication remains to be available after exiting.\n\nThere's also an optional wayland data control backend through the\n`wl-clipboard-rs` crate. This can be enabled using the `wayland-data-control`\nfeature. When enabled this will be prioritized over the X11 backend, but if the\ninitialization fails, the implementation falls back to using the X11 protocol\nautomatically. Note that in my tests the wayland backend did not keep the\nclipboard contents after the process exited. (Although neither did the X11\nbackend on my Wayland setup).\n\n## Example\n\n```rust\nuse arboard::Clipboard;\n\nfn main() {\n    let mut clipboard = Clipboard::new().unwrap();\n    println!(\"Clipboard text was: {}\", clipboard.get_text().unwrap());\n\n    let the_string = \"Hello, world!\";\n    clipboard.set_text(the_string).unwrap();\n    println!(\"But now the clipboard text should be: \\\"{}\\\"\", the_string);\n}\n```\n\n## Yet another clipboard crate\n\nThis is a fork of `rust-clipboard`. The reason for forking instead of making a\nPR is that `rust-clipboard` is not being maintained any more. Furthermore note\nthat the API of this crate is considerably different from that of\n`rust-clipboard`. There are already a ton of clipboard crates out there which\nis a bit unfortunate; I don't know why this is happening but while it is, we\nmight as well just start naming the clipboard crates after ourselves. This one\nis arboard which stands for Artur's clipboard.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1password%2Farboard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F1password%2Farboard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1password%2Farboard/lists"}