-
Notifications
You must be signed in to change notification settings - Fork 0
feat(cat-voices): Add multi-package support to flutter_rust_bridge #448
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
d45e2d7
85e6561
69ef807
c33d662
937c9aa
076549c
6be0f28
8105eab
15149a1
8713619
410aca6
40e74b1
44ccbec
64969a0
81615c1
e941f12
142ffc5
60025f5
fc6798e
aba4b96
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,6 +55,7 @@ gopls | |
gosec | ||
graphviz | ||
idents | ||
iohk | ||
ipynb | ||
javascripts | ||
JDBC | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,8 @@ builder: | |
git \ | ||
build-essential \ | ||
curl \ | ||
unzip | ||
unzip \ | ||
clang | ||
|
||
DO flutter-ci+INSTALL_FLUTTER | ||
DO rust-ci+INSTALL_RUST | ||
|
@@ -31,11 +32,20 @@ builder: | |
# Generated necessary files for running Flutter web. | ||
CODE_GENERATOR_WEB: | ||
FUNCTION | ||
ARG --required WASM_MODULE_NAME | ||
|
||
RUN flutter_rust_bridge_codegen generate --default-external-library-loader-web-prefix=/assets/packages/catalyst_key_derivation/assets/js/ | ||
# https://blog.rust-lang.org/2025/04/04/c-abi-changes-for-wasm32-unknown-unknown/ | ||
RUN flutter_rust_bridge_codegen build-web | ||
# TODO(dt-iohk): revert to official version when changes are merged | ||
GIT CLONE --branch feat/wasm_bindgen_configurable https://github.com/dt-iohk/flutter_rust_bridge.git /usr/local/flutter_rust_bridge | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm okay of doing it this way, but let's comment out flutter_rust_bridge thing from There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done. These changes are temporary. I hope it's short lived rather than long-lived but depends on how much time it'll take to merge it to the original lib. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For clarification, I'm not going to merge this PR while it still points to my own fork, I'll wait until we have the IOHK one. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Besides from that LGTM |
||
RUN cargo run --manifest-path /usr/local/flutter_rust_bridge/frb_codegen/Cargo.toml -- generate | ||
RUN cargo run --manifest-path /usr/local/flutter_rust_bridge/frb_codegen/Cargo.toml -- build-web --wasm-bindgen-args="--no-modules-global=$WASM_MODULE_NAME" | ||
|
||
# RUN flutter_rust_bridge_codegen generate | ||
# TODO(damian-molinski) add --release flag to the command below to optimize for performance | ||
# RUN flutter_rust_bridge_codegen build-web --wasm-bindgen-args="--no-modules-global=$WASM_MODULE_NAME" | ||
|
||
RUN mkdir -p assets/js && cp -rf ./web/pkg/* assets/js/ | ||
# Don't want this gitignore file. | ||
RUN rm -rf ./assets/js/.gitignore | ||
|
||
# Reformat code once it's generated under lib directory. | ||
RUN dart format lib |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[toolchain] | ||
channel = "1.88" | ||
channel = "1.89" | ||
profile = "default" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[toolchain] | ||
channel = "1.88" | ||
channel = "1.89" | ||
profile = "default" |
Uh oh!
There was an error while loading. Please reload this page.