https://github.com/flowscripter/template-bun-rust-library
Project template for a Rust library with Bun FFI bindings.
https://github.com/flowscripter/template-bun-rust-library
bun rust typescript
Last synced: about 2 months ago
JSON representation
Project template for a Rust library with Bun FFI bindings.
- Host: GitHub
- URL: https://github.com/flowscripter/template-bun-rust-library
- Owner: flowscripter
- License: mit
- Created: 2025-02-13T22:33:43.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2026-04-27T03:37:36.000Z (about 2 months ago)
- Last Synced: 2026-04-27T05:25:32.170Z (about 2 months ago)
- Topics: bun, rust, typescript
- Language: TypeScript
- Homepage:
- Size: 105 KB
- Stars: 1
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# template-bun-rust-library
[](https://github.com/flowscripter/template-bun-rust-library/releases)
[](https://github.com/flowscripter/template-bun-rust-library/actions/workflows/release-bun-rust-library.yml)
[](https://flowscripter.github.io/template-bun-rust-library/index.html)
[](https://docs.rs/flowscripter_template_bun_rust_library)
[](https://codecov.io/gh/flowscripter/template-bun-rust-library)
[](https://github.com/flowscripter/template-bun-rust-library/blob/main/LICENSE)
> 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:
```typescript
import { world } from "@flowscripter/template-bun-rust-library";
world();
```
## Development
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`
## Documentation
### Overview
Sample mermaid diagram to test rendering in markdown:
```mermaid
classDiagram
Foo <|-- Bar
```
### API
Link to auto-generated API docs:
[API Documentation](https://flowscripter.github.io/template-bun-rust-library/index.html)
## License
MIT © Flowscripter