flutter_rust_bridge

Flutter/Dart <-> Rust binding generator, feature-rich, but seamless and simple.

MIT License

Downloads
5.3M
Stars
3.5K
Committers
113

Bot releases are hidden (Show)

flutter_rust_bridge - v1.2.2

Published by fzyzcjy almost 3 years ago

  • 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
flutter_rust_bridge - v1.2.1

Published by fzyzcjy almost 3 years ago

  • 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.
flutter_rust_bridge - v1.2.0

Published by fzyzcjy about 3 years ago

  • 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.
flutter_rust_bridge - v1.1.0

Published by fzyzcjy about 3 years ago

  • 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
Package Rankings
Top 4.27% on Crates.io
Top 6.74% on Proxy.golang.org
Top 1.38% on Pub.dev
Badges
Extracted from project README
Rust Package Flutter Package Stars CI Post-Release codecov All Contributors Codacy Badge