Skip to content

Releases: fzyzcjy/flutter_rust_bridge

v1.7.0

26 Nov 12:42
Compare
Choose a tag to compare
  • Enrich metadata of generated ffi calls - now we can have more "reflection" information.
  • Add llvm-compiler-opts as command-line argument #210 (thanks @trobanga)

v1.6.1

23 Nov 06:57
Compare
Choose a tag to compare

v1.6.0

12 Nov 04:00
504789c
Compare
Choose a tag to compare
  • Implement Vec<String> #193 (thanks @Desdaemon)
  • Add logging for FlutterRustBridgeSetupMixin for users to debug easily.
  • Set names of threads for ThreadPoolExecutor to make debugging easier when looking at threads.

v1.5.0

05 Nov 01:54
761b9b5
Compare
Choose a tag to compare
  • Copy Rust comments over to Dart generated file (#182, thanks @Desdaemon)

v1.4.0

03 Nov 00:32
Compare
Choose a tag to compare
  • Support synchronous function calls in addition to existing asynchronous Future and Stream approaches (#175, #176)
  • Remove unnecessary dependency of lint for the Dart package.

v1.3.0

01 Nov 12:59
5c95fc3
Compare
Choose a tag to compare
  • Support more types of the formVec<primitive_type> and ZeroCopyBuffer<Vec<primitive_type>>, such as Vec<f32> and ZeroCopyBuffer<Vec<f32>> to be transformed into Float32List in Dart. (#162, #153)
  • Do not generate unnecessary Dart to Rust wire code to fix bugs such as when Vec<ZeroCopyBuffer<Vec<u8>>> is in output argument.
  • Warn when ffigen emits any [SEVERE] log messages.
  • Make outputs change less when input of codegen changes.
  • Simplify Wire2Api<Option<T>> generated code.

v1.2.2

29 Oct 03:24
ac9f293
Compare
Choose a tag to compare
  • Add Linux and Windows out-of-the-box support for the with_flutter example.
  • Improve linter hints
  • Many more updates of v1.2.1 and v1.2.0 is shown here

v1.2.1

26 Oct 00:38
Compare
Choose a tag to compare
  • Add --skip-add-mod-to-lib flag.
  • Allow Rust input file in directories besides root directory of the crate.
  • Warn when command's output seems to indicate errors.
  • Do not include stdarg.h automatically (related: #108 and #53).
  • Fix windows path handling problem (#119, thanks @smw-wagnerma).
  • Add --llvm-path flag.

v1.2.0

20 Oct 04:20
Compare
Choose a tag to compare
  • Enable Option<T> types to be transformed (thanks @Desdaemon)
  • Support Streams: call function once, "return" multiple times with different data.
  • Add FlutterRustBridgeSetupMixin (an optional helper class), which allows custom setup hooks before ffi can be executed.
  • Add hint parameter in generated Dart code, allowing users to pass custom data to the Dart executor, thus increasing flexibility.
  • Improve panic handling in extreme cases (avoid panic across languages, which is undefined behavior).
  • Refactored Handler, now it is much easier to customize your own handler functionality.
  • Remove one Box::new(FnOnce), thus enables better inlining for ffi function calls.
  • Fix bug: Dart struct(class) is not generated if the struct only appears in the return type #98.
  • Add FlutterRustBridgeTimeoutMixin. If used, a timeout exception will be thrown for ffi calls that do not return within time limit.

v1.1.0

15 Oct 07:29
Compare
Choose a tag to compare
  • Generate dummy_method_to_enforce_bundling to avoid "symbols not found" problems in iOS release build
  • Allow customizations for generated Dart classes
  • Add pure-Dart tutorial
  • Update examples and tutorials, and fix outdated documentations
  • Formatting problems for generated code