| Crates.io | flowscripter_template_bun_rust_library |
| lib.rs | flowscripter_template_bun_rust_library |
| version | 1.0.26 |
| created_at | 2025-02-17 12:23:06.496786+00 |
| updated_at | 2025-03-18 15:56:06.591186+00 |
| description | Project template for a Rust library with Bun FFI bindings. |
| homepage | https://github.com/flowscripter |
| repository | https://github.com/flowscripter/template-bun-rust-library |
| max_upload_size | |
| id | 1558865 |
| size | 13,347 |
Project template for a Rust library with Bun FFI bindings.
Create a new Bun project using this as a template:
bun create @flowscripter/template-bun-rust-library
Add the module:
bun add @flowscripter/template-bun-rust-library
Use the module:
import { world } from "@flowscripter/template-bun-rust-library";
world();
Install dependencies:
bun install
Test:
cargo test
cargo build --release && bun test
NOTE: The following tasks use Deno as it excels at these and Bun does not currently provide such functionality:
Format:
deno fmt
Lint:
cargo fmt && deno lint index.ts src/ tests/
Generate HTML API Documentation:
deno doc --html --name=template-bun-rust-library index.ts
Sample mermaid diagram to test rendering in markdown:
classDiagram
Foo <|-- Bar
Link to auto-generated API docs:
MIT © Flowscripter