From 584dcf4ce3bd446993e0abf3e5c9b028b93c3f22 Mon Sep 17 00:00:00 2001 From: Donghyun Kim Date: Sat, 29 Jun 2024 12:03:06 +0900 Subject: [PATCH] Version 6.13.0 --- CHANGELOG.md | 7 +++++++ flutter_ffi_plugin/CHANGELOG.md | 7 +++++++ flutter_ffi_plugin/example/native/hub/Cargo.toml | 2 +- flutter_ffi_plugin/pubspec.yaml | 2 +- flutter_ffi_plugin/template/native/hub/Cargo.toml | 2 +- rust_crate/Cargo.toml | 2 +- 6 files changed, 18 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b59dc68e..131ace1e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## 6.13.0 + +- The `get_dart_signal_receiver` function now returns `Result`. You need to use `unwrap` or `?` to retrieve Dart signal receivers from the generated message structs. +- You now need to manually provide the generated `assignRustSignal` to the `initializeRust` function, which can be imported using `import 'package:rinf/rinf.dart';` in Dart. +- The tokio runtime will now default to being single-threaded. To use a multi-threaded tokio runtime, enable the new `rt-multi-thread` crate feature. +- By default, backtraces will be hidden in the CLI, with only the error message being printed. To display the Rust backtrace, enable the new `backtrace` crate feature. + ## 6.12.1 - Fixed linefeed problem in published files. diff --git a/flutter_ffi_plugin/CHANGELOG.md b/flutter_ffi_plugin/CHANGELOG.md index 400fe3dc..7e56c0d0 100644 --- a/flutter_ffi_plugin/CHANGELOG.md +++ b/flutter_ffi_plugin/CHANGELOG.md @@ -1,3 +1,10 @@ +## 6.13.0 + +- The `get_dart_signal_receiver` function now returns `Result`. You need to use `unwrap` or `?` to retrieve Dart signal receivers from the generated message structs. +- You now need to manually provide the generated `assignRustSignal` to the `initializeRust` function, which can be imported using `import 'package:rinf/rinf.dart';` in Dart. +- The tokio runtime will now default to being single-threaded. To use a multi-threaded tokio runtime, enable the new `rt-multi-thread` crate feature. +- By default, backtraces will be hidden in the CLI, with only the error message being printed. To display the Rust backtrace, enable the new `backtrace` crate feature. + ## 6.12.1 - Fixed linefeed problem in published files. diff --git a/flutter_ffi_plugin/example/native/hub/Cargo.toml b/flutter_ffi_plugin/example/native/hub/Cargo.toml index 77b69f15..89f45de5 100755 --- a/flutter_ffi_plugin/example/native/hub/Cargo.toml +++ b/flutter_ffi_plugin/example/native/hub/Cargo.toml @@ -12,7 +12,7 @@ edition = "2021" crate-type = ["lib", "cdylib", "staticlib"] [dependencies] -rinf = "6.12.1" +rinf = "6.13.0" prost = "0.12.6" tokio = { version = "1", features = ["rt", "sync", "macros", "time"] } tokio_with_wasm = { version = "0.6.1", features = [ diff --git a/flutter_ffi_plugin/pubspec.yaml b/flutter_ffi_plugin/pubspec.yaml index 94b9c5ba..1310f1be 100644 --- a/flutter_ffi_plugin/pubspec.yaml +++ b/flutter_ffi_plugin/pubspec.yaml @@ -1,6 +1,6 @@ name: rinf description: Rust for native business logic, Flutter for flexible and beautiful GUI -version: 6.12.1 +version: 6.13.0 repository: https://github.com/cunarist/rinf environment: diff --git a/flutter_ffi_plugin/template/native/hub/Cargo.toml b/flutter_ffi_plugin/template/native/hub/Cargo.toml index a739bfc7..b4046c33 100644 --- a/flutter_ffi_plugin/template/native/hub/Cargo.toml +++ b/flutter_ffi_plugin/template/native/hub/Cargo.toml @@ -12,7 +12,7 @@ edition = "2021" crate-type = ["lib", "cdylib", "staticlib"] [dependencies] -rinf = "6.12.1" +rinf = "6.13.0" prost = "0.12.6" tokio = { version = "1", features = ["sync", "rt"] } diff --git a/rust_crate/Cargo.toml b/rust_crate/Cargo.toml index 8685e2f6..a24716d9 100644 --- a/rust_crate/Cargo.toml +++ b/rust_crate/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rinf" -version = "6.12.1" +version = "6.13.0" edition = "2021" license = "MIT" description = "Rust for native business logic, Flutter for flexible and beautiful GUI"