docs(plugins): update headers to TypeBox v2; expand v2 doc with Regex/Net method tables; remove BID mentions where v2 exists

This commit is contained in:
Selfhosting Dev
2025-09-17 22:30:19 +09:00
parent b6ad86f087
commit d93595ab83
10 changed files with 45 additions and 13 deletions

View File

@ -1,4 +1,4 @@
//! Nyash ArrayBox Plugin - Minimal BID-FFI v1
//! Nyash ArrayBox Plugin — TypeBox v2 (minimal)
//! Methods: birth(0), length(1), get(2), push(3), fini(u32::MAX)
use once_cell::sync::Lazy;

View File

@ -1,4 +1,4 @@
//! Nyash ConsoleBox Plugin - BID-FFI v1
//! Nyash ConsoleBox Plugin — TypeBox v2
//! Provides simple stdout printing via ConsoleBox
use std::collections::HashMap;

View File

@ -1,6 +1,6 @@
//! Nyash FileBox Plugin - BID-FFI v1 Implementation
//! Nyash FileBox Plugin — TypeBox v2
//!
//! Provides file I/O operations as a Nyash plugin
//! Provides file I/O operations as a Nyash pluginTypeBox v2 エクスポート済み)
use std::collections::HashMap;
use std::ffi::CStr;

View File

@ -1,4 +1,4 @@
//! Nyash IntegerBox Plugin - Minimal BID-FFI v1
//! Nyash IntegerBox Plugin — TypeBox v2 (minimal)
//! Methods: birth(0), get(1), set(2), fini(u32::MAX)
use once_cell::sync::Lazy;

View File

@ -1,4 +1,4 @@
//! Nyash MapBox Plugin - Minimal BID-FFI v1
//! Nyash MapBox Plugin — TypeBox v2 (minimal)
//! Methods: birth(0), size(1), get(2), has(3), set(4), fini(u32::MAX)
//! Extension: support both i64 and UTF-8 string keys; values remain i64.

View File

@ -1,5 +1,5 @@
//! Nyash Math/Time Plugin - BID-FFI v1 (minimal)
//! MathBox: sqrt(i64) -> i64
//! Nyash Math/Time Plugin — TypeBox v2
//! MathBox: sqrt/sin/cos/round
//! TimeBox: now() -> i64 (unix seconds)
use std::collections::HashMap;

View File

@ -1,6 +1,6 @@
//! Nyash Net Plugin (HTTP stub) - BID-FFI v1
//! Provides HttpServerBox (singleton), HttpRequestBox, HttpResponseBox, HttpClientBox
//! This is a pure in-process stub (no real sockets), suitable for E2E of BoxRef args/returns.
//! Nyash Net Plugin (HTTP minimal) — TypeBox v2
//! Provides ServerBox/RequestBox/ResponseBox/ClientBox and socket variants.
//! Pure in-process HTTP over localhost for E2E of BoxRef args/returns.
use once_cell::sync::Lazy;
use std::collections::{HashMap, VecDeque};

View File

@ -1,4 +1,4 @@
//! Nyash RegexBox Plugin - Minimal regex support (compile + match/find/replace/split)
//! Nyash RegexBox Plugin — TypeBox v2compile / isMatch / find / replaceAll / split
use once_cell::sync::Lazy;
use regex::Regex;

View File

@ -1,4 +1,4 @@
//! Nyash StringBox Plugin - Minimal BID-FFI v1
//! Nyash StringBox Plugin — TypeBox v2 (minimal)
//! Methods: birth(0), length(1), is_empty(2), charCodeAt(3), fini(u32::MAX)
use once_cell::sync::Lazy;