Commit graph

342 commits

Author SHA1 Message Date
ComplexSpaces
223f4efc7a Return a conversion failure error when CGImageCreate fails
Some checks failed
Test / rustfmt (push) Failing after 3s
Test / test (windows-latest) (push) Has been skipped
Test / miri (windows-latest) (push) Has been skipped
Test / test (macos-latest) (push) Has been skipped
Test / clippy (macos-latest, 1.71.0) (push) Has been skipped
Test / clippy (macos-latest, stable) (push) Has been skipped
Test / clippy (ubuntu-latest, 1.71.0) (push) Has been skipped
Test / clippy (ubuntu-latest, stable) (push) Has been skipped
Test / clippy (windows-latest, 1.71.0) (push) Has been skipped
Test / clippy (windows-latest, stable) (push) Has been skipped
Test / semver (push) Has been cancelled
2025-09-12 01:33:01 -06:00
ComplexSpaces
a3750c79a5 Release 3.6.1
Some checks failed
Test / semver (push) Has been cancelled
Test / rustfmt (push) Failing after 3s
Test / clippy (macos-latest, 1.71.0) (push) Has been skipped
Test / clippy (macos-latest, stable) (push) Has been skipped
Test / miri (windows-latest) (push) Has been skipped
Test / clippy (ubuntu-latest, 1.71.0) (push) Has been skipped
Test / clippy (ubuntu-latest, stable) (push) Has been skipped
Test / clippy (windows-latest, 1.71.0) (push) Has been skipped
Test / clippy (windows-latest, stable) (push) Has been skipped
Test / test (macos-latest) (push) Has been skipped
Test / test (windows-latest) (push) Has been skipped
2025-08-23 15:05:17 -05:00
ComplexSpaces
edcce2cd6b Remove CHANGELOG.md in favor of GitHub releases
All existing data here already existed or has been copied to a GitHub release
2025-08-23 15:05:17 -05:00
ComplexSpaces
26a96a6199 Bump windows-sys semver range to support 0.60.x
Some checks failed
Test / rustfmt (push) Failing after 3s
Test / clippy (macos-latest, 1.71.0) (push) Has been skipped
Test / clippy (macos-latest, stable) (push) Has been skipped
Test / clippy (ubuntu-latest, 1.71.0) (push) Has been skipped
Test / clippy (ubuntu-latest, stable) (push) Has been skipped
Test / clippy (windows-latest, 1.71.0) (push) Has been skipped
Test / clippy (windows-latest, stable) (push) Has been skipped
Test / test (macos-latest) (push) Has been skipped
Test / test (windows-latest) (push) Has been skipped
Test / miri (windows-latest) (push) Has been skipped
Test / semver (push) Has been cancelled
2025-08-21 15:29:12 -05:00
ComplexSpaces
7bdd1c1175 Update errno for windows-sys 0.60 flexibility 2025-08-21 15:29:12 -05:00
wcassels
55c0b260c4 read/write_unaligned rather than using manual field offsets
Some checks failed
Test / rustfmt (push) Failing after 12s
Test / clippy (macos-latest, 1.71.0) (push) Has been skipped
Test / clippy (macos-latest, stable) (push) Has been skipped
Test / clippy (ubuntu-latest, 1.71.0) (push) Has been skipped
Test / clippy (ubuntu-latest, stable) (push) Has been skipped
Test / clippy (windows-latest, 1.71.0) (push) Has been skipped
Test / clippy (windows-latest, stable) (push) Has been skipped
Test / test (macos-latest) (push) Has been skipped
Test / test (windows-latest) (push) Has been skipped
Test / miri (windows-latest) (push) Has been skipped
Test / semver (push) Has been cancelled
2025-08-20 23:16:28 -05:00
Will Cassels
ff15a093d6 Return conversionFailure instead of adhoc errors 2025-08-20 23:16:28 -05:00
wcassels
16ef18113f Implement fetching PNG on Windows and prefer over DIB when available 2025-08-20 23:16:28 -05:00
wcassels
a3c64f9a93 Add a couple of end-to-end DIBV5 tests 2025-08-20 23:16:28 -05:00
wcassels
e6008eaa91 Use image for reading DIB and try to make it do the right thing for 32-bit BI_RGBs 2025-08-20 23:16:28 -05:00
Gae24
17ef05ce13
add file_list to Set interface (#181)
Some checks failed
Test / rustfmt (push) Failing after 3s
Test / clippy (macos-latest, 1.71.0) (push) Has been skipped
Test / clippy (macos-latest, stable) (push) Has been skipped
Test / clippy (ubuntu-latest, 1.71.0) (push) Has been skipped
Test / clippy (ubuntu-latest, stable) (push) Has been skipped
Test / clippy (windows-latest, 1.71.0) (push) Has been skipped
Test / clippy (windows-latest, stable) (push) Has been skipped
Test / test (macos-latest) (push) Has been skipped
Test / test (windows-latest) (push) Has been skipped
Test / miri (windows-latest) (push) Has been skipped
Test / semver (push) Has been cancelled
2025-08-13 08:30:34 -06:00
ComplexSpaces
ca2e80c409 Update Clippy lints for Rust 1.89 2025-08-13 09:24:29 -05:00
Gae24
6eed118532 wayland: extract common code in helper function
Some checks failed
Test / rustfmt (push) Failing after 3s
Test / clippy (macos-latest, 1.71.0) (push) Has been skipped
Test / clippy (macos-latest, stable) (push) Has been skipped
Test / clippy (ubuntu-latest, 1.71.0) (push) Has been skipped
Test / clippy (ubuntu-latest, stable) (push) Has been skipped
Test / clippy (windows-latest, 1.71.0) (push) Has been skipped
Test / clippy (windows-latest, stable) (push) Has been skipped
Test / test (macos-latest) (push) Has been skipped
Test / test (windows-latest) (push) Has been skipped
Test / miri (windows-latest) (push) Has been skipped
Test / semver (push) Has been cancelled
2025-08-02 10:38:34 -05:00
Gae24
a31adf444d fix: avoid checking if data is utf8 compliant inside file list getter 2025-08-02 10:38:34 -05:00
Agathe
d48f5ff0c7
src/common.rs: fix typo "an other" -> "another" (#196)
Some checks failed
Test / rustfmt (push) Failing after 2s
Test / clippy (macos-latest, 1.71.0) (push) Has been skipped
Test / clippy (macos-latest, stable) (push) Has been skipped
Test / clippy (ubuntu-latest, 1.71.0) (push) Has been skipped
Test / clippy (ubuntu-latest, stable) (push) Has been skipped
Test / clippy (windows-latest, 1.71.0) (push) Has been skipped
Test / clippy (windows-latest, stable) (push) Has been skipped
Test / test (macos-latest) (push) Has been skipped
Test / test (windows-latest) (push) Has been skipped
Test / miri (windows-latest) (push) Has been skipped
Test / semver (push) Has been cancelled
Found by lintian (spelling-error-in-binary).
2025-07-11 09:37:48 -06:00
ComplexSpaces
90f8f526f4 Fix grammar and typos in README
Some checks failed
Test / rustfmt (push) Failing after 2s
Test / clippy (macos-latest, 1.71.0) (push) Has been skipped
Test / clippy (macos-latest, stable) (push) Has been skipped
Test / clippy (ubuntu-latest, 1.71.0) (push) Has been skipped
Test / clippy (ubuntu-latest, stable) (push) Has been skipped
Test / clippy (windows-latest, 1.71.0) (push) Has been skipped
Test / clippy (windows-latest, stable) (push) Has been skipped
Test / test (macos-latest) (push) Has been skipped
Test / test (windows-latest) (push) Has been skipped
Test / miri (windows-latest) (push) Has been skipped
Test / semver (push) Has been cancelled
2025-06-29 01:52:18 +10:00
ComplexSpaces
4f9bff86dc Release 3.6.0 2025-06-28 09:40:46 +10:00
ComplexSpaces
380d2a691b Remove deprecated authors Cargo manifest field 2025-06-28 09:40:46 +10:00
ComplexSpaces
68ea2074ac Resolve new Clippy lints 2025-06-28 08:49:37 +10:00
ComplexSpaces
8f6bab7d48 Add README section about Linux clipboard ownership 2025-06-28 08:49:37 +10:00
ComplexSpaces
b704da3cea Add debug helper for too-early Linux clipboard dropping 2025-06-28 08:49:37 +10:00
ComplexSpaces
1040043ca4 Reword README sections and elaborate on Linux support 2025-06-28 08:49:37 +10:00
crumblingstatue
5f80bc1ddf
linux/x11: Don't stop worker thread if handling selection request fails (#186)
* linux/x11: Don't stop worker thread if handling selection request fails

Just because one request fails, that doesn't mean we can't handle
subsequent requests.
Stopping the worker thread on failure means that every subsequent
request will fail, which is usually undesirable.
2025-06-24 14:11:45 -05:00
ComplexSpaces
b1e6720c3e Fix getting text on Windows when locale identifiers differ 2025-06-15 22:02:59 -05:00
ComplexSpaces
6b0e47ac8a Reimplement Linux clipboard clearing with correct primitives 2025-06-15 16:59:47 -06:00
ComplexSpaces
825026572a Refactor Wayland error handling to better account for missing Primary clipboard 2025-06-15 16:59:47 -06:00
ComplexSpaces
7ea1cf2caa Clarify ownership handling in selection data writing
While there is no behavior difference, its more
obviously correct if we only claim clipboard ownership
_after_ we've written data and prepared to serve it.
2025-06-15 14:52:43 -06:00
ComplexSpaces
b5e123032c Add exclude_from_history on linux by setting x-kde-passwordManagerHint
Addresses #129

Co-authored-by: MrSmör <66489839+MrSmoer@users.noreply.github.com>
2025-06-15 14:52:43 -06:00
Artúr Kovács
91c33159b0
Release v3.5 (#183)
* Release v3.5

* Update CHANGELOG for 3.5 release

---------

Co-authored-by: ComplexSpaces <complexspacescode@gmail.com>
2025-04-03 13:17:08 +11:00
Gae24
1dcc18b221
Add file_list to Get interface (#179) 2025-03-23 18:08:18 +09:00
ComplexSpaces
bbd06b4d57
Merge pull request #180 from Gae24/error
use `Error::unknown` on Linux and macOS code too
2025-03-10 14:57:12 -05:00
Gae24
bcb2954db5 use Error::unknown on linux and osx too 2025-03-10 09:15:34 +01:00
ComplexSpaces
a9c2d68c18 Update wl-clipboard-rs 2025-02-13 18:47:36 -06:00
ComplexSpaces
e824bc8324 Cleanup Windows pointer casting 2025-02-13 18:26:00 -06:00
ComplexSpaces
543484f77c Check multiple windows-sys versions in CI
This is to prevent accidental breakage due to the new version range
2025-02-13 18:26:00 -06:00
ComplexSpaces
9d6a0b9b42 Update windows-sys version compatibility
Co-authored-by: Exotik850 <kidkool850@gmail.com>
2025-02-13 18:26:00 -06:00
ComplexSpaces
c474298e4b Remove unneeded Result from image_from_pixels 2025-02-13 14:17:07 -06:00
Mads Marquart
108cc38269
Update to objc2 v0.6 (#173)
This includes using the new crate `objc2-core-graphics`, which notably
does not have the `CustomData` helper that `core-graphics`. This is
probably for the better, as it allows us to avoid a double-boxing of the
data.
2025-02-13 12:44:37 -07:00
ComplexSpaces
431702b657
Bump Ubuntu runner version for cargo-semver-checks (#174) 2025-02-12 22:16:21 -07:00
Gae24
4b91bfe93e
Implement Get::html() for all platforms (#163)
* implement get html operation

Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com>
2025-02-12 22:01:02 -07:00
Hamir Mahal
e458e1a26c style: simplify some statements for readability 2024-12-26 13:28:02 -07:00
ComplexSpaces
782b98c1e3 Cleanup unneeded lifetimes 2024-12-26 12:26:29 -07:00
ComplexSpaces
5350a8fb91 Bump env_logger
This removes `atty` and `winapi` from CI's test
builds.
2024-10-19 10:45:23 -05:00
ComplexSpaces
6b45272702 Release 3.4.1 2024-09-12 09:34:21 -06:00
Oscar Hinton
dd43f44ace
Add support for excluding macos clipboard items from history (#159)
* Adds support for excluding macos clipboard items from history
2024-08-27 12:10:21 -06:00
ComplexSpaces
ee39c47896 Fix new lints for CI 2024-08-24 15:36:59 -06:00
ComplexSpaces
151e679ee5 Release 3.4.0 2024-04-29 01:02:49 -05:00
ComplexSpaces
610e29ba81 Remove direct thiserror dependency 2024-04-28 04:08:29 -05:00
Roman Vlasenko
83740b7ab0
Copy image as PNG file on Windows (#141)
* Add image to Windows dependencies

* Set image data as PNG file on Windows
2024-04-28 01:57:04 -05:00
Mads Marquart
0bff1e07ea Use objc2 and its framework crates
`objc2` is a replacement for `objc`/`objc_id` that contains a bunch of safety improvements, including `msg_send_id!` which automatically upholds memory management rules (`Id::from_ptr`/`Id::from_retained_ptr` is no longer necessary).

Additionally, we use the framework crates `objc2-foundation` and `objc2-app-kit`, which provide for example the `NSPasteboard` type, which has the methods that arboard needs already defined, and with the correct types, ensuring that passing e.g. `Id<NSArray>` and thus accidentally giving away ownership over the array won't happen again.

These crates are automatically generated, ensuring that if you need some obscure API in the future, it's very likely to be there already.
2024-04-27 15:53:32 -05:00