fzyzcjy / flutter_rust_bridge

Flutter/Dart <-> Rust binding generator, feature-rich, but seamless and simple.
https://fzyzcjy.github.io/flutter_rust_bridge/
MIT License
4.16k stars 288 forks source link

Error `cargo build` after getting the `src/api/override_web_audio_api.rs` file from the github repo #2154

Closed Larpoux closed 3 months ago

Larpoux commented 3 months ago

Describe the bug

I got the file flutter_rust_bridge/frb_example/integrate_third_party/rust/src/api/override_web_audio_api.rs from the github repo. I get many errors during compilation of the rust code. I tried also to generate a newer flutter_rust_bridge_codegen compiling the frb_codegen under your repo, but the result was not better.

Steps to reproduce

cp frb_flutter_rust_bridge/frb_example/integrate_third_party/rust/src/api/overridde_web_audio_api.rs rust/src/api
flutter_rust_bridge_codegen generate
cd rust
cargo build

Logs

larpoux@Mac-mini:~/projmac/toto/tau$ bin/gen.sh 
Analyzing dependencies
Downloading dependencies
Generating Pods project
Integrating client project
Pod installation complete! There are 4 dependencies from the Podfile and 5 total pods installed.

[!] Automatically assigning platform `iOS` with version `12.0` on target `Runner` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.

[!] CocoaPods did not set the base configuration of your project because your project already has a custom config set. In order for CocoaPods integration to work at all, please either set the base configurations of the target `Runner` to `Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig` or include the `Target Support Files/Pods-Runner/Pods-Runner.profile.xcconfig` in your build configuration (`Flutter/Release.xcconfig`).
Deleting .dart_tool...                                              16ms
Resolving dependencies... 
Downloading packages... 
  _fe_analyzer_shared 68.0.0 (72.0.0 available)
  analyzer 6.5.0 (6.7.0 available)
  collection 1.18.0 (1.19.0 available)
  http_parser 4.0.2 (4.1.0 available)
  macros 0.1.0-main.5 (0.1.2-main.4 available)
  material_color_utilities 0.11.1 (0.12.0 available)
  meta 1.14.0 (1.15.0 available)
  shelf 1.4.1 (1.4.2 available)
  test_api 0.7.1 (0.7.2 available)
  vm_service 14.2.2 (14.2.4 available)
Got dependencies!
10 packages have newer versions incompatible with dependency constraints.
Try `flutter pub outdated` for more information.
Resolving dependencies in `./example`... 
Downloading packages... 
Got dependencies in `./example`.
[2024-06-24T16:48:45.957Z INFO /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0/src/library/codegen/parser/hir/flat/transformer/merge_duplicate_transformer/mod.rs:72] There are still multiple objects with same key after merging, thus randomly pick one. This is an issue only if the object is indeed used. (key=("AudioParamValues < 'a >", "get"), objects={"namespace":"web_audio_api::render::processor","owner":{"StructOrEnum":{"impl_ty":"AudioParamValues < 'a >","trait_def_name":null}},"sources":["Normal"],"item_fn":"GeneralizedItemFn(name=get, vis=Some(Visibility::Public(Pub)), attrs=[# [doc = \" Get the computed values for the given [`crate::param::AudioParam`]\"], # [doc = \"\"], # [doc = \" For k-rate params or if the (a-rate) parameter is constant for this block, it will provide\"], # [doc = \" a slice of length 1. In other cases, i.e. a-rate param with scheduled automations it will\"], # [doc = \" provide a slice of length equal to the render quantum size (default: 128)\"], # [allow (clippy :: missing_panics_doc)]])"}, {"namespace":"web_audio_api::worklet","owner":{"StructOrEnum":{"impl_ty":"AudioParamValues < 'a >","trait_def_name":null}},"sources":["Normal"],"item_fn":"GeneralizedItemFn(name=get, vis=Some(Visibility::Public(Pub)), attrs=[# [doc = \" Get the computed values for the given [`AudioParam`]\"], # [doc = \"\"], # [doc = \" For k-rate params or if the (a-rate) parameter is constant for this block, it will provide\"], # [doc = \" a slice of length 1. In other cases, i.e. a-rate param with scheduled automations it will\"], # [doc = \" provide a slice of length equal to the render quantum size (default: 128)\"], # [allow (clippy :: missing_panics_doc)]])"})
[2024-06-24T16:48:46.161Z INFO /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.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-06-24T16:48:46.172Z INFO /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0/src/library/codegen/parser/mir/parser/function/real/output.rs:74] Output type of `channel_config` is a reference, thus currently set to unit type. The "lifetimes" section in doc may be interesting.
[2024-06-24T16:48:46.175Z INFO /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0/src/library/codegen/parser/mir/parser/function/real/output.rs:74] Output type of `registration` is a reference, thus currently set to unit type. The "lifetimes" section in doc may be interesting.
[2024-06-24T16:48:46.177Z INFO /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0/src/library/codegen/parser/mir/parser/function/real/output.rs:74] Output type of `get_channel_data` is a reference, thus currently set to unit type. The "lifetimes" section in doc may be interesting.
[2024-06-24T16:48:46.177Z INFO /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0/src/library/codegen/parser/mir/parser/function/real/output.rs:74] Output type of `get_channel_data_mut` is a reference, thus currently set to unit type. The "lifetimes" section in doc may be interesting.
[2024-06-24T16:48:46.178Z INFO /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0/src/library/codegen/parser/mir/parser/function/real/output.rs:74] Output type of `channel_config` is a reference, thus currently set to unit type. The "lifetimes" section in doc may be interesting.
[2024-06-24T16:48:46.181Z INFO /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0/src/library/codegen/parser/mir/parser/function/real/output.rs:74] Output type of `registration` is a reference, thus currently set to unit type. The "lifetimes" section in doc may be interesting.
[2024-06-24T16:48:46.185Z INFO /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0/src/library/codegen/parser/mir/parser/function/real/output.rs:74] Output type of `render_capacity` is a reference, thus currently set to unit type. The "lifetimes" section in doc may be interesting.
[2024-06-24T16:48:46.187Z INFO /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0/src/library/codegen/parser/mir/parser/function/real/output.rs:74] Output type of `channel_config` is a reference, thus currently set to unit type. The "lifetimes" section in doc may be interesting.
[2024-06-24T16:48:46.188Z INFO /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0/src/library/codegen/parser/mir/parser/function/real/output.rs:74] Output type of `registration` is a reference, thus currently set to unit type. The "lifetimes" section in doc may be interesting.
[2024-06-24T16:48:46.190Z INFO /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0/src/library/codegen/parser/mir/parser/function/real/output.rs:74] Output type of `channel_config` is a reference, thus currently set to unit type. The "lifetimes" section in doc may be interesting.
[2024-06-24T16:48:46.190Z INFO /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0/src/library/codegen/parser/mir/parser/function/real/output.rs:74] Output type of `registration` is a reference, thus currently set to unit type. The "lifetimes" section in doc may be interesting.
[2024-06-24T16:48:46.190Z INFO /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0/src/library/codegen/parser/mir/parser/function/real/output.rs:74] Output type of `cancel_and_hold_at_time` is a reference, thus currently set to unit type. The "lifetimes" section in doc may be interesting.
[2024-06-24T16:48:46.190Z INFO /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0/src/library/codegen/parser/mir/parser/function/real/output.rs:74] Output type of `cancel_scheduled_values` is a reference, thus currently set to unit type. The "lifetimes" section in doc may be interesting.
[2024-06-24T16:48:46.190Z INFO /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0/src/library/codegen/parser/mir/parser/function/real/output.rs:74] Output type of `channel_config` is a reference, thus currently set to unit type. The "lifetimes" section in doc may be interesting.
[2024-06-24T16:48:46.191Z INFO /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0/src/library/codegen/parser/mir/parser/function/real/output.rs:74] Output type of `exponential_ramp_to_value_at_time` is a reference, thus currently set to unit type. The "lifetimes" section in doc may be interesting.
[2024-06-24T16:48:46.191Z INFO /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0/src/library/codegen/parser/mir/parser/function/real/output.rs:74] Output type of `linear_ramp_to_value_at_time` is a reference, thus currently set to unit type. The "lifetimes" section in doc may be interesting.
[2024-06-24T16:48:46.191Z INFO /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0/src/library/codegen/parser/mir/parser/function/real/output.rs:74] Output type of `registration` is a reference, thus currently set to unit type. The "lifetimes" section in doc may be interesting.
[2024-06-24T16:48:46.192Z INFO /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0/src/library/codegen/parser/mir/parser/function/real/output.rs:74] Output type of `set_target_at_time` is a reference, thus currently set to unit type. The "lifetimes" section in doc may be interesting.
[2024-06-24T16:48:46.192Z INFO /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0/src/library/codegen/parser/mir/parser/function/real/output.rs:74] Output type of `set_value` is a reference, thus currently set to unit type. The "lifetimes" section in doc may be interesting.
[2024-06-24T16:48:46.192Z INFO /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0/src/library/codegen/parser/mir/parser/function/real/output.rs:74] Output type of `set_value_at_time` is a reference, thus currently set to unit type. The "lifetimes" section in doc may be interesting.
[2024-06-24T16:48:46.192Z INFO /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0/src/library/codegen/parser/mir/parser/function/real/output.rs:74] Output type of `set_value_curve_at_time` is a reference, thus currently set to unit type. The "lifetimes" section in doc may be interesting.
[2024-06-24T16:48:46.192Z INFO /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0/src/library/codegen/parser/mir/parser/function/real/output.rs:74] Output type of `channel_config` is a reference, thus currently set to unit type. The "lifetimes" section in doc may be interesting.
[2024-06-24T16:48:46.193Z INFO /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0/src/library/codegen/parser/mir/parser/function/real/output.rs:74] Output type of `parameters` is a reference, thus currently set to unit type. The "lifetimes" section in doc may be interesting.
[2024-06-24T16:48:46.193Z INFO /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0/src/library/codegen/parser/mir/parser/function/real/output.rs:74] Output type of `registration` is a reference, thus currently set to unit type. The "lifetimes" section in doc may be interesting.
[2024-06-24T16:48:46.195Z INFO /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0/src/library/codegen/parser/mir/parser/function/real/output.rs:74] Output type of `channel_config` is a reference, thus currently set to unit type. The "lifetimes" section in doc may be interesting.
[2024-06-24T16:48:46.197Z INFO /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0/src/library/codegen/parser/mir/parser/function/real/output.rs:74] Output type of `registration` is a reference, thus currently set to unit type. The "lifetimes" section in doc may be interesting.
[2024-06-24T16:48:46.198Z INFO /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0/src/library/codegen/parser/mir/parser/function/real/output.rs:74] Output type of `channel_config` is a reference, thus currently set to unit type. The "lifetimes" section in doc may be interesting.
[2024-06-24T16:48:46.199Z INFO /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0/src/library/codegen/parser/mir/parser/function/real/output.rs:74] Output type of `registration` is a reference, thus currently set to unit type. The "lifetimes" section in doc may be interesting.
[2024-06-24T16:48:46.200Z INFO /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0/src/library/codegen/parser/mir/parser/function/real/output.rs:74] Output type of `channel_config` is a reference, thus currently set to unit type. The "lifetimes" section in doc may be interesting.
[2024-06-24T16:48:46.200Z INFO /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0/src/library/codegen/parser/mir/parser/function/real/output.rs:74] Output type of `registration` is a reference, thus currently set to unit type. The "lifetimes" section in doc may be interesting.
[2024-06-24T16:48:46.202Z INFO /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0/src/library/codegen/parser/mir/parser/function/real/output.rs:74] Output type of `channel_config` is a reference, thus currently set to unit type. The "lifetimes" section in doc may be interesting.
[2024-06-24T16:48:46.204Z INFO /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0/src/library/codegen/parser/mir/parser/function/real/output.rs:74] Output type of `registration` is a reference, thus currently set to unit type. The "lifetimes" section in doc may be interesting.
[2024-06-24T16:48:46.205Z INFO /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0/src/library/codegen/parser/mir/parser/function/real/output.rs:74] Output type of `channel_config` is a reference, thus currently set to unit type. The "lifetimes" section in doc may be interesting.
[2024-06-24T16:48:46.207Z INFO /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0/src/library/codegen/parser/mir/parser/function/real/output.rs:74] Output type of `registration` is a reference, thus currently set to unit type. The "lifetimes" section in doc may be interesting.
[2024-06-24T16:48:46.208Z INFO /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0/src/library/codegen/parser/mir/parser/function/real/output.rs:74] Output type of `channel_config` is a reference, thus currently set to unit type. The "lifetimes" section in doc may be interesting.
[2024-06-24T16:48:46.209Z INFO /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0/src/library/codegen/parser/mir/parser/function/real/output.rs:74] Output type of `registration` is a reference, thus currently set to unit type. The "lifetimes" section in doc may be interesting.
[2024-06-24T16:48:46.210Z INFO /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0/src/library/codegen/parser/mir/parser/function/real/output.rs:74] Output type of `channel_config` is a reference, thus currently set to unit type. The "lifetimes" section in doc may be interesting.
[2024-06-24T16:48:46.212Z INFO /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0/src/library/codegen/parser/mir/parser/function/real/output.rs:74] Output type of `registration` is a reference, thus currently set to unit type. The "lifetimes" section in doc may be interesting.
[2024-06-24T16:48:46.213Z INFO /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0/src/library/codegen/parser/mir/parser/function/real/output.rs:74] Output type of `channel_config` is a reference, thus currently set to unit type. The "lifetimes" section in doc may be interesting.
[2024-06-24T16:48:46.213Z INFO /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0/src/library/codegen/parser/mir/parser/function/real/output.rs:74] Output type of `registration` is a reference, thus currently set to unit type. The "lifetimes" section in doc may be interesting.
[2024-06-24T16:48:46.214Z INFO /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0/src/library/codegen/parser/mir/parser/function/real/output.rs:74] Output type of `channel_config` is a reference, thus currently set to unit type. The "lifetimes" section in doc may be interesting.
[2024-06-24T16:48:46.217Z INFO /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0/src/library/codegen/parser/mir/parser/function/real/output.rs:74] Output type of `registration` is a reference, thus currently set to unit type. The "lifetimes" section in doc may be interesting.
[2024-06-24T16:48:46.219Z INFO /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0/src/library/codegen/parser/mir/parser/function/real/output.rs:74] Output type of `channel_config` is a reference, thus currently set to unit type. The "lifetimes" section in doc may be interesting.
[2024-06-24T16:48:46.220Z INFO /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0/src/library/codegen/parser/mir/parser/function/real/output.rs:74] Output type of `registration` is a reference, thus currently set to unit type. The "lifetimes" section in doc may be interesting.
[2024-06-24T16:48:46.222Z INFO /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0/src/library/codegen/parser/mir/parser/function/real/output.rs:74] Output type of `channel_config` is a reference, thus currently set to unit type. The "lifetimes" section in doc may be interesting.
[2024-06-24T16:48:46.224Z INFO /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0/src/library/codegen/parser/mir/parser/function/real/output.rs:74] Output type of `registration` is a reference, thus currently set to unit type. The "lifetimes" section in doc may be interesting.
[2024-06-24T16:48:46.225Z INFO /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0/src/library/codegen/parser/mir/parser/function/real/output.rs:74] Output type of `channel_config` is a reference, thus currently set to unit type. The "lifetimes" section in doc may be interesting.
[2024-06-24T16:48:46.225Z INFO /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0/src/library/codegen/parser/mir/parser/function/real/output.rs:74] Output type of `registration` is a reference, thus currently set to unit type. The "lifetimes" section in doc may be interesting.
[2024-06-24T16:48:46.226Z INFO /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0/src/library/codegen/parser/mir/parser/function/real/output.rs:74] Output type of `channel_config` is a reference, thus currently set to unit type. The "lifetimes" section in doc may be interesting.
[2024-06-24T16:48:46.228Z INFO /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0/src/library/codegen/parser/mir/parser/function/real/output.rs:74] Output type of `registration` is a reference, thus currently set to unit type. The "lifetimes" section in doc may be interesting.
[2024-06-24T16:48:46.231Z INFO /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0/src/library/codegen/parser/mir/parser/function/real/output.rs:74] Output type of `channel_config` is a reference, thus currently set to unit type. The "lifetimes" section in doc may be interesting.
[2024-06-24T16:48:46.233Z INFO /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0/src/library/codegen/parser/mir/parser/function/real/output.rs:74] Output type of `registration` is a reference, thus currently set to unit type. The "lifetimes" section in doc may be interesting.
[2024-06-24T16:48:46.234Z INFO /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0/src/library/codegen/parser/mir/parser/function/real/output.rs:74] Output type of `channel_config` is a reference, thus currently set to unit type. The "lifetimes" section in doc may be interesting.
[2024-06-24T16:48:46.237Z INFO /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0/src/library/codegen/parser/mir/parser/function/real/output.rs:74] Output type of `registration` is a reference, thus currently set to unit type. The "lifetimes" section in doc may be interesting.
[2024-06-24T16:48:46.239Z INFO /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0/src/library/codegen/parser/mir/parser/function/real/output.rs:74] Output type of `channel_config` is a reference, thus currently set to unit type. The "lifetimes" section in doc may be interesting.
[2024-06-24T16:48:46.240Z INFO /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0/src/library/codegen/parser/mir/parser/function/real/output.rs:74] Output type of `registration` is a reference, thus currently set to unit type. The "lifetimes" section in doc may be interesting.
[2024-06-24T16:48:46.240Z INFO /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0/src/library/codegen/parser/mir/parser/function/real/output.rs:74] Output type of `channel_config` is a reference, thus currently set to unit type. The "lifetimes" section in doc may be interesting.
[2024-06-24T16:48:46.242Z INFO /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0/src/library/codegen/parser/mir/parser/function/real/output.rs:74] Output type of `registration` is a reference, thus currently set to unit type. The "lifetimes" section in doc may be interesting.
[2024-06-24T16:48:46.243Z INFO /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0/src/library/codegen/parser/mir/parser/function/real/output.rs:74] Output type of `channel_config` is a reference, thus currently set to unit type. The "lifetimes" section in doc may be interesting.
[2024-06-24T16:48:46.245Z INFO /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0/src/library/codegen/parser/mir/parser/function/real/output.rs:74] Output type of `registration` is a reference, thus currently set to unit type. The "lifetimes" section in doc may be interesting.
[2024-06-24T16:48:46.250Z INFO /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0/src/library/codegen/parser/mir/sanity_checker/auto_accessor_checker.rs:21] To use the automatically generated getters of the following fields of opaque types, it is suggested to read https://fzyzcjy.github.io/flutter_rust_bridge/guides/types/arbitrary/rust-auto-opaque/properties to know more details. (Related fields: web_audio_api::OfflineAudioCompletionEvent.rendered_buffer, web_audio_api::OfflineAudioCompletionEvent.rendered_buffer, web_audio_api::OfflineAudioCompletionEvent.event, web_audio_api::OfflineAudioCompletionEvent.event, web_audio_api::media_recorder::BlobEvent.blob, web_audio_api::media_recorder::BlobEvent.blob, web_audio_api::media_recorder::BlobEvent.event, web_audio_api::media_recorder::BlobEvent.event, web_audio_api::AudioProcessingEvent.input_buffer, web_audio_api::AudioProcessingEvent.input_buffer, web_audio_api::AudioProcessingEvent.output_buffer, web_audio_api::AudioProcessingEvent.output_buffer, web_audio_api::AudioRenderCapacityEvent.event, web_audio_api::AudioRenderCapacityEvent.event)
[21.1s] Parse  
  └── [20.6s] Cargo expand & syn parse  
  └── [0.3s] Parse HIR  
  └── [0.2s] Parse MIR  
