1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#![deny(bare_trait_objects)]
extern crate core;
extern crate bitflags;
#[cfg(feature = "serialization")]
extern crate serde;
#[cfg(feature = "serialization")]
#[macro_use]
extern crate serde_derive;
#[macro_use]
pub mod status;
pub mod ffi;
pub mod enums;
#[cfg(not(feature = "minimal"))]
pub mod formatter;
pub use enums::{
AddressWidth, BranchType, BroadcastMode, CPUFlag, CPUFlagAction, ConversionMode, DecoderMode,
Decorator, ElementType, ExceptionClass, Feature, FormatterStyle, ISAExt, ISASet,
InstructionAttributes, InstructionCategory, InstructionEncoding, InstructionSegment,
MachineMode, MaskMode, MemoryOperandType, Mnemonic, NumericBase, OpcodeMap, OperandAction,
OperandEncoding, OperandType, OperandVisibility, Padding, PrefixType, Register, RegisterClass,
RoundingMode, Signedness, SwizzleMode, Token, TOKEN_ADDRESS_ABS, TOKEN_ADDRESS_REL,
TOKEN_DECORATOR, TOKEN_DELIMITER, TOKEN_DISPLACEMENT, TOKEN_IMMEDIATE, TOKEN_INVALID,
TOKEN_MNEMONIC, TOKEN_PARENTHESIS_CLOSE, TOKEN_PARENTHESIS_OPEN, TOKEN_PREFIX, TOKEN_REGISTER,
TOKEN_SYMBOL, TOKEN_TYPECAST, TOKEN_USER, TOKEN_WHITESPACE,
};
pub use ffi::{
get_version, DecodedInstruction, DecodedOperand, Decoder, FormatterBuffer, FormatterContext,
FormatterToken, InstructionIterator,
};
#[cfg(not(feature = "minimal"))]
pub use formatter::{
Formatter, FormatterProperty, Hook, OutputBuffer, WrappedDecoratorFunc, WrappedGeneralFunc,
WrappedRegisterFunc,
};
pub use status::{Result, Status};