#gui #menu #applications #icons #platform #show #system

systray

Rust 库,用于创建最小化的跨平台系统托盘 GUI

5 个版本 (3 个重大更新)

0.4.0 2020年2月15日
0.3.0 2018年4月26日
0.2.0 2017年5月4日
0.1.1 2017年2月28日
0.1.0 2017年2月23日

#68 in #menu

Download history 93/week @ 2024-03-11 81/week @ 2024-03-18 78/week @ 2024-03-25 126/week @ 2024-04-01 54/week @ 2024-04-08 72/week @ 2024-04-15 75/week @ 2024-04-22 70/week @ 2024-04-29 62/week @ 2024-05-06 60/week @ 2024-05-13 60/week @ 2024-05-20 74/week @ 2024-05-27 61/week @ 2024-06-03 61/week @ 2024-06-10 66/week @ 2024-06-17 78/week @ 2024-06-24

每月下载量 277
3 crates 使用

BSD-3-Clause

78KB
776 代码行数(不含注释)

systray-rs

Crates.io Crates.io

Build Status Build status

systray-rs 是一个 Rust 库,允许应用程序以特定平台的方式拥有最小化的 UI。它封装了在系统托盘显示图标以及添加菜单项所需的特定平台调用。

systray-rs 受到 Go 语言 systray 库 的很大影响。

systray-rs 当前支持

  • Linux GTK
  • Win32

Cocoa 核心仍需

许可证

systray-rs 包含一些来自 retеп998 的 winapi-rs 的代码。此代码受 MIT 许可证的覆盖。一旦 winapi-rs 提供了 0.3 版本的 crate,此代码将被删除。

systray-rs 受 BSD 许可证的约束。

Copyright (c) 2016-2020, Nonpolynomial Labs, LLC
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this
  list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice,
  this list of conditions and the following disclaimer in the documentation
  and/or other materials provided with the distribution.

* Neither the name of the project nor the names of its
  contributors may be used to endorse or promote products derived from
  this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

依赖项

~0–3.5MB
~80K SLoC