Add clippy::cargo and remove dependencies (#23)
This commit is contained in:
+3
-12
@@ -3,7 +3,9 @@ name = "voprf"
|
|||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
description = "An implementation of a verifiable oblivious pseudorandom function (VOPRF)"
|
description = "An implementation of a verifiable oblivious pseudorandom function (VOPRF)"
|
||||||
authors = ["Kevin Lewi <[email protected]>"]
|
authors = ["Kevin Lewi <[email protected]>"]
|
||||||
categories = ["no-std"]
|
repository = "https://github.com/novifinancial/voprf/"
|
||||||
|
categories = ["no-std", "algorithms", "cryptography"]
|
||||||
|
keywords = ["oprf"]
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
@@ -20,14 +22,11 @@ serialize = ["serde", "base64", "generic-array/serde", "curve25519-dalek/serde"]
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
base64 = { version = "0.13", default-features = false, features = ["alloc"], optional = true }
|
base64 = { version = "0.13", default-features = false, features = ["alloc"], optional = true }
|
||||||
constant_time_eq = "0.1"
|
|
||||||
curve25519-dalek = { version = "3", default-features = false }
|
curve25519-dalek = { version = "3", default-features = false }
|
||||||
digest = "0.9"
|
digest = "0.9"
|
||||||
displaydoc = { version = "0.2", default-features = false }
|
displaydoc = { version = "0.2", default-features = false }
|
||||||
generic-array = "0.14"
|
generic-array = "0.14"
|
||||||
getrandom = { version = "0.2", optional = true }
|
getrandom = { version = "0.2", optional = true }
|
||||||
hkdf = "0.11"
|
|
||||||
hmac = "0.11"
|
|
||||||
num-bigint = { version = "0.4", default-features = false, optional = true }
|
num-bigint = { version = "0.4", default-features = false, optional = true }
|
||||||
num-integer = { version = "0.1", default-features = false, optional = true }
|
num-integer = { version = "0.1", default-features = false, optional = true }
|
||||||
num-traits = { version = "0.2", default-features = false, optional = true }
|
num-traits = { version = "0.2", default-features = false, optional = true }
|
||||||
@@ -42,18 +41,10 @@ zeroize = { version = "1", features = ["zeroize_derive"] }
|
|||||||
getrandom = { version = "0.2", features = ["js"], optional = true }
|
getrandom = { version = "0.2", features = ["js"], optional = true }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
base64 = "0.13"
|
|
||||||
bincode = "1"
|
|
||||||
chacha20poly1305 = "0.8"
|
|
||||||
criterion = "0.3"
|
|
||||||
hex = "0.4"
|
hex = "0.4"
|
||||||
json = "0.12"
|
json = "0.12"
|
||||||
lazy_static = "1"
|
|
||||||
serde_json = "1"
|
|
||||||
sha2 = "0.9"
|
sha2 = "0.9"
|
||||||
proptest = "1"
|
|
||||||
regex = "1"
|
regex = "1"
|
||||||
rustyline = "8"
|
|
||||||
voprf = { path = "", default-features = false, features = ["std"] }
|
voprf = { path = "", default-features = false, features = ["std"] }
|
||||||
|
|
||||||
[package.metadata.docs.rs]
|
[package.metadata.docs.rs]
|
||||||
|
|||||||
+1
-2
@@ -27,11 +27,10 @@ use once_cell::unsync::Lazy;
|
|||||||
use p256_::elliptic_curve::group::prime::PrimeCurveAffine;
|
use p256_::elliptic_curve::group::prime::PrimeCurveAffine;
|
||||||
use p256_::elliptic_curve::group::GroupEncoding;
|
use p256_::elliptic_curve::group::GroupEncoding;
|
||||||
use p256_::elliptic_curve::sec1::{FromEncodedPoint, ToEncodedPoint};
|
use p256_::elliptic_curve::sec1::{FromEncodedPoint, ToEncodedPoint};
|
||||||
use p256_::elliptic_curve::subtle::ConstantTimeEq;
|
|
||||||
use p256_::elliptic_curve::Field;
|
use p256_::elliptic_curve::Field;
|
||||||
use p256_::{AffinePoint, EncodedPoint, ProjectivePoint};
|
use p256_::{AffinePoint, EncodedPoint, ProjectivePoint};
|
||||||
use rand::{CryptoRng, RngCore};
|
use rand::{CryptoRng, RngCore};
|
||||||
use subtle::{Choice, ConditionallySelectable};
|
use subtle::{Choice, ConditionallySelectable, ConstantTimeEq};
|
||||||
|
|
||||||
// `L: 48`
|
// `L: 48`
|
||||||
pub const L: usize = 48;
|
pub const L: usize = 48;
|
||||||
|
|||||||
+2
-1
@@ -425,8 +425,9 @@
|
|||||||
//! [curve25519-dalek](https://doc.dalek.rs/curve25519_dalek/index.html#backends-and-features) and enables parallel formulas,
|
//! [curve25519-dalek](https://doc.dalek.rs/curve25519_dalek/index.html#backends-and-features) and enables parallel formulas,
|
||||||
//! using either AVX2 or AVX512-IFMA. This will automatically enable the `u64_backend` and requires Rust nightly.
|
//! using either AVX2 or AVX512-IFMA. This will automatically enable the `u64_backend` and requires Rust nightly.
|
||||||
|
|
||||||
#![cfg_attr(not(feature = "bench"), deny(missing_docs))]
|
|
||||||
#![deny(unsafe_code)]
|
#![deny(unsafe_code)]
|
||||||
|
#![warn(clippy::cargo, missing_docs)]
|
||||||
|
#![allow(clippy::multiple_crate_versions)]
|
||||||
#![cfg_attr(not(feature = "std"), no_std)]
|
#![cfg_attr(not(feature = "std"), no_std)]
|
||||||
#![cfg_attr(docsrs, feature(doc_cfg))]
|
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user