Skip to content
Merged
Changes from 1 commit
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
9 changes: 9 additions & 0 deletions tools/internal/testnet-manager/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
// Copyright 2024 - Nym Technologies SA <contact@nymtech.net>
// SPDX-License-Identifier: GPL-3.0-only

// Allow dead code for not(unix)
#![cfg_attr(not(unix), allow(dead_code))]

use crate::cli::Cli;
use clap::Parser;
use nym_bin_common::logging::setup_tracing_logger;
Expand All @@ -10,6 +13,7 @@ pub(crate) mod error;
mod helpers;
mod manager;

#[cfg(unix)]
#[tokio::main]
async fn main() -> anyhow::Result<()> {
// std::env::set_var(
Expand All @@ -24,3 +28,8 @@ async fn main() -> anyhow::Result<()> {

Ok(())
}

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