Skip to content

Commit 013cb7c

Browse files
committed
Prepare the Dart and Rust 0.5.1 releases
Bump cnativeapi, nativeapi and nativeapi_flutter, and the cnativeapi, nativeapi and nativeapi_gpui crates, to 0.5.1, with each package's dependency on the next one in step. The changelogs cover what core and the bindings fixed since 0.5.0: objects created from Dart are released and their callbacks revoked on a Flutter hot restart (leanflutter/tray_manager#106), and a Linux tray icon's title is its label rather than the tooltip's heading.
1 parent e36159c commit 013cb7c

21 files changed

Lines changed: 62 additions & 43 deletions

File tree

‎Cargo.lock‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎bindings/dart/cnativeapi/CHANGELOG.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Unreleased
1+
## 0.5.1
22

33
* `native_handle_finalize` and `native_user_data_revoke`: the native
44
finalizers `nativeapi` attaches to handles and callbacks, which release a

‎bindings/dart/cnativeapi/pubspec.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: cnativeapi
22
description: "Raw Dart FFI bindings to the nativeapi C API. The native library is built from source by a build hook."
3-
version: 0.5.0
3+
version: 0.5.1
44
homepage: https://github.com/libnativeapi/nativeapi
55
repository: https://github.com/libnativeapi/nativeapi/tree/main/bindings/dart/cnativeapi
66
resolution: workspace

‎bindings/dart/nativeapi/CHANGELOG.md‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Unreleased
1+
## 0.5.1
22

33
* Objects created from Dart no longer outlive a Flutter hot restart
44
(leanflutter/tray_manager#106): their handles are released by a
@@ -8,6 +8,10 @@
88
* A hot restart no longer crashes the app on the next event: callbacks the old
99
isolate registered are revoked when it shuts down, so the core stops calling
1010
them.
11+
* Linux: `TrayIcon.setTitle()` sets the StatusNotifierItem label, drawn next to
12+
the icon by hosts that show one (GNOME's AppIndicator extension), instead of
13+
the tooltip's heading. The tooltip shows `setTooltip()` alone, and the item's
14+
`Title` is the application name.
1115

1216
## 0.5.0
1317

‎bindings/dart/nativeapi/pubspec.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: nativeapi
22
description: "Dart bindings for nativeapi - providing seamless, unified access to native system APIs."
3-
version: 0.5.0
3+
version: 0.5.1
44
homepage: https://github.com/libnativeapi/nativeapi
55
repository: https://github.com/libnativeapi/nativeapi/tree/main/bindings/dart/nativeapi
66
resolution: workspace
@@ -16,7 +16,7 @@ platforms:
1616
windows:
1717

1818
dependencies:
19-
cnativeapi: ^0.5.0
19+
cnativeapi: ^0.5.1
2020
ffi: ">=1.2.1 <3.0.0"
2121

2222
dev_dependencies:

‎bindings/dart/nativeapi_flutter/CHANGELOG.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 0.5.1
2+
3+
* Requires nativeapi 0.5.1, which no longer leaves objects behind or crashes
4+
on a hot restart.
5+
16
## 0.5.0
27

38
* Requires nativeapi 0.5.0.

‎bindings/dart/nativeapi_flutter/pubspec.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: nativeapi_flutter
22
description: "Flutter integration for nativeapi: widgets, dart:ui conversions and the multi-window bridge on top of package:nativeapi."
3-
version: 0.5.0
3+
version: 0.5.1
44
homepage: https://github.com/libnativeapi/nativeapi
55
repository: https://github.com/libnativeapi/nativeapi/tree/main/bindings/dart/nativeapi_flutter
66
resolution: workspace
@@ -12,7 +12,7 @@ environment:
1212
dependencies:
1313
flutter:
1414
sdk: flutter
15-
nativeapi: ^0.5.0
15+
nativeapi: ^0.5.1
1616
path: ^1.9.1
1717

1818
dev_dependencies:

‎bindings/rust/CHANGELOG.md‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
## 0.5.1
2+
3+
* Linux: `TrayIcon::set_title` sets the StatusNotifierItem label, drawn next to
4+
the icon by hosts that show one (GNOME's AppIndicator extension), instead of
5+
the tooltip's heading. The tooltip shows the tooltip alone, and the item's
6+
`Title` is the application name.
7+
* The C ABI gains `native_handle_finalize` and `native_user_data_revoke`, for
8+
bindings whose runtime frees handles and callbacks from a garbage
9+
collector's native finalizer.
10+
111
## 0.5.0
212

313
* `Window::set_ignore_mouse_events(ignore, forward)` takes a second argument

‎bindings/rust/cnativeapi/Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cnativeapi"
3-
version = "0.5.0"
3+
version = "0.5.1"
44
edition = "2021"
55
authors = ["LiJianying <lijy91@foxmail.com>"]
66
description = "Native API C bindings for Rust"

‎bindings/rust/nativeapi/Cargo.toml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "nativeapi"
3-
version = "0.5.0"
3+
version = "0.5.1"
44
edition = "2021"
55
authors = ["LiJianying <lijy91@foxmail.com>"]
66
description = "Rust bindings for nativeapi - providing seamless, unified access to native system APIs."
@@ -11,5 +11,5 @@ keywords = ["native", "desktop", "window", "tray", "menu"]
1111
categories = ["api-bindings", "gui", "os"]
1212

1313
[dependencies]
14-
cnativeapi = { version = "0.5.0", path = "../cnativeapi" }
14+
cnativeapi = { version = "0.5.1", path = "../cnativeapi" }
1515
thiserror = "2.0"

0 commit comments

Comments
 (0)