docx rs:带有RustWebAssembly的.docx文件编写器 源码
具有Rust / WebAssembly的.docx文件编写器。 安装 锈 [dependencies] docx-rs = "0.2.0" 浏览器/Node.js yarn add docx-wasm 例子 锈 use docx_rs :: * ; pub fn hello () -> Result <(), DocxError> { let path = std :: path :: Path :: new ( "./hello.docx" ); let file = std :: fs :: File :: create ( & path). unwrap (); Docx :: new () . add_paragraph (Paragraph :: new (). add_run (Run :: new (). add_text ( "H
下载地址
用户评论