Skip to content

Expose core_version API from Rust (cdylib) to Dart FFI; update build and Flutter UI for cross-platform support#2

Open
cto-new[bot] wants to merge 1 commit intomasterfrom
feat-m0-2-expose-core-version-rust-cdylib-dart-ffi-win-msvc-android-arm64-flutter
Open

Expose core_version API from Rust (cdylib) to Dart FFI; update build and Flutter UI for cross-platform support#2
cto-new[bot] wants to merge 1 commit intomasterfrom
feat-m0-2-expose-core-version-rust-cdylib-dart-ffi-win-msvc-android-arm64-flutter

Conversation

@cto-new
Copy link
Copy Markdown
Contributor

@cto-new cto-new bot commented Oct 18, 2025

Summary

This PR implements and exposes a minimal version-info API (core_version) from Rust to Flutter, enabling runtime display of the crate version metadata in the application UI for both Windows (MSVC) and Android (arm64-v8a) platforms.

Details

  • Adds core_version() API to Rust core, returning JSON string with crate metadata
  • Provides FFI bindings in Dart bridge with proper memory management
  • Updates build scripts (Makefile, build.sh), CMake configuration for current platforms
  • Modifies Flutter app UI to decode and display version and crate name
  • Updates and adds documentation (README, QUICKSTART, ARCHITECTURE, CHANGELOG, etc.)
  • Consolidates supported targets to Windows x86_64-MSVC and Android arm64-v8a
  • Adds full verification, troubleshooting, and API usage guides

Warning: Task VM test is not passing, cto.new will perform much better if you fix the setup

…rt FFI

Introduce a minimal Rust FFI function returning version metadata as JSON,
and expose it to Dart/Flutter via the bridge package. Updates build
targets, scripts, and app UI for cross-platform invocation and display.

This is needed to enable runtime access to crate version information
from Flutter, aiding diagnostics and build verification.

- Add `core_version()` Rust FFI export returning crate name & version in JSON
- Implement Dart FFI bindings and safe memory management
- Update Flutter UI to display version info from Rust core
- Simplify build scripts and targets to arm64-v8a (Android) and x86_64-MSVC (Windows)
- Add and update documentation and usage guides

Fully compatible with existing app structure; no user migration required.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants