ChurchTao / clipboard-rs

Cross-platform clipboard API (text | image | rich text | html | files | monitoring changes) | 跨平台剪贴板 API(文本|图片|富文本|html|文件|监听变化) Windows,MacOS,Linux
https://docs.rs/clipboard-rs
MIT License
56 stars 9 forks source link

Set minimal compiler version to 1.70.0 #3

Closed getreu closed 7 months ago

getreu commented 7 months ago

Distributions are conservative when it comes to build dependencies. Tested with:

rustup install 1.70.0
rustup override set 1.70.0
ChurchTao commented 7 months ago

@getreu Is there any difference using this version? what is the benefit?

getreu commented 7 months ago

Distributions (Ubuntu, etc) come with a pinned Rustc. e.g. 1.63.0 and they include only applications (versions) that can be compiled with that Rustc.

Concrete example: the application tp-note 1.23.9 requires 1.70.0. If the new version 1.23.10 uses clipboard-rs that requires 1.75.0, it can not be built with Rustc 1.70.0 any more. Thus the new version will excluded from the distribution.

This is why libraries should be very conservative concerning compiler (and dependency) requirements.

As a rule of thumb:

  1. If you can stick to the current version of Debian -- Details of package rustc in bookworm 1.63.0
  2. If this is not possible try at least Debian -- Details of package rustc in trixie 1.70.0
ChurchTao commented 7 months ago

@getreu I see, thanks! I really didn't consider this.