Skip to content

Commit

Permalink
Merge pull request #54 from ChurchTao/convergence-toml
Browse files Browse the repository at this point in the history
Convergence  crate `image`
  • Loading branch information
ChurchTao authored Nov 19, 2024
2 parents 637a111 + 5f0c6a2 commit 460ec38
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## v0.2.2 (2024-11-19) [released]

- Convergence dep: `image` to `jpeg/png/tiff/bmp` [pr#54](https://github.com/ChurchTao/clipboard-rs/pull/54)

## v0.2.1 (2024-08-26) [released]

### zh:
Expand Down
18 changes: 15 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "clipboard-rs"
version = "0.2.1"
version = "0.2.2"
authors = ["ChurchTao <swkzymlyy@gmail.com>"]
description = "Cross-platform clipboard API (text | image | rich text | html | files | monitoring changes) | 跨平台剪贴板 API(文本|图片|富文本|html|文件|监听变化) Windows,MacOS,Linux"
repository = "https://github.com/ChurchTao/clipboard-rs"
Expand All @@ -12,11 +12,18 @@ edition = "2021"
rust-version = "1.67.0"

[dependencies]
image = { version = "0.25.4", default-features = false, features = ["png"] }
image = { version = "0.25.4", default-features = false, features = [
"png",
"jpeg",
] }

[target.'cfg(target_os = "windows")'.dependencies]
clipboard-win = { version = "5.4.0", features = ["monitor"] }
image = { version = "0.25.4", default-features = false, features = ["bmp", "png"] }
image = { version = "0.25.4", default-features = false, features = [
"bmp",
"png",
"jpeg",
] }

[target.'cfg(target_os = "macos")'.dependencies]
# cocoa = "0.26.0"
Expand All @@ -31,6 +38,11 @@ objc2-app-kit = { version = "0.2.2", features = [
"NSPasteboardItem",
"NSImage",
] }
image = { version = "0.25.4", default-features = false, features = [
"tiff",
"png",
"jpeg",
] }


[target.'cfg(all(unix, not(any(target_os="macos", target_os="android", target_os="ios", target_os="emscripten"))))'.dependencies]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Add the following content to your `Cargo.toml`:

```toml
[dependencies]
clipboard-rs = "0.2.1"
clipboard-rs = "0.2.2"
```

## [CHANGELOG](CHANGELOG.md)
Expand Down
2 changes: 1 addition & 1 deletion README_ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ clipboard-rs 是一个用 Rust 语言编写的跨平台库,用于获取和设

```toml
[dependencies]
clipboard-rs = "0.2.1"
clipboard-rs = "0.2.2"
```

## [更新日志](CHANGELOG.md)
Expand Down

0 comments on commit 460ec38

Please sign in to comment.