-
Notifications
You must be signed in to change notification settings - Fork 78
chore: expand & re-use lint CI workflows #509
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
Changes from 6 commits
b05d6b1
0d70648
62ed14c
575f18a
50c6fd5
52dbeae
44c08f1
7b29d71
cf0e222
8707592
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,9 @@ | ||
| [profile.default] | ||
| failure-output = "immediate-final" | ||
| fail-fast = false | ||
| default-filter = 'not test(merkle::smt::full::concurrent)' | ||
| fail-fast = false | ||
| failure-output = "immediate-final" | ||
|
|
||
| [profile.smt-concurrent] | ||
| failure-output = "immediate-final" | ||
| fail-fast = false | ||
| default-filter = 'test(merkle::smt::full::concurrent)' | ||
| fail-fast = false | ||
| failure-output = "immediate-final" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| [formatting] | ||
| align_entries = true | ||
| column_width = 120 | ||
| reorder_arrays = true | ||
| reorder_inline_tables = true | ||
| reorder_keys = true |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,17 +1,16 @@ | ||
| [workspace] | ||
| members = [ | ||
| "miden-crypto" | ||
| ] | ||
| exclude = [ | ||
| "miden-crypto-fuzz" | ||
| ] | ||
| resolver = "3" # Use the edition 2024 dependency resolver | ||
| exclude = ["miden-crypto-fuzz"] | ||
| members = ["miden-crypto"] | ||
| resolver = "3" # Use the edition 2024 dependency resolver | ||
|
|
||
| [workspace.package] | ||
| authors = ["miden contributors"] | ||
| license = "MIT OR Apache-2.0" | ||
| repository = "https://github.com/0xMiden/crypto" | ||
| categories = ["cryptography", "no-std"] | ||
| keywords = ["miden", "crypto", "hash", "merkle"] | ||
| edition = "2024" | ||
| authors = ["miden contributors"] | ||
| categories = ["cryptography", "no-std"] | ||
| edition = "2024" | ||
| keywords = ["crypto", "hash", "merkle", "miden"] | ||
| license = "MIT OR Apache-2.0" | ||
| repository = "https://github.com/0xMiden/crypto" | ||
| rust-version = "1.88" | ||
|
|
||
| [workspace.lints.rust] | ||
| # Suppress warnings about `cfg(fuzzing)`, which is automatically set when using `cargo-fuzz`.unexpected_cfgs = { check-cfg = ['cfg(fuzzing)'], level = "warn" } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,20 +1,23 @@ | ||
| [package] | ||
| name = "miden-crypto-fuzz" | ||
| version = "0.0.0" | ||
| publish = false | ||
| edition = "2024" | ||
| name = "miden-crypto-fuzz" | ||
| publish = false | ||
| version = "0.0.0" | ||
|
|
||
| [package.metadata] | ||
| cargo-fuzz = true | ||
|
|
||
| [dependencies] | ||
| libfuzzer-sys = "0.4" | ||
| miden-crypto = { path = "../miden-crypto", features = ["concurrent"] } | ||
| rand = { version = "0.9", default-features = false } | ||
| miden-crypto = { features = ["concurrent"], path = "../miden-crypto" } | ||
| rand = { default-features = false, version = "0.9" } | ||
|
|
||
| [[bin]] | ||
| name = "smt" | ||
| path = "fuzz_targets/smt.rs" | ||
| test = false | ||
| doc = false | ||
| bench = false | ||
| doc = false | ||
| name = "smt" | ||
| path = "fuzz_targets/smt.rs" | ||
| test = false | ||
|
|
||
| [lints] | ||
| workspace = true |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,112 +1,111 @@ | ||
| [package] | ||
| name = "miden-crypto" | ||
| version = "0.17.0" | ||
| description = "Miden Cryptographic primitives" | ||
| authors.workspace = true | ||
| readme = "../README.md" | ||
| license.workspace = true | ||
| repository.workspace = true | ||
| documentation = "https://docs.rs/miden-crypto/0.17.0" | ||
| categories.workspace = true | ||
| keywords.workspace = true | ||
| edition.workspace = true | ||
| authors.workspace = true | ||
| categories.workspace = true | ||
| description = "Miden Cryptographic primitives" | ||
| documentation = "https://docs.rs/miden-crypto/0.17.0" | ||
| edition.workspace = true | ||
| keywords.workspace = true | ||
| license.workspace = true | ||
| name = "miden-crypto" | ||
| readme = "../README.md" | ||
| repository.workspace = true | ||
| rust-version.workspace = true | ||
| version = "0.17.0" | ||
|
|
||
| [[bin]] | ||
| name = "miden-crypto" | ||
| path = "src/main.rs" | ||
| bench = false | ||
| doctest = false | ||
| bench = false | ||
| doctest = false | ||
| name = "miden-crypto" | ||
| path = "src/main.rs" | ||
| required-features = ["executable"] | ||
|
|
||
| [[bench]] | ||
| name = "hash" | ||
| harness = false | ||
| name = "hash" | ||
|
|
||
| [[bench]] | ||
| name = "smt" | ||
| harness = false | ||
| name = "smt" | ||
|
|
||
| [[bench]] | ||
| name = "smt-subtree" | ||
| harness = false | ||
| harness = false | ||
| name = "smt-subtree" | ||
| required-features = ["internal"] | ||
|
|
||
| [[bench]] | ||
| name = "merkle" | ||
| harness = false | ||
| name = "merkle" | ||
|
|
||
| [[bench]] | ||
| name = "smt-with-entries" | ||
| harness = false | ||
| name = "smt-with-entries" | ||
|
|
||
| [[bench]] | ||
| name = "store" | ||
| harness = false | ||
| name = "store" | ||
|
|
||
| [[bench]] | ||
| name = "dsa" | ||
| harness = false | ||
| name = "dsa" | ||
|
|
||
| [[bench]] | ||
| name = "word" | ||
| harness = false | ||
| name = "word" | ||
|
|
||
| [[bench]] | ||
| name = "rand" | ||
| harness = false | ||
| name = "rand" | ||
|
|
||
| [features] | ||
| concurrent = ["dep:rayon", "hashbrown?/rayon"] | ||
| default = ["std", "concurrent"] | ||
| default = ["concurrent", "std"] | ||
| executable = ["dep:clap", "dep:rand-utils", "std"] | ||
| hashmaps = ["dep:hashbrown"] | ||
| internal = [] | ||
| serde = ["dep:serde", "serde?/alloc", "winter-math/serde"] | ||
| std = [ | ||
| "blake3/std", | ||
| "dep:cc", | ||
| "rand/std", | ||
| "rand/thread_rng", | ||
| "winter-crypto/std", | ||
| "winter-math/std", | ||
| "winter-utils/std", | ||
| "blake3/std", | ||
| "dep:cc", | ||
| "rand/std", | ||
| "rand/thread_rng", | ||
| "winter-crypto/std", | ||
| "winter-math/std", | ||
| "winter-utils/std", | ||
| ] | ||
|
|
||
| [dependencies] | ||
| blake3 = { version = "1.8", default-features = false } | ||
| clap = { version = "4.5", optional = true, features = ["derive"] } | ||
| hashbrown = { version = "0.15", optional = true, features = ["serde"] } | ||
| num = { version = "0.4", default-features = false, features = ["alloc", "libm"] } | ||
| num-complex = { version = "0.4", default-features = false } | ||
| rand = { version = "0.9", default-features = false } | ||
| rand_chacha = { version = "0.9", default-features = false } | ||
| rand_core = { version = "0.9", default-features = false } | ||
| rand-utils = { version = "0.13", package = "winter-rand-utils", optional = true } | ||
| rayon = { version = "1.10", optional = true } | ||
| serde = { version = "1.0", default-features = false, optional = true, features = ["derive"] } | ||
| sha3 = { version = "0.10", default-features = false } | ||
| thiserror = { version = "2.0", default-features = false } | ||
| winter-crypto = { version = "0.13", default-features = false } | ||
| winter-math = { version = "0.13", default-features = false } | ||
| winter-utils = { version = "0.13", default-features = false } | ||
| blake3 = { default-features = false, version = "1.8" } | ||
| clap = { features = ["derive"], optional = true, version = "4.5" } | ||
| hashbrown = { features = ["serde"], optional = true, version = "0.15" } | ||
| num = { default-features = false, features = ["alloc", "libm"], version = "0.4" } | ||
| num-complex = { default-features = false, version = "0.4" } | ||
| rand = { default-features = false, version = "0.9" } | ||
| rand-utils = { optional = true, package = "winter-rand-utils", version = "0.13" } | ||
| rand_chacha = { default-features = false, version = "0.9" } | ||
| rand_core = { default-features = false, version = "0.9" } | ||
| rayon = { optional = true, version = "1.10" } | ||
| serde = { default-features = false, features = ["derive"], optional = true, version = "1.0" } | ||
| sha3 = { default-features = false, version = "0.10" } | ||
| thiserror = { default-features = false, version = "2.0" } | ||
| winter-crypto = { default-features = false, version = "0.13" } | ||
| winter-math = { default-features = false, version = "0.13" } | ||
| winter-utils = { default-features = false, version = "0.13" } | ||
|
|
||
| [dev-dependencies] | ||
| assert_matches = { version = "1.5", default-features = false } | ||
| criterion = { version = "0.7", features = ["html_reports"] } | ||
| getrandom = { version = "0.3", default-features = false } | ||
| hex = { version = "0.4", default-features = false, features = ["alloc"] } | ||
| itertools = { version = "0.14" } | ||
| proptest = { version = "1.7", default-features = false, features = ["alloc"] } | ||
| rand_chacha = { version = "0.9", default-features = false } | ||
| rand-utils = { version = "0.13", package = "winter-rand-utils" } | ||
| rstest = { version = "0.26" } | ||
| seq-macro = { version = "0.3" } | ||
| assert_matches = { default-features = false, version = "1.5" } | ||
| criterion = { features = ["html_reports"], version = "0.7" } | ||
| getrandom = { default-features = false, version = "0.3" } | ||
| hex = { default-features = false, features = ["alloc"], version = "0.4" } | ||
| itertools = { version = "0.14" } | ||
| proptest = { default-features = false, features = ["alloc"], version = "1.7" } | ||
| rand-utils = { package = "winter-rand-utils", version = "0.13" } | ||
| rand_chacha = { default-features = false, version = "0.9" } | ||
| rstest = { version = "0.26" } | ||
| seq-macro = { version = "0.3" } | ||
|
|
||
| [build-dependencies] | ||
| cc = { version = "1.2", optional = true, features = ["parallel"] } | ||
| cc = { features = ["parallel"], optional = true, version = "1.2" } | ||
| glob = "0.3" | ||
|
|
||
| [lints.rust] | ||
| # Suppress warnings about `cfg(fuzzing)`, which is automatically set when using `cargo-fuzz`. | ||
| unexpected_cfgs = { level = "warn", check-cfg = ['cfg(fuzzing)'] } | ||
| [lints] | ||
| workspace = true |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -248,7 +248,7 @@ impl PartialSmt { | |
|
|
||
| /// Returns an iterator over the [`InnerNode`] and the respective [`NodeIndex`] of the | ||
| /// [`PartialSmt`]. | ||
| pub fn inner_node_indicies(&self) -> impl Iterator<Item = (NodeIndex, InnerNode)> + '_ { | ||
| pub fn inner_node_indices(&self) -> impl Iterator<Item = (NodeIndex, InnerNode)> + '_ { | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. so this was added in #494 to support 0xMiden/miden-node#1158, but (for now?) the latter doesn't use these getters.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, we still need to propagate the dependencies to miden base/node. |
||
| self.0.inner_node_indices() | ||
| } | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.