[3.3s] Generate  
[51.2s] Polish  
  └── [49.4s] Run Dart build_runner  
  └── [1.2s] Run Dart formatter  
  └── [0.5s] Run Rust formatter  
  └── [0.0s] Auto upgrade                                                                                                                                                                  Done!
     Removed 3042 files, 745.0MiB total
   Compiling proc-macro2 v1.0.86
   Compiling unicode-ident v1.0.12
   Compiling cfg-if v1.0.0
   Compiling autocfg v1.3.0
   Compiling serde v1.0.203
   Compiling lazy_static v1.5.0
   Compiling libc v0.2.155
   Compiling bitflags v1.3.2
   Compiling arrayvec v0.7.4
   Compiling bytemuck v1.16.1
   Compiling version_check v0.9.4
   Compiling encoding_rs v0.8.34
   Compiling memchr v2.7.4
   Compiling cc v1.0.99
   Compiling num-traits v0.2.19
   Compiling glob v0.3.1
   Compiling clang-sys v1.8.1
   Compiling typenum v1.17.0
   Compiling regex-syntax v0.8.4
   Compiling quote v1.0.36
   Compiling smallvec v1.13.2
   Compiling syn v2.0.67
   Compiling minimal-lexical v0.2.1
   Compiling num-integer v0.1.46
   Compiling nom v7.1.3
   Compiling generic-array v0.14.7
   Compiling lock_api v0.4.12
   Compiling libloading v0.8.3
   Compiling either v1.12.0
   Compiling bindgen v0.69.4
   Compiling itertools v0.12.1
   Compiling rustfft v6.2.0
   Compiling regex-automata v0.4.7
   Compiling slab v0.4.9
   Compiling scopeguard v1.2.0
   Compiling core-foundation-sys v0.8.6
   Compiling shlex v1.3.0
   Compiling bitflags v2.5.0
   Compiling lazycell v1.3.0
   Compiling strength_reduce v0.2.4
   Compiling adler v1.0.2
   Compiling cexpr v0.6.0
   Compiling rustc-hash v1.1.0
   Compiling miniz_oxide v0.7.4
   Compiling transpose v0.2.3
   Compiling primal-check v0.3.4
   Compiling num-complex v0.4.6
   Compiling pin-project-lite v0.2.14
   Compiling futures-sink v0.3.30
   Compiling regex v1.10.5
   Compiling futures-core v0.3.30
   Compiling futures-channel v0.3.30
   Compiling indexmap v1.9.3
   Compiling parking_lot_core v0.9.10
   Compiling rtrb v0.3.1
   Compiling futures-io v0.3.30
   Compiling extended v0.1.0
   Compiling pin-utils v0.1.0
   Compiling parking_lot_core v0.8.6
   Compiling futures-task v0.3.30
   Compiling creek-core v0.2.2
   Compiling block-buffer v0.10.4
   Compiling crypto-common v0.1.6
   Compiling backtrace v0.3.73
   Compiling aho-corasick v1.1.3
   Compiling instant v0.1.13
   Compiling ryu v1.0.18
   Compiling serde_json v1.0.117
   Compiling crossbeam-utils v0.8.20
   Compiling hashbrown v0.12.3
   Compiling once_cell v1.19.0
   Compiling gimli v0.29.0
   Compiling anyhow v1.0.86
   Compiling linked-hash-map v0.5.6
   Compiling yaml-rust v0.4.5
   Compiling realfft v3.3.0
   Compiling serde_derive v1.0.203
   Compiling futures-macro v0.3.30
   Compiling addr2line v0.22.0
   Compiling digest v0.10.7
   Compiling iana-time-zone v0.1.60
   Compiling dart-sys-fork v4.1.1
   Compiling ordered-float v1.1.1
   Compiling futures-util v0.3.30
   Compiling num_cpus v1.16.0
   Compiling object v0.36.0
   Compiling crc32fast v1.4.2
   Compiling build-target v0.4.0
   Compiling rustc-demangle v0.1.24
   Compiling itoa v1.0.11
   Compiling cpal v0.15.3
   Compiling utf8parse v0.2.2
   Compiling quick-error v1.2.3
   Compiling syn v1.0.109
   Compiling byte-slice-cast v1.2.2
   Compiling byteorder v1.5.0
   Compiling creek-encode-wav v0.2.0
   Compiling humantime v1.3.0
   Compiling anstyle-parse v0.2.4
   Compiling flutter_rust_bridge v2.0.0
   Compiling flate2 v1.0.30
   Compiling chrono v0.4.38
   Compiling parking_lot v0.11.2
   Compiling md-5 v0.10.6
   Compiling futures-executor v0.3.30
   Compiling coreaudio-sys v0.2.15
   Compiling rubato v0.14.1
   Compiling oslog v0.2.0
   Compiling thread-id v3.3.0
   Compiling mach2 v0.4.2
   Compiling log-mdc v0.1.0
   Compiling is_terminal_polyfill v1.70.0
   Compiling hex v0.4.3
   Compiling dasp_sample v0.11.0
   Compiling arc-swap v0.4.8
   Compiling atomic v0.5.3
   Compiling fnv v1.0.7
   Compiling anstyle v1.0.7
   Compiling paste v1.0.15
   Compiling hashbrown v0.14.5
   Compiling anstyle-query v1.1.0
   Compiling colorchoice v1.0.1
   Compiling piston-float v1.0.1
   Compiling vecmath v1.0.0
   Compiling anstream v0.6.14
   Compiling flutter_rust_bridge_macros v2.0.0
   Compiling allo-isolate v0.1.25
   Compiling hrtf v0.8.1
   Compiling dashmap v5.5.3
   Compiling futures v0.3.30
   Compiling crossbeam-channel v0.5.13
   Compiling threadpool v1.8.1
   Compiling tokio v1.38.0
   Compiling delegate-attr v0.3.0
   Compiling rubato v0.15.0
   Compiling arc-swap v1.7.1
   Compiling log v0.4.21
   Compiling serde_yaml v0.8.26
   Compiling symphonia-core v0.5.4
   Compiling serde-value v0.6.0
   Compiling env_filter v0.1.0
   Compiling log4rs v0.13.0
   Compiling symphonia-metadata v0.5.4
   Compiling symphonia-codec-aac v0.5.4
   Compiling symphonia-utils-xiph v0.5.4
   Compiling symphonia-format-isomp4 v0.5.4
   Compiling symphonia-format-ogg v0.5.4
   Compiling symphonia-format-mkv v0.5.4
   Compiling symphonia-codec-vorbis v0.5.4
   Compiling symphonia-bundle-flac v0.5.4
   Compiling symphonia-bundle-mp3 v0.5.4
   Compiling symphonia-format-riff v0.5.4
   Compiling symphonia-codec-pcm v0.5.4
   Compiling symphonia-codec-adpcm v0.5.4
   Compiling symphonia-codec-alac v0.5.4
   Compiling is_debug v1.0.1
   Compiling symphonia v0.5.4
   Compiling llq v0.1.1
   Compiling creek-decode-symphonia v0.3.1
   Compiling humantime v2.1.0
   Compiling creek v1.2.2
   Compiling hound v3.5.1
   Compiling convert_case v0.5.0
   Compiling float_eq v1.0.1
   Compiling no_denormals v0.1.2
   Compiling simple-log v1.6.0
   Compiling env_logger v0.11.3
   Compiling trace v0.1.7
   Compiling coreaudio-rs v0.11.3
   Compiling flutter_logger v0.6.1
   Compiling parking_lot v0.12.3
   Compiling extend v1.2.0
   Compiling sink v0.1.0
   Compiling web-audio-api v1.0.0-rc.6
   Compiling tau v0.1.0 (/Volumes/mac-J/larpoux/projmac/toto/tau/rust)
