buhong/README.md

27 lines
670 B
Markdown

# Buhong
a Taigi processing tool
## Requirements
- libssl-dev: 3.0.13
- rust: 1.99.1
- cargo: 1.99.1
- wasm-pack: 0.15.1
- only if you want to compile it to browser-runnable WASM code. It's recommended to install with
`cargo install wasm-pack`
## How to build the wasm version
- To build the browser-runnable version, run `wasm-pack build --target web` inside the project directory.
- to use in the `.html` file, insert the code:
```
<script type="module">
import init, { f } from "./pkg/buhong.js"; // f is just an example
await init();
f(x, y);
</script>
```
## Other documents
- For the implement details of the tool, see `./docs`.