feat: add zeroizing_alloc
This commit is contained in:
614
Cargo.lock
generated
614
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -38,6 +38,7 @@ log = "0.4"
|
|||||||
env_logger = "0.11"
|
env_logger = "0.11"
|
||||||
log4rs = "1.3"
|
log4rs = "1.3"
|
||||||
pinentry-util = "0.1.1"
|
pinentry-util = "0.1.1"
|
||||||
|
zeroizing-alloc = "0.1.0"
|
||||||
|
|
||||||
[target.'cfg(target_os = "linux")'.dependencies]
|
[target.'cfg(target_os = "linux")'.dependencies]
|
||||||
procfs = { version = "0.13", optional = true }
|
procfs = { version = "0.13", optional = true }
|
||||||
|
|||||||
@@ -2,6 +2,11 @@ use clap::{App, AppSettings, ArgMatches};
|
|||||||
use rust_util::util_clap::{Command, CommandError};
|
use rust_util::util_clap::{Command, CommandError};
|
||||||
use rust_util::{failure_and_exit, information, success, warning};
|
use rust_util::{failure_and_exit, information, success, warning};
|
||||||
|
|
||||||
|
use zeroizing_alloc::ZeroAlloc;
|
||||||
|
|
||||||
|
#[global_allocator]
|
||||||
|
static ALLOC: ZeroAlloc<std::alloc::System> = ZeroAlloc(std::alloc::System);
|
||||||
|
|
||||||
mod db;
|
mod db;
|
||||||
mod proc;
|
mod proc;
|
||||||
mod jose;
|
mod jose;
|
||||||
@@ -85,4 +90,4 @@ fn inner_main() -> CommandError {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
DefaultCommandImpl::run(&matches)
|
DefaultCommandImpl::run(&matches)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user