8 stable releases
new 1.0.9 | Feb 20, 2025 |
---|---|
1.0.6 | Feb 19, 2025 |
1.0.2 | Feb 18, 2025 |
1.0.1 | Feb 17, 2025 |
#154 in Template engine
47 downloads per month
7KB
75 lines
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
Build:
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
Documentation
Overview
Sample mermaid diagram to test rendering in markdown:
classDiagram
Foo <|-- Bar
API
Link to auto-generated API docs:
License
MIT © Flowscripter