euterpe-source/packages/preprocessor
2023-12-22 14:05:46 +01:00
..
@types/lib.rs init rust lib 2023-12-22 14:05:46 +01:00
build/lib.rs init rust lib 2023-12-22 14:05:46 +01:00
src init rust lib 2023-12-22 14:05:46 +01:00
.gitignore init rust lib 2023-12-22 14:05:46 +01:00
bun.lockb init rust lib 2023-12-22 14:05:46 +01:00
bunfig.toml init rust lib 2023-12-22 14:05:46 +01:00
Cargo.lock init rust lib 2023-12-22 14:05:46 +01:00
Cargo.toml init rust lib 2023-12-22 14:05:46 +01:00
package.json init rust lib 2023-12-22 14:05:46 +01:00
project.json init rust lib 2023-12-22 14:05:46 +01:00
README.md init rust lib 2023-12-22 14:05:46 +01:00
tsconfig.json init rust lib 2023-12-22 14:05:46 +01:00

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