-
Notifications
You must be signed in to change notification settings - Fork 85
Tracking PR for v0.17.0 #489
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
Merged
Changes from 16 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
152505f
chore: increment crate version to 0.17.0
bobbinth 8880105
Merge branch 'main' into next
bobbinth bc02f44
fix: correct rescue import paths in CPU-specific implementations (#492)
krushimir 338697c
Merge branch 'main' into next
bobbinth 337f12b
Remove redundant length checks after read_array in SecretKey deserial…
Galoretka 3427cda
Benchmarks refactor & expansion (#503)
huitseeker deea5b7
chore: minor readme updates
bobbinth f20ce04
fix: `benchmark_rand_core!` not calling `b.iter()` properly (#505)
huitseeker 4d58c81
chore: add concurrency and permissions to CI jobs (#508)
mmagician 38fa34c
feat: add ECDH and ECDSA (with key recovery mode) over secp256k1 curv…
Al-Kindi-0 8ae10db
chore: update read-me file with ECDSA and ECDH (#513)
Al-Kindi-0 9019e8c
chore: expand & re-use lint CI workflows (#509)
mmagician 9995b03
feat: added XChaCha20-Poly1305 AEAD scheme (#484)
Al-Kindi-0 a65eb53
feat: add arithmetization oriented authenticated encryption with asso…
Al-Kindi-0 0c81ee2
refactor: make `SmtLeaf::entries()` return a slice (#521)
bobbinth fb6ff6d
feat: implement Large SMT (#438)
krushimir d2a1fea
chore: Implement element encryption for XChaCha (#530)
Al-Kindi-0 b6ed24c
chore: move SUBTREE_DEPTHS constants to LargeSmt
bobbinth cdff823
chore: update changelog
bobbinth 9b121f8
chore: fix build
bobbinth 51ef414
chore: fix build
bobbinth 57eae8f
chore: add permissions to lint workflow
bobbinth File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,9 +1,14 @@ | ||
| [profile.default] | ||
| default-filter = 'not (test(merkle::smt::full::concurrent) or test(merkle::smt::full::large) or binary(rocksdb_large_smt))' | ||
| fail-fast = false | ||
| failure-output = "immediate-final" | ||
| fail-fast = false | ||
| default-filter = 'not test(merkle::smt::full::concurrent)' | ||
|
|
||
| [profile.smt-concurrent] | ||
| failure-output = "immediate-final" | ||
| fail-fast = false | ||
| default-filter = 'test(merkle::smt::full::concurrent)' | ||
| fail-fast = false | ||
| failure-output = "immediate-final" | ||
|
|
||
| [profile.large-smt] | ||
| default-filter = '(test(merkle::smt::full::large) or binary(rocksdb_large_smt))' | ||
| fail-fast = false | ||
| failure-output = "immediate-final" |
This file contains hidden or 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,43 @@ | ||
| name: "Install LLVM" | ||
| description: "Install a specific LLVM/Clang version" | ||
| inputs: | ||
| version: | ||
| description: "LLVM major version to install" | ||
| default: "17" | ||
|
|
||
| runs: | ||
| using: "composite" | ||
| steps: | ||
| - shell: bash | ||
| run: | | ||
| set -eux | ||
| CODENAME="$(. /etc/os-release && echo "$UBUNTU_CODENAME")" | ||
|
|
||
| # Add apt.llvm.org repo | ||
| curl -fsSL https://apt.llvm.org/llvm-snapshot.gpg.key | \ | ||
| sudo gpg --dearmor -o /usr/share/keyrings/llvm-archive-keyring.gpg | ||
| echo "deb [signed-by=/usr/share/keyrings/llvm-archive-keyring.gpg] \ | ||
| http://apt.llvm.org/${CODENAME}/ llvm-toolchain-${CODENAME}-${{ inputs.version }} main" | \ | ||
| sudo tee /etc/apt/sources.list.d/llvm.list | ||
|
|
||
| sudo apt-get update | ||
| sudo apt-get install -y \ | ||
| clang-17 \ | ||
| lld-17 \ | ||
| llvm-17-dev \ | ||
| libclang-17-dev | ||
|
|
||
| sudo ln -sf /usr/lib/llvm-${{ inputs.version }}/lib/libclang-${{ inputs.version }}.so \ | ||
| /usr/lib/llvm-${{ inputs.version }}/lib/libclang.so | ||
|
|
||
| echo "/usr/lib/llvm-${{ inputs.version }}/lib" | \ | ||
| sudo tee /etc/ld.so.conf.d/llvm-${{ inputs.version }}.conf | ||
| sudo ldconfig | ||
|
|
||
| # Env for build scripts & tools | ||
| echo "LIBCLANG_PATH=/usr/lib/llvm-${{ inputs.version }}/lib" >> "$GITHUB_ENV" | ||
| echo "LIBRARY_PATH=/usr/lib/llvm-${{ inputs.version }}/lib:${LIBRARY_PATH:-}" >> "$GITHUB_ENV" | ||
| echo "LD_LIBRARY_PATH=/usr/lib/llvm-${{ inputs.version }}/lib:${LD_LIBRARY_PATH:-}" >> "$GITHUB_ENV" | ||
| echo "/usr/lib/llvm-${{ inputs.version }}/bin" >> "$GITHUB_PATH" | ||
| echo "CC=clang-${{ inputs.version }}" >> "$GITHUB_ENV" | ||
| echo "CXX=clang++-${{ inputs.version }}" >> "$GITHUB_ENV" |
This file contains hidden or 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 hidden or 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 hidden or 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,43 +1,102 @@ | ||
| # Runs linting related jobs. | ||
| # Runs linting related jobs (local copy with LLVM for clippy/doc). | ||
|
|
||
| name: lint | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main, next] | ||
| branches: [ main, next ] | ||
| pull_request: | ||
| types: [opened, reopened, synchronize] | ||
| types: [ opened, reopened, synchronize ] | ||
|
|
||
| jobs: | ||
| clippy: | ||
| name: clippy nightly on ubuntu-latest | ||
| typos: | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 5 | ||
| steps: | ||
| - uses: actions/checkout@main | ||
| - name: Clippy | ||
| run: | | ||
| rustup update --no-self-update nightly | ||
| rustup +nightly component add clippy | ||
| make clippy | ||
| - uses: actions/checkout@v4 | ||
| - uses: taiki-e/install-action@v2 | ||
| with: | ||
| tool: typos | ||
| - run: make typos-check | ||
|
|
||
| rustfmt: | ||
| name: rustfmt check nightly on ubuntu-latest | ||
| name: rustfmt | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@main | ||
| - name: Rustfmt | ||
| - uses: actions/checkout@v4 | ||
| - name: Rustup | ||
| run: | | ||
| rustup update --no-self-update nightly | ||
| rustup default ${{ matrix.toolchain }} | ||
| rustup +nightly component add rustfmt | ||
| make format-check | ||
| - uses: Swatinem/rust-cache@v2 | ||
| with: | ||
| save-if: ${{ github.event_name == 'push' && github.ref == format('refs/heads/{0}', inputs.target_branch) }} | ||
| - name: Fmt | ||
| run: make format-check | ||
|
|
||
| doc: | ||
| name: doc stable on ubuntu-latest | ||
| clippy: | ||
| name: clippy | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@main | ||
| - name: Build docs | ||
| - uses: actions/checkout@v4 | ||
| # Added: LLVM/Clang for RocksDB/bindgen | ||
| - name: Install LLVM/Clang | ||
| uses: KyleMayes/install-llvm-action@v2 | ||
| with: | ||
| version: "17" | ||
| - name: Rustup | ||
| run: | | ||
| rustup update --no-self-update | ||
| make doc | ||
| rustup component add clippy | ||
| - uses: Swatinem/rust-cache@v2 | ||
| with: | ||
| save-if: ${{ github.event_name == 'push' && github.ref == format('refs/heads/{0}', inputs.target_branch) }} | ||
| - name: Clippy | ||
| run: make clippy | ||
|
|
||
| toml: | ||
|
||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 5 | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: taiki-e/install-action@v2 | ||
| with: | ||
| tool: taplo-cli | ||
| - run: make toml-check | ||
|
|
||
| workspace-lints: | ||
|
||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 5 | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: taiki-e/install-action@v2 | ||
| with: | ||
| tool: cargo-workspace-lints | ||
| - run: | | ||
| make workspace-check | ||
|
|
||
| doc: | ||
|
||
| name: doc | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| # Added: LLVM/Clang for RocksDB/bindgen | ||
| - name: Install LLVM/Clang | ||
| uses: ./.github/actions/install-llvm | ||
| with: | ||
| version: "17" | ||
| - name: Rustup | ||
| run: rustup update --no-self-update | ||
| - uses: Swatinem/rust-cache@v2 | ||
| with: | ||
| save-if: ${{ github.event_name == 'push' && github.ref == format('refs/heads/{0}', inputs.target_branch) }} | ||
| - name: Build docs | ||
| run: make doc | ||
|
|
||
| unused_deps: | ||
|
||
| name: check for unused dependencies | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: machete | ||
| uses: bnjbvr/cargo-machete@main | ||
|
||
This file contains hidden or 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 hidden or 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,6 @@ | ||
| [formatting] | ||
| align_entries = true | ||
| column_width = 120 | ||
| reorder_arrays = true | ||
| reorder_inline_tables = true | ||
| reorder_keys = true |
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.