diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index fd3231e..15fae55 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -14,11 +14,12 @@ jobs: steps: - uses: actions/checkout@v3 - - name: install rust toolchain + - name: Install Rust uses: actions-rs/toolchain@v1 with: toolchain: nightly components: rustfmt + - name: cargo fmt run: cargo +nightly fmt --all -- --check @@ -30,26 +31,25 @@ jobs: - uses: actions/checkout@v3 - name: install rust toolchain - uses: actions-rs/toolchain@v1 - with: - toolchain: nightly - components: clippy + run: rustup toolchain install nightly-2024-06-10 + + - name: Install Clippy + run: rustup component add --toolchain nightly-2024-06-10 clippy + - name: cargo clippy - run: cargo +nightly clippy --all + run: cargo clippy --all udeps: name: udeps runs-on: macos-latest steps: - uses: actions/checkout@v3 + - name: install rust toolchain - uses: actions-rs/toolchain@v1 - with: - toolchain: nightly - components: rustfmt + run: rustup toolchain install nightly-2024-06-10 - name: install udeps run: cargo install --git https://github.com/est31/cargo-udeps --locked - name: cargo udeps - run: cargo +nightly udeps \ No newline at end of file + run: cargo udeps \ No newline at end of file diff --git a/.github/workflows/release-plz.yaml b/.github/workflows/release-plz.yaml new file mode 100644 index 0000000..65ea1f9 --- /dev/null +++ b/.github/workflows/release-plz.yaml @@ -0,0 +1,28 @@ +name: Release-plz + +permissions: + pull-requests: write + contents: write + +on: + push: + branches: + - main + +jobs: + release-plz: + name: Release-plz + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Install Rust toolchain + uses: dtolnay/rust-toolchain@stable + - name: Run release-plz + uses: MarcoIeni/release-plz-action@v0.5 + with: + command: release-pr + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 6977780..dab399a 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -16,14 +16,8 @@ jobs: - name: Checkout code uses: actions/checkout@v2 - - name: Set up Rust - uses: actions-rs/toolchain@v1 - with: - toolchain: nightly - override: true - - - name: Install dependencies - run: cargo fetch + - name: Install Rust toolchain + run: rustup toolchain install nightly-2024-06-10 - name: Run tests run: cargo test --all \ No newline at end of file diff --git a/Cargo.lock b/Cargo.lock index d67a187..7179290 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -50,15 +50,17 @@ dependencies = [ [[package]] name = "ark-ec" version = "0.4.2" -source = "git+https://github.com/arkworks-rs/algebra/#065cd24fc5ae17e024c892cee126ad3bd885f01c" +source = "git+https://github.com/arkworks-rs/algebra/#5a781ae69c373e46c8d738d147a764a8ee510865" dependencies = [ + "ahash", "ark-ff", "ark-poly", "ark-serialize", "ark-std", - "derivative", + "educe", + "fnv", "hashbrown", - "itertools 0.12.1", + "itertools", "num-bigint", "num-integer", "num-traits", @@ -68,16 +70,16 @@ dependencies = [ [[package]] name = "ark-ff" version = "0.4.2" -source = "git+https://github.com/arkworks-rs/algebra/#065cd24fc5ae17e024c892cee126ad3bd885f01c" +source = "git+https://github.com/arkworks-rs/algebra/#5a781ae69c373e46c8d738d147a764a8ee510865" dependencies = [ "ark-ff-asm", "ark-ff-macros", "ark-serialize", "ark-std", "arrayvec", - "derivative", "digest", - "itertools 0.12.1", + "educe", + "itertools", "num-bigint", "num-traits", "paste", @@ -87,33 +89,35 @@ dependencies = [ [[package]] name = "ark-ff-asm" version = "0.4.2" -source = "git+https://github.com/arkworks-rs/algebra/#065cd24fc5ae17e024c892cee126ad3bd885f01c" +source = "git+https://github.com/arkworks-rs/algebra/#5a781ae69c373e46c8d738d147a764a8ee510865" dependencies = [ "quote", - "syn 2.0.66", + "syn 2.0.68", ] [[package]] name = "ark-ff-macros" version = "0.4.2" -source = "git+https://github.com/arkworks-rs/algebra/#065cd24fc5ae17e024c892cee126ad3bd885f01c" +source = "git+https://github.com/arkworks-rs/algebra/#5a781ae69c373e46c8d738d147a764a8ee510865" dependencies = [ "num-bigint", "num-traits", "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.68", ] [[package]] name = "ark-poly" version = "0.4.2" -source = "git+https://github.com/arkworks-rs/algebra/#065cd24fc5ae17e024c892cee126ad3bd885f01c" +source = "git+https://github.com/arkworks-rs/algebra/#5a781ae69c373e46c8d738d147a764a8ee510865" dependencies = [ + "ahash", "ark-ff", "ark-serialize", "ark-std", - "derivative", + "educe", + "fnv", "hashbrown", ] @@ -132,10 +136,11 @@ dependencies = [ [[package]] name = "ark-serialize" version = "0.4.2" -source = "git+https://github.com/arkworks-rs/algebra/#065cd24fc5ae17e024c892cee126ad3bd885f01c" +source = "git+https://github.com/arkworks-rs/algebra/#5a781ae69c373e46c8d738d147a764a8ee510865" dependencies = [ "ark-serialize-derive", "ark-std", + "arrayvec", "digest", "num-bigint", ] @@ -143,11 +148,11 @@ dependencies = [ [[package]] name = "ark-serialize-derive" version = "0.4.2" -source = "git+https://github.com/arkworks-rs/algebra/#065cd24fc5ae17e024c892cee126ad3bd885f01c" +source = "git+https://github.com/arkworks-rs/algebra/#5a781ae69c373e46c8d738d147a764a8ee510865" dependencies = [ "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.68", ] [[package]] @@ -273,11 +278,43 @@ dependencies = [ "subtle", ] +[[package]] +name = "educe" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d7bc049e1bd8cdeb31b68bbd586a9464ecf9f3944af3958a7a9d0f8b9799417" +dependencies = [ + "enum-ordinalize", + "proc-macro2", + "quote", + "syn 2.0.68", +] + [[package]] name = "either" -version = "1.12.0" +version = "1.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "60b1af1c220855b6ceac025d3f6ecdd2b7c4894bfe9cd9bda4fbb4bc7c0d4cf0" + +[[package]] +name = "enum-ordinalize" +version = "4.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fea0dcfa4e54eeb516fe454635a95753ddd39acda650ce703031c6973e315dd5" +dependencies = [ + "enum-ordinalize-derive", +] + +[[package]] +name = "enum-ordinalize-derive" +version = "4.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3dca9240753cf90908d7e4aac30f630662b02aebaa1b58a3cadabdb23385b58b" +checksum = "0d28318a75d4aead5c4db25382e8ef717932d0346600cacae6357eb5941bc5ff" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.68", +] [[package]] name = "equivalent" @@ -285,6 +322,12 @@ version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" +[[package]] +name = "fnv" +version = "1.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" + [[package]] name = "futures" version = "0.3.30" @@ -341,7 +384,7 @@ checksum = "87750cf4b7a4c0625b1529e4c543c2182106e4dedc60a2a6455e00d212c489ac" dependencies = [ "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.68", ] [[package]] @@ -413,7 +456,6 @@ version = "0.14.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1" dependencies = [ - "ahash", "allocator-api2", ] @@ -442,15 +484,6 @@ dependencies = [ "generic-array", ] -[[package]] -name = "itertools" -version = "0.12.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba291022dbbd398a455acf126c1e341954079855bc60dfdda641363bd6922569" -dependencies = [ - "either", -] - [[package]] name = "itertools" version = "0.13.0" @@ -468,15 +501,15 @@ checksum = "97b3888a4aecf77e811145cadf6eef5901f4782c53886191b2f693f24761847c" [[package]] name = "memchr" -version = "2.7.2" +version = "2.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c8640c5d730cb13ebd907d8d04b52f55ac9a2eec55b440c8892f40d56c76c1d" +checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3" [[package]] name = "num-bigint" -version = "0.4.5" +version = "0.4.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c165a9ab64cf766f73521c0dd2cfdff64f488b8f0b3e621face3462d3db536d7" +checksum = "a5e44f723f1133c9deac646763579fdb3ac745e418f2a7af9cd0c431da1f20b9" dependencies = [ "num-integer", "num-traits", @@ -551,9 +584,9 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.85" +version = "1.0.86" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22244ce15aa966053a896d1accb3a6e68469b97c7f33f284b99f0d576879fc23" +checksum = "5e719e8df665df0d1c8fbfd238015744736151d4445ec0836b8e628aae103b77" dependencies = [ "unicode-ident", ] @@ -599,9 +632,9 @@ dependencies = [ [[package]] name = "regex" -version = "1.10.4" +version = "1.10.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c117dbdfde9c8308975b6a18d71f3f385c89461f7b3fb054288ecf2a2058ba4c" +checksum = "b91213439dad192326a0d7c6ee3955910425f441d7038e0d6933b0aec5c4517f" dependencies = [ "aho-corasick", "memchr", @@ -611,9 +644,9 @@ dependencies = [ [[package]] name = "regex-automata" -version = "0.4.6" +version = "0.4.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86b83b8b9847f9bf95ef68afb0b8e6cdb80f498442f5179a29fad448fcc1eaea" +checksum = "38caf58cc5ef2fed281f89292ef23f6365465ed9a41b7a7754eb4e26496c92df" dependencies = [ "aho-corasick", "memchr", @@ -622,9 +655,9 @@ dependencies = [ [[package]] name = "regex-syntax" -version = "0.8.3" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "adad44e29e4c806119491a7f06f03de4d1af22c3a680dd47f1e6e179439d1f56" +checksum = "7a66a03ae7c801facd77a29370b4faec201768915ac14a721ba36f20bc9c209b" [[package]] name = "relative-path" @@ -640,7 +673,7 @@ dependencies = [ "ark-ff", "des", "hex", - "itertools 0.13.0", + "itertools", "pretty_assertions", "rand", "rstest", @@ -673,7 +706,7 @@ dependencies = [ "regex", "relative-path", "rustc_version", - "syn 2.0.66", + "syn 2.0.68", "unicode-ident", ] @@ -714,9 +747,9 @@ dependencies = [ [[package]] name = "subtle" -version = "2.5.0" +version = "2.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "81cdd64d312baedb58e21336b31bc043b77e01cc99033ce76ef539f78e965ebc" +checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" [[package]] name = "syn" @@ -731,9 +764,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.66" +version = "2.0.68" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c42f3f41a2de00b01c0aaad383c5a45241efc8b2d1eda5661812fda5f3cdcff5" +checksum = "901fa70d88b9d6c98022e23b4136f9f3e54e4662c3bc1bd1d84a42a9a0f0c1e9" dependencies = [ "proc-macro2", "quote", @@ -848,7 +881,7 @@ checksum = "15e934569e47891f7d9411f1a451d947a60e000ab3bd24fbb970f000387d1b3b" dependencies = [ "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.68", ] [[package]] @@ -868,5 +901,5 @@ checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69" dependencies = [ "proc-macro2", "quote", - "syn 2.0.66", + "syn 2.0.68", ] diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 5579319..3299962 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -3,8 +3,7 @@ [toolchain] # what toolchain to use. -channel="nightly" - +channel = "nightly-2024-06-10" # option to specify a date to pin to a particular release # date = "2024-03-19"