feat: WASM-based doc viewer (pulldown-cmark)

This commit is contained in:
Accusys
2026-05-18 10:07:38 +08:00
parent 78ba6f3d3d
commit 6452ac5af2
21 changed files with 2828 additions and 7 deletions

18
doc_wasm/Cargo.toml Normal file
View File

@@ -0,0 +1,18 @@
[package]
name = "doc_wasm"
version = "0.1.0"
edition = "2021"
[lib]
crate-type = ["cdylib", "rlib"]
[dependencies]
wasm-bindgen = "0.2"
pulldown-cmark = "0.11"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
[profile.release]
lto = true
opt-level = "s"
strip = true