-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use espresso-types without testing feature (#2283)
* Use espresso-types without testing feature We would like to be able to use the types crate in other crates but currently it won't compile without the testing feature enabled. This PR fixes that. - Use `NullStateCatchup` instead of `MockStateCatchup` where we don't need catchup. - Feature gate `MockStateCatchup` behind testing in types crate. - Remove the unused `InstanceState` argument from `from_transactions_sync`. * Clean up features in sequencer crate - `testing` feature enables `testing` feature of types and utils crate. - Running tests enables `testing` feature of crate via dev-dependencies. This allows to run `cargo check` and `cargo check --tests` in the sequencer crate. Previously `cargo check` was broken without the `testing` feature enabled explicitly. * WIP: remove testing feature from non test code * Update query service * refactor: remove libp2p feature The libp2p feature was always turned on and the code didn't compile without it. With this change all feature sets checked with `cargo hack check --each-feature` compile successfully. * ci: check each cargo feature * check compilation of each feature with --tests * CI: run cargo check for feature combinations
- Loading branch information
Showing
19 changed files
with
106 additions
and
70 deletions.
There are no files selected for viewing
This file contains 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,42 @@ | ||
name: Cargo features | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- release-* | ||
tags: | ||
# YYYYMMDD | ||
- "20[0-9][0-9][0-1][0-9][0-3][0-9]*" | ||
schedule: | ||
- cron: "0 0 * * 1" | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
cargo-features: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: taiki-e/install-action@cargo-hack | ||
|
||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
# Note: this job doesn't use a cache on purpose because it mostly compiles | ||
# the crates in this repo over and over again with different feature | ||
# combinations. Adding caching would not speed it up much and further | ||
# contribute to our cache usage. | ||
|
||
# Includes checks for `--no-default-features` and `--all-features` as well | ||
# as each individual feature enabled. | ||
- name: Check compilation for feature combinations | ||
run: | | ||
cargo hack check --feature-powerset | ||
- name: Check compilation for feature combinations (--tests) | ||
run: | | ||
cargo hack check --feature-powerset --tests |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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 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 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 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 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 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 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 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 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 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 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.