diff --git a/mm2src/komodefi_cli/src/config.rs b/mm2src/komodefi_cli/src/config.rs index 9c54d6fcde..5432e01a3c 100644 --- a/mm2src/komodefi_cli/src/config.rs +++ b/mm2src/komodefi_cli/src/config.rs @@ -5,7 +5,8 @@ use crate::komodefi_proc::SmartFractPrecision; use crate::logging::{error_anyhow, warn_bail}; use anyhow::{anyhow, bail, Result}; -use common::log::{debug, error, info, warn}; +#[cfg(unix)] use common::log::debug; +use common::log::{error, info, warn}; use inquire::Password; use serde::{Deserialize, Serialize}; use std::fmt::{Display, Formatter}; diff --git a/mm2src/komodefi_cli/src/scenarios/download_helper.rs b/mm2src/komodefi_cli/src/scenarios/download_helper.rs index da42e094f6..616df20514 100644 --- a/mm2src/komodefi_cli/src/scenarios/download_helper.rs +++ b/mm2src/komodefi_cli/src/scenarios/download_helper.rs @@ -11,7 +11,7 @@ use zip::ZipArchive; const BINARY_HOST_URL: &str = "https://api.github.com/repos/KomodoPlatform/komodo-defi-framework/releases"; -#[cfg(not(target_os = "macos"))] +#[cfg(all(unix, not(target_os = "macos")))] const DOWNLOAD_NAME: &str = "Linux-Release."; #[cfg(target_os = "macos")] const DOWNLOAD_NAME: &str = "Darwin-Release.";