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.27k stars 300 forks source link

generation of the rust CPAL lib #2138

Closed Larpoux closed 4 months ago

Larpoux commented 4 months ago

Describe the bug

I try to generate a dart interface to cpal

rust_root: rust/
rust_input: crate::api,web-audio-api,cpal
dart_output: lib/src/rust
dump_all: true
#local: true
type_64bit_int: true

Do I have to install dummy mod.rs in rust/src/third_party/cpal ? I get the following errors when compiling dart :


Showing Recent Messages
INFO: Building tau for aarch64-apple-ios-sim

SEVERE: ================================================================================

SEVERE: Cargokit BuildTool failed with error:

SEVERE: --------------------------------------------------------------------------------

SEVERE: External Command: rustup "run" "stable" "cargo" "build" "--manifest-path" "/Volumes/mac-J/larpoux/projmac/toto/tau/rust/Cargo.toml" "-p" "tau" "--target" "aarch64-apple-ios-sim" "--target-dir" "/Volumes/mac-J/larpoux/Library/Developer/Xcode/DerivedData/Runner-hgmqvhmgdtuiwxconnjtkeducngc/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/tau.build"

SEVERE: Returned Exit Code: 101

SEVERE: --------------------------------------------------------------------------------

SEVERE: STDOUT:

SEVERE: --------------------------------------------------------------------------------

SEVERE: STDERR:

SEVERE: Compiling tau v0.1.0 (/Volumes/mac-J/larpoux/projmac/toto/tau/rust)

SEVERE: error[E0433]: failed to resolve: could not find `macos` in `coreaudio`

SEVERE:   --> src/frb_generated.rs:60:28

SEVERE:    |

SEVERE: 60 | use cpal::host::coreaudio::macos::enumerate::*;

SEVERE:    |                            ^^^^^ could not find `macos` in `coreaudio`

SEVERE:    |

SEVERE:   --> /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cpal-0.15.3/src/host/coreaudio/mod.rs:16:5

SEVERE:    |

SEVERE: 16 | mod macos;

SEVERE:    |     ^^^^^

SEVERE:    = note: the item is gated behind the `macos` feature

SEVERE: 

SEVERE: error[E0433]: failed to resolve: could not find `macos` in `coreaudio`

SEVERE:   --> src/frb_generated.io.rs:39:28

SEVERE:    |

SEVERE: 39 | use cpal::host::coreaudio::macos::enumerate::*;

SEVERE:    |                            ^^^^^ could not find `macos` in `coreaudio`

SEVERE:    |

/Volumes/mac-J/larpoux/projmac/toto/tau/example/ios/Pods/SEVERE:1:1: found an item that was configured out

SEVERE:   --> /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cpal-0.15.3/src/host/coreaudio/mod.rs:16:5

SEVERE:    |

SEVERE: 16 | mod macos;

SEVERE:    |     ^^^^^

SEVERE:    = note: the item is gated behind the `macos` feature

SEVERE: 

SEVERE: error[E0433]: failed to resolve: could not find `macos` in `coreaudio`

SEVERE:     --> src/frb_generated.rs:2343:48

SEVERE:      |

SEVERE: 2343 |                         cpal::host::coreaudio::macos::enumerate::default_input_device(),

SEVERE:      |                                                ^^^^^ could not find `macos` in `coreaudio`

SEVERE:      |

/Volumes/mac-J/larpoux/projmac/toto/tau/example/ios/Pods/SEVERE:1:1: found an item that was configured out

SEVERE:     --> /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cpal-0.15.3/src/host/coreaudio/mod.rs:16:5

SEVERE:      |

SEVERE: 16   | mod macos;

SEVERE:      |     ^^^^^

SEVERE:      = note: the item is gated behind the `macos` feature

SEVERE: 

SEVERE: error[E0433]: failed to resolve: could not find `macos` in `coreaudio`

SEVERE:     --> src/frb_generated.rs:2377:48

SEVERE:      |

SEVERE: 2377 |                         cpal::host::coreaudio::macos::enumerate::default_output_device(),

SEVERE:      |                                                ^^^^^ could not find `macos` in `coreaudio`

SEVERE:      |

/Volumes/mac-J/larpoux/projmac/toto/tau/example/ios/Pods/SEVERE:1:1: found an item that was configured out

SEVERE:     --> /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cpal-0.15.3/src/host/coreaudio/mod.rs:16:5

