Follow Flutter's Install Instructions
Switch to the dev
channel and enable MacOS
with:
flutter channel dev
sudo gem install cocoapods
flutter config --enable-macos-desktop
Follow Rust's Install Instructions
git clone https://github.com/spolu/dump.git
cd dump
cd srv && cargo build --release && cd ..
cd srv && cargo lipo --targets x86_64-apple-ios,aarch64-apple-ios --release && cd ..
cd srv && cbindgen ./src/lib.rs -c cbindgen.toml | grep -v \#include | uniq > target/bindings.h && cd ..
cp srv/target/release/libsrv.dylib app/macos/
cp srv/target/bindings.h app/ios/Runner
cp srv/target/universal/release/libsrv.a app/ios/
cd app && flutter build macos --release && cd ..
Start the MacOS app:
open ./app/build/macos/Build/Products/Release/Dump.app