Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Update Rust toolchain #388

Merged
merged 2 commits into from
Jul 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ readme = "README.md"
repository = "https://github.com/lurk-lab/arecibo"
license-file = "LICENSE"
keywords = ["zkSNARKs", "cryptography", "proofs"]
rust-version="1.74.1"
rust-version="1.79"

[dependencies]
bellpepper-core = { version = "0.4.0", default-features = false }
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[toolchain]
# The default profile includes rustc, rust-std, cargo, rust-docs, rustfmt and clippy.
profile = "default"
channel = "1.78"
channel = "1.79"
targets = [ "wasm32-unknown-unknown" ]

1 change: 1 addition & 0 deletions src/gadgets/nonnative/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ use std::io::{self, Write};
pub struct Bit<Scalar: PrimeField> {
/// The linear combination which constrain the value of the bit
pub bit: LinearCombination<Scalar>,
#[allow(unused)]
/// The value of the bit (filled at witness-time)
pub value: Option<bool>,
}
Expand Down
3 changes: 1 addition & 2 deletions src/gadgets/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ pub fn alloc_scalar_as_base<E, CS>(
input: Option<E::Scalar>,
) -> Result<AllocatedNum<E::Base>, SynthesisError>
where
E: Engine,
<E as Engine>::Scalar: PrimeFieldBits,
E: Engine<Scalar: PrimeFieldBits>,
CS: ConstraintSystem<<E as Engine>::Base>,
{
AllocatedNum::alloc(cs.namespace(|| "allocate scalar as base"), || {
Expand Down