@powerlines/plugin-napi-rs 0.0.1

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.
@@ -0,0 +1,44 @@
1
+ //#region src/types/wasm.d.ts
2
+ /**
3
+ * Wasm Browser compilation options
4
+ */
5
+ interface WasmBrowserOptions {
6
+ /**
7
+ * Whether to use fs module in browser
8
+ */
9
+ fs?: boolean;
10
+ /**
11
+ * Whether to initialize wasm asynchronously
12
+ */
13
+ asyncInit?: boolean;
14
+ /**
15
+ * Whether to inject `buffer` to emnapi context
16
+ */
17
+ buffer?: boolean;
18
+ /**
19
+ * Whether to emit custom events for errors in worker
20
+ */
21
+ errorEvent?: boolean;
22
+ }
23
+ /**
24
+ * Wasm compilation options
25
+ */
26
+ interface WasmOptions {
27
+ /**
28
+ * https://developer.mozilla.org/en-US/docs/WebAssembly/JavaScript_interface/Memory
29
+ *
30
+ * @defaultValue 4000 pages (256MiB)
31
+ */
32
+ initialMemory?: number;
33
+ /**
34
+ * @defaultValue 65536 pages (4GiB)
35
+ */
36
+ maximumMemory?: number;
37
+ /**
38
+ * Browser wasm binding configuration
39
+ */
40
+ browser: WasmBrowserOptions;
41
+ }
42
+ //#endregion
43
+ export { WasmBrowserOptions, WasmOptions };
44
+ //# sourceMappingURL=wasm.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wasm.d.mts","names":[],"sources":["../../src/types/wasm.ts"],"mappings":";;AAqBA;;UAAiB,kBAAA;EAAkB;;;EAIjC,EAAA;EAeA;;;EAVA,SAAA;EAgB0B;;;EAX1B,MAAA;EAsBA;;;EAjBA,UAAA;AAAA;;;;UAMe,WAAA;;;;;;EAMf,aAAA;;;;EAKA,aAAA;;;;EAKA,OAAA,EAAS,kBAAA;AAAA"}
@@ -0,0 +1 @@
1
+ export { };
package/package.json ADDED
@@ -0,0 +1,143 @@
1
+ {
2
+ "name": "@powerlines/plugin-napi-rs",
3
+ "version": "0.0.1",
4
+ "private": false,
5
+ "description": "A package containing a Powerlines plugin for integrating with N-API Rust modules.",
6
+ "keywords": ["napi-rs", "powerlines", "storm-software", "powerlines-plugin"],
7
+ "homepage": "https://stormsoftware.com",
8
+ "bugs": {
9
+ "url": "https://stormsoftware.com/support",
10
+ "email": "support@stormsoftware.com"
11
+ },
12
+ "repository": {
13
+ "type": "github",
14
+ "url": "https://github.com/storm-software/powerlines.git",
15
+ "directory": "packages/plugin-napi-rs"
16
+ },
17
+ "funding": {
18
+ "type": "github",
19
+ "url": "https://github.com/sponsors/storm-software"
20
+ },
21
+ "license": "Apache-2.0",
22
+ "author": {
23
+ "name": "Storm Software",
24
+ "email": "contact@stormsoftware.com",
25
+ "url": "https://stormsoftware.com"
26
+ },
27
+ "maintainers": [
28
+ {
29
+ "name": "Storm Software",
30
+ "email": "contact@stormsoftware.com",
31
+ "url": "https://stormsoftware.com"
32
+ }
33
+ ],
34
+ "contributors": [
35
+ {
36
+ "name": "Storm Software",
37
+ "email": "contact@stormsoftware.com",
38
+ "url": "https://stormsoftware.com"
39
+ }
40
+ ],
41
+ "type": "module",
42
+ "exports": {
43
+ ".": {
44
+ "require": {
45
+ "types": "./dist/index.d.cts",
46
+ "default": "./dist/index.cjs"
47
+ },
48
+ "import": {
49
+ "types": "./dist/index.d.mts",
50
+ "default": "./dist/index.mjs"
51
+ },
52
+ "default": {
53
+ "types": "./dist/index.d.mts",
54
+ "default": "./dist/index.mjs"
55
+ }
56
+ },
57
+ "./package.json": "./package.json",
58
+ "./types": {
59
+ "require": {
60
+ "types": "./dist/types/index.d.cts",
61
+ "default": "./dist/types/index.cjs"
62
+ },
63
+ "import": {
64
+ "types": "./dist/types/index.d.mts",
65
+ "default": "./dist/types/index.mjs"
66
+ },
67
+ "default": {
68
+ "types": "./dist/types/index.d.mts",
69
+ "default": "./dist/types/index.mjs"
70
+ }
71
+ },
72
+ "./types/plugin": {
73
+ "require": {
74
+ "types": "./dist/types/plugin.d.cts",
75
+ "default": "./dist/types/plugin.cjs"
76
+ },
77
+ "import": {
78
+ "types": "./dist/types/plugin.d.mts",
79
+ "default": "./dist/types/plugin.mjs"
80
+ },
81
+ "default": {
82
+ "types": "./dist/types/plugin.d.mts",
83
+ "default": "./dist/types/plugin.mjs"
84
+ }
85
+ },
86
+ "./types/targets": {
87
+ "require": {
88
+ "types": "./dist/types/targets.d.cts",
89
+ "default": "./dist/types/targets.cjs"
90
+ },
91
+ "import": {
92
+ "types": "./dist/types/targets.d.mts",
93
+ "default": "./dist/types/targets.mjs"
94
+ },
95
+ "default": {
96
+ "types": "./dist/types/targets.d.mts",
97
+ "default": "./dist/types/targets.mjs"
98
+ }
99
+ },
100
+ "./types/wasm": {
101
+ "require": {
102
+ "types": "./dist/types/wasm.d.cts",
103
+ "default": "./dist/types/wasm.cjs"
104
+ },
105
+ "import": {
106
+ "types": "./dist/types/wasm.d.mts",
107
+ "default": "./dist/types/wasm.mjs"
108
+ },
109
+ "default": {
110
+ "types": "./dist/types/wasm.d.mts",
111
+ "default": "./dist/types/wasm.mjs"
112
+ }
113
+ }
114
+ },
115
+ "main": "./dist/index.cjs",
116
+ "module": "./dist/index.mjs",
117
+ "types": "./dist/index.d.cts",
118
+ "typings": "dist/index.d.mts",
119
+ "files": ["dist/**/*"],
120
+ "dependencies": {
121
+ "@alloy-js/core": "0.23.0-dev.8",
122
+ "@alloy-js/json": "0.23.0-dev.2",
123
+ "@alloy-js/markdown": "0.23.0-dev.1",
124
+ "@alloy-js/typescript": "0.23.0-dev.4",
125
+ "@napi-rs/cli": "^3.6.2",
126
+ "@powerlines/plugin-alloy": "^0.26.37",
127
+ "@powerlines/plugin-automd": "^0.1.419",
128
+ "@powerlines/plugin-plugin": "^0.12.370",
129
+ "@stryke/fs": "^0.33.66",
130
+ "@stryke/path": "^0.27.4",
131
+ "@stryke/string-format": "^0.17.9",
132
+ "@stryke/type-checks": "^0.6.1",
133
+ "@stryke/types": "^0.11.3",
134
+ "automd": "^0.4.3",
135
+ "defu": "^6.1.7",
136
+ "powerlines": "^0.43.18"
137
+ },
138
+ "devDependencies": { "@types/node": "^25.6.0" },
139
+ "peerDependencies": { "@napi-rs/wasm-runtime": ">=1.1.4" },
140
+ "peerDependenciesMeta": { "@napi-rs/wasm-runtime": { "optional": true } },
141
+ "publishConfig": { "access": "public" },
142
+ "gitHead": "0c0d5eabdaf93b93f7312f39cfbde1d12740a5de"
143
+ }