Skip to content

Commit

Permalink
Update README and authors/contributors.
Browse files Browse the repository at this point in the history
  • Loading branch information
SoraSuegami committed Oct 5, 2023
1 parent 93f7db3 commit 7c3777e
Show file tree
Hide file tree
Showing 8 changed files with 61 additions and 16 deletions.
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
{
"name": "zk-regex",
"version": "0.0.1",
"version": "1.0.0",
"private": true,
"description": "zk regex circuit for content attestation",
"main": "node-apis/index.node",
"workspaces": [
"packages/*"
],
"contributors": [
"Javier Su <javier.su.weijie@gmail.com>",
"Kata Choi <kata.choi@gmail.com>",
"Sora Suegami <suegamisora@gmail.com>",
"Yush G <aayushg@mit.edu>"
],
"scripts": {
"install": "cargo install --path ./packages/compiler",
"test": "yarn workspaces -pt run test"
Expand Down
8 changes: 7 additions & 1 deletion packages/apis/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
[package]
name = "zk-regex-apis"
version = "0.1.0"
version = "1.0.0"
license = "MIT"
edition = "2018"
exclude = ["index.node"]
authors = [
"Javier Su <javier.su.weijie@gmail.com>",
"Kata Choi <kata.choi@gmail.com>",
"Sora Suegami <suegamisora@gmail.com>",
"Yush G <aayushg@mit.edu>",
]

[lib]
crate-type = ["rlib", "cdylib"]
Expand Down
2 changes: 2 additions & 0 deletions packages/apis/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# zk-regex-apis

Helpful nodejs/Rust APIs in [zk-regex](https://github.com/zkemail/zk-regex/tree/main).

This project was bootstrapped by [create-neon](https://www.npmjs.com/package/create-neon).

## Installing zk-regex-apis
Expand Down
11 changes: 9 additions & 2 deletions packages/apis/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
{
"name": "zk-regex-apis",
"version": "0.1.0",
"version": "1.0.0",
"description": "",
"contributors": [
"Javier Su <javier.su.weijie@gmail.com>",
"Kata Choi <kata.choi@gmail.com>",
"Sora Suegami <suegamisora@gmail.com>",
"Yush G <aayushg@mit.edu>"
],
"main": "index.node",
"scripts": {
"build": "cargo-cp-artifact -nc index.node -- cargo build --message-format=json-render-diagnostics",
"build-debug": "npm run build --",
"build-release": "npm run build -- --release",
"install": "npm run build-release",
"test": "cargo test"
"test": "cargo test",
"publish": "yarn npm publish --access=public"
},
"author": "",
"license": "MIT",
Expand Down
9 changes: 8 additions & 1 deletion packages/circom/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,15 @@
"name": "zk-regex-circom",
"version": "1.0.0",
"license": "MIT",
"contributors": [
"Javier Su <javier.su.weijie@gmail.com>",
"Kata Choi <kata.choi@gmail.com>",
"Sora Suegami <suegamisora@gmail.com>",
"Yush G <aayushg@mit.edu>"
],
"scripts": {
"test": "jest"
"test": "jest",
"publish": "yarn npm publish --access=public"
},
"dependencies": {
"commander": "^11.0.0",
Expand Down
9 changes: 7 additions & 2 deletions packages/compiler/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
[package]
name = "zk-regex-compiler"
version = "0.1.0"
authors = ["Sora Suegami"]
version = "1.0.0"
authors = [
"Javier Su <javier.su.weijie@gmail.com>",
"Kata Choi <kata.choi@gmail.com>",
"Sora Suegami <suegamisora@gmail.com>",
"Yush G <aayushg@mit.edu>",
]
license = "MIT"
edition = "2018"
# exclude = ["index.node"]
Expand Down
19 changes: 12 additions & 7 deletions packages/compiler/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# zk-regex-apis
# zk-regex-compiler

A compiler CLI in [zk-regex](https://github.com/zkemail/zk-regex/tree/main).

This project was bootstrapped by [create-neon](https://www.npmjs.com/package/create-neon).

## Installing zk-regex-apis
## Installing zk-regex-compiler

Installing zk-regex-apis requires a [supported version of Node and Rust](https://github.com/neon-bindings/neon#platform-support).
Installing zk-regex-compiler requires a [supported version of Node and Rust](https://github.com/neon-bindings/neon#platform-support).

You can install the project with npm. In the project directory, run:

Expand All @@ -14,7 +16,7 @@ $ npm install

This fully installs the project, including installing any dependencies and running the build.

## Building zk-regex-apis
## Building zk-regex-compiler

If you have already installed the project and only want to run the build, run:

Expand All @@ -24,9 +26,12 @@ $ npm run build

This command uses the [cargo-cp-artifact](https://github.com/neon-bindings/cargo-cp-artifact) utility to run the Rust build and copy the built library into `./index.node`.

## Exploring zk-regex-apis
## CLI Usage
Please see "Compiler CLI" section in [zk-regex](https://github.com/zkemail/zk-regex/tree/main).

## Exploring zk-regex-compiler

After building zk-regex-apis, you can explore its exports at the Node REPL:
After building zk-regex-compiler, you can explore its exports at the Node REPL:

```sh
$ npm install
Expand Down Expand Up @@ -70,7 +75,7 @@ Runs the unit tests by calling `cargo test`. You can learn more about [adding te
The directory structure of this project is:

```
zk-regex-apis/
zk-regex-compiler/
├── Cargo.toml
├── README.md
├── index.node
Expand Down
11 changes: 9 additions & 2 deletions packages/compiler/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
{
"name": "zk-regex-compiler",
"version": "0.1.0",
"version": "1.0.0",
"description": "",
"main": "index.node",
"contributors": [
"Javier Su <javier.su.weijie@gmail.com>",
"Kata Choi <kata.choi@gmail.com>",
"Sora Suegami <suegamisora@gmail.com>",
"Yush G <aayushg@mit.edu>"
],
"scripts": {
"build": "cargo-cp-artifact -nc index.node -- cargo build --message-format=json-render-diagnostics",
"build-debug": "npm run build --",
"build-release": "npm run build -- --release",
"install": "npm run build-release",
"test": "cargo test"
"test": "cargo test",
"publish": "yarn npm publish --access=public"
},
"author": "",
"license": "MIT",
Expand Down

0 comments on commit 7c3777e

Please sign in to comment.