Crates.io | glass-easel-template-compiler |
lib.rs | glass-easel-template-compiler |
version | 0.11.0 |
source | src |
created_at | 2023-02-03 07:07:40.223868 |
updated_at | 2024-12-12 08:29:11.245327 |
description | The template compiler of the glass-easel project. |
homepage | https://github.com/wechat-miniprogram/glass-easel |
repository | https://github.com/wechat-miniprogram/glass-easel |
max_upload_size | |
id | 775414 |
size | 525,140 |
The template compiler for the glass-easel project.
Refer to the glass-easel project for further details.
rust
toolchain and wasm-pack
should be globally installed.
Build WebAssembly binary:
wasm-pack build glass-easel-template-compiler --target nodejs --out-dir pkg-nodejs
Build binary:
cargo build --release
Build for simple browser usage:
wasm-pack build glass-easel-template-compiler --target no-modules --out-dir pkg-web
See the main project for the detailed usage.