dart-setup-ffi-assets
Build Dart Native Assets with FFI Hooks
Native C and C++ integration in Dart requires platform-aware build, link, and packaging hooks. This skill guides local compilation, verified binary downloads, and linker tree-shaking.
使用我的智能体安装
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
Review the Skillstore skill "dart-setup-ffi-assets" from https://skillstore.io/skills/flutter-dart-setup-ffi-assets.md and its manifest at https://skillstore.io/api/skills/flutter-dart-setup-ffi-assets/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智能体仍应展示其计划,并按安全策略请求必要确认。
Agent 可读资源
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
测试它
正在使用“dart-setup-ffi-assets”。 Set up local compilation for a bundled SQLite source file.
预期结果:
- A dependency list for hooks, code assets, native toolchains, record use, and FFIgen.
- A shared C library specification used by both build and link phases.
- A verification checklist covering tests and platform library outputs.
正在使用“dart-setup-ffi-assets”。 Use precompiled libraries while preserving offline development.
预期结果:
- A platform-aware download design with immutable release locations and SHA-256 verification.
- A local_build switch that compiles included sources when network access is unavailable.
- Clear failure behavior for unsupported targets and integrity mismatches.
正在使用“dart-setup-ffi-assets”。 Remove unused native symbols from a release build.
预期结果:
- A link-hook design that maps recorded Dart calls to native symbol names.
- Platform-specific export inspection steps for macOS, Linux, and Windows.
安全审计
中风险The analyzer mostly misclassified Markdown backticks and ordinary Dart entry points as command execution or reconnaissance. The remote native-library download is confirmed, and the documented MD5 validation creates a separate integrity weakness. Privileged package installation is explicit and fixed, while certificate and Python HTTP alerts are unrelated text matches.
已确认安全问题 (1)
能力复核项 (1)
这些是真实的本地能力,对此技能可能是预期行为,因此需要复核,但不会按已确认恶意行为计分。
风险因素
⚙️ 外部命令 (50)
🌐 网络访问 (2)
分享与引用此报告
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
复制报告链接
https://skillstore.io/skills/flutter-dart-setup-ffi-assets/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/flutter-dart-setup-ffi-assets?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/flutter-dart-setup-ffi-assets?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/flutter-dart-setup-ffi-assets/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/flutter-dart-setup-ffi-assets.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>学术引用 (APA · BibTeX · CFF)
APA 引用
flutter. (2026). dart-setup-ffi-assets security audit report (audit version 1) [Author version unspecified]. Skillstore. https://skillstore.io/skills/flutter-dart-setup-ffi-assets/audits/1BibTeX 引用
@techreport{flutter-flutter-dart-setup-ffi-assets-2026,
author = {flutter},
title = {dart-setup-ffi-assets security audit report (audit version 1)},
institution = {Skillstore},
year = {2026},
number = {1},
url = {https://skillstore.io/skills/flutter-dart-setup-ffi-assets/audits/1},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "dart-setup-ffi-assets security audit report (audit version 1)"
version: "unspecified"
type: report
authors:
- name: "flutter"
date-released: "2026-08-30"
url: "https://skillstore.io/skills/flutter-dart-setup-ffi-assets/audits/1"
identifiers:
- type: other
value: "skillstore:flutter-dart-setup-ffi-assets:audit:1"
description: "Skillstore immutable audit report identifier"
Skillstore 评分
评分依据 证据置信度: 中你能构建什么
Add Native Code to a Dart Package
Create build hooks that compile included C sources and register the resulting library as a Dart Code Asset.
Package Native Libraries for Flutter
Prepare platform-specific dynamic libraries for automatic bundling across macOS, Linux, and Windows.
Reduce Native Binary Size
Connect FFIgen usage records to a link hook that removes unreferenced native symbols.
试试这些提示
Set up a Dart Native Assets build hook for my C sources. Use native_toolchain_c and explain every required file.
Integrate FFIgen bindings with my Native Assets setup. Include the shared library specification and platform export requirements.
Design a build hook that downloads platform-specific native libraries, verifies SHA-256 hashes, and supports an offline local-build fallback.
Add a link hook using record_use mappings and native_toolchain_c tree-shaking. Include tests for retained and removed symbols.
最佳实践
- Resolve package paths with Uri APIs and keep hooks platform-independent.
- Use SHA-256 or stronger digests for every downloaded native binary.
- Test local, offline, unsupported-platform, and symbol-stripping paths in continuous integration.
避免
- Do not invoke compilers through dynamically constructed shell commands.
- Do not download or register native binaries before verifying their source and digest.
- Do not hardcode generated output directories or host-specific absolute paths.