170 Commits

Author SHA1 Message Date
LongYinan
32efe71bbd Allow windows-sys 0.60 2025-08-20 20:41:16 +03:00
Ivan Molodetskikh
e551d8ed97 Bump version to 0.9.2 v0.9.2 2025-03-14 12:41:49 +03:00
Ivan Molodetskikh
741dea61d8 Restore changed public error structs for semver compat 2025-03-14 12:41:49 +03:00
dependabot[bot]
85d47ef095 Bump the rust-dependencies group with 2 updates
Bumps the rust-dependencies group with 2 updates: [thiserror](https://github.com/dtolnay/thiserror) and [anyhow](https://github.com/dtolnay/anyhow).


Updates `thiserror` from 2.0.11 to 2.0.12
- [Release notes](https://github.com/dtolnay/thiserror/releases)
- [Commits](https://github.com/dtolnay/thiserror/compare/2.0.11...2.0.12)

Updates `anyhow` from 1.0.96 to 1.0.97
- [Release notes](https://github.com/dtolnay/anyhow/releases)
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.96...1.0.97)

---
updated-dependencies:
- dependency-name: thiserror
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: rust-dependencies
- dependency-name: anyhow
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: rust-dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-03 03:35:01 -08:00
Ivan Molodetskikh
e977111bea Add support for ext-data-control
Since the protocol is more or less exactly the same as wlr-data-control, I
added some wrappers and macros to re-use the same existing code for both
protocols.
2025-02-27 22:37:01 -08:00
Ivan Molodetskikh
148d6c70cd Add dependabot.yml 2025-02-25 09:00:20 +03:00
Ivan Molodetskikh
c39680f1c2 Upgrade dependencies 2025-02-25 08:58:09 +03:00
dependabot[bot]
1901c52b61 Bump hashbrown from 0.15.0 to 0.15.2
Bumps [hashbrown](https://github.com/rust-lang/hashbrown) from 0.15.0 to 0.15.2.
- [Changelog](https://github.com/rust-lang/hashbrown/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/hashbrown/commits)

---
updated-dependencies:
- dependency-name: hashbrown
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-04 10:32:39 -08:00
Ivan Molodetskikh
3370aeaa51 Bump version to 0.9.1 v0.9.1 2024-10-06 09:56:20 +03:00
Ivan Molodetskikh
28b0ca4ce6 Fix ! fallback warning 2024-10-06 09:54:38 +03:00
Ivan Molodetskikh
debfcb71fd Upgrade dependencies 2024-10-06 09:47:37 +03:00
Ivan Molodetskikh
370f971e26 ci: Update things 2024-08-01 10:28:53 +03:00
Ivan Molodetskikh
b8d0cf63a1 Mention man page and completions in CHANGELOG 2024-08-01 10:20:08 +03:00
Donovan Glover
900202b232 feat: add man pages and shell completions
Auto-generated with clap.
2024-08-01 10:17:48 +03:00
Donovan Glover
08d1634aff refactor: move clap structs into separate files
Lets us avoid unnecessary build dependencies.
2024-08-01 10:17:48 +03:00
Donovan Glover
0521c53640 fix(wl-paste): make conflicts_with work properly 2024-08-01 10:17:48 +03:00
Ivan Molodetskikh
61d7b10b0e Bump version to 0.9.0 v0.9.0 2024-06-19 18:10:35 +03:00
Ivan Molodetskikh
5b068afbaf Upgrade dependencies 2024-06-19 18:09:48 +03:00
Ivan Molodetskikh
e72558eba4 Replace structopt with clap 2024-03-07 13:54:34 +04:00
Ivan Molodetskikh
ef75f3242f Remove derive-new from dependencies
It was unused.
2024-03-07 13:34:56 +04:00
Ivan Molodetskikh
2aa605a527 Clear O_NONBLOCK
Fixes 7e4f56d11, apparently io::copy() can't deal with nonblocking fds.
2024-03-07 13:33:57 +04:00
Ivan Molodetskikh
e81562a06b Replace nix with rustix 2024-03-07 13:22:47 +04:00
Ivan Molodetskikh
7e4f56d117 Remove utils::copy_data() 2024-03-07 13:11:36 +04:00
Ivan Molodetskikh
cc4364e0e0 Use workspace fields and dependencies 2024-03-07 10:26:49 +04:00
Ivan Molodetskikh
e134216fd8 Update CHANGELOG v0.8.1 2024-03-07 10:05:59 +04:00
Ivan Molodetskikh
1e24432a1f Bump version to 0.8.1 2024-03-07 10:05:46 +04:00
Ivan Molodetskikh
313c0b8437 Upgrade depencendies 2024-03-07 09:59:30 +04:00
Ivan Molodetskikh
10b35fb269 Upgrade dependencies 2024-02-12 14:05:40 +04:00
Ivan Molodetskikh
be851408e0 Add Cargo.lock to the repository 2023-11-27 12:23:17 +04:00
Ivan Molodetskikh
f73abbf8fc Updade CHANGELOG v0.8.0 2023-10-03 07:03:07 +04:00
Ivan Molodetskikh
2898fa2c10 CI: Update things 2023-10-02 21:14:06 +04:00
Ivan Molodetskikh
3e4530aa61 Bump edition to 2021 2023-10-02 21:02:58 +04:00
Ivan Molodetskikh
4d113eb617 Update dependencies 2023-10-02 20:47:43 +04:00
Ivan Molodetskikh
080e1fc1c1 Fix formatting 2023-08-01 06:29:05 +04:00
Ivan Molodetskikh
71b6df79ff Rewrite for wayland-rs 0.30
wayland-rs 0.30 is a major API redesign. This commit ports
wl-clipboard-rs to use it. As a bonus, it fixes
https://github.com/YaLTeR/wl-clipboard-rs/issues/1: the tests are now
fully robust†. As an extra bonus, it adds several randomized
property-based tests.

Since this is a pretty major rewrite, I also took this opportunity to
move to a more standard rustfmt config (Block indent style, default max
width).

Resolves https://github.com/YaLTeR/wl-clipboard-rs/issues/36.

†: the tests can currently fail due to a race condition in wayland-rs,
which will be automatically fixed when
https://github.com/Smithay/wayland-rs/pull/632 is merged.
2023-06-24 00:25:26 +04:00
Ivan Molodetskikh
9c5b5f9511 Mention omit additional text mime types in the changelog 2023-06-24 00:12:39 +04:00
Ivan Molodetskikh
0da33c6a07 Bump version to 0.8.0 2023-06-24 00:11:53 +04:00
Ivan Molodetskikh
5a44ff577a Update non-wayland dependencies 2023-06-13 18:01:00 -07:00
OverShifted
5a93e1ad92 Make additional text mime types optional (#31)
* Make additional text mime types optional

* Rename offer_additional_text_mimes to omit_additional_text_mime_types + A few other fixes

* Remove redundant comment

* Fix indentation

* Fix formatting
2023-01-15 09:50:44 +03:00
Ivan Molodetskikh
e87a04d531 Bump version to 0.7.0 v0.7.0 2022-09-23 19:03:15 -07:00
Ivan Molodetskikh
6cba6ec36d Update CHANGELOG 2022-09-23 19:03:04 -07:00
Marijn Suijten
6322d2df72 Replace derive_more with thiserror
Commit d9829ccb ("Remove failure dependency") made the case that
`thiserror` could be used as a replacement for the `failure` crate just
as well, but opted to use `derive_more` as it was "already used" by
`wl-clipboard-rs`.  Checking the repo before that commit reveals that
this was an unused dependency lingering in `Cargo.toml`, without any
other references to `derive_more`.

Furthermore `derive_more` is an extremely heavy crate that is causing a
multitude of issues for us ([such as inordinate compile times]) which is
why we deter it from our dependency graph altogether.

[such as inordinate compile times]: https://github.com/gfx-rs/rspirv/pull/218#issue-1039357885
2022-09-20 21:12:35 -07:00
Marijn Suijten
777924d536 Bump nix dependency to 0.24
Even though `nix 0.25` is already out, all Wayland crates are still on
`0.24` and having `wl-clipboard-rs` match saves duplicate dependencies:

    $ cargo tree -i nix
    nix v0.24.2
    ├── wayland-client v0.29.5
    │   ├── wayland-protocols v0.29.5
    │   │   └── wl-clipboard-rs v0.6.0 (./wl-clipboard-rs)
    │   │   [dev-dependencies]
    │   │   └── wl-clipboard-rs v0.6.0 (./wl-clipboard-rs)
    │   └── wl-clipboard-rs v0.6.0 (./wl-clipboard-rs)
    ├── wayland-commons v0.29.5
    │   ├── wayland-client v0.29.5 (*)
    │   ├── wayland-protocols v0.29.5 (*)
    │   └── wayland-server v0.29.5
    │       └── wayland-protocols v0.29.5 (*)
    │       [dev-dependencies]
    │       └── wl-clipboard-rs v0.6.0 (./wl-clipboard-rs)
    ├── wayland-server v0.29.5 (*)
    └── wl-clipboard-rs v0.6.0 (./wl-clipboard-rs)
2022-09-20 21:10:23 -07:00
Marijn Suijten
dbe5133f5f Demote debug logs from info to trace
Info is a tad too verbose for debug log messages; prevent having to
filter them out by the end user in a typical `log` setup by turning all
debug messages into `trace!` logs.
2022-09-20 21:10:06 -07:00
Drew Nutter
78a6f3ec9d wait for copy_data to avoid zombie cat processes 2022-07-29 19:23:02 -07:00
Ivan Molodetskikh
6af0e95548 Bump version to 0.6.0 v0.6.0 2022-03-20 12:14:09 +03:00
Ivan Molodetskikh
a37f4e58b7 tools: Add README and required Cargo.toml fields 2022-03-20 12:09:52 +03:00
Ivan Molodetskikh
36e7077627 Update CHANGELOG 2022-03-20 12:03:00 +03:00
Ivan Molodetskikh
6ad53edcef tools: Replace stdin/out with /dev/null on fork
Mirrors the fix from
aa4633b894.

Fixes the hang of a pipeline like `wl-copy hello | cat`.
2022-03-20 12:03:00 +03:00
Ivan Molodetskikh
2d85e0bbac tools: Upgrade dependencies 2022-03-20 12:03:00 +03:00