@milaboratories/pframes-rs-wasip2 1.1.33
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/dist/pframes_rs_wasip2.wasm +0 -0
- package/package.json +33 -0
- package/wit/world.wit +30 -0
|
Binary file
|
package/package.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@milaboratories/pframes-rs-wasip2",
|
|
3
|
+
"version": "1.1.33",
|
|
4
|
+
"files": [
|
|
5
|
+
"dist",
|
|
6
|
+
"wit"
|
|
7
|
+
],
|
|
8
|
+
"type": "module",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"wasm": "./dist/pframes_rs_wasip2.wasm",
|
|
12
|
+
"wit": "./wit/world.wit"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"devDependencies": {
|
|
16
|
+
"@bytecodealliance/jco": "1.19.0",
|
|
17
|
+
"rimraf": "6.1.3",
|
|
18
|
+
"shx": "0.4.0"
|
|
19
|
+
},
|
|
20
|
+
"scripts": {
|
|
21
|
+
"bump-version": "cargo run -p pframes_rs_meta --bin npm_version -r --locked",
|
|
22
|
+
"build:rust": "cargo build -p pframes_rs_wasip2 --target wasm32-wasip2 && shx mkdir -p dist && shx cp ../../target/wasm32-wasip2/debug/pframes_rs_wasip2.wasm dist/pframes_rs_wasip2.wasm",
|
|
23
|
+
"build": "node --run build:rust",
|
|
24
|
+
"postbuild": "rimraf package.tgz && pnpm pack --out package.tgz",
|
|
25
|
+
"ci-build:rust": "cargo build -p pframes_rs_wasip2 --target wasm32-wasip2 -r --locked && shx mkdir -p dist && jco opt ../../target/wasm32-wasip2/release/pframes_rs_wasip2.wasm -o dist/pframes_rs_wasip2.wasm -- -Oz",
|
|
26
|
+
"ci-build": "node --run ci-build:rust",
|
|
27
|
+
"postci-build": "node --run postbuild",
|
|
28
|
+
"pretest": "node --run build",
|
|
29
|
+
"test": "cargo bin cargo-llvm-cov nextest --lcov --output-path lcov.info --no-tests pass",
|
|
30
|
+
"preci-test": "node --run ci-build",
|
|
31
|
+
"ci-test": "node --run test -- -r --locked"
|
|
32
|
+
}
|
|
33
|
+
}
|
package/wit/world.wit
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
package milaboratories:pframes;
|
|
2
|
+
|
|
3
|
+
interface spec {
|
|
4
|
+
resource frame {
|
|
5
|
+
from-json: static func(spec-json: string) -> result<frame, string>;
|
|
6
|
+
delete-columns: static func(request-json: string) -> result<string, string>;
|
|
7
|
+
build-query: static func(request-json: string) -> result<string, string>;
|
|
8
|
+
list-columns: func() -> result<string, string>;
|
|
9
|
+
discover-columns: func(request-json: string) -> result<string, string>;
|
|
10
|
+
find-columns: func(request-json: string) -> result<string, string>;
|
|
11
|
+
evaluate-query: func(request-json: string) -> result<string, string>;
|
|
12
|
+
rewrite-legacy-query: func(request-json: string) -> result<string, string>;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
resource table {
|
|
16
|
+
from-json: static func(spec-json: string) -> result<table, string>;
|
|
17
|
+
find-column: func(selector-json: string) -> result<string, string>;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
resource axes {
|
|
21
|
+
from-json: static func(spec-json: string) -> result<axes, string>;
|
|
22
|
+
collapse: static func(ids-json: string) -> result<string, string>;
|
|
23
|
+
expand: func() -> result<string, string>;
|
|
24
|
+
find: func(selector-json: string) -> result<string, string>;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
world pframes {
|
|
29
|
+
export spec;
|
|
30
|
+
}
|