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: Option<Value>,
}Expand description
A single decoder/disassembler code generation target.
Fields§
§input: StringPath to the input .chipi file.
Relative paths are resolved from the TOML file’s directory.
Supports $VAR / ${VAR} environment variable expansion (e.g. $OUT_DIR).
lang: StringTarget language backend. Currently only "rust" is supported.
output: StringOutput file path.
Relative paths are resolved from the TOML file’s directory.
Supports $VAR / ${VAR} environment variable expansion (e.g. $OUT_DIR).
format: boolWhether to run a language-appropriate formatter on the output.
dispatch: DispatchDefault dispatch strategy for all decoders/sub-decoders.
dispatch_overrides: HashMap<String, Dispatch>Per-decoder dispatch strategy overrides.
type_map: HashMap<String, String>Type mappings: chipi type name -> language-specific type path.
lang_options: Option<Value>Reserved for language-specific settings.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GenTarget
impl<'de> Deserialize<'de> for GenTarget
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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