Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
d45e2d7
feat: allow to pass any web prefix
dt-iohk Sep 2, 2025
85e6561
feat: add clang package
dt-iohk Sep 3, 2025
69ef807
feat: remove web prefix in favor of configuration in flutter_rust_bri…
dt-iohk Sep 4, 2025
c33d662
feat: add no modules global
dt-iohk Sep 4, 2025
937c9aa
feat: add WASM_MODULE_NAME param
dt-iohk Sep 4, 2025
076549c
fix: arg usage
dt-iohk Sep 4, 2025
6be0f28
Merge branch 'master' into feat/catalyst-compression-setup
dt-iohk Sep 8, 2025
8105eab
feat: build flutter_rust_bridge in release mode
dt-iohk Sep 8, 2025
15149a1
feat: use forked version of flutter_rust_bridge
dt-iohk Sep 9, 2025
8713619
fix: syntax
dt-iohk Sep 9, 2025
410aca6
feat: add branch
dt-iohk Sep 9, 2025
40e74b1
chore: allow github repo
dt-iohk Sep 9, 2025
44ccbec
fix: bump rust version from 1.88.0 to 1.89.0
dt-iohk Sep 11, 2025
64969a0
chore: reformat
dt-iohk Sep 11, 2025
81615c1
fix: spelling
dt-iohk Sep 11, 2025
e941f12
fix: rust version
dt-iohk Sep 11, 2025
142ffc5
feat: allow code formatting after generation
dt-iohk Sep 11, 2025
60025f5
chore: sync deny.toml
dt-iohk Sep 11, 2025
fc6798e
chore: TODO
dt-iohk Sep 12, 2025
aba4b96
Merge branch 'master' into feat/catalyst-compression-setup
dt-iohk Sep 16, 2025
2739170
Merge branch 'master' into feat/catalyst-compression-setup
dt-iohk Sep 22, 2025
002f154
feat: switch to iohk fork
dt-iohk Sep 22, 2025
6f99d8f
style: typos
dt-iohk Oct 1, 2025
1bb8d98
chore: disable ruff
dt-iohk Oct 8, 2025
f6c460e
Merge branch 'chore/disable-ruff-for-failling-files' into feat/cataly…
dt-iohk Oct 8, 2025
0e1c19e
Merge branch 'master' into feat/catalyst-compression-setup
dt-iohk Oct 8, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .config/dictionaries/project.dic
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ gopls
gosec
graphviz
idents
iohk
ipynb
javascripts
JDBC
Expand Down
1 change: 0 additions & 1 deletion Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ check-spelling:
earthly +clean-spelling-list
earthly +check-spelling


# Fix and Check Code Format for Python files
format-python-code:
ruff check --select I --fix .
Expand Down
18 changes: 14 additions & 4 deletions earthly/flutter_rust_bridge/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ builder:
git \
build-essential \
curl \
unzip
unzip \
clang

DO flutter-ci+INSTALL_FLUTTER
DO rust-ci+INSTALL_RUST
Expand All @@ -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 from the fork are merged into the official version
GIT CLONE --branch feat/wasm-bindgen-configurable-module https://github.com/input-output-hk/catalyst_flutter_rust_bridge.git /usr/local/flutter_rust_bridge
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
3 changes: 2 additions & 1 deletion earthly/rust/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -463,5 +463,6 @@ INSTALL_TOOLS:
DO +COPY_TOOL --tool="cargo-sweep"
DO +COPY_TOOL --tool="cargo-component"
DO +COPY_TOOL --tool="wasm-pack"
DO +COPY_TOOL --tool="flutter-rust-bridge-codegen" --bin="flutter_rust_bridge_codegen"
# TODO(dt-iohk): reenable when we're no longer using forked flutter_rust_bridge
# DO +COPY_TOOL --tool="flutter-rust-bridge-codegen" --bin="flutter_rust_bridge_codegen"

3 changes: 2 additions & 1 deletion earthly/rust/stdcfgs/deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ allow-git = [
"https://github.com/input-output-hk/mithril",
# Maintained fork of an archived crates-io version.
"https://github.com/dariusc93/rust-ipfs",
# TODO(dt-iohk): remove this when changes from forked flutter_rust_bridge are merged into the official version
"https://github.com/input-output-hk/catalyst_flutter_rust_bridge",
]

[licenses]
Expand Down Expand Up @@ -109,7 +111,6 @@ crate = "ring"
expression = "MIT"
license-files = [{ path = "LICENSE", hash = 0xbd0eed23 }]


# SPDX considers OpenSSL to encompass both the OpenSSL and SSLeay licenses
# https://spdx.org/licenses/OpenSSL.html
# ISC - Both BoringSSL and ring use this for their new files
Expand Down
2 changes: 2 additions & 0 deletions examples/rust/deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ allow-git = [
"https://github.com/input-output-hk/mithril",
# Maintained fork of an archived crates-io version.
"https://github.com/dariusc93/rust-ipfs",
# TODO(dt-iohk): remove this when changes from forked flutter_rust_bridge are merged into the official version
"https://github.com/input-output-hk/catalyst_flutter_rust_bridge",
]

[licenses]
Expand Down
Loading