mirror of
https://github.com/datahaven-xyz/datahaven
synced 2026-05-24 09:50:01 +00:00
## Summary - Feature-gate `frame-benchmarking-cli` behind `runtime-benchmarks` feature, making it an optional dependency - Remove unused `cumulus-client-service` workspace dependency - Remove unused `storage-hub-runtime` workspace dependency - Add `#[cfg(feature = "runtime-benchmarks")]` guards to benchmark-related code ## Motivation The `frame-benchmarking-cli` crate pulls in `cumulus-client-parachain-inherent` and other cumulus dependencies transitively. Since DataHaven is a solochain (not a parachain), these dependencies are unnecessary for regular builds. By making the benchmarking CLI optional and only compiling it when the `runtime-benchmarks` feature is enabled, we reduce: - Compile time for regular development builds - Final binary size (when not benchmarking) - Dependency tree complexity Co-authored-by: Claude <noreply@anthropic.com>
34 lines
984 B
Rust
34 lines
984 B
Rust
// Copyright 2025 DataHaven
|
|
// This file is part of DataHaven.
|
|
|
|
// DataHaven is free software: you can redistribute it and/or modify
|
|
// it under the terms of the GNU General Public License as published by
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
// (at your option) any later version.
|
|
|
|
// DataHaven is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU General Public License for more details.
|
|
|
|
// You should have received a copy of the GNU General Public License
|
|
// along with DataHaven. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
//! Substrate Node Template CLI library.
|
|
#![warn(missing_docs)]
|
|
|
|
#[cfg(feature = "runtime-benchmarks")]
|
|
mod benchmarking;
|
|
mod chain_spec;
|
|
mod cli;
|
|
mod client;
|
|
mod command;
|
|
mod config;
|
|
mod consensus;
|
|
mod eth;
|
|
mod rpc;
|
|
mod service;
|
|
|
|
fn main() -> sc_cli::Result<()> {
|
|
command::run()
|
|
}
|