Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 16 additions & 3 deletions tools/internal/testnet-manager/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,17 +1,25 @@
// Copyright 2024 - Nym Technologies SA <[email protected]>
// SPDX-License-Identifier: GPL-3.0-only

use crate::cli::Cli;
use clap::Parser;
use nym_bin_common::logging::setup_tracing_logger;
// Allow dead code for not(unix)
#![cfg_attr(not(unix), allow(dead_code))]

#[cfg(unix)]
pub(crate) mod cli;
#[cfg(unix)]
pub(crate) mod error;
#[cfg(unix)]
mod helpers;
#[cfg(unix)]
mod manager;

#[cfg(unix)]
#[tokio::main]
async fn main() -> anyhow::Result<()> {
use crate::cli::Cli;
use clap::Parser;
use nym_bin_common::logging::setup_tracing_logger;

// std::env::set_var(
// "RUST_LOG",
// "trace,handlebars=warn,tendermint_rpc=warn,h2=warn,hyper=warn,rustls=warn,reqwest=warn,tungstenite=warn,async_tungstenite=warn,tokio_util=warn,tokio_tungstenite=warn,tokio-util=warn",
Expand All @@ -24,3 +32,8 @@ async fn main() -> anyhow::Result<()> {

Ok(())
}

#[cfg(not(unix))]
fn main() {
println!("This binary is only supported on Unix systems");
}