error[E0432]: unresolved import `flutter_rust_bridge::BaseAsyncRuntime`
 --> src/api/override_web_audio_api.rs:5:32
  |
5 | use flutter_rust_bridge::{frb, BaseAsyncRuntime, DartFnFuture};
  |                                ^^^^^^^^^^^^^^^^ no `BaseAsyncRuntime` in the root

warning: unused import: `trace::trace`
  --> src/api/simple.rs:26:5
   |
26 | use trace::trace;
   |     ^^^^^^^^^^^^
   |
   = note: `#[warn(unused_imports)]` on by default

warning: unused import: `std::sync::Once`
  --> src/api/simple.rs:33:5
   |
33 | use std::sync::Once;
   |     ^^^^^^^^^^^^^^^

warning: unused import: `trace::trace`
  --> src/api/toto.rs:26:5
   |
26 | use trace::trace;
   |     ^^^^^^^^^^^^

warning: unused imports: `error as e`, `warn as w`
  --> src/api/toto.rs:29:34
   |
29 | use log::{info as i, trace as t, warn as w, error as e, debug as d};
   |                                  ^^^^^^^^^  ^^^^^^^^^^

warning: unused import: `trace::trace`
  --> src/api/mimi.rs:26:5
   |
26 | use trace::trace;
   |     ^^^^^^^^^^^^

