-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "feat: Add Wasm Bindings (#62)"
This reverts commit d1ef521.
- Loading branch information
1 parent
d1ef521
commit 613711a
Showing
29 changed files
with
910 additions
and
605 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -103,6 +103,7 @@ build/* | |
|
||
target | ||
|
||
index.node | ||
Cargo.lock | ||
|
||
.DS_Store | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,17 @@ | ||
{ | ||
"name": "@zk-email/zk-regex", | ||
"version": "2.0.0", | ||
"version": "1.0.0", | ||
"private": true, | ||
"description": "zk regex circuit for content attestation", | ||
"main": "pkg/zk_regex_compiler_bg.wasm", | ||
"main": "node-apis/index.node", | ||
"workspaces": [ | ||
"packages/*" | ||
], | ||
"contributors": [ | ||
"Sora Suegami <[email protected]>", | ||
"Yush G <[email protected]>", | ||
"Javier Su <[email protected]>", | ||
"Kata Choi <[email protected]>", | ||
"Aditya Bisht <[email protected]>" | ||
"Kata Choi <[email protected]>" | ||
], | ||
"scripts": { | ||
"install": "yarn workspaces -pt run install", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
target | ||
index.node | ||
**/node_modules | ||
**/.DS_Store | ||
npm-debug.log* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
[package] | ||
name = "zk-regex-apis" | ||
version = "2.0.0" | ||
version = "1.2.0" | ||
license = "MIT" | ||
edition = "2018" | ||
exclude = ["index.node"] | ||
authors = [ | ||
"Javier Su <[email protected]>", | ||
"Kata Choi <[email protected]>", | ||
"Sora Suegami <[email protected]>", | ||
"Yush G <[email protected]>", | ||
"Aditya Bisht <[email protected]>", | ||
] | ||
|
||
[lib] | ||
|
@@ -23,7 +23,13 @@ fancy-regex = "0.11.0" | |
itertools = "0.10.3" | ||
thiserror = "1.0.40" | ||
serde_json = "1.0.95" | ||
wasm-bindgen = "0.2" | ||
serde-wasm-bindgen = "0.6.5" | ||
js-sys = "0.3.69" | ||
wasm-bindgen-test = "0.3.42" | ||
|
||
|
||
[dependencies.neon] | ||
version = "0.10" | ||
default-features = false | ||
features = ["napi-6"] | ||
|
||
[features] | ||
default = ["export_neon_main"] | ||
export_neon_main = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,39 @@ | ||
{ | ||
"name": "@zk-email/zk-regex-apis", | ||
"version": "2.0.0", | ||
"version": "1.2.0", | ||
"description": "apis compatible with [zk-regex](https://github.com/zkemail/zk-regex/tree/main).", | ||
"contributors": [ | ||
"Javier Su <[email protected]>", | ||
"Kata Choi <[email protected]>", | ||
"Sora Suegami <[email protected]>", | ||
"Yush G <[email protected]>", | ||
"Aditya Bisht <[email protected]>" | ||
"Yush G <[email protected]>" | ||
], | ||
"main": "index.node", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/zkemail/zk-regex.git" | ||
}, | ||
"scripts": { | ||
"build": "wasm-pack build --target nodejs --out-dir ./pkg/", | ||
"build": "cargo-cp-artifact -nc index.node -- cargo build --message-format=json-render-diagnostics", | ||
"build-debug": "npm run build --", | ||
"build-release": "npm run build --", | ||
"build-release": "npm run build -- --release", | ||
"install": "npm run build-debug", | ||
"install-release": "npm run build-release", | ||
"test": "wasm-pack test --node", | ||
"upload-binary": "wasm-pack publish -t nodejs" | ||
"install-release": "node-pre-gyp install --update-binary --fallback-to-build=false || npm run build-release", | ||
"test": "cargo test", | ||
"package": "node-pre-gyp package", | ||
"upload-binary": "npm run package && node-pre-gyp-github publish" | ||
}, | ||
"license": "MIT" | ||
} | ||
"license": "MIT", | ||
"dependencies": { | ||
"cargo-cp-artifact": "^0.1", | ||
"@mapbox/node-pre-gyp": "^1.0", | ||
"node-pre-gyp-github": "https://github.com/ultamatt/node-pre-gyp-github.git" | ||
}, | ||
"binary": { | ||
"module_name": "index", | ||
"host": "https://github.com/zkemail/zk-regex/releases/download/", | ||
"remote_path": "{version}", | ||
"package_name": "apis-{node_abi}-{platform}-{arch}.tar.gz", | ||
"module_path": "./" | ||
} | ||
} |
Oops, something went wrong.