Skip to content
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

Refactor to monolithic workspace #26

Merged
merged 41 commits into from
Oct 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
530a66a
Add multi-party-ecdsa workspace member.
tmpfs Oct 2, 2023
4842bfe
Add fs-dkr as workspace member.
tmpfs Oct 2, 2023
874cfc3
Fix dependency tree, update channel.
tmpfs Oct 2, 2023
8220195
Fix round-based dependency.
tmpfs Oct 2, 2023
2dc7176
Do not specify toolchain in worksflow.
tmpfs Oct 2, 2023
0bf570a
Format code.
tmpfs Oct 2, 2023
d427cc4
Add rust-toolchain file for CI.
tmpfs Oct 2, 2023
f365c89
Update for specific nightly version.
tmpfs Oct 2, 2023
43b5c78
Fixing dead links.
tmpfs Oct 2, 2023
f23cfbe
Fix clippy warnings.
tmpfs Oct 2, 2023
99ee858
Fixing clippy warnings in fs-dkr.
tmpfs Oct 2, 2023
eb8f17f
Format and complete fs-dkr clippy warnings.
tmpfs Oct 2, 2023
4ade436
Fix formatting.
tmpfs Oct 2, 2023
2802ccf
Update build workflow.
tmpfs Oct 2, 2023
97ec8af
Fix top-level clippy warnings.
tmpfs Oct 2, 2023
3de61ae
Disable link check in CI as it is giving false positives.
tmpfs Oct 2, 2023
f6447f6
Add .cargo/config.toml for MacOS users with homebrew GMP.
tmpfs Oct 2, 2023
6eb79b3
Use patched version of curv-kzen for webassembly fix.
tmpfs Oct 2, 2023
0c5cb65
Add workflow to check wasm32-unknown-unknown build.
tmpfs Oct 2, 2023
e3d6997
Fix workflow name.
tmpfs Oct 2, 2023
aacd432
Re-export multi_party_ecdsa library.
tmpfs Oct 2, 2023
e90a475
Remove two_party_ecdsa module.
tmpfs Oct 3, 2023
782741d
Remove gg_2018 module and examples.
tmpfs Oct 3, 2023
e873072
Remove benchmarks as they all apply to removed protocols.
tmpfs Oct 3, 2023
ae54b68
Remove obsolete demo folder.
tmpfs Oct 3, 2023
958159f
Remove setup script.
tmpfs Oct 3, 2023
574d97b
Remove .rustfmt.toml, provided by the workspace now.
tmpfs Oct 3, 2023
45b6e94
Update edition in multi-party-ecdsa.
tmpfs Oct 3, 2023
98cb086
Update edition in fs-dkr.
tmpfs Oct 3, 2023
31cf409
Formatting.
tmpfs Oct 3, 2023
422a9c0
Use more workspace dependencies.
tmpfs Oct 3, 2023
971b447
Tidy workspace dependencies.
tmpfs Oct 3, 2023
93dc199
Move multi party ecdsa module.
tmpfs Oct 3, 2023
88dbbfe
Add deprecated notice to protocols module.
tmpfs Oct 3, 2023
afe4571
Tidy module path.
tmpfs Oct 3, 2023
3f5359e
Remove unused box_patterns flag.
tmpfs Oct 3, 2023
e96cb66
Migrate to stable toolchain.
tmpfs Oct 3, 2023
3cc47c9
Fix lint workflow for stable channel.
tmpfs Oct 3, 2023
4e3307e
Remove obsolete patch, not necessary on stable.
tmpfs Oct 3, 2023
5a65ab4
Remove duplicate types from party_i.
tmpfs Oct 3, 2023
4c4dcf4
Formatting.
tmpfs Oct 3, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# For people on MacOS that have installed gmp
# using homebrew this means we don't always have to:
#
# RUSTFLAGS="-L/opt/homebrew/lib" cargo test
#
# To get the curz-kzen library compiling with the system GMP
# library.

[target.aarch64-apple-darwin]
rustflags = [
"-L", "/opt/homebrew/lib",
]

[target.x86_64-apple-darwin]
rustflags = [
"-L", "/opt/homebrew/lib",
]
38 changes: 33 additions & 5 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:
jobs:
# checks markdown links
link-check:
if: ${{ false }}
name: links
runs-on: ubuntu-latest
steps:
Expand All @@ -36,7 +37,34 @@ jobs:

- uses: actions/checkout@v2
- uses: hecrj/setup-rust-action@v1
- run: cargo check --workspace --verbose --no-default-features
- run: cargo check --workspace --verbose

# check compilation for wasm32-unknown-unknown
webassembly-check:
name: webassembly
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}

- uses: actions/checkout@v2
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable

- name: Rust Cache
uses: Swatinem/[email protected]

- name: Run Webassembly check
run: |
cargo check --target wasm32-unknown-unknown \
--features js \
--features num-bigint \
--no-default-features

# ensures proper formatting and clippy lint
lint-check:
name: lint
Expand All @@ -48,16 +76,16 @@ jobs:
access_token: ${{ github.token }}

- uses: actions/checkout@v2
- name: Install latest nightly
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
toolchain: stable
components: rustfmt, clippy

- name: Rust Cache
uses: Swatinem/[email protected]

- name: Run Linters
run: |
cargo +nightly fmt --all -- --check
cargo clippy -Zunstable-options -- -D warnings
cargo fmt --all -- --check
cargo clippy -- -D warnings
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- name: Install Toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2022-05-15
toolchain: stable
components: rustfmt, clippy
target: wasm32-unknown-unknown
override: true
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
target
*.bak
Loading
Loading