1
0
Fork 0
mirror of https://github.com/TransparentLC/opencl_vanity_gpg.git synced 2025-10-21 07:44:09 +00:00

feat: log args

This commit is contained in:
GZTime 2025-01-09 01:35:13 +08:00
parent ff5e25942a
commit 9d20d7f382
No known key found for this signature in database
GPG key ID: 373640C748EA3E19

View file

@ -4,11 +4,19 @@ use log::{debug, info, warn};
use ocl::{Buffer, Device, Platform, ProQue}; use ocl::{Buffer, Device, Platform, ProQue};
use pgp::types::PublicKeyTrait; use pgp::types::PublicKeyTrait;
use rand::thread_rng; use rand::thread_rng;
use std::{fmt::Write, fs, path::Path, str::FromStr, sync::mpsc::*, thread, time::Instant}; use std::{
fmt::Write,
fs,
path::Path,
str::FromStr,
sync::{mpsc::*, LazyLock},
thread,
time::Instant,
};
use utils::ARGS;
use utils::*; use utils::*;
mod utils; mod utils;
pub use utils::ARGS;
fn main() -> anyhow::Result<()> { fn main() -> anyhow::Result<()> {
env_logger::Builder::from_env( env_logger::Builder::from_env(
@ -17,7 +25,7 @@ fn main() -> anyhow::Result<()> {
.format_indent(None) .format_indent(None)
.init(); .init();
debug!("{:?}", &ARGS); debug!("{:#?}", LazyLock::force(&ARGS));
let device_list = utils::DeviceList::new()?; let device_list = utils::DeviceList::new()?;