- FileBoxプラグイン単体実装 - birth/finiライフサイクル対応 - 6つのメソッド定義(birth/open/read/write/close/fini) - プラグインが自らBox名「FileBox」を宣言 - nyash.toml設定ファイル作成 - FileBox = "nyash-filebox-plugin" マッピング定義 - プラグイン検索パス設定 - プラグインテスター作成(tools/plugin-tester) - Box名を決め打ちしない汎用設計 - プラグインから型情報を動的取得 - メソッド一覧表示機能 - 診断機能付きチェックコマンド 重要な設計原則: - プラグインが自分のBox名を宣言(ローダーは知らない) - 汎用的で拡張可能な設計 - メモリ管理の明確な責任分担 次のステップ:Nyashとの統合(Step 4) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
19 lines
330 B
TOML
19 lines
330 B
TOML
[package]
|
|
name = "nyash-filebox-plugin"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
[lib]
|
|
crate-type = ["cdylib"] # 動的ライブラリとしてビルド
|
|
|
|
[dependencies]
|
|
# 最小限の依存関係のみ
|
|
|
|
[features]
|
|
default = []
|
|
|
|
# プロファイル設定
|
|
[profile.release]
|
|
lto = true
|
|
strip = true
|
|
opt-level = "z" # サイズ最適化 |