update rust crate
This commit is contained in:
@@ -3,16 +3,15 @@ use binaryninja::{
|
||||
command::register,
|
||||
disassembly::{DisassemblyTextLine, InstructionTextToken, InstructionTextTokenContents},
|
||||
flowgraph::{BranchType, EdgePenStyle, EdgeStyle, FlowGraph, FlowGraphNode, ThemeColor},
|
||||
string::BnString,
|
||||
};
|
||||
|
||||
fn test_graph(view: &BinaryView) {
|
||||
let graph = FlowGraph::new();
|
||||
|
||||
let disassembly_lines_a = vec![DisassemblyTextLine::from(vec![
|
||||
InstructionTextToken::new(BnString::new("Li"), InstructionTextTokenContents::Text),
|
||||
InstructionTextToken::new(BnString::new("ne"), InstructionTextTokenContents::Text),
|
||||
InstructionTextToken::new(BnString::new(" 1"), InstructionTextTokenContents::Text),
|
||||
InstructionTextToken::new("Li", InstructionTextTokenContents::Text),
|
||||
InstructionTextToken::new("ne", InstructionTextTokenContents::Text),
|
||||
InstructionTextToken::new(" 1", InstructionTextTokenContents::Text),
|
||||
])];
|
||||
|
||||
let node_a = FlowGraphNode::new(&graph);
|
||||
@@ -37,7 +36,7 @@ fn test_graph(view: &BinaryView) {
|
||||
&EdgeStyle::default(),
|
||||
);
|
||||
|
||||
view.show_graph_report("Rust Graph Title", graph);
|
||||
view.show_graph_report("Rust Graph Title", &graph);
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
|
||||
Reference in New Issue
Block a user