Skip to content

Commit

Permalink
chore: upgrade generic-array & re-export it (#254)
Browse files Browse the repository at this point in the history
* chore: upgrade generic-array

* chore: re-export generic_array
  • Loading branch information
huitseeker authored Jan 3, 2024
1 parent 54ca927 commit 502e24a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ bellpepper = { version = "0.4.0", default-features = false }
blake2s_simd = "1.0.1"
blstrs = { version = "0.7.0" }
ff = "0.13.0"
generic-array = "0.14.7"
generic-array = "1.0"
pasta_curves = { version = "0.5" }
ec-gpu = { version = "0.2.0" }
ec-gpu-gen = { version = "0.7.0" }
Expand Down
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ use serde::{Deserialize, Serialize};
use std::fmt;
use trait_set::trait_set;

// See https://www.lurklurk.org/effective-rust/re-export.html
pub use generic_array;

#[cfg(all(
any(feature = "cuda", feature = "opencl"),
not(any(
Expand Down
4 changes: 2 additions & 2 deletions src/poseidon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ use typenum::marker_traits::Unsigned;
use typenum::*;

/// Available arities for the Poseidon hasher.
pub trait Arity<T>: ArrayLength<T> {
pub trait Arity<T>: ArrayLength {
/// Must be Arity + 1.
type ConstantsSize: ArrayLength<T>;
type ConstantsSize: ArrayLength;

fn tag() -> T;
}
Expand Down

0 comments on commit 502e24a

Please sign in to comment.