mirror of
https://codeberg.org/unspeaker/vestal.git
synced 2025-12-06 10:46:42 +01:00
35 lines
1.5 KiB
Rust
35 lines
1.5 KiB
Rust
pub(crate) use std::collections::{BTreeMap, BTreeSet};
|
|
pub(crate) use std::error::Error;
|
|
pub(crate) use std::fs::{read, canonicalize};
|
|
pub(crate) use std::io::Write;
|
|
pub(crate) use std::os::unix::fs::OpenOptionsExt;
|
|
pub(crate) use std::path::{Path, PathBuf};
|
|
pub(crate) use std::pin::Pin;
|
|
pub(crate) use std::sync::{Arc, RwLock};
|
|
pub(crate) use itertools::{Itertools, izip};
|
|
//pub(crate) use ::lancelot::loader::pe::{PE, reloc::apply_relocations};
|
|
//pub(crate) use ::goblin::{error, Object, pe::{import::Import, export::Export}};
|
|
pub(crate) use ::object::endian::LittleEndian;
|
|
//pub(crate) use ::object::pe::ImageNtHeaders64;
|
|
//pub(crate) use ::object::read::pe::{PeFile, ExportTarget};
|
|
pub(crate) use ::object::write::elf::Writer as ElfWriter;
|
|
pub(crate) use ::pretty_hex::*;
|
|
pub(crate) use ::exe::{Buffer, PE, VecPE, PtrPE, types::*, headers::*};
|
|
pub(crate) use ::iced_x86::{Encoder, Decoder, DecoderOptions, Instruction, OpKind, FlowControl};
|
|
pub(crate) type Usually<T> = Result<T, Box<dyn std::error::Error>>;
|
|
pub const ESC: &str = "\u{001b}";
|
|
pub const RESET: &str = "\u{001b}[0m";
|
|
pub const BOLD: &str = "\u{001b}[1m";
|
|
pub const DIM: &str = "\u{001b}[2m";
|
|
pub const ITALIC: &str = "\u{001b}[3m";
|
|
pub const UNDERLINE: &str = "\u{001b}[4m";
|
|
pub const INVERT: &str = "\u{001b}[7m";
|
|
pub const RED: &str = "\u{001b}[1;31m";
|
|
pub const GREEN: &str = "\u{001b}[1;32m";
|
|
pub enum Verbosity {
|
|
Silent,
|
|
Terse,
|
|
Brief,
|
|
Verbose,
|
|
}
|
|
//println!(" ⋮ ");
|