run.sh 425 B

12345678910
  1. #!/usr/bin/env bash
  2. cargo install flutter_rust_bridge_codegen --version 1.80.1 --features uuid
  3. flutter pub get
  4. ~/.cargo/bin/flutter_rust_bridge_codegen --rust-input ../src/flutter_ffi.rs --dart-output ./lib/generated_bridge.dart --c-output ./macos/Runner/bridge_generated.h
  5. # call `flutter clean` if cargo build fails
  6. # export LLVM_HOME=/Library/Developer/CommandLineTools/usr/
  7. cargo build --features flutter
  8. flutter run $@