warning: unused imports: `error as e`, `warn as w`
  --> src/api/mimi.rs:29:34
   |
29 | use log::{info as i, trace as t, warn as w, error as e, debug as d};
   |                                  ^^^^^^^^^  ^^^^^^^^^^

error[E0599]: no method named `async_runtime` found for struct `frb_generated::FLUTTER_RUST_BRIDGE_HANDLER` in the current scope
  --> src/api/override_web_audio_api.rs:43:18
   |
42 | /             FLUTTER_RUST_BRIDGE_HANDLER
43 | |                 .async_runtime()
   | |                 -^^^^^^^^^^^^^ method not found in `FLUTTER_RUST_BRIDGE_HANDLER`
   | |_________________|
   | 
   |
  ::: src/frb_generated.rs:85:1
   |
85 |   flutter_rust_bridge::frb_generated_default_handler!();
   |   ----------------------------------------------------- method `async_runtime` not found for this struct

error[E0599]: no method named `async_runtime` found for struct `frb_generated::FLUTTER_RUST_BRIDGE_HANDLER` in the current scope
  --> src/api/override_web_audio_api.rs:57:18
   |
56 | /             FLUTTER_RUST_BRIDGE_HANDLER
57 | |                 .async_runtime()
   | |                 -^^^^^^^^^^^^^ method not found in `FLUTTER_RUST_BRIDGE_HANDLER`
   | |_________________|
   | 
   |
  ::: src/frb_generated.rs:85:1
   |
85 |   flutter_rust_bridge::frb_generated_default_handler!();
   |   ----------------------------------------------------- method `async_runtime` not found for this struct

error[E0599]: no method named `async_runtime` found for struct `frb_generated::FLUTTER_RUST_BRIDGE_HANDLER` in the current scope
  --> src/api/override_web_audio_api.rs:79:26
   |
78 | /                     FLUTTER_RUST_BRIDGE_HANDLER
79 | |                         .async_runtime()
   | |                         -^^^^^^^^^^^^^ method not found in `FLUTTER_RUST_BRIDGE_HANDLER`
   | |_________________________|
   | 
...
87 |   handle_audio_node_trait_impls_override!(AudioParam);
   |   --------------------------------------------------- in this macro invocation
   |
  ::: src/frb_generated.rs:85:1
   |
85 |   flutter_rust_bridge::frb_generated_default_handler!();
   |   ----------------------------------------------------- method `async_runtime` not found for this struct
   |
   = note: this error originates in the macro `handle_audio_node_trait_impls_override` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0599]: no method named `async_runtime` found for struct `frb_generated::FLUTTER_RUST_BRIDGE_HANDLER` in the current scope
  --> src/api/override_web_audio_api.rs:79:26
   |
78 | /                     FLUTTER_RUST_BRIDGE_HANDLER
79 | |                         .async_runtime()
   | |                         -^^^^^^^^^^^^^ method not found in `FLUTTER_RUST_BRIDGE_HANDLER`
   | |_________________________|
   | 
...
88 |   handle_audio_node_trait_impls_override!(AnalyserNode);
   |   ----------------------------------------------------- in this macro invocation
   |
  ::: src/frb_generated.rs:85:1
   |
85 |   flutter_rust_bridge::frb_generated_default_handler!();
   |   ----------------------------------------------------- method `async_runtime` not found for this struct
   |
   = note: this error originates in the macro `handle_audio_node_trait_impls_override` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0599]: no method named `async_runtime` found for struct `frb_generated::FLUTTER_RUST_BRIDGE_HANDLER` in the current scope
  --> src/api/override_web_audio_api.rs:79:26
   |
78 | /                     FLUTTER_RUST_BRIDGE_HANDLER
79 | |                         .async_runtime()
   | |                         -^^^^^^^^^^^^^ method not found in `FLUTTER_RUST_BRIDGE_HANDLER`
   | |_________________________|
   | 
...
89 |   handle_audio_node_trait_impls_override!(AudioBufferSourceNode);
   |   -------------------------------------------------------------- in this macro invocation
   |
  ::: src/frb_generated.rs:85:1
   |
85 |   flutter_rust_bridge::frb_generated_default_handler!();
   |   ----------------------------------------------------- method `async_runtime` not found for this struct
   |
   = note: this error originates in the macro `handle_audio_node_trait_impls_override` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0599]: no method named `async_runtime` found for struct `frb_generated::FLUTTER_RUST_BRIDGE_HANDLER` in the current scope
  --> src/api/override_web_audio_api.rs:79:26
   |
78 | /                     FLUTTER_RUST_BRIDGE_HANDLER
79 | |                         .async_runtime()
   | |                         -^^^^^^^^^^^^^ method not found in `FLUTTER_RUST_BRIDGE_HANDLER`
   | |_________________________|
   | 
...
90 |   handle_audio_node_trait_impls_override!(AudioDestinationNode);
   |   ------------------------------------------------------------- in this macro invocation
   |
  ::: src/frb_generated.rs:85:1
   |
85 |   flutter_rust_bridge::frb_generated_default_handler!();
   |   ----------------------------------------------------- method `async_runtime` not found for this struct
   |
   = note: this error originates in the macro `handle_audio_node_trait_impls_override` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0599]: no method named `async_runtime` found for struct `frb_generated::FLUTTER_RUST_BRIDGE_HANDLER` in the current scope
  --> src/api/override_web_audio_api.rs:79:26
   |
78 | /                     FLUTTER_RUST_BRIDGE_HANDLER
79 | |                         .async_runtime()
   | |                         -^^^^^^^^^^^^^ method not found in `FLUTTER_RUST_BRIDGE_HANDLER`
   | |_________________________|
   | 
...
91 |   handle_audio_node_trait_impls_override!(BiquadFilterNode);
   |   --------------------------------------------------------- in this macro invocation
   |
  ::: src/frb_generated.rs:85:1
   |
85 |   flutter_rust_bridge::frb_generated_default_handler!();
   |   ----------------------------------------------------- method `async_runtime` not found for this struct
   |
   = note: this error originates in the macro `handle_audio_node_trait_impls_override` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0599]: no method named `async_runtime` found for struct `frb_generated::FLUTTER_RUST_BRIDGE_HANDLER` in the current scope
  --> src/api/override_web_audio_api.rs:79:26
   |
78 | /                     FLUTTER_RUST_BRIDGE_HANDLER
79 | |                         .async_runtime()
   | |                         -^^^^^^^^^^^^^ method not found in `FLUTTER_RUST_BRIDGE_HANDLER`
   | |_________________________|
   | 
...
92 |   handle_audio_node_trait_impls_override!(ChannelMergerNode);
   |   ---------------------------------------------------------- in this macro invocation
   |
  ::: src/frb_generated.rs:85:1
   |
