Skip to content

Feature: support for local precompiled binaries#91

Open
dakshsilence wants to merge 4 commits intoirondash:mainfrom
silence-laboratories:main
Open

Feature: support for local precompiled binaries#91
dakshsilence wants to merge 4 commits intoirondash:mainfrom
silence-laboratories:main

Conversation

@dakshsilence
Copy link

Enable the generation and integration of precompiled binaries for specific targets and save it locally in binary folder. This feature allows binaries to be built once for supported platforms and reused when using with flutter rust bridge, eliminating the need for consumers to compile source code locally.

Steps to use it

1. Create local precompiled binaries using command precompile-local-binaries

example command, change the values for your use.

flutter pub run bin/build_tool.dart precompile-local-binaries -v --manifest-dir ../../rust --android-sdk-location=/Users/asdf/Library/Android/sdk --android-ndk-version=28.0.12674087 --android-min-sdk-version=23 --temp-dir tempDir

2. Update cargokit_options.yaml

use_local_precompiled_binaries: true
use_precompiled_binaries: true

3. Use the package

When you share the flutter package, the developer will installed the package and when they try to run app, flutter_rust_bridge will use the precompiled binaries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants