Skip to content

Commit

Permalink
fix: fix rust-witness ver (#326)
Browse files Browse the repository at this point in the history
  • Loading branch information
vivianjeng authored Feb 17, 2025
1 parent 569483c commit 1f5064d
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 18 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion circom-prover/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ num-bigint = { version = "0.4.3", default-features = false, features = [
"rand",
] }
anyhow = "1.0.95"
rust-witness = { version = "0.1.2", optional = true }
rust-witness = { version = "0.1", optional = true }
witnesscalc-adapter = { version = "0.1.0", optional = true }
byteorder = { version = "1.0.0" }
uuid = { version = "1.9.1", features = ["v4"] }
Expand Down
4 changes: 2 additions & 2 deletions cli/src/template/init/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ default = ["<FEATURES>"]
[dependencies]
mopro-wasm = { git = "https://github.com/zkmopro/mopro" }
mopro-ffi = { git = "https://github.com/zkmopro/mopro.git", branch = "main" }
rust-witness = "0.1.1"
rust-witness = "0.1"
uniffi = { version = "0.28", features = ["cli"] }
num-bigint = "0.4.0"
# HALO2_DEPENDENCIES

[build-dependencies]
mopro-ffi = { git = "https://github.com/zkmopro/mopro.git", branch = "main" }
rust-witness = "0.1.1"
rust-witness = "0.1"
uniffi = { version = "0.28", features = ["build"] }

# CIRCOM_DEPENDENCIES
4 changes: 2 additions & 2 deletions docs/docs/adapters/circom.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ To use it, you must first add the `rust-witness` crate to your `Cargo.toml` regu
```toml
[dependencies]
# ...
rust-witness = { git = "https://github.com/vimwitch/rust-witness.git" }
rust-witness = "0.1"

[build-dependencies]
# ...
rust-witness = { git = "https://github.com/vimwitch/rust-witness.git" }
rust-witness = "0.1"
```

#### Configuring the path to the `.wasm` circuit files in the `build.rs`
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/setup/rust-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ default = ["mopro-ffi/circom"]

[dependencies]
mopro-ffi = { git = "https://github.com/zkmopro/mopro.git", branch = "main" }
rust-witness = "0.1.1"
rust-witness = "0.1"
uniffi = { version = "0.28", features = ["cli"] }
num-bigint = "0.4.0"

[build-dependencies]
mopro-ffi = { git = "https://github.com/zkmopro/mopro.git", branch = "main" }
rust-witness = "0.1.1"
rust-witness = "0.1"
uniffi = { version = "0.28", features = ["build"] }

# TODO: fix this
Expand Down
4 changes: 2 additions & 2 deletions docs/versioned_docs/version-0.1.0/adapters/circom.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ To use it, you must first add the `rust-witness` crate to your `Cargo.toml` regu
```toml
[dependencies]
# ...
rust-witness = { git = "https://github.com/vimwitch/rust-witness.git" }
rust-witness = "0.1"

[build-dependencies]
# ...
rust-witness = { git = "https://github.com/vimwitch/rust-witness.git" }
rust-witness = "0.1"
```

#### Configuring the path to the `.wasm` circuit files in the `build.rs`
Expand Down
4 changes: 2 additions & 2 deletions docs/versioned_docs/version-0.1.0/setup/rust-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ default = ["mopro-ffi/circom"]

[dependencies]
mopro-ffi = { git = "https://github.com/zkmopro/mopro.git", branch = "main" }
rust-witness = "0.1.1"
rust-witness = "0.1"
uniffi = { version = "0.28", features = ["cli"] }
num-bigint = "0.4.0"

[build-dependencies]
mopro-ffi = { git = "https://github.com/zkmopro/mopro.git", branch = "main" }
rust-witness = "0.1.1"
rust-witness = "0.1"
uniffi = { version = "0.28", features = ["build"] }

# TODO: fix this
Expand Down
4 changes: 2 additions & 2 deletions mopro-ffi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ thiserror = "=2.0.3"
color-eyre = "=0.6.2"

# circom deps
rust-witness = { version = "0.1.1", optional = true }
rust-witness = { version = "0.1", optional = true }
ark-ff = { version = "0.4.0", optional = true }
circom-prover = { path = "../circom-prover", optional = true }

Expand All @@ -48,7 +48,7 @@ uuid = { version = "1.9.1", features = ["v4"] }
ark-bls12-381 = { version = "0.4.0", optional = true }

[build-dependencies]
rust-witness = { version = "0.1.1", optional = true }
rust-witness = { version = "0.1", optional = true }
uniffi = { version = "=0.28.0", features = ["build"] }

[dev-dependencies]
Expand Down
5 changes: 2 additions & 3 deletions test-e2e/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ mopro-wasm = { path = "../mopro-wasm" }
uniffi = "0.28.0"

# Circom dependencies
rust-witness = "0.1.1"
rust-witness = "0.1"
num-bigint = { version = "0.4.0" }

# Halo2 dependencies
Expand All @@ -36,12 +36,11 @@ mopro-ffi = { path = "../mopro-ffi" }
uniffi = { version = "0.28.0", features = ["build"] }

# Circom dependencies
rust-witness = "0.1.1"
rust-witness = "0.1"

[dev-dependencies]
uniffi = { version = "0.28.0", features = ["bindgen-tests"] }

# remove after uniffi is upgraded (see https://github.com/mozilla/uniffi-rs/issues/2346)
[lints.clippy]
empty-line-after-doc-comments = "allow"

0 comments on commit 1f5064d

Please sign in to comment.