-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable clippy check for
Cargo.toml
files (#401)
One of the benefits is that we get warned, when we depend on multiple version of the same crate. That's inefficient and can lead to subtle errors. As an example, you can run this to see the different versions of `syn`: ```console $ cargo tree --invert syn error: There are multiple `syn` packages in your project, and the specification `syn` is ambiguous. Please re-run this command with one of the following specifications: [email protected] [email protected] ``` And then be more specific to see the offenders that still depend on the old version of `syn`: ```console $ cargo tree --invert syn@1 syn v1.0.109 └── unroll v0.1.5 (proc-macro) ├── plonky2 v0.2.2 │ └── mpcs v0.1.0 (/home/matthias/scroll/prog/ceno6/mpcs) │ └── ceno_zkvm v0.1.0 (/home/matthias/scroll/prog/ceno6/ceno_zkvm) │ [dev-dependencies] │ └── poseidon v0.1.0 (/home/matthias/scroll/prog/ceno6/poseidon) │ ├── ff_ext v0.1.0 (/home/matthias/scroll/prog/ceno6/ff_ext) │ │ ├── ceno_zkvm v0.1.0 (/home/matthias/scroll/prog/ceno6/ceno_zkvm) │ │ ├── mpcs v0.1.0 (/home/matthias/scroll/prog/ceno6/mpcs) (*) │ │ ├── multilinear_extensions v0.1.0 (/home/matthias/scroll/prog/ceno6/multilinear_extensions) │ │ │ ├── ceno_zkvm v0.1.0 (/home/matthias/scroll/prog/ceno6/ceno_zkvm) │ │ │ ├── mpcs v0.1.0 (/home/matthias/scroll/prog/ceno6/mpcs) (*) │ │ │ └── sumcheck v0.1.0 (/home/matthias/scroll/prog/ceno6/sumcheck) │ │ │ └── ceno_zkvm v0.1.0 (/home/matthias/scroll/prog/ceno6/ceno_zkvm) │ │ ├── sumcheck v0.1.0 (/home/matthias/scroll/prog/ceno6/sumcheck) (*) │ │ └── transcript v0.1.0 (/home/matthias/scroll/prog/ceno6/transcript) │ │ ├── ceno_zkvm v0.1.0 (/home/matthias/scroll/prog/ceno6/ceno_zkvm) │ │ ├── mpcs v0.1.0 (/home/matthias/scroll/prog/ceno6/mpcs) (*) │ │ └── sumcheck v0.1.0 (/home/matthias/scroll/prog/ceno6/sumcheck) (*) │ ├── mpcs v0.1.0 (/home/matthias/scroll/prog/ceno6/mpcs) (*) │ └── transcript v0.1.0 (/home/matthias/scroll/prog/ceno6/transcript) (*) ├── plonky2_field v0.2.2 │ └── plonky2 v0.2.2 (*) └── poseidon v0.1.0 (/home/matthias/scroll/prog/ceno6/poseidon) (*) ``` For now I've just whitelisted the existing offenders, but in the future a new PR can work on shrinking that list. --------- Co-authored-by: Zhang Zhuo <[email protected]>
- Loading branch information
1 parent
1f5b990
commit b729caf
Showing
23 changed files
with
74 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
#![deny(clippy::cargo)] | ||
mod addr; | ||
pub use addr::*; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
#![deny(clippy::cargo)] | ||
#![feature(strict_overflow_ops)] | ||
#![no_std] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
#![deny(clippy::cargo)] | ||
#![feature(box_patterns)] | ||
#![feature(stmt_expr_attributes)] | ||
#![feature(variant_count)] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# TODO(Matthias): review and see which exception we can remove over time. | ||
# Eg removing syn is blocked by ark-ff-asm cutting a new release | ||
# (https://github.com/arkworks-rs/algebra/issues/813) amongst other things. | ||
allowed-duplicate-crates = [ | ||
"syn", | ||
"windows-sys", | ||
"regex-automata", | ||
"regex-syntax", | ||
"itertools", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
[package] | ||
categories.workspace = true | ||
description = "Build scripts for ceno examples" | ||
edition.workspace = true | ||
keywords.workspace = true | ||
license.workspace = true | ||
name = "ceno-examples" | ||
repository.workspace = true | ||
version.workspace = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
#![deny(clippy::cargo)] | ||
include!(concat!(env!("OUT_DIR"), "/vars.rs")); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
[package] | ||
edition = "2021" | ||
name = "examples" | ||
readme = "README.md" | ||
resolver = "2" | ||
version = "0.1.0" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
#![deny(clippy::cargo)] | ||
pub use ff; | ||
use ff::FromUniformBytes; | ||
use goldilocks::SmallField; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
#![deny(clippy::cargo)] | ||
pub mod mle; | ||
pub mod util; | ||
pub mod virtual_poly; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
#![deny(clippy::cargo)] | ||
extern crate core; | ||
|
||
pub(crate) mod constants; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
#![deny(clippy::cargo)] | ||
#[cfg(feature = "non_pow2_rayon_thread")] | ||
pub mod local_thread_pool; | ||
mod macros; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters