flutter_rust_bridge 1.15.1 flutter_rust_bridge: ^1.15.1 copied to clipboard
High-level memory-safe binding generator for Flutter/Dart <-> Rust
1.15.1 #
- Bump dependency version #311
1.15.0 #
- Fix potential name collision with port argument #305 (thanks @valeth)
1.14.0 #
- Separate generated definitions from implementations #298
1.13.0 #
- When running codegen, create folders for output paths if they don't exist #286 (thanks @SecondFlight)
1.12.0 #
- Redesign documentation and make it a mdBook #272
- Remove
syn
dependency from macros to speed up #277 (thanks @Desdaemon)
1.11.0 #
- Marker attributes for expressiveness #261 (thanks @Desdaemon)
- Improvements #267 (thanks @Desdaemon): Resolve #265, Resolve #266, Fix attributes not working on enum variants, Add comments on enum variants and fields, (Internal) unify tuple and normal enum structs
- Avoid user parameter collision in wire functions #270 (thanks @Desdaemon)
1.10.0 #
- Support enum structs (Rust's expressive enums with fields) #256 (thanks @Desdaemon)
1.9.1 #
- Bump versions of dependencies
1.9.0 #
- Support field-less enum types #239 (thanks @Desdaemon)
1.8.2 #
- Fix bug that returning u32 from Rust results in wrong value received by Dart #234
1.8.1 #
- Update example and doc.
1.8.0 #
- Add support for unit return type #198 (thanks @surban)
- Add flutter example for macOS and add macOS instructions in README #211 (thanks @AlienKevin)
1.7.0 #
- Enrich metadata of generated ffi calls - now we can have more "reflection" information.
- Add llvm-compiler-opts as command-line argument #210 (thanks @trobanga)
1.6.1 #
- Remove extra newline on empty comment #203 (thanks @Desdaemon)
1.6.0 #
- 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.
1.5.0 #
- Copy Rust comments over to Dart generated file (#182, thanks @Desdaemon)
1.4.0 #
- Support synchronous function calls in addition to existing asynchronous Future and Stream approaches (#175, #176)
- Remove unnecessary dependency of
lint
for the Dart package.
1.3.0 #
- Support more types of the form
Vec<primitive_type>
andZeroCopyBuffer<Vec<primitive_type>>
, such asVec<f32>
andZeroCopyBuffer<Vec<f32>>
to be transformed intoFloat32List
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.
1.2.2 #
- Add Linux and Windows out-of-the-box support for the
with_flutter
example. - Improve linter hints
1.2.1 #
- 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.
1.2.0 #
- Enable
Option<T>
types to be transformed (thanks @Desdaemon) - Support
Stream
s: 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.
1.1.0 #
- 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
1.0.3 #
- Fix bugs and add features (details to be written later)
1.0.2 #
- Fix bugs and add features (details to be written later)
1.0.1 #
- Fix bugs and add features (details to be written later)
1.0.0 #
- Initial release