euterpe-source/packages/preprocessor/README.md
2023-12-22 14:05:46 +01:00

14 lines
357 B
Markdown

# How to use
To extend the Rust library, make sure the functions you're exporting have `#[no_mangle]` derived
and they `extern "C"`. To use, just import `{func} from "./lib.rs"`.
To make sure args and return types match, go to `@types/lib.rs/config.ts`
and change the types of args and returns.
```
bun i
bun dev
```
```
open http://localhost:3000
```