refactor: 大型プラグインのモジュール分割によるコード品質向上
nyash-json-plugin: - 796行の単一ファイルから6モジュール構造へ分割 - constants.rs, provider.rs, doc_box.rs, node_box.rs, tlv_helpers.rs, ffi.rsに責任分離 - 最大ファイルサイズを374行に削減(53%削減) - 共有状態管理をprovider.rsに集約 nyash-net-plugin: - 1112行の巨大ファイルから17ファイル構造へ分割 - boxesサブディレクトリでBox実装を整理(server, client, request, response, socket系) - 最大ファイルサイズを290行に削減(74%削減) - logging, tlv, http_helpers等の共通機能を独立モジュール化 両プラグインともビルド成功確認済み、完全な後方互換性を維持 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
15
plugins/nyash-net-plugin/src/boxes/mod.rs
Normal file
15
plugins/nyash-net-plugin/src/boxes/mod.rs
Normal file
@ -0,0 +1,15 @@
|
||||
mod client;
|
||||
mod request;
|
||||
mod response;
|
||||
mod server;
|
||||
mod socket_client;
|
||||
mod socket_conn;
|
||||
mod socket_server;
|
||||
|
||||
pub use client::nyash_typebox_ClientBox;
|
||||
pub use request::nyash_typebox_RequestBox;
|
||||
pub use response::nyash_typebox_ResponseBox;
|
||||
pub use server::nyash_typebox_ServerBox;
|
||||
pub use socket_client::nyash_typebox_SockClientBox;
|
||||
pub use socket_conn::nyash_typebox_SockConnBox;
|
||||
pub use socket_server::nyash_typebox_SockServerBox;
|
||||
Reference in New Issue
Block a user