Skip to content

Commit

Permalink
💚 add cargo expand
Browse files Browse the repository at this point in the history
 had to add cargo expand in order to fix the flutter-rust-bridge code
 generation. Because of this change main.rs also needed to be removed,
 otherwise cargo expand returns empty output and the codegen panics...
 See [this issue](fzyzcjy/flutter_rust_bridge#1378)

 This commit should eventually be reversible once the codegen supports
 a flag to skip running cargo expand.
  • Loading branch information
gthvmt committed Dec 18, 2023
1 parent 9caa6ee commit 82a3b10
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 49 deletions.
3 changes: 3 additions & 0 deletions .devcontainer/Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ RUN set -eux; apt-get update && apt-get install -y libclang-dev \
&& cargo install just \
cargo-ndk \
flutter_rust_bridge_codegen \
# we dont really need this because we dont use macros in our rust code but for
# now there is no option to disable cargo expand in flutter_rust_bridge_codegen
cargo-expand \
&& rustup component add rustfmt \
&& rustup target add \
aarch64-linux-android \
Expand Down
49 changes: 0 additions & 49 deletions src/rust/src/main.rs

This file was deleted.

0 comments on commit 82a3b10

Please sign in to comment.