rxf

Flutter runtime for the RXF SDK — build cross-platform apps with Rust, Flutter, and JavaScript.

Features

  • Render UI components defined in JavaScript/JSX via a Flutter host
  • Bidirectional communication between Dart and Rust through rinf
  • Shadcn-style component library powered by shadcn_flutter
  • Hot-reload friendly development workflow via the rxf CLI

Getting started

Add this package to your pubspec.yaml:

dependencies:
  rxf: ^0.0.1

This package is intended to be used together with the rxf CLI tool, which scaffolds the full project structure including the Rust hub.

Usage

import 'package:flutter/material.dart';
import 'package:rxf/rxf.dart';
import 'package:rxf_shadcn/rxf_shadcn.dart';

Future<void> main() async {
  await RxfRuntime.initialize(plugins: [const RxfShadcnPlugin()]);
  runApp(const RxfRuntimeApp());
}

The CLI (rxf dev) manages the Flutter engine workspace and wires up the Rust side automatically.

Additional information