-
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.
* update 2 files, create 6 files and delete 1 file * update 1 file and create 1 file * node.rs * wasm * update circom.rs and lib.rs * wasm_bindgen gen_from_raw_memory * reverse_string * call gen_from_raw_memory from js * disable neon for wasm * chore: delete .yarnrc * toolchain, docs * remove pkg dir * Revert "update 1 file and create 1 file" This reverts commit ae5b918. * cleanup * target_family wasm * remove neon from compiler * test stub * README * update package.json, wasm.test.js and packages/compiler/README.md * wasm-pack web README * tests * change from unwrap to expect in gen_from_raw_memory, formatting * gen_from_decomposed_memory * test: update email_addr.test.js * update tests * test: update simple_regex.test.js * chore: delete wasm.test.js * update circom.rs and lib.rs * add wasm-bindgen to api * feat: add wasm * chore: update version --------- Co-authored-by: Olof Andersson <[email protected]>
- Loading branch information
Showing
29 changed files
with
605 additions
and
910 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,7 +103,6 @@ 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,17 +1,18 @@ | ||
{ | ||
"name": "@zk-email/zk-regex", | ||
"version": "1.0.0", | ||
"version": "2.0.0", | ||
"private": true, | ||
"description": "zk regex circuit for content attestation", | ||
"main": "node-apis/index.node", | ||
"main": "pkg/zk_regex_compiler_bg.wasm", | ||
"workspaces": [ | ||
"packages/*" | ||
], | ||
"contributors": [ | ||
"Sora Suegami <[email protected]>", | ||
"Yush G <[email protected]>", | ||
"Javier Su <[email protected]>", | ||
"Kata Choi <[email protected]>" | ||
"Kata Choi <[email protected]>", | ||
"Aditya Bisht <[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,5 +1,4 @@ | ||
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 = "1.2.0" | ||
version = "2.0.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,13 +23,7 @@ fancy-regex = "0.11.0" | |
itertools = "0.10.3" | ||
thiserror = "1.0.40" | ||
serde_json = "1.0.95" | ||
|
||
|
||
[dependencies.neon] | ||
version = "0.10" | ||
default-features = false | ||
features = ["napi-6"] | ||
|
||
[features] | ||
default = ["export_neon_main"] | ||
export_neon_main = [] | ||
wasm-bindgen = "0.2" | ||
serde-wasm-bindgen = "0.6.5" | ||
js-sys = "0.3.69" | ||
wasm-bindgen-test = "0.3.42" |
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,39 +1,26 @@ | ||
{ | ||
"name": "@zk-email/zk-regex-apis", | ||
"version": "1.2.0", | ||
"version": "2.0.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]>" | ||
"Yush G <[email protected]>", | ||
"Aditya Bisht <[email protected]>" | ||
], | ||
"main": "index.node", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/zkemail/zk-regex.git" | ||
}, | ||
"scripts": { | ||
"build": "cargo-cp-artifact -nc index.node -- cargo build --message-format=json-render-diagnostics", | ||
"build": "wasm-pack build --target nodejs --out-dir ./pkg/", | ||
"build-debug": "npm run build --", | ||
"build-release": "npm run build -- --release", | ||
"build-release": "npm run build --", | ||
"install": "npm run build-debug", | ||
"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" | ||
"install-release": "npm run build-release", | ||
"test": "wasm-pack test --node", | ||
"upload-binary": "wasm-pack publish -t nodejs" | ||
}, | ||
"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": "./" | ||
} | ||
} | ||
"license": "MIT" | ||
} |
Oops, something went wrong.