@ebowwa/bun-native-page 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +64 -0
- package/dist/allocator.d.ts +103 -0
- package/dist/allocator.d.ts.map +1 -0
- package/dist/allocator.js +272 -0
- package/dist/allocator.js.map +1 -0
- package/dist/allocator.ts +334 -0
- package/dist/errors.d.ts +24 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +44 -0
- package/dist/errors.js.map +1 -0
- package/dist/errors.ts +51 -0
- package/dist/ffi.d.ts +104 -0
- package/dist/ffi.d.ts.map +1 -0
- package/dist/ffi.js +102 -0
- package/dist/ffi.js.map +1 -0
- package/dist/ffi.ts +119 -0
- package/dist/index.d.ts +89 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +294 -0
- package/dist/index.js.map +1 -0
- package/dist/index.ts +433 -0
- package/dist/oom.d.ts +36 -0
- package/dist/oom.d.ts.map +1 -0
- package/dist/oom.js +73 -0
- package/dist/oom.js.map +1 -0
- package/dist/oom.ts +96 -0
- package/native/darwin-arm64/libpage_native.dylib +0 -0
- package/package.json +69 -0
package/package.json
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ebowwa/bun-native-page",
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "Cross-platform page-size aware memory operations for Bun - BufferPool, PageArena, mmap/munmap, mlock, mprotect, Windows file mapping",
|
|
5
|
+
"main": "dist/index.ts",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": "./dist/index.ts",
|
|
8
|
+
"./allocator": "./dist/allocator.ts",
|
|
9
|
+
"./errors": "./dist/errors.ts",
|
|
10
|
+
"./ffi": "./dist/ffi.ts",
|
|
11
|
+
"./oom": "./dist/oom.ts"
|
|
12
|
+
},
|
|
13
|
+
"scripts": {
|
|
14
|
+
"build": "cargo build --release",
|
|
15
|
+
"build:ts": "tsc",
|
|
16
|
+
"build:all": "bun run build:darwin && bun run build:linux && bun run build:windows",
|
|
17
|
+
"build:darwin": "bun run build:darwin-arm64 && bun run build:darwin-x64",
|
|
18
|
+
"build:linux": "bun run build:linux-x64 && bun run build:linux-x86 && bun run build:linux-arm64 && bun run build:linux-arm",
|
|
19
|
+
"build:windows": "bun run build:windows-x64 && bun run build:windows-x86 && bun run build:windows-arm64",
|
|
20
|
+
"build:darwin-arm64": "cargo build --release --target aarch64-apple-darwin && cp target/aarch64-apple-darwin/release/libpage_native.dylib native/darwin-arm64/",
|
|
21
|
+
"build:darwin-x64": "cargo build --release --target x86_64-apple-darwin && cp target/x86_64-apple-darwin/release/libpage_native.dylib native/darwin-x64/",
|
|
22
|
+
"build:linux-x64": "cargo build --release --target x86_64-unknown-linux-gnu && cp target/x86_64-unknown-linux-gnu/release/libpage_native.so native/linux-x64/",
|
|
23
|
+
"build:linux-x86": "cargo build --release --target i686-unknown-linux-gnu && cp target/i686-unknown-linux-gnu/release/libpage_native.so native/linux-x86/",
|
|
24
|
+
"build:linux-arm64": "cargo build --release --target aarch64-unknown-linux-gnu && cp target/aarch64-unknown-linux-gnu/release/libpage_native.so native/linux-arm64/",
|
|
25
|
+
"build:linux-arm": "cargo build --release --target arm-unknown-linux-gnueabihf && cp target/arm-unknown-linux-gnueabihf/release/libpage_native.so native/linux-arm/",
|
|
26
|
+
"build:windows-x64": "cargo build --release --target x86_64-pc-windows-msvc && cp target/x86_64-pc-windows-msvc/release/page_native.dll native/windows-x64/",
|
|
27
|
+
"build:windows-x86": "cargo build --release --target i686-pc-windows-msvc && cp target/i686-pc-windows-msvc/release/page_native.dll native/windows-x86/",
|
|
28
|
+
"build:windows-arm64": "cargo build --release --target aarch64-pc-windows-msvc && cp target/aarch64-pc-windows-msvc/release/page_native.dll native/windows-arm64/",
|
|
29
|
+
"test": "bun test",
|
|
30
|
+
"test:platform": "bun test test/platform/",
|
|
31
|
+
"typecheck": "tsc --noEmit",
|
|
32
|
+
"prepublishOnly": "bun run build"
|
|
33
|
+
},
|
|
34
|
+
"keywords": [
|
|
35
|
+
"bun",
|
|
36
|
+
"ffi",
|
|
37
|
+
"page-size",
|
|
38
|
+
"memory",
|
|
39
|
+
"mmap",
|
|
40
|
+
"native",
|
|
41
|
+
"cross-platform",
|
|
42
|
+
"buffer-pool",
|
|
43
|
+
"arena-allocator",
|
|
44
|
+
"mlock",
|
|
45
|
+
"mprotect",
|
|
46
|
+
"windows",
|
|
47
|
+
"file-mapping"
|
|
48
|
+
],
|
|
49
|
+
"author": "ebowwa",
|
|
50
|
+
"license": "MIT",
|
|
51
|
+
"engines": {
|
|
52
|
+
"bun": ">=1.0.0"
|
|
53
|
+
},
|
|
54
|
+
"files": [
|
|
55
|
+
"dist/",
|
|
56
|
+
"native/"
|
|
57
|
+
],
|
|
58
|
+
"repository": {
|
|
59
|
+
"type": "git",
|
|
60
|
+
"url": "https://github.com/ebowwa/bun-native-page.git"
|
|
61
|
+
},
|
|
62
|
+
"bugs": {
|
|
63
|
+
"url": "https://github.com/ebowwa/bun-native-page/issues"
|
|
64
|
+
},
|
|
65
|
+
"homepage": "https://github.com/ebowwa/bun-native-page#readme",
|
|
66
|
+
"devDependencies": {
|
|
67
|
+
"bun-types": "^1.3.10"
|
|
68
|
+
}
|
|
69
|
+
}
|