chore: remove derivative dependency as non-crucial

Signed-off-by: Brandon H. Gomes <bhgomes@pm.me>
This commit is contained in:
Brandon H. Gomes 2022-11-15 16:26:43 -05:00
parent 2520bd62c6
commit 65d106bc31
No known key found for this signature in database
GPG Key ID: 773D44E6A904B222
4 changed files with 5 additions and 9 deletions

View File

@ -18,10 +18,9 @@ std = ["anyhow/std", "rand/std"]
timing = ["std"]
[dependencies]
ahash = { version = "0.7.6", default-features = false, features = ["compile-time-rng"] }
ahash = { version = "0.7.6", default-features = false, features = ["compile-time-rng"] } # NOTE: Be sure to keep this version the same as the dependency in `hashbrown`.
anyhow = { version = "1.0.40", default-features = false }
derivative = { version = "2.2.0", default-features = false, features = ["use_core"] }
hashbrown = { version = "0.12.3", default-features = false, features = ["ahash", "serde"] }
hashbrown = { version = "0.12.3", default-features = false, features = ["ahash", "serde"] } # NOTE: When upgrading, see `ahash` dependency.
itertools = { version = "0.10.0", default-features = false }
keccak-hash = { version = "0.8.0", default-features = false }
log = { version = "0.4.14", default-features = false }

View File

@ -26,8 +26,7 @@ use crate::plonk::vars::{EvaluationTargets, EvaluationVars, EvaluationVarsBase};
/// This also has some extra features to make it suitable for efficiently verifying Merkle proofs.
/// It has a flag which can be used to swap the first four inputs with the next four, for ordering
/// sibling digests.
#[derive(derivative::Derivative)]
#[derivative(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)]
#[derive(Debug, Default)]
pub struct PoseidonGate<F: RichField + Extendable<D>, const D: usize>(PhantomData<F>);
impl<F: RichField + Extendable<D>, const D: usize> PoseidonGate<F, D> {

View File

@ -21,8 +21,7 @@ use crate::plonk::circuit_builder::CircuitBuilder;
use crate::plonk::vars::{EvaluationTargets, EvaluationVars, EvaluationVarsBase};
/// Poseidon MDS Gate
#[derive(derivative::Derivative)]
#[derivative(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)]
#[derive(Debug, Default)]
pub struct PoseidonMdsGate<F: RichField + Extendable<D> + Poseidon, const D: usize>(PhantomData<F>);
impl<F: RichField + Extendable<D> + Poseidon, const D: usize> PoseidonMdsGate<F, D> {

View File

@ -250,8 +250,7 @@ impl<F: Field> MatrixWitness<F> {
}
}
#[derive(derivative::Derivative)]
#[derivative(Clone, Debug, Default(bound = ""))]
#[derive(Clone, Debug, Default)]
pub struct PartialWitness<F: Field> {
pub(crate) target_values: HashMap<Target, F>,
}