You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I've had a flutter app I've been maintaining since pre 2.0 of this package. I'm trying to upgrade to the latest version, but I'm having some issues.
I was previously using this command to generate bindings:
In the latest version, I noticed it's switched to a sub-command flutter_rust_bridge_codegen generate, which I did. However, there have apparently been a few arg changes. I saw that --extra-c-output-path was renamed to --duplicated-c-output, which I also applied. It looks like --rust-input has also changed, but it conveniently gives directions for updating that part.
However, I cannot seem to find equivalents for --dart-decl-output or --wasm. Do you have an info about this?
I've tried just removing --dart-decl-output and --wasm, which will get past the arg parser, but I then get a File exists (os error 17) error from building:
flutter_rust_bridge_codegen generate --rust-root native/ --rust-input crate::api --dart-output lib/bridge_generated.dart --c-output ios/Runner/bridge_generated.h --duplicated-c-output macos/Runner/
[2024-10-21T15:56:14.040Z INFO /home/devin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.2.0/src/library/codegen/parser/mir/parser/ty/enum_or_struct.rs:73] Skip parsing enum_or_struct `NamespacedName { namespace: Namespace { joined_path: "crate::api" }, name: "C" }` because of error (e=struct with unit fields are not supported yet, what about using `struct C {}` or `#[frb(opaque)] struct C;` instead)
[2024-10-21T15:56:14.040Z INFO /home/devin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.2.0/src/library/codegen/parser/mir/parser/ty/enum_or_struct.rs:73] Skip parsing enum_or_struct `NamespacedName { namespace: Namespace { joined_path: "crate::api" }, name: "EntityState" }` because of error (e=struct with unit fields are not supported yet, what about using `struct EntityState {}` or `#[frb(opaque)] struct EntityState;` instead)
[2024-10-21T15:56:14.040Z INFO /home/devin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.2.0/src/library/codegen/parser/mir/parser/ty/enum_or_struct.rs:73] Skip parsing enum_or_struct `NamespacedName { namespace: Namespace { joined_path: "crate::api" }, name: "ProcessState" }` because of error (e=struct with unit fields are not supported yet, what about using `struct ProcessState {}` or `#[frb(opaque)] struct ProcessState;` instead)
[2024-10-21T15:56:14.046Z INFO /home/devin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.2.0/src/library/codegen/parser/mir/parser/ty/lifetimeable.rs:52] To handle some types, `enable_lifetime: true` may need to be set. Please visit https://fzyzcjy.github.io/flutter_rust_bridge/guides/lifetimes for more details
[2024-10-21T15:56:14.046Z INFO /home/devin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.2.0/src/library/codegen/parser/mir/parser/ty/enum_or_struct.rs:73] Skip parsing enum_or_struct `NamespacedName { namespace: Namespace { joined_path: "crate::api" }, name: "C" }` because of error (e=struct with unit fields are not supported yet, what about using `struct C {}` or `#[frb(opaque)] struct C;` instead)
[2024-10-21T15:56:14.046Z INFO /home/devin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.2.0/src/library/codegen/parser/mir/parser/ty/enum_or_struct.rs:73] Skip parsing enum_or_struct `NamespacedName { namespace: Namespace { joined_path: "crate::api" }, name: "EntityState" }` because of error (e=struct with unit fields are not supported yet, what about using `struct EntityState {}` or `#[frb(opaque)] struct EntityState;` instead)
[2024-10-21T15:56:14.046Z INFO /home/devin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.2.0/src/library/codegen/parser/mir/parser/ty/enum_or_struct.rs:73] Skip parsing enum_or_struct `NamespacedName { namespace: Namespace { joined_path: "crate::api" }, name: "ProcessState" }` because of error (e=struct with unit fields are not supported yet, what about using `struct ProcessState {}` or `#[frb(opaque)] struct ProcessState;` instead)
[0.4s] Parse
└── [0.3s] Cargo expand & syn parse
└── [0.0s] Parse HIR
└── [0.0s] Parse MIR
[0.0s] Generate
Error: File exists (os error 17)
Hi, I've had a flutter app I've been maintaining since pre 2.0 of this package. I'm trying to upgrade to the latest version, but I'm having some issues.
I was previously using this command to generate bindings:
In the latest version, I noticed it's switched to a sub-command
flutter_rust_bridge_codegen generate
, which I did. However, there have apparently been a few arg changes. I saw that--extra-c-output-path
was renamed to--duplicated-c-output
, which I also applied. It looks like--rust-input
has also changed, but it conveniently gives directions for updating that part.However, I cannot seem to find equivalents for
--dart-decl-output
or--wasm
. Do you have an info about this?I've tried just removing
--dart-decl-output
and--wasm
, which will get past the arg parser, but I then get aFile exists (os error 17)
error from building:I don't have a minimal example, but here's my code (just master branch) if needed: https://github.com/dragazo/phone-iot-2
The text was updated successfully, but these errors were encountered: