32 lines
752 B
Markdown
32 lines
752 B
Markdown
<<<<<<< HEAD
|
|
# buhong
|
|
|
|
a Taigi processing tool
|
|
=======
|
|
# Buhong - a Taigi toolkit
|
|
|
|
## 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`.
|
|
>>>>>>> c4d520c (initial commit)
|