mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
8 lines
528 B
TypeScript
8 lines
528 B
TypeScript
import { join } from "node:path";
|
|
|
|
const dirname = join(import.meta.dir, "../", "bun-native-bundler-plugin-api");
|
|
await Bun.$`rm -rf headers`;
|
|
await Bun.$`mkdir -p headers`;
|
|
await Bun.$`cp -R ${dirname} headers/bun-native-bundler-plugin-api`;
|
|
await Bun.$`bindgen wrapper.h --rustified-enum BunLogLevel --rustified-enum BunLoader --blocklist-type '.*pthread.*' --blocklist-type '__darwin.*' --blocklist-var '__DARWIN.*' --blocklist-type timespec --blocklist-function 'pthread_.*' --no-layout-tests -o src/sys.rs -- -I./headers`;
|