mirror of
https://github.com/TransparentLC/opencl_vanity_gpg.git
synced 2025-10-20 15:24:08 +00:00
feat: log args
This commit is contained in:
parent
ff5e25942a
commit
9d20d7f382
1 changed files with 11 additions and 3 deletions
14
src/main.rs
14
src/main.rs
|
@ -4,11 +4,19 @@ use log::{debug, info, warn};
|
|||
use ocl::{Buffer, Device, Platform, ProQue};
|
||||
use pgp::types::PublicKeyTrait;
|
||||
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::*;
|
||||
|
||||
mod utils;
|
||||
pub use utils::ARGS;
|
||||
|
||||
fn main() -> anyhow::Result<()> {
|
||||
env_logger::Builder::from_env(
|
||||
|
@ -17,7 +25,7 @@ fn main() -> anyhow::Result<()> {
|
|||
.format_indent(None)
|
||||
.init();
|
||||
|
||||
debug!("{:?}", &ARGS);
|
||||
debug!("{:#?}", LazyLock::force(&ARGS));
|
||||
|
||||
let device_list = utils::DeviceList::new()?;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue