Skip to content
This content is for v1. Switch to the latest version for up-to-date documentation.

dart_cpp_bridge

Expose C++ libraries to Dart/Flutter in an elegant way

Synchronous Calls

Directly call C++ functions with zero-overhead synchronous returns.

Asynchronous Coroutines

C++20 coroutine support based on async_simple::Lazy.

Stream

Push streams of data from C++ to Dart.

Reverse Calls

Call Dart closures (DartFn) from C++.

Code Generation

Auto-generate FFI bindings and serialization code.

Cross-Platform

Support for Windows, Linux, macOS, iOS, and Android.

Pure C API

C99-compatible bridge API with no dependency on async-simple / asio.

Foreign Runtime Integration

Integrate libuv, glib, and custom event loops via ForeignExecutor.

Asynchronous Non-blocking Channels

mpsc / oneshot coroutine channels for building cross-thread non-blocking pipelines.