-
Notifications
You must be signed in to change notification settings - Fork 0
feat: generic field #1
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
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
0256571
upgrade deps
lonerapier 3200820
make field generic
lonerapier cf6b1c6
fix benchmarks and fuzz tests
lonerapier 3cc9e51
update readme
lonerapier a5cd26f
clippy fixes
lonerapier 2b8484a
update CI
lonerapier eacd995
attribution in readme
lonerapier 0968afb
fix rand crate dep
lonerapier dd7e464
add primitive element generator in field
lonerapier 1348212
rename repo
lonerapier e6fc222
remove changelog and add release workflow
lonerapier d739e44
add acknowledgment
lonerapier 5db05d8
rename Sharks to SecretSharing
lonerapier 751f1c8
revert rng updates
lonerapier e3dc133
rename crate
lonerapier 0971d4d
add profiles
lonerapier 4ef4ec8
add docs
lonerapier 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 |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| name: Release | ||
|
|
||
| permissions: | ||
| pull-requests: write | ||
| contents: write | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
|
|
||
| jobs: | ||
| release: | ||
| name: release | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v5 | ||
| with: | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Install Rust toolchain | ||
| uses: dtolnay/rust-toolchain@master | ||
| with: | ||
| toolchain: stable | ||
|
|
||
| - name: Rust Cache | ||
| uses: Swatinem/rust-cache@v2 | ||
|
|
||
| - name: Install cargo-semver-checks | ||
| uses: taiki-e/install-action@cargo-binstall | ||
| with: | ||
| tool: cargo-semver-checks | ||
|
|
||
| - name: Check semver | ||
| run: cargo semver-checks check-release | ||
| continue-on-error: true | ||
|
|
||
| - name: Update Cargo.lock | ||
| uses: stefanzweifel/git-auto-commit-action@v5 | ||
| with: | ||
| commit_message: "chore: update Cargo.lock" | ||
| file_pattern: "Cargo.lock" | ||
|
|
||
| - name: Run release-plz | ||
| uses: MarcoIeni/release-plz-action@v0.5.41 | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} |
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,103 +1,206 @@ | ||
| on: [push, pull_request] | ||
|
|
||
| name: Rust | ||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main] | ||
| pull_request: | ||
| branches: [main] | ||
|
|
||
| env: | ||
| CARGO_TERM_COLOR: always | ||
|
|
||
| jobs: | ||
| rust-fmt: | ||
| name: rustfmt | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v5 | ||
|
|
||
| - name: Install Rust | ||
| uses: dtolnay/rust-toolchain@master | ||
| with: | ||
| toolchain: stable | ||
| components: rustfmt | ||
|
|
||
| - name: Rust Cache | ||
| uses: Swatinem/rust-cache@v2 | ||
| with: | ||
| key: rust/rustfmt | ||
|
|
||
| - name: Run Rust fmt | ||
| run: cargo fmt --all -- --check | ||
|
|
||
| toml-fmt: | ||
| name: taplo | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v5 | ||
|
|
||
| - name: Install taplo | ||
| run: | | ||
| curl -L https://github.com/tamasfe/taplo/releases/latest/download/taplo-linux-x86_64.gz -o taplo.gz | ||
| gunzip taplo.gz | ||
| chmod +x taplo | ||
| sudo mv taplo /usr/local/bin/ | ||
|
|
||
| - name: Rust Cache | ||
| uses: Swatinem/rust-cache@v2 | ||
| with: | ||
| key: rust/taplo | ||
|
|
||
| - name: Run TOML fmt | ||
| run: taplo fmt --check | ||
|
|
||
| check: | ||
| name: Check | ||
| name: check | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - uses: actions-rs/toolchain@v1 | ||
| - uses: actions/checkout@v5 | ||
|
|
||
| - name: Install Rust | ||
| uses: dtolnay/rust-toolchain@master | ||
| with: | ||
| profile: minimal | ||
| toolchain: stable | ||
| override: true | ||
| - uses: actions-rs/cargo@v1 | ||
|
|
||
| - name: Rust Cache | ||
| uses: Swatinem/rust-cache@v2 | ||
| with: | ||
| command: check | ||
| key: rust/check | ||
|
|
||
| test-std: | ||
| name: Test std | ||
| - name: Run cargo check | ||
| run: cargo check --workspace | ||
|
|
||
| clippy: | ||
| name: clippy | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - uses: actions-rs/toolchain@v1 | ||
| - uses: actions/checkout@v5 | ||
|
|
||
| - name: Install Rust | ||
| uses: dtolnay/rust-toolchain@master | ||
| with: | ||
| profile: minimal | ||
| toolchain: stable | ||
| override: true | ||
| - uses: actions-rs/cargo@v1 | ||
| components: clippy | ||
|
|
||
| - name: Rust Cache | ||
| uses: Swatinem/rust-cache@v2 | ||
| with: | ||
| command: test | ||
| key: rust/clippy | ||
|
|
||
| test-nostd: | ||
| name: Test no-std | ||
| - name: Build | ||
| run: cargo build --workspace | ||
|
|
||
| - name: Clippy | ||
| run: cargo clippy --all-targets --all-features -- --deny warnings | ||
|
|
||
| test-std: | ||
| name: test-std | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - uses: actions-rs/toolchain@v1 | ||
| - uses: actions/checkout@v5 | ||
|
|
||
| - name: Install Rust | ||
| uses: dtolnay/rust-toolchain@master | ||
| with: | ||
| profile: minimal | ||
| toolchain: stable | ||
| override: true | ||
| - uses: actions-rs/cargo@v1 | ||
|
|
||
| - name: Rust Cache | ||
| uses: Swatinem/rust-cache@v2 | ||
| with: | ||
| command: test | ||
| args: --no-default-features | ||
| key: rust/test | ||
|
|
||
| - name: Run tests | ||
| run: cargo test --verbose | ||
|
|
||
| format: | ||
| name: Format | ||
| test-nostd: | ||
| name: test | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - uses: actions-rs/toolchain@v1 | ||
| - uses: actions/checkout@v5 | ||
|
|
||
| - name: Install Rust | ||
| uses: dtolnay/rust-toolchain@master | ||
| with: | ||
| profile: minimal | ||
| toolchain: stable | ||
| override: true | ||
| - run: rustup component add rustfmt | ||
| - uses: actions-rs/cargo@v1 | ||
|
|
||
| - name: Rust Cache | ||
| uses: Swatinem/rust-cache@v2 | ||
| with: | ||
| command: fmt | ||
| args: --all -- --check | ||
| key: rust/test | ||
|
|
||
| - name: Run tests | ||
| run: cargo test --verbose --no-default-features | ||
|
|
||
| quality: | ||
| name: Quality | ||
| doc: | ||
| name: doc | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - uses: actions-rs/toolchain@v1 | ||
| - uses: actions/checkout@v5 | ||
|
|
||
| - name: Install Rust | ||
| uses: dtolnay/rust-toolchain@master | ||
| with: | ||
| profile: minimal | ||
| toolchain: stable | ||
| override: true | ||
| - run: rustup component add clippy | ||
| - uses: actions-rs/cargo@v1 | ||
|
|
||
| - name: Rust Cache | ||
| uses: Swatinem/rust-cache@v2 | ||
| with: | ||
| command: clippy | ||
| args: -- -D warnings | ||
| key: rust/doc | ||
|
|
||
| - name: Run cargo doc to check for warnings | ||
| run: RUSTDOCFLAGS="-D warnings" cargo doc --no-deps --all-features | ||
|
|
||
| coverage: | ||
| name: Coverage | ||
| name: coverage | ||
| runs-on: ubuntu-latest | ||
| continue-on-error: true | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - uses: actions-rs/toolchain@v1 | ||
| - uses: actions/checkout@v5 | ||
|
|
||
| - name: Install Rust | ||
| uses: dtolnay/rust-toolchain@master | ||
| with: | ||
| profile: minimal | ||
| toolchain: stable | ||
| override: true | ||
| - uses: actions-rs/tarpaulin@v0.1 | ||
| - uses: codecov/codecov-action@v1.0.5 | ||
| components: llvm-tools-preview | ||
|
|
||
| - name: Rust Cache | ||
| uses: Swatinem/rust-cache@v2 | ||
|
|
||
| - name: Install cargo-llvm-cov | ||
| uses: taiki-e/install-action@cargo-llvm-cov | ||
|
|
||
| - name: Run cargo-llvm-cov | ||
| run: cargo llvm-cov --all-features --workspace --html --output-dir target/coverage | ||
|
|
||
| - name: Upload coverage to Artifacts | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| token: ${{secrets.CODECOV_TOKEN}} | ||
| name: coverage-report | ||
| path: target/coverage | ||
|
|
||
| security: | ||
| name: Security | ||
| udeps: | ||
| name: udeps | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v1 | ||
| - uses: actions-rs/audit-check@v1 | ||
| - uses: actions/checkout@v5 | ||
|
|
||
| - name: Install Rust | ||
| uses: dtolnay/rust-toolchain@master | ||
| with: | ||
| token: ${{ secrets.GITHUB_TOKEN }} | ||
| toolchain: stable | ||
|
|
||
| - name: Rust Cache | ||
| uses: Swatinem/rust-cache@v2 | ||
| with: | ||
| key: rust/udeps | ||
|
|
||
| - name: Install cargo-udeps | ||
| uses: taiki-e/install-action@v2 | ||
| with: | ||
| tool: cargo-udeps | ||
|
|
||
| - name: Run cargo udeps | ||
| run: cargo +nightly udeps --all-targets --workspace |
This file was deleted.
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.