docs: 添加 Rustdoc 注释

This commit is contained in:
爱特每羊队
2026-08-05 21:46:47 +08:00
parent bbdfca1a1c
commit f461235f04
158 changed files with 1440 additions and 15 deletions
+3
View File
@@ -2,7 +2,10 @@ use oxide_runtime_api::VmHost;
mod annex_b;
mod uri;
/// 全局函数模块:聚合 Annex B 的 `escape`/`unescape` 与 URI 处理函数
/// (`encodeURI`/`decodeURI`/`encodeURIComponent`/`decodeURIComponent`)。
pub use annex_b::{js_escape, js_unescape};
/// URI 编解码全局函数(`encodeURI`/`decodeURI` 等)。
pub use uri::{decode_uri, decode_uri_component, encode_uri, encode_uri_component};
fn string_arg<H: VmHost>(vm: &mut H, args: &[u8]) -> String {