update rust crate

This commit is contained in:
2024-08-17 16:20:28 +02:00
parent 670fa334db
commit 2167e0512a
88 changed files with 20508 additions and 1741 deletions

View File

@@ -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]