Skip to content

Commit

Permalink
Revert "Revert "Conditionally compile versions (#2559)""
Browse files Browse the repository at this point in the history
This reverts commit 51719dd.
  • Loading branch information
rob-maron committed Feb 13, 2025
1 parent 51719dd commit 822dfe2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/cargo-features.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ concurrency:

jobs:
cargo-features:
runs-on: ubuntu-latest
runs-on: buildjet-8vcpu-ubuntu-2204
steps:
- uses: taiki-e/install-action@cargo-hack

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ concurrency:

env:
RUST_LOG: info,libp2p=off,node=error
RUSTFLAGS: "--cfg feature=\"fee\" --cfg feature=\"marketplace\""
CARGO_TERM_COLOR: always
# Save the process compose logs
PC_LOGS: /tmp/pc.log
Expand Down
4 changes: 4 additions & 0 deletions sequencer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[features]
default = ["fee"]
testing = [
"hotshot-testing",
"marketplace-builder-core",
Expand All @@ -15,6 +16,9 @@ testing = [
]
benchmarking = []
embedded-db = ["hotshot-query-service/embedded-db"]
fee = []
pos = []
marketplace = []

[[bin]]
name = "espresso-dev-node"
Expand Down
4 changes: 4 additions & 0 deletions sequencer/src/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ use super::{
persistence, Genesis, L1Params, NetworkParams,
};
use clap::Parser;
#[allow(unused_imports)]
use espresso_types::{
traits::NullEventConsumer, FeeVersion, MarketplaceVersion, SequencerVersions,
SolverAuctionResultsProvider, V0_0,
Expand Down Expand Up @@ -38,6 +39,7 @@ pub async fn main() -> anyhow::Result<()> {
let upgrade = genesis.upgrade_version;

match (base, upgrade) {
#[cfg(all(feature = "fee", feature = "marketplace"))]
(FeeVersion::VERSION, MarketplaceVersion::VERSION) => {
run(
genesis,
Expand All @@ -47,6 +49,7 @@ pub async fn main() -> anyhow::Result<()> {
)
.await
}
#[cfg(feature = "fee")]
(FeeVersion::VERSION, _) => {
run(
genesis,
Expand All @@ -56,6 +59,7 @@ pub async fn main() -> anyhow::Result<()> {
)
.await
}
#[cfg(feature = "marketplace")]
(MarketplaceVersion::VERSION, _) => {
run(
genesis,
Expand Down

0 comments on commit 822dfe2

Please sign in to comment.