ToB企服应用市场:ToB评测及商务社交产业平台

标题: Rust Web 全栈开发之编写 WebAssembly 应用 [打印本页]

作者: 去皮卡多    时间: 2023-6-4 15:48
标题: Rust Web 全栈开发之编写 WebAssembly 应用
Rust Web 全栈开发之编写 WebAssembly 应用

MDN Web Docs:https://developer.mozilla.org/zh-CN/docs/WebAssembly
官网:https://webassembly.org/
项目结构 和 功能

Web App 教师注册        WebService        WebAssembly App  课程管理
什么是 WebAssembly

机器码

ASSEMBLY    ->    ASSEMBLER    ->    MACHINE CODE
机器码与 CPU 架构

WebAssembly

WebAssembly 是什么样的?

WebAssembly 能做什么

WebAssembly 如何工作

Hello.c    ->    EMSCRIPTEN(编译器)   ->  hello.wasm    hello.js  hello.html
WebAssembly 的优点

Rust WebAssembly 部分相关 crate

搭建环境

Rust 官网:https://www.rust-lang.org/zh-CN/what/wasm
Rust and WebAssembly:https://rustwasm.github.io/docs/book/
Rust和WebAssembly中文文档:https://rustwasm.wasmdev.cn/docs/book/
安装

wasm-pack

下载安装地址:https://rustwasm.github.io/wasm-pack/installer/
Install wasm-pack
You appear to be running a *nix system (Unix, Linux, MacOS). Install by running:
  1. curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
复制代码
If you're not on *nix, or you don't like installing from curl, follow the alternate instructions below.
cargo-generate

cargo-generate helps you get up and running quickly with a new Rust project by leveraging a pre-existing git repository as a template.
Install cargo-generate with this command:
  1. cargo install cargo-generate
复制代码
[code]~ via
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!




欢迎光临 ToB企服应用市场:ToB评测及商务社交产业平台 (https://dis.qidao123.com/) Powered by Discuz! X3.4