pub struct GenTarget {
pub input: String,
pub lang: String,
pub output: String,
pub format: bool,
pub dispatch: Dispatch,
pub dispatch_overrides: HashMap<String, Dispatch>,
pub type_map: HashMap<String, String>,
pub lang_options: LangOptions,
}Expand description
A single decoder/disassembler code generation target.
Fields§
§input: StringPath to the input .chipi file.
lang: StringTarget language backend. One of "rust", "cpp", "ida", "binja".
output: StringOutput file path. Supports $VAR and ${VAR} env var expansion.
format: boolRun a language-appropriate formatter on the output when true.
dispatch: DispatchDefault dispatch strategy for all decoders and sub-decoders.
dispatch_overrides: HashMap<String, Dispatch>Per-decoder dispatch strategy overrides.
type_map: HashMap<String, String>Map a chipi type name to a language-specific type path.
lang_options: LangOptionsBackend-specific options. Each backend reads only its own variant.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GenTarget
impl RefUnwindSafe for GenTarget
impl Send for GenTarget
impl Sync for GenTarget
impl Unpin for GenTarget
impl UnsafeUnpin for GenTarget
impl UnwindSafe for GenTarget
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more