@flowscripter/template-bun-rust-library
v1.1.19
Published
Project template for a Rust library with Bun FFI bindings
Maintainers
Readme
template-bun-rust-library
Project template for a Rust library with Bun FFI bindings.
Template Usage
Create a new Bun project using this as a template:
bun create @flowscripter/template-bun-rust-library
Bun Module Usage
Add the module:
bun add @flowscripter/template-bun-rust-library
Use the module:
import { world } from "@flowscripter/template-bun-rust-library";
world();Development
Install dependencies:
bun install
Test:
cargo test
cargo build --release && bun test
Format:
bunx oxfmt
Lint:
cargo fmt && bunx oxlint index.ts src/ tests/
Generate HTML API Documentation:
bunx typedoc index.ts
Documentation
Overview
Sample mermaid diagram to test rendering in markdown:
classDiagram
Foo <|-- BarAPI
Link to auto-generated API docs:
License
MIT © Flowscripter
