1 //! Override the target description XML specified by `Target::Arch`. 2 use crate::target::Target; 3 4 /// Target Extension - Override the target description XML specified by 5 /// `Target::Arch`. 6 /// 7 /// _Note:_ Unless you're working with a particularly dynamic, 8 /// runtime-configurable target, it's unlikely that you'll need to implement 9 /// this extension. 10 pub trait TargetDescriptionXmlOverride: Target { 11 /// Return the target's description XML file (`target.xml`). 12 /// 13 /// Refer to the 14 /// [target_description_xml](crate::arch::Arch::target_description_xml) 15 /// docs for more info. target_description_xml(&self) -> &str16 fn target_description_xml(&self) -> &str; 17 } 18 19 define_ext!( 20 TargetDescriptionXmlOverrideOps, 21 TargetDescriptionXmlOverride 22 ); 23