alef 0.22.23

Opinionated polyglot binding generator for Rust libraries
Documentation
1
2
3
4
5
6
7
8
9
10
impl {{ bridge_name }} {
    /// Create a bridge from a Dart callable.
    pub fn new(
        handler: impl Fn(String) -> DartFnFuture<String> + Send + Sync + 'static,
    ) -> Self {
        Self {
            handler: std::sync::Arc::new(handler),
        }
    }
}