85 |   flutter_rust_bridge::frb_generated_default_handler!();
   |   ----------------------------------------------------- method `async_runtime` not found for this struct
   |
   = note: this error originates in the macro `handle_audio_node_trait_impls_override` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0599]: no method named `async_runtime` found for struct `frb_generated::FLUTTER_RUST_BRIDGE_HANDLER` in the current scope
  --> src/api/override_web_audio_api.rs:79:26
   |
78 | /                     FLUTTER_RUST_BRIDGE_HANDLER
79 | |                         .async_runtime()
   | |                         -^^^^^^^^^^^^^ method not found in `FLUTTER_RUST_BRIDGE_HANDLER`
   | |_________________________|
   | 
...
93 |   handle_audio_node_trait_impls_override!(ChannelSplitterNode);
   |   ------------------------------------------------------------ in this macro invocation
   |
  ::: src/frb_generated.rs:85:1
   |
85 |   flutter_rust_bridge::frb_generated_default_handler!();
   |   ----------------------------------------------------- method `async_runtime` not found for this struct
   |
   = note: this error originates in the macro `handle_audio_node_trait_impls_override` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0599]: no method named `async_runtime` found for struct `frb_generated::FLUTTER_RUST_BRIDGE_HANDLER` in the current scope
  --> src/api/override_web_audio_api.rs:79:26
   |
78 | /                     FLUTTER_RUST_BRIDGE_HANDLER
79 | |                         .async_runtime()
   | |                         -^^^^^^^^^^^^^ method not found in `FLUTTER_RUST_BRIDGE_HANDLER`
   | |_________________________|
   | 
...
94 |   handle_audio_node_trait_impls_override!(ConstantSourceNode);
   |   ----------------------------------------------------------- in this macro invocation
   |
  ::: src/frb_generated.rs:85:1
   |
85 |   flutter_rust_bridge::frb_generated_default_handler!();
   |   ----------------------------------------------------- method `async_runtime` not found for this struct
   |
   = note: this error originates in the macro `handle_audio_node_trait_impls_override` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0599]: no method named `async_runtime` found for struct `frb_generated::FLUTTER_RUST_BRIDGE_HANDLER` in the current scope
  --> src/api/override_web_audio_api.rs:79:26
   |
78 | /                     FLUTTER_RUST_BRIDGE_HANDLER
79 | |                         .async_runtime()
   | |                         -^^^^^^^^^^^^^ method not found in `FLUTTER_RUST_BRIDGE_HANDLER`
   | |_________________________|
   | 
...
95 |   handle_audio_node_trait_impls_override!(ConvolverNode);
   |   ------------------------------------------------------ in this macro invocation
   |
  ::: src/frb_generated.rs:85:1
   |
85 |   flutter_rust_bridge::frb_generated_default_handler!();
   |   ----------------------------------------------------- method `async_runtime` not found for this struct
   |
   = note: this error originates in the macro `handle_audio_node_trait_impls_override` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0599]: no method named `async_runtime` found for struct `frb_generated::FLUTTER_RUST_BRIDGE_HANDLER` in the current scope
  --> src/api/override_web_audio_api.rs:79:26
   |
78 | /                     FLUTTER_RUST_BRIDGE_HANDLER
79 | |                         .async_runtime()
   | |                         -^^^^^^^^^^^^^ method not found in `FLUTTER_RUST_BRIDGE_HANDLER`
   | |_________________________|
   | 
...
96 |   handle_audio_node_trait_impls_override!(DelayNode);
   |   -------------------------------------------------- in this macro invocation
   |
  ::: src/frb_generated.rs:85:1
   |
85 |   flutter_rust_bridge::frb_generated_default_handler!();
   |   ----------------------------------------------------- method `async_runtime` not found for this struct
   |
   = note: this error originates in the macro `handle_audio_node_trait_impls_override` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0599]: no method named `async_runtime` found for struct `frb_generated::FLUTTER_RUST_BRIDGE_HANDLER` in the current scope
  --> src/api/override_web_audio_api.rs:79:26
   |
78 | /                     FLUTTER_RUST_BRIDGE_HANDLER
79 | |                         .async_runtime()
   | |                         -^^^^^^^^^^^^^ method not found in `FLUTTER_RUST_BRIDGE_HANDLER`
   | |_________________________|
   | 
...
97 |   handle_audio_node_trait_impls_override!(DynamicsCompressorNode);
   |   --------------------------------------------------------------- in this macro invocation
   |
  ::: src/frb_generated.rs:85:1
   |
85 |   flutter_rust_bridge::frb_generated_default_handler!();
   |   ----------------------------------------------------- method `async_runtime` not found for this struct
   |
   = note: this error originates in the macro `handle_audio_node_trait_impls_override` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0599]: no method named `async_runtime` found for struct `frb_generated::FLUTTER_RUST_BRIDGE_HANDLER` in the current scope
  --> src/api/override_web_audio_api.rs:79:26
   |
78 | /                     FLUTTER_RUST_BRIDGE_HANDLER
79 | |                         .async_runtime()
   | |                         -^^^^^^^^^^^^^ method not found in `FLUTTER_RUST_BRIDGE_HANDLER`
   | |_________________________|
   | 
...
98 |   handle_audio_node_trait_impls_override!(GainNode);
   |   ------------------------------------------------- in this macro invocation
   |
  ::: src/frb_generated.rs:85:1
   |
85 |   flutter_rust_bridge::frb_generated_default_handler!();
   |   ----------------------------------------------------- method `async_runtime` not found for this struct
   |
   = note: this error originates in the macro `handle_audio_node_trait_impls_override` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0599]: no method named `async_runtime` found for struct `frb_generated::FLUTTER_RUST_BRIDGE_HANDLER` in the current scope
  --> src/api/override_web_audio_api.rs:79:26
   |
78 | /                     FLUTTER_RUST_BRIDGE_HANDLER
79 | |                         .async_runtime()
   | |                         -^^^^^^^^^^^^^ method not found in `FLUTTER_RUST_BRIDGE_HANDLER`
   | |_________________________|
   | 
...
99 |   handle_audio_node_trait_impls_override!(IIRFilterNode);
   |   ------------------------------------------------------ in this macro invocation
   |
  ::: src/frb_generated.rs:85:1
   |
85 |   flutter_rust_bridge::frb_generated_default_handler!();
   |   ----------------------------------------------------- method `async_runtime` not found for this struct
   |
   = note: this error originates in the macro `handle_audio_node_trait_impls_override` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0599]: no method named `async_runtime` found for struct `frb_generated::FLUTTER_RUST_BRIDGE_HANDLER` in the current scope
   --> src/api/override_web_audio_api.rs:79:26
    |
78  | /                     FLUTTER_RUST_BRIDGE_HANDLER
79  | |                         .async_runtime()
    | |                         -^^^^^^^^^^^^^ method not found in `FLUTTER_RUST_BRIDGE_HANDLER`
    | |_________________________|
    | 
...
100 |   handle_audio_node_trait_impls_override!(MediaElementAudioSourceNode);
    |   -------------------------------------------------------------------- in this macro invocation
    |
   ::: src/frb_generated.rs:85:1
    |
85  |   flutter_rust_bridge::frb_generated_default_handler!();
    |   ----------------------------------------------------- method `async_runtime` not found for this struct
    |
    = note: this error originates in the macro `handle_audio_node_trait_impls_override` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0599]: no method named `async_runtime` found for struct `frb_generated::FLUTTER_RUST_BRIDGE_HANDLER` in the current scope
   --> src/api/override_web_audio_api.rs:79:26
    |
