Skip to content

Commit eb5079e

Browse files
committed
Upgrade capstone-sys to 0.9.1
X86 encoding features were removed with Capstone commit 3f9978c8
1 parent a9ecefe commit eb5079e

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ version = "0.4.0"
1414
travis-ci = { repository = "capstone-rust/capstone-rs" }
1515

1616
[dependencies]
17-
capstone-sys = "0.9.0"
17+
capstone-sys = "0.9.1"
1818

1919
[dev-dependencies]
2020
macho = "0.*"

src/arch/x86.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ use std::{cmp, fmt, slice};
1010
pub use capstone_sys::x86_insn_group as X86InsnGroup;
1111
pub use capstone_sys::x86_insn as X86Insn;
1212
pub use capstone_sys::x86_reg as X86Reg;
13-
pub use capstone_sys::cs_x86_encoding as X86Encoding;
1413

1514
pub use capstone_sys::x86_avx_bcast as X86AvxBcast;
1615
pub use capstone_sys::x86_sse_cc as X86SseCC;
@@ -147,11 +146,6 @@ impl<'a> X86InsnDetail<'a> {
147146
pub fn avx_rm(&self) -> X86AvxRm {
148147
self.0.avx_rm
149148
}
150-
151-
/// Encoding of instruction
152-
pub fn encoding(&self) -> X86Encoding {
153-
self.0.encoding
154-
}
155149
}
156150

157151
impl_PartialEq_repr_fields!(X86InsnDetail<'a> [ 'a ];
@@ -304,13 +298,6 @@ mod test {
304298
avx_zero_opmask: false,
305299
}
306300
; 8],
307-
encoding: cs_x86_encoding {
308-
modrm_offset: 0,
309-
disp_offset: 0,
310-
disp_size: 0,
311-
imm_offset: 0,
312-
imm_size: 0
313-
}
314301

315302
};
316303
let mut a2 = a1.clone();

0 commit comments

Comments
 (0)