<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Ffi on Website of SauceWu</title><link>https://saucewu.github.io/tags/ffi/</link><description>Recent content in Ffi on Website of SauceWu</description><generator>Hugo -- gohugo.io</generator><language>zh</language><lastBuildDate>Fri, 17 Apr 2026 18:00:00 +0000</lastBuildDate><atom:link href="https://saucewu.github.io/tags/ffi/index.xml" rel="self" type="application/rss+xml"/><item><title>Flutter FFI 插件的 GitHub CI 实践：以 ceres-wallet-core 为例</title><link>https://saucewu.github.io/posts/flutter-ffi-%E6%8F%92%E4%BB%B6%E7%9A%84-github-ci-%E5%AE%9E%E8%B7%B5%E4%BB%A5-ceres-wallet-core-%E4%B8%BA%E4%BE%8B/</link><pubDate>Fri, 17 Apr 2026 18:00:00 +0000</pubDate><guid>https://saucewu.github.io/posts/flutter-ffi-%E6%8F%92%E4%BB%B6%E7%9A%84-github-ci-%E5%AE%9E%E8%B7%B5%E4%BB%A5-ceres-wallet-core-%E4%B8%BA%E4%BE%8B/</guid><description>&lt;h1 id="flutter-ffi-插件的-github-ci-实践以-ceres-wallet-core-为例"&gt;Flutter FFI 插件的 GitHub CI 实践：以 ceres-wallet-core 为例&lt;/h1&gt;
&lt;h2 id="背景"&gt;背景&lt;/h2&gt;
&lt;p&gt;普通 Flutter 插件的 CI 很简单：跑一下 &lt;code&gt;flutter test&lt;/code&gt; 就够了。但 Flutter FFI 插件夹着 C++/Rust native 库，问题就复杂得多——&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;native 库需要在 macOS 上编译 iOS，在 Linux 上编译 Android，不能混&lt;/li&gt;
&lt;li&gt;编译一次要十几分钟，开发者 &lt;code&gt;pub get&lt;/code&gt; 的时候不能让他们自己编&lt;/li&gt;
&lt;li&gt;Trust Wallet Core 有几十万行 C++ 代码，子模块更新需要自动化&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;ceres-wallet-core 的解法是两条 workflow：&lt;/p&gt;</description></item><item><title>ceres-wallet-core：用 Flutter 封装 Trust Wallet Core</title><link>https://saucewu.github.io/posts/ceres-wallet-core%E7%94%A8-flutter-%E5%B0%81%E8%A3%85-trust-wallet-core/</link><pubDate>Thu, 16 Apr 2026 16:00:00 +0000</pubDate><guid>https://saucewu.github.io/posts/ceres-wallet-core%E7%94%A8-flutter-%E5%B0%81%E8%A3%85-trust-wallet-core/</guid><description>&lt;h1 id="ceres-wallet-core用-flutter-封装-trust-wallet-core"&gt;ceres-wallet-core：用 Flutter 封装 Trust Wallet Core&lt;/h1&gt;
&lt;h2 id="背景"&gt;背景&lt;/h2&gt;
&lt;p&gt;在做 Flutter 钱包应用时，密钥管理和交易签名是绕不开的核心模块。社区里能用的方案要么只支持 EVM 单链、要么 Dart 原生实现存在安全隐患、要么直接调 Web3 RPC 把私钥暴露在网络层。&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/trustwallet/wallet-core"&gt;Trust Wallet Core&lt;/a&gt; 是目前业界覆盖链最广、经过生产验证的开源密钥库，用 C++ 实现，已经支持 60+ 条链。问题是它没有官方的 Flutter 绑定。&lt;/p&gt;</description></item></channel></rss>