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

Prefixed crate names with zksync_consensus_ #25

Merged
merged 8 commits into from
Nov 7, 2023
Merged

Conversation

pompon0
Copy link
Collaborator

@pompon0 pompon0 commented Nov 6, 2023

Prefixed crate names with zksync_consensus_ to make the names more scope specific.
We cannot afford keeping the generic names we used so far, as this repo will be used in zksync-era now.
The exception is zksync_concurrency (not zksync_consensus_concurrency) which is intended to be extracted from this repo eventually.

node/actors/consensus/src/replica/tests.rs Outdated Show resolved Hide resolved
node/actors/network/src/consensus/handshake/tests.rs Outdated Show resolved Hide resolved
node/actors/executor/src/lib.rs Outdated Show resolved Hide resolved
node/libs/crypto/src/bn254/tests.rs Outdated Show resolved Hide resolved
node/libs/utils/Cargo.toml Show resolved Hide resolved
node/actors/consensus/Cargo.toml Outdated Show resolved Hide resolved
@@ -28,7 +28,7 @@ jobs:
path: "protobuf"
- uses: mozilla-actions/[email protected]
- name: build test
run: cargo build -p schema --bin conformance_test
run: cargo build -p zksync_consensus_schema --bin conformance_test
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Off-topic (?): If we want to publish crates, I'd suggest to move this binary target to an example or a separate crate, so that it doesn't bring unnecessary extra deps (e.g., Tokio) as direct deps of the library. The same can be said about testonly modules in various crates (they may bring extra deps such as rand as well); so it would be better to gate this functionality behind an opt-in feature. Can be done later, of course.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer to minimize the usage of the feature flags if possible. I don't know much about the crate publishing standards though.

brunoffranca
brunoffranca previously approved these changes Nov 6, 2023
slowli
slowli previously approved these changes Nov 7, 2023
node/actors/consensus/Cargo.toml Outdated Show resolved Hide resolved
node/actors/consensus/src/testonly/run.rs Outdated Show resolved Hide resolved
@pompon0 pompon0 dismissed stale reviews from slowli and brunoffranca via d477569 November 7, 2023 10:09
@pompon0 pompon0 requested a review from brunoffranca November 7, 2023 14:01
@pompon0 pompon0 requested a review from slowli November 7, 2023 14:21
@pompon0 pompon0 merged commit 3330c83 into main Nov 7, 2023
4 checks passed
@pompon0 pompon0 deleted the gprusak-rename branch November 7, 2023 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants