Skip to content

Commit 6f4cfce

Browse files
authored
chore(code): Namespace crates under informalsystems- prefix, add bft suffix (#696)
* chore(code): Namespace crates under `informalsystems-` prefix, add `bft` suffix Rename all crates to include a `informalsystems-` prefix and a `bft` suffix to avoid clashes with the existing `malachite` crate. So `malachite-consensus` would become `informalsystems-malachitebft-consensus`. It is a mouthful but that can be alleviated in code by specifying a package alias in `Cargo.toml`: ```toml [dependencies] malachitebft-consensus = { version = "0.1.0", package = "informalsystems-malachitebft-consensus" } ``` which allows import of the form: ```rust use malachitebft_consensus::foobar::* ``` instead of ```rust use informalsystems_malachitebft_consensus::foobar::* ``` * Format and cleanup all Cargo.toml files * Fix CI * Remove unused `node` crate * Do not publish signing and test-cli crates * Add note in starknet crates
1 parent 5fddc56 commit 6f4cfce

File tree

202 files changed

+1733
-1698
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

202 files changed

+1733
-1698
lines changed

.github/workflows/coverage.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
run: |
5252
cargo llvm-cov nextest \
5353
--workspace \
54-
--exclude malachite-test-mbt \
54+
--exclude informalsystems-malachitebft-test-mbt \
5555
--ignore-filename-regex crates/cli \
5656
--all-features \
5757
--no-capture \
@@ -110,7 +110,7 @@ jobs:
110110
- name: Install cargo-llvm-cov
111111
uses: taiki-e/install-action@cargo-llvm-cov
112112
- name: Generate code coverage
113-
run: cargo llvm-cov nextest -p malachite-test-mbt --all-features --lcov --output-path lcov.info
113+
run: cargo llvm-cov nextest -p informalsystems-malachitebft-test-mbt --all-features --lcov --output-path lcov.info
114114
- name: Generate text report
115115
run: cargo llvm-cov report
116116
- name: Upload coverage to Codecov

.github/workflows/mbt.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ jobs:
4343
uses: taiki-e/install-action@cargo-nextest
4444
- name: Build code
4545
working-directory: code/crates/test/mbt
46-
run: cargo nextest run -p malachite-test-mbt --all-features --no-run
46+
run: cargo nextest run -p informalsystems-malachitebft-test-mbt --all-features --no-run
4747
- name: Current time as random seed for Quint
4848
run: echo "QUINT_SEED=$(date +%s)" >> $GITHUB_ENV
4949
- name: Run tests
5050
working-directory: code/crates/test/mbt
51-
run: cargo nextest run -p malachite-test-mbt --all-features
51+
run: cargo nextest run -p informalsystems-malachitebft-test-mbt --all-features

.github/workflows/rust.yml

+12-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,14 @@ jobs:
4949
- name: Install cargo-nextest
5050
uses: taiki-e/install-action@cargo-nextest
5151
- name: Run tests
52-
run: cargo nextest run --workspace --all-features --no-fail-fast --failure-output final --exclude malachite-starknet-test --exclude malachite-discovery-test
52+
run: |
53+
cargo nextest run \
54+
--workspace \
55+
--all-features \
56+
--no-fail-fast \
57+
--failure-output final \
58+
--exclude informalsystems-malachitebft-starknet-test \
59+
--exclude informalsystems-malachitebft-discovery-test
5360
5461
integration:
5562
name: Integration Tests
@@ -81,7 +88,10 @@ jobs:
8188
- name: Disable apparmor container restrictions
8289
run: sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
8390
- name: Run integration tests
84-
run: cargo maelstrom --slots 16 -i 'package.match(malachite-starknet-test) || package.match(malachite-discovery-test)'
91+
run: |
92+
cargo maelstrom \
93+
--slots 16 \
94+
--include 'package.match(informalsystems-malachitebft-starknet-test) || package.match(informalsystems-malachitebft-discovery-test)'
8595
8696
clippy:
8797
name: Clippy

0 commit comments

Comments
 (0)