Skip to content

chore(deps): bump the dependencies group across 1 directory with 2 updates#27

Open
dependabot[bot] wants to merge 1 commit intomasterfrom
dependabot/cargo/dependencies-fa6c2aad53
Open

chore(deps): bump the dependencies group across 1 directory with 2 updates#27
dependabot[bot] wants to merge 1 commit intomasterfrom
dependabot/cargo/dependencies-fa6c2aad53

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github Apr 30, 2026

Updates the requirements on rust-i18n and tray-icon to permit the latest version.
Updates rust-i18n to 4.0.0

Release notes

Sourced from rust-i18n's releases.

v4.0.0

What's Changed

Breaking Changes

  • Backend trait signature changed to use Cow<'_, str>available_locales() now returns Vec<Cow<'_, str>> instead of Vec<&str>, and translate() now returns Option<Cow<'_, str>> instead of Option<&str>. Custom Backend implementations must be updated accordingly. (#114)
  • SimpleBackend::add_translations() signature changed — Now takes Cow<'static, str> for locale and HashMap<Cow<'static, str>, Cow<'static, str>> for data, instead of &str and &HashMap<&str, &str>. (#133)
  • New required method messages_for_locale on Backend trait — Returns all translation messages for a given locale as Option<Vec<(Cow<'_, str>, Cow<'_, str>)>>.
  • Removed once_cell dependency — Replaced with std::sync::LazyLock from the standard library. The re-export rust_i18n::once_cell is no longer available. This raises the minimum supported Rust version (MSRV) to 1.80.0. (#131)

Performance Improvements

  • Dramatically reduced allocations in the i18n! macro expansion — Previously, the macro generated one HashMap per translation pair; now it generates one HashMap per locale. For large projects, this reduces HashMap creation from thousands to just a handful (e.g., 14,000 → 32). This also fixes stack overflow crashes on Windows for projects with many translations. (#133)
  • Eliminated unnecessary String allocations — By using Cow<'static, str> throughout, static translation strings are no longer cloned into heap-allocated Strings. (#114, #133)

New Features

  • messages_for_locale() method on Backend — Retrieve all translation key-value pairs for a specific locale, useful for inspection and debugging.
  • try_load_locales() function — A fallible alternative to load_locales() in rust-i18n-support that returns Result instead of panicking, with detailed error messages for file lookup, parsing, and I/O failures. (#127)
  • Improved error messages — Parsing failures now include the specific error reason instead of a generic panic message. (#116)

Internal / Maintenance

  • Replaced once_cell::sync::Lazy with std::sync::LazyLock (#131)
  • Added Cargo.lock to version control (#120)
  • Improved CI workflow with concurrency groups and branch filtering
  • Added release workflow
  • Bumped slab from 0.4.10 to 0.4.11 (#122)

Migration Guide

If you have a custom Backend implementation, update it to:

use std::borrow::Cow;
impl Backend for MyBackend {
fn available_locales(&self) -> Vec<Cow<', str>> { /* ... */ }
fn translate(&self, locale: &str, key: &str) -> Option<Cow<', str>> { /* ... / }
fn messages_for_locale(&self, locale: &str) -> Option<Vec<(Cow<', str>, Cow<', str>)>> { / ... */ }
}

If you were using rust_i18n::once_cell, switch to std::sync::LazyLock (requires Rust 1.80+).

New Contributors

... (truncated)

Commits
  • a931914 Version 4.0.0
  • 410adde Reduce allocations create unnecessary HashMaps and Strings (#133)
  • 94a91a7 docs: Update user cases. (#134)
  • 90b8e37 Bump slab from 0.4.10 to 0.4.11 (#122)
  • c58ecb6 Bump v4.0.0-preview1
  • 2d09179 Add messages_for_locale method to get all message for locale to Backend. (#...
  • 1cc7772 Add try_load_locales method to rust-i18n-support. (#127)
  • e6d6170 chore: Remove once_cell, use std::sync::LazyLock. (#131)
  • 8e7fb82 Bump v4.0.0-preview0 (#130)
  • 0ce74a8 Convert Backend's &str to Cow instead (#114)
  • Additional commits viewable in compare view

Updates tray-icon to 0.23.0

Release notes

Sourced from tray-icon's releases.

tray-icon v0.23.0

[0.23.0]

Updating crates.io index
   Packaging tray-icon v0.23.0 (/home/runner/work/tray-icon/tray-icon)
warning: ignoring example `egui` as `examples/egui.rs` is not included in the published package
warning: ignoring example `tao` as `examples/tao.rs` is not included in the published package
warning: ignoring example `winit` as `examples/winit.rs` is not included in the published package
    Updating crates.io index
    Packaged 21 files, 227.6KiB (55.2KiB compressed)
   Verifying tray-icon v0.23.0 (/home/runner/work/tray-icon/tray-icon)
 Downloading crates ...
  Downloaded cfg-if v1.0.0
  Downloaded dirs-sys v0.5.0
  Downloaded dpi v0.1.1
  Downloaded adler2 v2.0.0
  Downloaded field-offset v0.3.6
  Downloaded cairo-sys-rs v0.18.2
  Downloaded equivalent v1.0.1
  Downloaded dirs v6.0.0
  Downloaded fdeflate v0.3.7
  Downloaded autocfg v1.4.0
  Downloaded atk-sys v0.18.2
  Downloaded futures-io v0.3.31
  Downloaded atk v0.18.2
  Downloaded foldhash v0.1.4
  Downloaded crossbeam-utils v0.8.21
  Downloaded proc-macro-error-attr v1.0.4
  Downloaded futures-sink v0.3.31
  Downloaded cairo-rs v0.18.5
  Downloaded semver v1.0.25
  Downloaded crc32fast v1.4.2
  Downloaded libxdo v0.6.0
  Downloaded heck v0.5.0
  Downloaded target-lexicon v0.12.16
  Downloaded futures-macro v0.3.31
  Downloaded cfg-expr v0.15.8
  Downloaded toml_datetime v0.6.8
  Downloaded keyboard-types v0.7.0
  Downloaded thiserror v1.0.69
  Downloaded thiserror v2.0.11
  Downloaded version-compare v0.2.0
  Downloaded proc-macro-crate v2.0.0
  Downloaded proc-macro-crate v1.3.1
</tr></table> 

... (truncated)

Changelog

Sourced from tray-icon's changelog.

[0.23.0]

[0.22.2]

[0.22.1]

[0.22.0]

  • f912921 (#294 by @​felipecrs) Added with_menu_on_right_click builder method, set_show_menu_on_right_click to control whether the context menu is shown on right click (analogous to the existing left click option), and show_menu() to programmatically display the tray menu.

    Together these enable dynamic menu workflows where the menu content is updated before being shown, for example by disabling automatic right-click menu, listening for the click event, updating items, and then calling show_menu().

  • 0a5835b (#295 by @​thief-sty) Update png dependency version to 0.18.

    This avoids duplicated dependencies in downstream crates.

  • 0a5835b (#295 by @​thief-sty) Update rust version to 1.73.

[0.21.3]

  • d3c2468 (#293 by @​Slinetrac) Handle Windows tray icon creation when the taskbar is not ready by keeping the message window alive and re-registering on TaskbarCreated.
  • cb22cd5 (#290 by @​FabianLars) The default id is now derived from the process id to prevent issues when multiple open apps use the tray-icon crate on Linux.

[0.21.2]

[0.21.1]

  • 1470763 (#272 by @​ahonn) Add platform specific methods to access the underlying native handles of the tray (similar to TrayIcon::window_handle):

    • TrayIcon::ns_status_item for macOS
    • TrayIcon::app_indicator for Linux.
  • 2a6a19b (#268 by @​iKineticate) On Windows, fix tray menu freeze on device change events

[0.21.0]

[0.20.1]

... (truncated)

Commits

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
  • @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
  • @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
  • @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency
  • @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions

…dates

Updates the requirements on [rust-i18n](https://github.com/longbridge/rust-i18n) and [tray-icon](https://github.com/tauri-apps/tray-icon) to permit the latest version.

Updates `rust-i18n` to 4.0.0
- [Release notes](https://github.com/longbridge/rust-i18n/releases)
- [Commits](longbridge/rust-i18n@v3.1.5...v4.0.0)

Updates `tray-icon` to 0.23.0
- [Release notes](https://github.com/tauri-apps/tray-icon/releases)
- [Changelog](https://github.com/tauri-apps/tray-icon/blob/dev/CHANGELOG.md)
- [Commits](tauri-apps/tray-icon@tray-icon-v0.22...tray-icon-v0.23)

---
updated-dependencies:
- dependency-name: rust-i18n
  dependency-version: 4.0.0
  dependency-type: direct:production
  dependency-group: dependencies
- dependency-name: tray-icon
  dependency-version: 0.23.0
  dependency-type: direct:production
  dependency-group: dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file rust Pull requests that update rust code labels Apr 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file rust Pull requests that update rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants