diff options
| author | iximeow <me@iximeow.net> | 2021-05-07 00:28:58 -0700 | 
|---|---|---|
| committer | iximeow <me@iximeow.net> | 2021-05-07 00:28:58 -0700 | 
| commit | c75153a5efffcd2ac5f37864182e5108ea5f70ce (patch) | |
| tree | d87a9c6a4d01afe2e96da34350545c3a4f5c14b9 | |
| parent | f2c6e3c008ebdca831d78cbec7972974a6e6fd2a (diff) | |
bump yaxpeax-arch to 0.0.5 to drop the termion dep0.0.7
fix interface changes around YaxColors as well
| -rw-r--r-- | Cargo.toml | 4 | ||||
| -rw-r--r-- | src/armv7.rs | 16 | ||||
| -rw-r--r-- | src/armv8/a64.rs | 2 | 
3 files changed, 11 insertions, 11 deletions
| @@ -1,7 +1,7 @@  [package]  name = "yaxpeax-arm" -version = "0.0.6" +version = "0.0.7"  authors = [ "iximeow <me@iximeow.net>" ]  license = "0BSD"  repository = "http://git.iximeow.net/yaxpeax-arm/" @@ -9,7 +9,7 @@ description = "arm decoders for the yaxpeax project"  keywords = ["disassembler", "decoder", "armv7", "armv8"]  [dependencies] -yaxpeax-arch = { version = "0.0.4", default-features = false, features = [] } +yaxpeax-arch = { version = "0.0.5", default-features = false, features = [] }  bitvec = "0.19"  "serde" = { version = "1.0", optional = true }  "serde_derive" = { version = "1.0", optional = true } diff --git a/src/armv7.rs b/src/armv7.rs index bd4629e..b815218 100644 --- a/src/armv7.rs +++ b/src/armv7.rs @@ -22,7 +22,7 @@ impl Display for ConditionedOpcode {  pub struct NoContext; -fn reg_name_colorize<C: fmt::Display, Y: YaxColors<C>>(reg: Reg, colors: &Y) -> impl fmt::Display { +fn reg_name_colorize<Y: YaxColors>(reg: Reg, colors: &Y) -> impl fmt::Display {      match reg.number() {          0 => colors.register("r0"),          1 => colors.register("r1"), @@ -45,7 +45,7 @@ fn reg_name_colorize<C: fmt::Display, Y: YaxColors<C>>(reg: Reg, colors: &Y) ->  }  #[allow(non_snake_case)] -impl <T: fmt::Write, Color: fmt::Display, Y: YaxColors<Color>> ShowContextual<u32, NoContext, Color, T, Y> for Instruction { +impl <T: fmt::Write, Y: YaxColors> ShowContextual<u32, NoContext, T, Y> for Instruction {      fn contextualize(&self, colors: &Y, _address: u32, _context: Option<&NoContext>, out: &mut T) -> fmt::Result {          match self.opcode {              Opcode::IT => { @@ -381,7 +381,7 @@ impl <T: fmt::Write, Color: fmt::Display, Y: YaxColors<Color>> ShowContextual<u3      }  } -impl <T: fmt::Write, Color: fmt::Display, Y: YaxColors<Color>> Colorize<T, Color, Y> for ConditionedOpcode { +impl <T: fmt::Write, Y: YaxColors> Colorize<T, Y> for ConditionedOpcode {      fn colorize(&self, colors: &Y, out: &mut T) -> fmt::Result {          match self.0 {              Opcode::UDF | @@ -1464,7 +1464,7 @@ impl Display for Bank {      }  } -impl <T: fmt::Write, Color: fmt::Display, Y: YaxColors<Color>> Colorize<T, Color, Y> for Operand { +impl <T: fmt::Write, Y: YaxColors> Colorize<T, Y> for Operand {      fn colorize(&self, colors: &Y, f: &mut T) -> fmt::Result {          match self {              Operand::RegList(list) => { @@ -1636,7 +1636,7 @@ impl Instruction {      pub fn thumb(&self) -> bool { self.thumb }  } -fn format_reg_list<T: fmt::Write, C: fmt::Display, Y: YaxColors<C>>(f: &mut T, mut list: u16, colors: &Y) -> Result<(), fmt::Error> { +fn format_reg_list<T: fmt::Write, Y: YaxColors>(f: &mut T, mut list: u16, colors: &Y) -> Result<(), fmt::Error> {      write!(f, "{{")?;      let mut i = 0;      let mut tail = false; @@ -1657,7 +1657,7 @@ fn format_reg_list<T: fmt::Write, C: fmt::Display, Y: YaxColors<C>>(f: &mut T, m  }  #[allow(non_snake_case)] -fn format_shift<T: fmt::Write, C: fmt::Display, Y: YaxColors<C>>(f: &mut T, shift: RegShift, colors: &Y) -> Result<(), fmt::Error> { +fn format_shift<T: fmt::Write, Y: YaxColors>(f: &mut T, shift: RegShift, colors: &Y) -> Result<(), fmt::Error> {      match shift.into_shift() {          RegShiftStyle::RegImm(imm_shift) => {              if imm_shift.imm() == 0 && imm_shift.stype() == ShiftStyle::LSL { @@ -1673,7 +1673,7 @@ fn format_shift<T: fmt::Write, C: fmt::Display, Y: YaxColors<C>>(f: &mut T, shif  }  #[allow(non_snake_case)] -fn format_reg_shift_mem<T: fmt::Write, C: fmt::Display, Y: YaxColors<C>>(f: &mut T, Rd: Reg, shift: RegShift, add: bool, pre: bool, wback: bool, colors: &Y) -> Result<(), fmt::Error> { +fn format_reg_shift_mem<T: fmt::Write, Y: YaxColors>(f: &mut T, Rd: Reg, shift: RegShift, add: bool, pre: bool, wback: bool, colors: &Y) -> Result<(), fmt::Error> {      let op = if add { "" } else { "-" };      match (pre, wback) { @@ -1698,7 +1698,7 @@ fn format_reg_shift_mem<T: fmt::Write, C: fmt::Display, Y: YaxColors<C>>(f: &mut  }  #[allow(non_snake_case)] -fn format_reg_imm_mem<T: fmt::Write, C: fmt::Display, Y: YaxColors<C>>(f: &mut T, Rn: Reg, imm: u16, add: bool, pre: bool, wback: bool, colors: &Y) -> Result<(), fmt::Error> { +fn format_reg_imm_mem<T: fmt::Write, Y: YaxColors>(f: &mut T, Rn: Reg, imm: u16, add: bool, pre: bool, wback: bool, colors: &Y) -> Result<(), fmt::Error> {      if imm != 0 {          let op = if add { "" } else { "-" }; diff --git a/src/armv8/a64.rs b/src/armv8/a64.rs index 65d513a..11b6499 100644 --- a/src/armv8/a64.rs +++ b/src/armv8/a64.rs @@ -156,7 +156,7 @@ impl yaxpeax_arch::Instruction for Instruction {  pub struct NoContext; -impl <T: fmt::Write, Color: fmt::Display, Y: YaxColors<Color>> ShowContextual<u64, NoContext, Color, T, Y> for Instruction { +impl <T: fmt::Write, Y: YaxColors> ShowContextual<u64, NoContext, T, Y> for Instruction {      fn contextualize(&self, _colors: &Y, _address: u64, _context: Option<&NoContext>, out: &mut T) -> fmt::Result {          write!(out, "{}", self)      } | 