SEVERE:      |

SEVERE: 16   | mod macos;

SEVERE:      |     ^^^^^

SEVERE:      = note: the item is gated behind the `macos` feature

SEVERE: 

SEVERE: error[E0433]: failed to resolve: could not find `macos` in `coreaudio`

SEVERE:     --> src/frb_generated.rs:2187:48

SEVERE:      |

SEVERE: 2187 |                         cpal::host::coreaudio::macos::enumerate::Devices::as_inner(

SEVERE:      |                                                ^^^^^ could not find `macos` in `coreaudio`

SEVERE:      |

/Volumes/mac-J/larpoux/projmac/toto/tau/example/ios/Pods/SEVERE:1:1: found an item that was configured out

SEVERE:     --> /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cpal-0.15.3/src/host/coreaudio/mod.rs:16:5

SEVERE:      |

SEVERE: 16   | mod macos;

SEVERE:      |     ^^^^^

SEVERE:      = note: the item is gated behind the `macos` feature

SEVERE: help: consider importing one of these items

SEVERE:      |

SEVERE: 28   + use cpal::Devices;

SEVERE:      |

SEVERE: 28   + use crate::frb_generated::platform::Devices;

SEVERE:      |

SEVERE: help: if you import `Devices`, refer to it directly

SEVERE:      |

SEVERE: 2187 -                         cpal::host::coreaudio::macos::enumerate::Devices::as_inner(

SEVERE: 2187 +                         Devices::as_inner(

SEVERE:      |

SEVERE: 

SEVERE: error[E0433]: failed to resolve: could not find `macos` in `coreaudio`

SEVERE:     --> src/frb_generated.rs:2240:48

SEVERE:      |

SEVERE: 2240 |                         cpal::host::coreaudio::macos::enumerate::Devices::as_inner_mut(

SEVERE:      |                                                ^^^^^ could not find `macos` in `coreaudio`

SEVERE:      |

/Volumes/mac-J/larpoux/projmac/toto/tau/example/ios/Pods/SEVERE:1:1: found an item that was configured out

SEVERE:     --> /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cpal-0.15.3/src/host/coreaudio/mod.rs:16:5

SEVERE:      |

SEVERE: 16   | mod macos;

SEVERE:      |     ^^^^^

SEVERE:      = note: the item is gated behind the `macos` feature

SEVERE: help: consider importing one of these items

SEVERE:      |

SEVERE: 28   + use cpal::Devices;

SEVERE:      |

SEVERE: 28   + use crate::frb_generated::platform::Devices;

SEVERE:      |

SEVERE: help: if you import `Devices`, refer to it directly

SEVERE:      |

SEVERE: 2240 -                         cpal::host::coreaudio::macos::enumerate::Devices::as_inner_mut(

SEVERE: 2240 +                         Devices::as_inner_mut(

SEVERE:      |

SEVERE: 

SEVERE: error[E0433]: failed to resolve: could not find `macos` in `coreaudio`

SEVERE:     --> src/frb_generated.rs:2277:48

SEVERE:      |

SEVERE: 2277 |                         cpal::host::coreaudio::macos::enumerate::Devices::into_inner(api_that),

SEVERE:      |                                                ^^^^^ could not find `macos` in `coreaudio`

SEVERE:      |

/Volumes/mac-J/larpoux/projmac/toto/tau/example/ios/Pods/SEVERE:1:1: found an item that was configured out

SEVERE:     --> /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cpal-0.15.3/src/host/coreaudio/mod.rs:16:5

SEVERE:      |

SEVERE: 16   | mod macos;

SEVERE:      |     ^^^^^

SEVERE:      = note: the item is gated behind the `macos` feature

SEVERE: help: consider importing one of these items

SEVERE:      |

SEVERE: 28   + use cpal::Devices;

SEVERE:      |

SEVERE: 28   + use crate::frb_generated::platform::Devices;

SEVERE:      |

SEVERE: help: if you import `Devices`, refer to it directly

SEVERE:      |

SEVERE: 2277 -                         cpal::host::coreaudio::macos::enumerate::Devices::into_inner(api_that),

SEVERE: 2277 +                         Devices::into_inner(api_that),

SEVERE:      |

SEVERE: 

SEVERE: error[E0433]: failed to resolve: could not find `macos` in `coreaudio`

SEVERE:     --> src/frb_generated.rs:2310:60

SEVERE:      |

SEVERE: 2310 |                     let output_ok = cpal::host::coreaudio::macos::enumerate::Devices::new()?;

SEVERE:      |                                                            ^^^^^ could not find `macos` in `coreaudio`

SEVERE:      |

/Volumes/mac-J/larpoux/projmac/toto/tau/example/ios/Pods/SEVERE:1:1: found an item that was configured out

SEVERE:     --> /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cpal-0.15.3/src/host/coreaudio/mod.rs:16:5

SEVERE:      |

SEVERE: 16   | mod macos;

SEVERE:      |     ^^^^^

SEVERE:      = note: the item is gated behind the `macos` feature

SEVERE: help: consider importing one of these items

SEVERE:      |

SEVERE: 28   + use cpal::Devices;

SEVERE:      |

SEVERE: 28   + use crate::frb_generated::platform::Devices;

SEVERE:      |

SEVERE: help: if you import `Devices`, refer to it directly

SEVERE:      |

SEVERE: 2310 -                     let output_ok = cpal::host::coreaudio::macos::enumerate::Devices::new()?;

SEVERE: 2310 +                     let output_ok = Devices::new()?;

SEVERE:      |

SEVERE: 

SEVERE: error[E0412]: cannot find type `DevicesInner` in this scope

SEVERE:      --> src/frb_generated.rs:32895:61

SEVERE:       |

SEVERE: 32895 |     flutter_rust_bridge::for_generated::RustAutoOpaqueInner<DevicesInner>

SEVERE:       |                                                             ^^^^^^^^^^^^

SEVERE:       |

SEVERE:      ::: /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cpal-0.15.3/src/error.rs:47:1

SEVERE:       |

SEVERE: 47    | pub enum DevicesError {

SEVERE:       | --------------------- similarly named enum `DevicesError` defined here

SEVERE:       |

SEVERE: help: an enum with a similar name exists

SEVERE:       |

SEVERE: 32895 |     flutter_rust_bridge::for_generated::RustAutoOpaqueInner<DevicesError>

SEVERE:       |                                                             ~~~~~~~~~~~~

SEVERE: help: consider importing one of these items

SEVERE:       |

SEVERE: 28    + use cpal::platform::DevicesInner;

SEVERE:       |

SEVERE: 28    + use crate::frb_generated::platform::DevicesInner;

SEVERE:       |

SEVERE: 

SEVERE: error[E0412]: cannot find type `Ordering` in this scope

SEVERE:      --> src/frb_generated.rs:32952:61

SEVERE:       |

SEVERE: 32952 |     flutter_rust_bridge::for_generated::RustAutoOpaqueInner<Ordering>

SEVERE:       |                                                             ^^^^^^^^ not found in this scope

SEVERE:       |

SEVERE: help: consider importing one of these items

SEVERE:       |

SEVERE: 28    + use core::cmp::Ordering;

SEVERE:       |

SEVERE: 28    + use core::sync::atomic::Ordering;

SEVERE:       |

SEVERE: 28    + use std::cmp::Ordering;

SEVERE:       |

SEVERE: 28    + use std::sync::atomic::Ordering;

SEVERE:       |

SEVERE: 

SEVERE: error[E0412]: cannot find type `DevicesInner` in this scope

SEVERE:      --> src/frb_generated.rs:34811:20

SEVERE:       |

SEVERE: 34811 | impl SseDecode for DevicesInner {

SEVERE:       |                    ^^^^^^^^^^^^

SEVERE:       |

SEVERE:      ::: /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cpal-0.15.3/src/error.rs:47:1

SEVERE:       |

SEVERE: 47    | pub enum DevicesError {

SEVERE:       | --------------------- similarly named enum `DevicesError` defined here

SEVERE:       |

SEVERE: help: an enum with a similar name exists

SEVERE:       |

SEVERE: 34811 | impl SseDecode for DevicesError {

SEVERE:       |                    ~~~~~~~~~~~~

SEVERE: help: consider importing one of these items

SEVERE:       |

SEVERE: 28    + use cpal::platform::DevicesInner;

SEVERE:       |

SEVERE: 28    + use crate::frb_generated::platform::DevicesInner;

SEVERE:       |

SEVERE: 

SEVERE: error[E0412]: cannot find type `DevicesInner` in this scope

SEVERE:      --> src/frb_generated.rs:34815:69

SEVERE:       |

SEVERE: 34815 |             flutter_rust_bridge::for_generated::RustAutoOpaqueInner<DevicesInner>,

SEVERE:       |                                                                     ^^^^^^^^^^^^

SEVERE:       |

SEVERE:      ::: /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cpal-0.15.3/src/error.rs:47:1

SEVERE:       |

SEVERE: 47    | pub enum DevicesError {

SEVERE:       | --------------------- similarly named enum `DevicesError` defined here

SEVERE:       |

SEVERE: help: an enum with a similar name exists

SEVERE:       |

SEVERE: 34815 |             flutter_rust_bridge::for_generated::RustAutoOpaqueInner<DevicesError>,

SEVERE:       |                                                                     ~~~~~~~~~~~~

SEVERE: help: consider importing one of these items

SEVERE:       |

SEVERE: 28    + use cpal::platform::DevicesInner;

SEVERE:       |

SEVERE: 28    + use crate::frb_generated::platform::DevicesInner;

SEVERE:       |

SEVERE: 

SEVERE: error[E0412]: cannot find type `Ordering` in this scope

SEVERE:      --> src/frb_generated.rs:35005:20

SEVERE:       |

SEVERE: 35005 | impl SseDecode for Ordering {

SEVERE:       |                    ^^^^^^^^ not found in this scope

SEVERE:       |

SEVERE: help: consider importing one of these items

SEVERE:       |

SEVERE: 28    + use core::cmp::Ordering;

SEVERE:       |

SEVERE: 28    + use core::sync::atomic::Ordering;

SEVERE:       |

SEVERE: 28    + use std::cmp::Ordering;

SEVERE:       |

SEVERE: 28    + use std::sync::atomic::Ordering;

SEVERE:       |

SEVERE: 

SEVERE: error[E0412]: cannot find type `Ordering` in this scope

SEVERE:      --> src/frb_generated.rs:35009:69

SEVERE:       |

SEVERE: 35009 |             flutter_rust_bridge::for_generated::RustAutoOpaqueInner<Ordering>,

SEVERE:       |                                                                     ^^^^^^^^ not found in this scope

SEVERE:       |

SEVERE: help: consider importing one of these items

SEVERE:       |

SEVERE: 28    + use core::cmp::Ordering;

SEVERE:       |

SEVERE: 28    + use core::sync::atomic::Ordering;

SEVERE:       |

SEVERE: 28    + use std::cmp::Ordering;

SEVERE:       |

SEVERE: 28    + use std::sync::atomic::Ordering;

SEVERE:       |

SEVERE: 

SEVERE: error[E0433]: failed to resolve: use of undeclared crate or module `chrono`

SEVERE:      --> src/frb_generated.rs:35209:16

SEVERE:       |

SEVERE: 35209 |         return chrono::Duration::microseconds(inner);

SEVERE:       |                ^^^^^^ use of undeclared crate or module `chrono`

SEVERE:       |

SEVERE: help: consider importing one of these items

SEVERE:       |

SEVERE: 28    + use core::time::Duration;

SEVERE:       |

SEVERE: 28    + use std::time::Duration;

SEVERE:       |

SEVERE: help: if you import `Duration`, refer to it directly

SEVERE:       |

SEVERE: 35209 -         return chrono::Duration::microseconds(inner);

SEVERE: 35209 +         return Duration::microseconds(inner);

SEVERE:       |

SEVERE: 

SEVERE: error[E0412]: cannot find type `DevicesInner` in this scope

SEVERE:      --> src/frb_generated.rs:35506:79

SEVERE:       |

SEVERE: 35506 |     for RustOpaqueMoi<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<DevicesInner>>

SEVERE:       |                                                                               ^^^^^^^^^^^^

SEVERE:       |

SEVERE:      ::: /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cpal-0.15.3/src/error.rs:47:1

SEVERE:       |

SEVERE: 47    | pub enum DevicesError {

SEVERE:       | --------------------- similarly named enum `DevicesError` defined here

SEVERE:       |

SEVERE: help: an enum with a similar name exists

SEVERE:       |

SEVERE: 35506 |     for RustOpaqueMoi<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<DevicesError>>

SEVERE:       |                                                                               ~~~~~~~~~~~~

SEVERE: help: consider importing one of these items

SEVERE:       |

SEVERE: 28    + use cpal::platform::DevicesInner;

SEVERE:       |

SEVERE: 28    + use crate::frb_generated::platform::DevicesInner;

SEVERE:       |

SEVERE: 

SEVERE: error[E0412]: cannot find type `Ordering` in this scope

SEVERE:      --> src/frb_generated.rs:35710:79

SEVERE:       |

SEVERE: 35710 |     for RustOpaqueMoi<flutter_rust_bridge::for_generated::RustAutoOpaqueInner<Ordering>>

SEVERE:       |                                                                               ^^^^^^^^ not found in this scope

SEVERE:       |

SEVERE: help: consider importing one of these items

SEVERE:       |

SEVERE: 28    + use core::cmp::Ordering;

SEVERE:       |

SEVERE: 28    + use core::sync::atomic::Ordering;

SEVERE:       |

SEVERE: 28    + use std::cmp::Ordering;

SEVERE:       |

SEVERE: 28    + use std::sync::atomic::Ordering;

SEVERE:       |

SEVERE: 

SEVERE: error[E0412]: cannot find type `DevicesInner` in this scope

SEVERE:      --> src/frb_generated.rs:37924:51

SEVERE:       |

SEVERE: 37924 | impl flutter_rust_bridge::IntoDart for FrbWrapper<DevicesInner> {

SEVERE:       |                                                   ^^^^^^^^^^^^

SEVERE:       |

SEVERE:      ::: /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cpal-0.15.3/src/error.rs:47:1

SEVERE:       |

SEVERE: 47    | pub enum DevicesError {

SEVERE:       | --------------------- similarly named enum `DevicesError` defined here

SEVERE:       |

SEVERE: help: an enum with a similar name exists

SEVERE:       |

SEVERE: 37924 | impl flutter_rust_bridge::IntoDart for FrbWrapper<DevicesError> {

SEVERE:       |                                                   ~~~~~~~~~~~~

SEVERE: help: consider importing one of these items

SEVERE:       |

SEVERE: 28    + use cpal::platform::DevicesInner;

SEVERE:       |

SEVERE: 28    + use crate::frb_generated::platform::DevicesInner;

SEVERE:       |

SEVERE: 

SEVERE: error[E0412]: cannot find type `DevicesInner` in this scope

SEVERE:      --> src/frb_generated.rs:37930:81

SEVERE:       |

SEVERE: 37930 | impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<DevicesInner> {}

SEVERE:       |                                                                                 ^^^^^^^^^^^^

SEVERE:       |

SEVERE:      ::: /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cpal-0.15.3/src/error.rs:47:1

SEVERE:       |

SEVERE: 47    | pub enum DevicesError {

SEVERE:       | --------------------- similarly named enum `DevicesError` defined here

SEVERE:       |

SEVERE: help: an enum with a similar name exists

SEVERE:       |

SEVERE: 37930 | impl flutter_rust_bridge::for_generated::IntoDartExceptPrimitive for FrbWrapper<DevicesError> {}

SEVERE:       |                                                                                 ~~~~~~~~~~~~

SEVERE: help: consider importing one of these items

SEVERE:       |

SEVERE: 28    + use cpal::platform::DevicesInner;

SEVERE:       |

SEVERE: 28    + use crate::frb_generated::platform::DevicesInner;

SEVERE:       |

SEVERE: 

SEVERE: error[E0412]: cannot find type `DevicesInner` in this scope

SEVERE:      --> src/frb_generated.rs:37932:51

SEVERE:       |

SEVERE: 37932 | impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<DevicesInner>> for DevicesInner {

SEVERE:       |                                                   ^^^^^^^^^^^^

SEVERE:       |

SEVERE:      ::: /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cpal-0.15.3/src/error.rs:47:1

SEVERE:       |

SEVERE: 47    | pub enum DevicesError {

SEVERE:       | --------------------- similarly named enum `DevicesError` defined here

SEVERE:       |

SEVERE: help: an enum with a similar name exists

SEVERE:       |

SEVERE: 37932 | impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<DevicesError>> for DevicesInner {

SEVERE:       |                                                   ~~~~~~~~~~~~

SEVERE: help: consider importing one of these items

SEVERE:       |

SEVERE: 28    + use cpal::platform::DevicesInner;

SEVERE:       |

SEVERE: 28    + use crate::frb_generated::platform::DevicesInner;

SEVERE:       |

SEVERE: 

SEVERE: error[E0412]: cannot find type `DevicesInner` in this scope

SEVERE:      --> src/frb_generated.rs:37932:70

SEVERE:       |

SEVERE: 37932 | impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<DevicesInner>> for DevicesInner {

SEVERE:       |                                                                      ^^^^^^^^^^^^

SEVERE:       |

SEVERE:      ::: /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cpal-0.15.3/src/error.rs:47:1

SEVERE:       |

SEVERE: 47    | pub enum DevicesError {

SEVERE:       | --------------------- similarly named enum `DevicesError` defined here

SEVERE:       |

SEVERE: help: an enum with a similar name exists

SEVERE:       |

SEVERE: 37932 | impl flutter_rust_bridge::IntoIntoDart<FrbWrapper<DevicesInner>> for DevicesError {

SEVERE:       |                                                                      ~~~~~~~~~~~~

SEVERE: help: consider importing one of these items

SEVERE:       |

SEVERE: 28    + use cpal::platform::DevicesInner;

SEVERE:       |

SEVERE: 28    + use crate::frb_generated::platform::DevicesInner;

SEVERE:       |

SEVERE: 

SEVERE: error[E0412]: cannot find type `DevicesInner` in this scope

SEVERE:      --> src/frb_generated.rs:37933:43

SEVERE:       |

SEVERE: 37933 |     fn into_into_dart(self) -> FrbWrapper<DevicesInner> {

SEVERE:       |                                           ^^^^^^^^^^^^

SEVERE:       |

SEVERE:      ::: /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cpal-0.15.3/src/error.rs:47:1

SEVERE:       |

SEVERE: 47    | pub enum DevicesError {

SEVERE:       | --------------------- similarly named enum `DevicesError` defined here

SEVERE:       |

SEVERE: help: an enum with a similar name exists

SEVERE:       |

SEVERE: 37933 |     fn into_into_dart(self) -> FrbWrapper<DevicesError> {

SEVERE:       |                                           ~~~~~~~~~~~~

SEVERE: help: consider importing one of these items

SEVERE:       |

SEVERE: 28    + use cpal::platform::DevicesInner;

SEVERE:       |

SEVERE: 28    + use crate::frb_generated::platform::DevicesInner;

SEVERE:       |

SEVERE: 

SEVERE: error[E0412]: cannot find type `Ordering` in this scope

SEVERE:      --> src/frb_generated.rs:38255:51

SEVERE:       |

SEVERE: 38255 | impl flutter_rust_bridge::IntoDart for FrbWrapper<Ordering> {

SEVERE:       |                                                   ^^^^^^^^ not found in this scope

SEVERE:       |

SEVERE: help: consider importing one of these items

SEVERE:       |

... ... ...

SEVERE: --------------------------------------------------------------------------------

SEVERE: BuildTool arguments: [build-pod, ../rust, tau]

SEVERE: ================================================================================

/Volumes/mac-J/larpoux/projmac/toto/tau/example/ios/Pods/SEVERE:1:1: could not compile `tau` (lib) due to 82 previous errors; 6 warnings emitted

Steps to reproduce

Hint: A simple way to reproduce is to clone and modify the https://github.com/fzyzcjy/flutter_rust_bridge/tree/master/frb_example/dart_minimal example package according to your needs.

  1. ...
  2. ...
  3. ...

Logs

larpoux@Mac-mini:~/projmac/toto/tau$ flutter_rust_bridge_codegen generate
[2024-06-21T16:57:29.867Z 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-21T16:57:29.869Z 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=("Host", "new"), objects={"namespace":"cpal::host::coreaudio::macos","owner":{"StructOrEnum":{"impl_ty":"Host","trait_def_name":null}},"sources":["Normal"],"item_fn":"GeneralizedItemFn(name=new, vis=Some(Visibility::Public(Pub)), attrs=[])"}, {"namespace":"cpal::host::null","owner":{"StructOrEnum":{"impl_ty":"Host","trait_def_name":null}},"sources":["Normal"],"item_fn":"GeneralizedItemFn(name=new, vis=Some(Visibility::Public(Pub)), attrs=[# [allow (dead_code)]])"})
[2024-06-21T16:57:29.870Z 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=("Devices", "new"), objects={"namespace":"cpal::host::coreaudio::macos::enumerate","owner":{"StructOrEnum":{"impl_ty":"Devices","trait_def_name":null}},"sources":["Normal"],"item_fn":"GeneralizedItemFn(name=new, vis=Some(Visibility::Public(Pub)), attrs=[])"}, {"namespace":"cpal::host::null","owner":{"StructOrEnum":{"impl_ty":"Devices","trait_def_name":null}},"sources":["Normal"],"item_fn":"GeneralizedItemFn(name=new, vis=Some(Visibility::Public(Pub)), attrs=[])"})
[2024-06-21T16:57:30.043Z 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-21T16:57:30.053Z 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-21T16:57:30.055Z 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-21T16:57:30.056Z 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-21T16:57:30.056Z 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-21T16:57:30.057Z 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-21T16:57:30.058Z 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-21T16:57:30.062Z 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-21T16:57:30.062Z 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-21T16:57:30.063Z 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-21T16:57:30.064Z 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-21T16:57:30.064Z 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-21T16:57:30.064Z 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-21T16:57:30.064Z 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-21T16:57:30.065Z 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-21T16:57:30.065Z 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-21T16:57:30.065Z 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-21T16:57:30.065Z 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-21T16:57:30.065Z 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-21T16:57:30.066Z 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-21T16:57:30.066Z 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-21T16:57:30.066Z 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-21T16:57:30.066Z 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-21T16:57:30.067Z 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-21T16:57:30.067Z 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-21T16:57:30.068Z 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-21T16:57:30.070Z 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-21T16:57:30.071Z 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-21T16:57:30.071Z 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-21T16:57:30.071Z 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-21T16:57:30.072Z 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-21T16:57:30.074Z 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-21T16:57:30.075Z 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-21T16:57:30.076Z 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-21T16:57:30.077Z 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-21T16:57:30.078Z 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 `bytes` is a reference, thus currently set to unit type. The "lifetimes" section in doc may be interesting.
[2024-06-21T16:57:30.078Z 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 `bytes_mut` is a reference, thus currently set to unit type. The "lifetimes" section in doc may be interesting.
[2024-06-21T16:57:30.078Z 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-21T16:57:30.079Z 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-21T16:57:30.080Z 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 `as_inner` is a reference, thus currently set to unit type. The "lifetimes" section in doc may be interesting.
[2024-06-21T16:57:30.080Z 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 `as_inner_mut` is a reference, thus currently set to unit type. The "lifetimes" section in doc may be interesting.
[2024-06-21T16:57:30.080Z 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-21T16:57:30.082Z 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-21T16:57:30.083Z 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-21T16:57:30.083Z 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-21T16:57:30.084Z 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-21T16:57:30.086Z 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-21T16:57:30.087Z 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-21T16:57:30.088Z 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-21T16:57:30.089Z 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-21T16:57:30.090Z 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-21T16:57:30.091Z 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-21T16:57:30.091Z 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-21T16:57:30.092Z 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-21T16:57:30.093Z 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-21T16:57:30.096Z 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-21T16:57:30.097Z 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-21T16:57:30.099Z 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-21T16:57:30.101Z 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-21T16:57:30.103Z 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-21T16:57:30.103Z 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-21T16:57:30.104Z 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-21T16:57:30.105Z 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-21T16:57:30.106Z 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 `buffer_size` is a reference, thus currently set to unit type. The "lifetimes" section in doc may be interesting.
[2024-06-21T16:57:30.106Z 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 `buffer_size` is a reference, thus currently set to unit type. The "lifetimes" section in doc may be interesting.
[2024-06-21T16:57:30.107Z 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-21T16:57:30.109Z 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-21T16:57:30.112Z 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: cpal::InputStreamTimestamp.callback, cpal::InputStreamTimestamp.callback, cpal::InputStreamTimestamp.capture, cpal::InputStreamTimestamp.capture, 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, cpal::StreamConfig.sample_rate, cpal::StreamConfig.sample_rate, cpal::StreamConfig.buffer_size, cpal::StreamConfig.buffer_size, web_audio_api::AudioRenderCapacityEvent.event, web_audio_api::AudioRenderCapacityEvent.event, cpal::OutputStreamTimestamp.callback, cpal::OutputStreamTimestamp.callback, cpal::OutputStreamTimestamp.playback, cpal::OutputStreamTimestamp.playback, web_audio_api::OfflineAudioCompletionEvent.rendered_buffer, web_audio_api::OfflineAudioCompletionEvent.rendered_buffer, web_audio_api::OfflineAudioCompletionEvent.event, web_audio_api::OfflineAudioCompletionEvent.event)
[2024-06-21T16:57:43.659Z WARN /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0/src/library/commands/command_runner.rs:153] command=cd "/Volumes/mac-J/larpoux/projmac/toto/tau" && FRB_SIMPLE_BUILD_SKIP="1" "sh" "-c" "\"flutter\" \"pub\" \"run\" \"build_runner\" \"build\" \"--delete-conflicting-outputs\" \"--enable-experiment=class-modifiers\"" stdout=[INFO] Generating build script...
[INFO] Generating build script completed, took 165ms

[INFO] Initializing inputs
[INFO] Reading cached asset graph...
[INFO] Reading cached asset graph completed, took 87ms

[INFO] Checking for updates since last build...
[INFO] Checking for updates since last build completed, took 736ms

[INFO] Running build...
[INFO] 1.0s elapsed, 0/16 actions completed.
[INFO] 3.5s elapsed, 9/21 actions completed.
[INFO] 4.5s elapsed, 10/21 actions completed.
[INFO] 5.6s elapsed, 10/21 actions completed.
[INFO] 6.7s elapsed, 18/21 actions completed.
[SEVERE] Unhandled build failure!
PathNotFoundException: Cannot delete file, path = '/Volumes/mac-J/larpoux/projmac/toto/tau/example/ios/.symlinks/plugins/tau/lib/src/rust/frb_generated.freezed.dart' (OS Error: No such file or directory, errno = 2)
[SEVERE] Failed after 6.7s
 stderr=
[2024-06-21T16:57:43.659Z WARN /Volumes/mac-J/larpoux/.cargo/registry/src/index.crates.io-6f17d22bba15001f/flutter_rust_bridge_codegen-2.0.0/src/library/codegen/polisher/mod.rs:89] Fail to execute_build_runner, but continue to run.
Error details: Err(Failed to run build_runner for "/Volumes/mac-J/larpoux/projmac/toto/tau": [INFO] Generating build script...
[INFO] Generating build script completed, took 165ms

[INFO] Initializing inputs
[INFO] Reading cached asset graph...
[INFO] Reading cached asset graph completed, took 87ms

[INFO] Checking for updates since last build...
[INFO] Checking for updates since last build completed, took 736ms

[INFO] Running build...
[INFO] 1.0s elapsed, 0/16 actions completed.
[INFO] 3.5s elapsed, 9/21 actions completed.
[INFO] 4.5s elapsed, 10/21 actions completed.
[INFO] 5.6s elapsed, 10/21 actions completed.
[INFO] 6.7s elapsed, 18/21 actions completed.
[SEVERE] Unhandled build failure!
PathNotFoundException: Cannot delete file, path = '/Volumes/mac-J/larpoux/projmac/toto/tau/example/ios/.symlinks/plugins/tau/lib/src/rust/frb_generated.freezed.dart' (OS Error: No such file or directory, errno = 2)
[SEVERE] Failed after 6.7s
)
[2.7s] Parse  
  └── [2.2s] Cargo expand & syn parse  
  └── [0.3s] Parse HIR  
  └── [0.2s] Parse MIR  
[3.6s] Generate  
[11.6s] Polish  
  └── [9.8s] Run Dart build_runner  
  └── [1.3s] Run Dart formatter  
  └── [0.5s] Run Rust formatter  
  └── [0.0s] Auto upgrade                                                                                                                                                                                                                       Done!

Expected behavior

No response

Generated binding code

No response

OS

No response

Version of flutter_rust_bridge_codegen

No response

Flutter info

No response

Version of clang++

No response

Additional context

No response

fzyzcjy commented 4 months ago

It is possible that the default generated code for a quite complex package like cpal cannot be compiled with 100% automation without any manual configurations. Thus, we may need to look at the errors and fix them (one quick way is to firstly #[frb(ignore)] all things with error, and then add back.

Btw curious why do you need cpal (maybe need some lower level functionality)? IIRC last time you mentioned web-audio-api is good to be a API.

Larpoux commented 4 months ago

It is possible that I have to need things inside CPAL. CPAL is a layer under web-audio-api-rs. But I don't really need to access directly this lib from dart. I can write the function I need in rust. I tried to generate just by curiosity and because I master dart much better than rust. Forget this requirement....

fzyzcjy commented 4 months ago

I see. Yes, if you only need a small portion of the full API, then it may be quicker to write down a few lines simple wrapper in Rust.

github-actions[bot] commented 4 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.