Releases: cunarist/rinf
Releases · cunarist/rinf
v7.0.3
What's Changed
- Correction of nested folder structure reference error when creating message for rust by @rabbitson87 in #461
Full Changelog: https://github.com/cunarist/rinf/compare/v7.0.2...
- Fixed a problem where generated Rust message structs were unable to import other messages.
v7.0.2
v7.0.1
What's Changed
- Bump lints from 4.0.0 to 5.0.0 in /flutter_package by @dependabot in #449
- Bump flutter_lints from 4.0.0 to 5.0.0 in /flutter_package/example by @dependabot in #452
- Shorten docs by @temeddix in #453
- Improve state management docs by @temeddix in #456
Full Changelog: v7.0.0...v7.0.1
- The initial template and example code has been improved.
v7.0.0
What's Changed
- Fix code snippet by @Vacyyyy in #407
- guide users about flutter web headers by @temeddix in #415
- use internal
message_channel
instead of tokio channels by @temeddix in #416 - Allow choosing async runtime by @temeddix in #418
- Improve state management docs by @temeddix in #419
- Update dependencies by @temeddix in #420
- Rename the folder
flutter_ffi_plugin
toflutter_package
by @temeddix in #422 - Use new
LazyLock
to store message channels by @temeddix in #423 - Improve docs by @temeddix in #424
- Use leaf calls when possible to reduce memory copy by @temeddix in #425
- Wake previous receiver on clone by @temeddix in #426
- Increase
rust-version
by @temeddix in #427 - Upgrade packages in template by @temeddix in #429
- Apply various improvements by @temeddix in #431
- Update macOS Swift file by @temeddix in #433
- Prefer single quotes in Dart by @temeddix in #432
- Organize first template by @temeddix in #434
- Improve CLI output by @temeddix in #436
- Organize Dart dependencies and introduce
rinf server
command by @temeddix in #439 - Propagate exit code from Dart command by @temeddix in #440
- Apply various tweaks and write migration guides by @temeddix in #442
- Add async runtime comments by @temeddix in #445
New Contributors
Summarization
- To migrate from Rinf version 6, please refer to this section in the documentation.
- Rinf no longer relies on
tokio
. While it is provided by default in the template, you can now choose whichever async runtime you prefer. - The CLI output is now more compact and includes animations.
- The full
flutter run
command with the necessary arguments can now be obtained by runningrinf server
. - It is now recommended to import compiled message classes and structs from the root messages module.
- Memory copying for messages sent from Dart to Rust has been reduced. This was achieved using Dart's FFI feature called 'leaf calls.'
Full Changelog: v6.15.0...v7.0.0
v6.15.0
v6.14.2
What's Changed
- Update prost requirement from 0.12.6 to 0.13.0 by @dependabot in #397
- Create message channel again if closed by @temeddix in #398
Full Changelog: v6.14.1...v6.14.2
- Now, the message channels work after reopening the app following the use of the back button on mobile devices.
v6.14.1
What's Changed
- Update bevy_ecs requirement from 0.13 to 0.14 by @dependabot in #391
- Allow the main function in Rust to have any return type by @temeddix in #394
- Fix the infinite parking of the main thread after shutdown by @temeddix in #395
Full Changelog: v6.14.0...v6.14.1
- The return type of Rust's
main
function can now be anything. - Fixed the issue causing the app to hang on the splash screen after closing it with the back button on Android.
v6.14.0
What's Changed
- Allow dart messages to be easily handled as bevy events by @Deep-co-de in #349
New Contributors
- @Deep-co-de made their first contribution in #349
Full Changelog: v6.13.0...v6.14.0
- New feature
bevy
for treating Dart signals as Bevy events was added. Thanks @Deep-co-de!
v6.13.0
What's Changed
- Remove linter warnings in wasm and release mode by @temeddix in #361
- Add doc comments for
DartSignal
andRustSignal
fields by @temeddix in #362 - Remove all code that can possibly panic by @temeddix in #363
- Consider base href on the web by @temeddix in #364
- Upgrade
tokio_with_wasm
to 0.5.3 by @temeddix in #365 - Make Rinf commands work in offline environments by @temeddix in #369
- 32-bit message ID by @temeddix in #370
- Optional multi-threaded runtime by @temeddix in #372
- Use the true current-thread tokio runtime by default by @temeddix in #373
- Update docs by @temeddix in #375
- Reduce memory copy on Dart signal by @temeddix in #374
- Treat backtrace as an optional feature by @temeddix in #376
- Remove old guides by @temeddix in #377
- Make the return type of the main empty by @temeddix in #379
- Make
get_dart_signal_receiver
returnResult
by @temeddix in #380 - Return
RinfError
on errors by @temeddix in #381 - Allow dot in the proto package name by @temeddix in #387
- Provide
finalizeRust
to shut down the tokio runtime by @temeddix in #390
Full Changelog: v6.12.1...v6.13.0
- The
get_dart_signal_receiver
function now returnsResult
. You need to useunwrap
or?
to retrieve Dart signal receivers from the generated message structs. - You now need to manually provide the generated
assignRustSignal
to theinitializeRust
function, which can be imported usingimport '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.
v6.12.1
Full Changelog: v6.12.0...v6.12.1
- Fixed linefeed problem in published files.
Full Changelog: v6.12.0...v6.12.1