78  | /                     FLUTTER_RUST_BRIDGE_HANDLER
79  | |                         .async_runtime()
    | |                         -^^^^^^^^^^^^^ method not found in `FLUTTER_RUST_BRIDGE_HANDLER`
    | |_________________________|
    | 
...
101 |   handle_audio_node_trait_impls_override!(MediaStreamAudioDestinationNode);
    |   ------------------------------------------------------------------------ in this macro invocation
    |
   ::: src/frb_generated.rs:85:1
    |
85  |   flutter_rust_bridge::frb_generated_default_handler!();
    |   ----------------------------------------------------- method `async_runtime` not found for this struct
    |
    = note: this error originates in the macro `handle_audio_node_trait_impls_override` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0599]: no method named `async_runtime` found for struct `frb_generated::FLUTTER_RUST_BRIDGE_HANDLER` in the current scope
   --> src/api/override_web_audio_api.rs:79:26
    |
78  | /                     FLUTTER_RUST_BRIDGE_HANDLER
79  | |                         .async_runtime()
    | |                         -^^^^^^^^^^^^^ method not found in `FLUTTER_RUST_BRIDGE_HANDLER`
    | |_________________________|
    | 
...
102 |   handle_audio_node_trait_impls_override!(MediaStreamAudioSourceNode);
    |   ------------------------------------------------------------------- in this macro invocation
    |
   ::: src/frb_generated.rs:85:1
    |
85  |   flutter_rust_bridge::frb_generated_default_handler!();
    |   ----------------------------------------------------- method `async_runtime` not found for this struct
    |
    = note: this error originates in the macro `handle_audio_node_trait_impls_override` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0599]: no method named `async_runtime` found for struct `frb_generated::FLUTTER_RUST_BRIDGE_HANDLER` in the current scope
   --> src/api/override_web_audio_api.rs:79:26
    |
78  | /                     FLUTTER_RUST_BRIDGE_HANDLER
79  | |                         .async_runtime()
    | |                         -^^^^^^^^^^^^^ method not found in `FLUTTER_RUST_BRIDGE_HANDLER`
    | |_________________________|
    | 
...
103 |   handle_audio_node_trait_impls_override!(MediaStreamTrackAudioSourceNode);
    |   ------------------------------------------------------------------------ in this macro invocation
    |
   ::: src/frb_generated.rs:85:1
    |
85  |   flutter_rust_bridge::frb_generated_default_handler!();
    |   ----------------------------------------------------- method `async_runtime` not found for this struct
    |
    = note: this error originates in the macro `handle_audio_node_trait_impls_override` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0599]: no method named `async_runtime` found for struct `frb_generated::FLUTTER_RUST_BRIDGE_HANDLER` in the current scope
   --> src/api/override_web_audio_api.rs:79:26
    |
78  | /                     FLUTTER_RUST_BRIDGE_HANDLER
79  | |                         .async_runtime()
    | |                         -^^^^^^^^^^^^^ method not found in `FLUTTER_RUST_BRIDGE_HANDLER`
    | |_________________________|
    | 
...
104 |   handle_audio_node_trait_impls_override!(OscillatorNode);
    |   ------------------------------------------------------- in this macro invocation
    |
   ::: src/frb_generated.rs:85:1
    |
85  |   flutter_rust_bridge::frb_generated_default_handler!();
    |   ----------------------------------------------------- method `async_runtime` not found for this struct
    |
    = note: this error originates in the macro `handle_audio_node_trait_impls_override` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0599]: no method named `async_runtime` found for struct `frb_generated::FLUTTER_RUST_BRIDGE_HANDLER` in the current scope
   --> src/api/override_web_audio_api.rs:79:26
    |
78  | /                     FLUTTER_RUST_BRIDGE_HANDLER
79  | |                         .async_runtime()
    | |                         -^^^^^^^^^^^^^ method not found in `FLUTTER_RUST_BRIDGE_HANDLER`
    | |_________________________|
    | 
...
105 |   handle_audio_node_trait_impls_override!(PannerNode);
    |   --------------------------------------------------- in this macro invocation
    |
   ::: src/frb_generated.rs:85:1
    |
85  |   flutter_rust_bridge::frb_generated_default_handler!();
    |   ----------------------------------------------------- method `async_runtime` not found for this struct
    |
    = note: this error originates in the macro `handle_audio_node_trait_impls_override` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0599]: no method named `async_runtime` found for struct `frb_generated::FLUTTER_RUST_BRIDGE_HANDLER` in the current scope
   --> src/api/override_web_audio_api.rs:79:26
    |
78  | /                     FLUTTER_RUST_BRIDGE_HANDLER
79  | |                         .async_runtime()
    | |                         -^^^^^^^^^^^^^ method not found in `FLUTTER_RUST_BRIDGE_HANDLER`
    | |_________________________|
    | 
...
106 |   handle_audio_node_trait_impls_override!(ScriptProcessorNode);
    |   ------------------------------------------------------------ in this macro invocation
    |
   ::: src/frb_generated.rs:85:1
    |
85  |   flutter_rust_bridge::frb_generated_default_handler!();
    |   ----------------------------------------------------- method `async_runtime` not found for this struct
    |
    = note: this error originates in the macro `handle_audio_node_trait_impls_override` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0599]: no method named `async_runtime` found for struct `frb_generated::FLUTTER_RUST_BRIDGE_HANDLER` in the current scope
   --> src/api/override_web_audio_api.rs:79:26
    |
78  | /                     FLUTTER_RUST_BRIDGE_HANDLER
79  | |                         .async_runtime()
    | |                         -^^^^^^^^^^^^^ method not found in `FLUTTER_RUST_BRIDGE_HANDLER`
    | |_________________________|
    | 
...
107 |   handle_audio_node_trait_impls_override!(StereoPannerNode);
    |   --------------------------------------------------------- in this macro invocation
    |
   ::: src/frb_generated.rs:85:1
    |
85  |   flutter_rust_bridge::frb_generated_default_handler!();
    |   ----------------------------------------------------- method `async_runtime` not found for this struct
    |
    = note: this error originates in the macro `handle_audio_node_trait_impls_override` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0599]: no method named `async_runtime` found for struct `frb_generated::FLUTTER_RUST_BRIDGE_HANDLER` in the current scope
   --> src/api/override_web_audio_api.rs:79:26
    |
78  | /                     FLUTTER_RUST_BRIDGE_HANDLER
79  | |                         .async_runtime()
    | |                         -^^^^^^^^^^^^^ method not found in `FLUTTER_RUST_BRIDGE_HANDLER`
    | |_________________________|
    | 
...
108 |   handle_audio_node_trait_impls_override!(WaveShaperNode);
    |   ------------------------------------------------------- in this macro invocation
    |
   ::: src/frb_generated.rs:85:1
    |
85  |   flutter_rust_bridge::frb_generated_default_handler!();
    |   ----------------------------------------------------- method `async_runtime` not found for this struct
    |
    = note: this error originates in the macro `handle_audio_node_trait_impls_override` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0599]: no method named `async_runtime` found for struct `frb_generated::FLUTTER_RUST_BRIDGE_HANDLER` in the current scope
   --> src/api/override_web_audio_api.rs:121:53
    |
