dart_cpp_bridge 0.1.0-dev.1 copy "dart_cpp_bridge: ^0.1.0-dev.1" to clipboard
dart_cpp_bridge: ^0.1.0-dev.1 copied to clipboard

Experimental Dart ↔ C++20 bridge (FRB-like). Dart FFI session layer; native library built from the monorepo (hooks not ready).

dart_cpp_bridge #

pub package

Dart-facing package for an experimental Dart ↔ C++20 bridge (FRB-like).

Dev / early preview. Native library is not built by this package yet (no build hooks). You must compile the C++ dynamic library yourself from the monorepo.

Full documentation #

This package is developed inside a monorepo. Do not maintain a second long README here — use the repo docs:

English README.md
中文 README.zh-CN.md
Design / progress docs/
Issues github.com/deretame/dart_cpp_bridge

What this package is #

  • Dart FFI bindings + session / Completer / Stream / DartFn plumbing
  • Companion to the C++ runtime in the same repo (include/, src/)
  • Requires Dart ≥ 3.10

Minimal usage #

import 'package:dart_cpp_bridge/dart_cpp_bridge.dart';

Future<void> main() async {
  final b = await DartCppBridge.init(
    libraryPath: 'path/to/dart_cpp_bridge.dll', // .so / .dylib on other OS
  );
  print(b.bridgeVersion());
  print(await b.add(40, 2));
  b.shutdown(); // main isolate only, on process exit
}

Build the native library from the repo root (CMake + C++20); see the main README.

License #

MIT — see LICENSE.

0
likes
0
points
827
downloads

Documentation

Documentation

Publisher

unverified uploader

Weekly Downloads

Experimental Dart ↔ C++20 bridge (FRB-like). Dart FFI session layer; native library built from the monorepo (hooks not ready).

Repository (GitHub)
View/report issues

Topics

#ffi #native #interop #cpp

License

unknown (license)

Dependencies

ffi

More

Packages that depend on dart_cpp_bridge