alef 0.23.39

Opinionated polyglot binding generator for Rust libraries
Documentation
1
2
3
4
5
6
7
/// Construct a `{{ struct_name }}` from Dart callback closures.
/// FRB synthesises a Dart-callable function type for each closure parameter,
/// which is the whole point of taking them as `impl Fn(...) -> DartFnFuture<R>`
/// parameters rather than storing them as `Box<dyn Fn(...)>` fields on an opaque
/// struct (FRB v2 silently drops factories that return opaque structs whose fields
/// it cannot bridge). The returned wrapper holds an `Arc<dyn Trait + Send + Sync>`
/// whose backing object carries the supplied callbacks privately.