121 |                         FLUTTER_RUST_BRIDGE_HANDLER.async_runtime().spawn(async move { callback(event).await });
    |                                                     ^^^^^^^^^^^^^ method not found in `FLUTTER_RUST_BRIDGE_HANDLER`
...
129 | handle_audio_scheduled_source_node_trait_impls_override!(ConstantSourceNode);
    | ---------------------------------------------------------------------------- in this macro invocation
    |
   ::: src/frb_generated.rs:85:1
    |
85  | flutter_rust_bridge::frb_generated_default_handler!();
    | ----------------------------------------------------- method `async_runtime` not found for this struct
    |
    = note: this error originates in the macro `handle_audio_scheduled_source_node_trait_impls_override` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0599]: no method named `async_runtime` found for struct `frb_generated::FLUTTER_RUST_BRIDGE_HANDLER` in the current scope
   --> src/api/override_web_audio_api.rs:121:53
    |
121 |                         FLUTTER_RUST_BRIDGE_HANDLER.async_runtime().spawn(async move { callback(event).await });
    |                                                     ^^^^^^^^^^^^^ method not found in `FLUTTER_RUST_BRIDGE_HANDLER`
...
130 | handle_audio_scheduled_source_node_trait_impls_override!(OscillatorNode);
    | ------------------------------------------------------------------------ in this macro invocation
    |
   ::: src/frb_generated.rs:85:1
    |
85  | flutter_rust_bridge::frb_generated_default_handler!();
    | ----------------------------------------------------- method `async_runtime` not found for this struct
    |
    = note: this error originates in the macro `handle_audio_scheduled_source_node_trait_impls_override` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0599]: no method named `async_runtime` found for struct `frb_generated::FLUTTER_RUST_BRIDGE_HANDLER` in the current scope
   --> src/api/override_web_audio_api.rs:121:53
    |
121 |                         FLUTTER_RUST_BRIDGE_HANDLER.async_runtime().spawn(async move { callback(event).await });
    |                                                     ^^^^^^^^^^^^^ method not found in `FLUTTER_RUST_BRIDGE_HANDLER`
...
131 | handle_audio_scheduled_source_node_trait_impls_override!(AudioBufferSourceNode);
    | ------------------------------------------------------------------------------- in this macro invocation
    |
   ::: src/frb_generated.rs:85:1
    |
85  | flutter_rust_bridge::frb_generated_default_handler!();
    | ----------------------------------------------------- method `async_runtime` not found for this struct
    |
    = note: this error originates in the macro `handle_audio_scheduled_source_node_trait_impls_override` (in Nightly builds, run with -Z macro-backtrace for more info)

Some errors have detailed explanations: E0432, E0599.
For more information about an error, try `rustc --explain E0432`.
warning: `tau` (lib) generated 6 warnings
error: could not compile `tau` (lib) due to 28 previous errors; 6 warnings emitted
Error: cargo build

Expected behavior

No response

Generated binding code

No response

OS

Macos

Version of flutter_rust_bridge_codegen

flutter_rust_bridge_codegen 2.0.0

Flutter info

No response

Version of clang++

No response

Additional context

No response

fzyzcjy commented 3 months ago

no method named async_runtime

Since IIRC your code is not for release yet, looks like you can (and need to) (temporarily) use master version of frb, because that function is newly exposed.

To use master version or a local version of frb (maybe I should add a doc):

Larpoux commented 3 months ago

I get a panic during generation. I certainly did something wrong but I cannot see what..

larpoux@Mac-mini:~/projmac/tau/tau_rust$ cargo run --manifest-path ../flutter_rust_bridge/frb_codegen/Cargo.toml -- generate
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.33s
     Running `/Volumes/mac-J/larpoux/projmac/tau/flutter_rust_bridge/target/debug/flutter_rust_bridge_codegen generate`
[8.6s] Parse ⠐
  └── [8.5s] Cargo expand & syn parse ⠠                                                                                                                                                    [2024-06-27T06:18:58.255Z ERROR frb_codegen/src/library/utils/logs.rs:55] panicked at /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/syn-2.0.28/src/lit.rs:1095:13:
Unrecognized literal: `(/*ERROR*/)`
thread 'main' panicked at /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/syn-2.0.28/src/lit.rs:1095:13:
Unrecognized literal: `(/*ERROR*/)`
[8.7s] Parse ⠂
  └── [8.7s] Cargo expand & syn parse ⠁                                                                                                                                                    
Larpoux commented 3 months ago

The frb generation is OK now. But I get an error during Cargo build :

   Compiling tau v0.1.0 (/Volumes/mac-J/larpoux/projmac/tau/tau_rust/rust)
warning: unused import: `trace::trace`
  --> src/api/simple.rs:26:5
   |
26 | use trace::trace;
   |     ^^^^^^^^^^^^
   |
   = note: `#[warn(unused_imports)]` on by default

warning: unused import: `std::sync::Once`
  --> src/api/simple.rs:33:5
   |
33 | use std::sync::Once;
   |     ^^^^^^^^^^^^^^^

warning: unused import: `trace::trace`
  --> src/api/toto.rs:26:5
   |
26 | use trace::trace;
   |     ^^^^^^^^^^^^

warning: unused imports: `error as e`, `warn as w`
  --> src/api/toto.rs:29:34
   |
29 | use log::{info as i, trace as t, warn as w, error as e, debug as d};
   |                                  ^^^^^^^^^  ^^^^^^^^^^

warning: unused import: `trace::trace`
  --> src/api/mimi.rs:26:5
   |
26 | use trace::trace;
   |     ^^^^^^^^^^^^

warning: unused imports: `error as e`, `warn as w`
  --> src/api/mimi.rs:29:34
   |
29 | use log::{info as i, trace as t, warn as w, error as e, debug as d};
   |                                  ^^^^^^^^^  ^^^^^^^^^^

error[E0639]: cannot create non-exhaustive struct using struct expression
     --> src/frb_generated.rs:34864:16
      |
34864 |           return web_audio_api::media_devices::MediaTrackConstraints {
      |  ________________^
34865 | |             sample_rate: var_sampleRate,
34866 | |             latency: var_latency,
34867 | |             channel_count: var_channelCount,
34868 | |             device_id: var_deviceId,
34869 | |         };
      | |_________^

For more information about this error, try `rustc --explain E0639`.
warning: `tau` (lib) generated 6 warnings
error: could not compile `tau` (lib) due to 1 previous error; 6 warnings emitted
fzyzcjy commented 3 months ago

Just copy the frb_example/integrate_third_party code, IIRC I workarounded this and added some comments about it

Larpoux commented 3 months ago

OK, it compiles now. Thanks

fzyzcjy commented 3 months ago

You are welcome!

Larpoux commented 3 months ago

I am a happy geek : Mozilla Audio Basics example runs perfectly. Now, I am going to port another Mozilla example.

The Audio graph : MozillaEx_AudioBasics_graph

The preview : MozillaEx_AudioBasics_preview

fzyzcjy commented 3 months ago

That looks great! 🎉

github-actions[bot] commented 2 months ago

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new issue.