2022-10-01 16:58:22 +00:00
// Gupax - GUI Uniting P2Pool And XMRig
//
// Copyright (c) 2022 hinto-janaiyo
//
// This program 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.
//
// This program 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 this program. If not, see <https://www.gnu.org/licenses/>.
2022-10-17 00:36:58 +00:00
pub const GUPAX_VERSION : & 'static str = concat! ( " v " , env! ( " CARGO_PKG_VERSION " ) ) ;
2022-10-31 20:08:25 +00:00
pub const P2POOL_VERSION : & 'static str = " v2.4 " ;
2022-10-13 12:57:50 +00:00
pub const XMRIG_VERSION : & 'static str = " v6.18.0 " ;
2022-10-17 00:36:58 +00:00
pub const COMMIT : & 'static str = include_str! ( " ../.git/refs/heads/main " ) ;
2022-10-01 16:58:22 +00:00
2022-10-31 20:08:25 +00:00
// Use macOS shaped icon for macOS
#[ cfg(target_os = " macos " ) ]
pub const BYTES_ICON : & [ u8 ] = include_bytes! ( " ../images/icons/icon@2x.png " ) ;
#[ cfg(not(target_os = " macos " )) ]
pub const BYTES_ICON : & [ u8 ] = include_bytes! ( " ../images/icons/icon.png " ) ;
pub const BYTES_BANNER : & [ u8 ] = include_bytes! ( " ../images/banner.png " ) ;
2022-10-13 12:57:50 +00:00
pub const P2POOL_BASE_ARGS : & 'static str = " " ;
2022-10-01 16:58:22 +00:00
pub const XMRIG_BASE_ARGS : & 'static str = " --http-host=127.0.0.1 --http-port=18088 --algo=rx/0 --coin=Monero --randomx-cache-qos " ;
2022-10-16 21:29:24 +00:00
pub const HORIZONTAL : & 'static str = " -------------------------------------------- " ;
2022-10-01 16:58:22 +00:00
2022-10-27 03:15:56 +00:00
// This is the typical space added when using
// [ui.separator()] or [ui.group()]
// Used for subtracting the width/height so
// things actually line up.
pub const SPACE : f32 = 10.0 ;
2022-10-01 16:58:22 +00:00
// OS specific
#[ cfg(target_os = " windows " ) ]
pub const OS : & 'static str = " Windows " ;
#[ cfg(target_os = " windows " ) ]
2022-10-29 13:13:00 +00:00
pub const OS_NAME : & 'static str = " Windows " ;
#[ cfg(target_os = " windows " ) ]
2022-10-01 16:58:22 +00:00
pub const HUGEPAGES_1GB : bool = false ;
#[ cfg(target_os = " macos " ) ]
pub const OS : & 'static str = " macOS " ;
#[ cfg(target_os = " macos " ) ]
2022-10-17 00:36:58 +00:00
pub const OS_NAME : & 'static str = " macOS " ;
#[ cfg(target_os = " macos " ) ]
2022-10-01 16:58:22 +00:00
pub const HUGEPAGES_1GB : bool = false ;
#[ cfg(target_os = " linux " ) ]
pub const OS : & 'static str = " 🐧 Linux " ;
#[ cfg(target_os = " linux " ) ]
2022-10-17 00:36:58 +00:00
pub const OS_NAME : & 'static str = " Linux " ;
#[ cfg(target_os = " linux " ) ]
2022-10-01 16:58:22 +00:00
pub const HUGEPAGES_1GB : bool = true ;
// Tooltips
// Gupax
2022-10-27 03:15:56 +00:00
pub const GUPAX_UPDATE : & 'static str = " Check for update on Gupax, P2Pool, and XMRig via GitHub's API and upgrade automatically " ;
2022-10-01 16:58:22 +00:00
pub const GUPAX_AUTO_UPDATE : & 'static str = " Automatically check for updates at startup " ;
2022-10-27 15:52:18 +00:00
pub const GUPAX_UPDATE_VIA_TOR : & 'static str = " Update through the Tor network. Tor is embedded within Gupax; a Tor system proxy is not required " ;
2022-10-27 03:15:56 +00:00
pub const GUPAX_AUTO_NODE : & 'static str = " Automatically ping the community Monero nodes and select the fastest at startup for P2Pool " ;
pub const GUPAX_ASK_BEFORE_QUIT : & 'static str = " Ask before quitting if processes are still alive or if an update is in progress " ;
2022-10-17 00:36:58 +00:00
pub const GUPAX_SAVE_BEFORE_QUIT : & 'static str = " Automatically save any changed settings before quitting " ;
pub const GUPAX_PATH_P2POOL : & 'static str = " The location of the P2Pool binary, both absolute and relative paths are accepted " ;
pub const GUPAX_PATH_XMRIG : & 'static str = " The location of the XMRig binary, both absolute and relative paths are accepted " ;
2022-10-01 16:58:22 +00:00
// P2Pool
pub const P2POOL_MAIN : & 'static str = " The P2Pool main-chain. This P2Pool finds shares faster, but has a higher difficulty. Suitable for miners with more than 50kH/s " ;
pub const P2POOL_MINI : & 'static str = " The P2Pool mini-chain. This P2Pool finds shares slower, but has a lower difficulty. Suitable for miners with less than 50kH/s " ;
pub const P2POOL_OUT : & 'static str = " How many out-bound peers (you connecting to others) to connect to? " ;
pub const P2POOL_IN : & 'static str = " How many in-bound peers (others connecting to you) to connect to? " ;
pub const P2POOL_LOG : & 'static str = " Verbosity of the console log " ;
pub const P2POOL_COMMUNITY : & 'static str = " Connect to a community trusted Monero node: This is convenient because you don't have to download the Monero blockchain but it comes at the cost of privacy " ;
pub const P2POOL_MANUAL : & 'static str = " Manually specify your own Monero node settings " ;
// XMRig
pub const XMRIG_P2POOL : & 'static str = " Mine to your own P2Pool instance (localhost:3333) " ;
pub const XMRIG_MANUAL : & 'static str = " Manually specify where to mine to " ;
pub const XMRIG_TLS : & 'static str = " Enable SSL/TLS connections (needs pool support) " ;
pub const XMRIG_HUGEPAGES_JIT : & 'static str = " Enable hugepages for RandomX JIT code. Note: 1GB hugepages is automatically enabled (only available on Linux) " ;
pub const XMRIG_NICEHASH : & 'static str = " Enable nicehash.com support " ;
pub const XMRIG_KEEPALIVE : & 'static str = " Send keepalived packet to prevent timeout (needs pool support) " ;
pub const XMRIG_THREADS : & 'static str = " Number of CPU threads to use for mining " ;
pub const XMRIG_PRIORITY : & 'static str = " Set process priority (0 idle, 2 normal to 5 highest) " ;
2022-10-16 21:29:24 +00:00
// CLI argument messages
pub const ARG_HELP : & 'static str =
r #" USAGE: gupax [--flags]
- h | - - help Print this help message
- v | - - version Print versions
- n | - - no - startup Disable auto - update / node connections at startup
2022-10-18 19:26:21 +00:00
- r | - - reset Reset all Gupax configuration / state
- f | - - ferris Print an extremely cute crab " #;
2022-10-16 21:29:24 +00:00
pub const ARG_COPYRIGHT : & 'static str =
2022-10-17 00:36:58 +00:00
r #" Gupax, P2Pool, and XMRig are licensed under GPLv3.
For more information , see here :
- https ://github.com/hinto-janaiyo/gupax
- https ://github.com/SChernykh/p2pool
- https ://github.com/xmrig/xmrig"#;