Skip to content

Commit

Permalink
fix(rust): flutter_rust_bridge install
Browse files Browse the repository at this point in the history
Signed-off-by: bkioshn <[email protected]>
  • Loading branch information
bkioshn committed Nov 4, 2024
1 parent 657c66f commit 10d0e07
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions earthly/rust/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ COPY_TOOL:
FUNCTION

ARG --required tool
COPY rust-tools+tool-$tool/$tool $CARGO_HOME/bin/$tool
ARG bin = $tool
COPY rust-tools+tool-$tool/$bin $CARGO_HOME/bin/$bin


# rust-base-plus-tools : Add all tools we use for rust builds to the base builder image.
Expand All @@ -133,7 +134,7 @@ rust-base-plus-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"
DO +COPY_TOOL --tool="flutter-rust-bridge-codegen" --bin="flutter_rust_bridge_codegen"

# installer - fully setup our Rust caching.
installer:
Expand Down
4 changes: 2 additions & 2 deletions earthly/rust/tools/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,5 @@ tool-cargo-component:
tool-wasm-pack:
DO +CARGO_BINSTALL --package=wasm-pack --version=0.13.0

tool-flutter-rust-bridge:
DO +CARGO_BINSTALL --package=flutter_rust_bridge_codegen --version=2.5.1
tool-flutter-rust-bridge-codegen:
DO +CARGO_BINSTALL --package=flutter_rust_bridge_codegen --version=2.5.1 --executable="flutter_rust_bridge_codegen"

0 comments on commit 10d0e07

Please sign in to comment.