1dcb0a0456
* Disable testnet-manager on non-unix * Move mod behind cfg too
40 lines
920 B
Rust
40 lines
920 B
Rust
// 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))]
|
|
|
|
#[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",
|
|
// );
|
|
|
|
let cli = Cli::parse();
|
|
setup_tracing_logger();
|
|
|
|
cli.execute().await?;
|
|
|
|
Ok(())
|
|
}
|
|
|
|
#[cfg(not(unix))]
|
|
fn main() {
|
|
println!("This binary is only supported on Unix systems");
|
|
}
|