36 Commits

Author SHA1 Message Date
Ivan Molodetskikh
e551d8ed97 Bump version to 0.9.2 2025-03-14 12:41:49 +03:00
Ivan Molodetskikh
3370aeaa51 Bump version to 0.9.1 2024-10-06 09:56:20 +03:00
Ivan Molodetskikh
b8d0cf63a1 Mention man page and completions in CHANGELOG 2024-08-01 10:20:08 +03:00
Ivan Molodetskikh
61d7b10b0e Bump version to 0.9.0 2024-06-19 18:10:35 +03:00
Ivan Molodetskikh
e72558eba4 Replace structopt with clap 2024-03-07 13:54:34 +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
e134216fd8 Update CHANGELOG 2024-03-07 10:05:59 +04:00
Ivan Molodetskikh
f73abbf8fc Updade CHANGELOG 2023-10-03 07:03:07 +04:00
Ivan Molodetskikh
4d113eb617 Update dependencies 2023-10-02 20:47:43 +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
6cba6ec36d Update CHANGELOG 2022-09-23 19:03:04 -07:00
Ivan Molodetskikh
6af0e95548 Bump version to 0.6.0 2022-03-20 12:14:09 +03:00
Ivan Molodetskikh
36e7077627 Update CHANGELOG 2022-03-20 12:03:00 +03:00
Ivan Molodetskikh
4336d9a731 Rename wl-clipboard-tools to wl-clipboard-rs-tools
Prepare for publication as a separate crate.
2022-03-20 12:03:00 +03:00
Ivan Molodetskikh
09ecc2832f CHANGELOG: Mention failure removal 2022-03-20 12:03:00 +03:00
Ivan Molodetskikh
3756a4df3d tools: Replace underscores back with dashes 2022-03-20 12:03:00 +03:00
Ivan Molodetskikh
b4555d70c1 CHANGELOG: Mention of dash-underscore replacement 2022-03-20 12:03:00 +03:00
Ivan Molodetskikh
c278c5bf13 Bump version to 0.5.0 2022-03-13 19:30:31 +03:00
Ivan Molodetskikh
62cbe0ffff CHANGELOG: Fix v0.3.1 heading 2022-03-13 19:16:11 +03:00
mike7b4
381555a459 Split binaries from the main crate. (Closes: issue#15) (#19)
* Split binaries from the main crate. (Closes: issue#15)

The binaries is put in a new crate wl-clipboard-tools.

* Update .travis.yml

Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>

* Fix CR comments

* More CR fixes

* Some more CR fixes

* revert line

Co-authored-by: Mikael Hermansson <mike7b4@protonmail.com>
Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>
2022-01-15 20:44:26 +03:00
Ivan Molodetskikh
2f21a9220c Bump version to 0.4.1 2020-09-01 19:45:13 +03:00
Ivan Molodetskikh
751d0063af Bump version to 0.4.0 2019-12-13 22:10:44 +03:00
Ivan Molodetskikh
bfc89c61db (#6): Make copy use a thread instead of forking
Things wl-clipboard-rs did past-fork were not async-signal-safe, which
means they were unsafe in multi-threaded programs. It also caused some
suprising behavior, like #6. In any case, forking is better left off to
the actual binaries, so this commit switches the background copying
support to use a regular thread and be more explicit.
2019-12-10 11:50:41 +03:00
Ivan Molodetskikh
84dbe308d0 Switch wl-copy and wl-clip to prepare_copy() 2019-12-10 11:50:41 +03:00
Ivan Molodetskikh
932994c929 Change copy::Source to own its value
We're switching to using a thread instead of forking, which means the
values passed to copy can outlive the copy call, so borrowed values
cannot be used.
2019-12-10 11:50:38 +03:00
Ivan Molodetskikh
939926e32d Bump version to 0.3.1 2019-11-27 20:51:20 +03:00
Sergey Bugaev
f4cda13fdf Fix ignoring wl_seat's older than v6
The version we actually need is v2, as we only care about the
name event. Technically, even this is not completely correct,
as we can still use a v1 seat seat perfectly well as long as
we're not trying to find a seat with a specific name, but v2
is sufficiently old to be considered mandatory with reason.

v2 is also the version wl-clipboard requires, for the same
reason.

This also adds a unit test for accepting a v2 seat.

Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
2019-10-13 22:35:16 +03:00
Ivan Molodetskikh
4aea3c91c1 Bump version to 0.3.0 2019-04-04 17:25:25 +03:00
Ivan Molodetskikh
5aa9e6eaee (#3): Add utils::is_primary_selection_supported()
Closes #3.
2019-04-04 17:25:25 +03:00
Ivan Molodetskikh
c0c3768ece wl-copy: add --regular 2019-03-02 11:46:33 +03:00
Ivan Molodetskikh
06b8f035ad copy: add ClipboardType::Both
Copies into both the regular and the primary clipboard at the same time.
2019-03-02 11:40:37 +03:00
Ivan Molodetskikh
68590789bb Move ClipboardType into copy:: and paste:: 2019-02-22 19:20:11 +03:00
Ivan Molodetskikh
ee298eb53d Bump version to 0.2.0 2019-02-17 10:33:18 +03:00
Ivan Molodetskikh
871f03a717 Added CHANGELOG.md 2019-02-17 10:23:28 +03:00