1. 首页
  2. 数据库
  3. 其它
  4. docx rs:带有RustWebAssembly的.docx文件编写器 源码

docx rs:带有RustWebAssembly的.docx文件编写器 源码

上传者: 2021-03-31 14:02:34上传 ZIP文件 6.01MB 热度 26次
具有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
下载地址
用户评论