summaryrefslogtreecommitdiff
path: root/rust/src
AgeCommit message (Collapse)Author
2025-06-05Fix and add code docs regarding FileMetadata view types vs view namesMason Reed
2025-05-31[Rust] Retrieve architecture if missing from location passed to ↵Mason Reed
`MediumLevelILFunction::instruction_from_index` Fixes https://github.com/Vector35/binaryninja-api/issues/6876
2025-05-30[Rust] Add `Variable::to_register` helper functionMason Reed
Makes it simpler to get the register from a variable (if it is a register variable)
2025-05-30[Rust] Finish out the `PossibleValueSet` implementation to include range and ↵Mason Reed
lists of values This requires us to allocate on the rust side of the API, this is quite easy to mess up but the usage of it is limited.
2025-05-30[Rust] Express expression vs instruction index for MLIL and HLIL APIsMason Reed
This was done to fix unintended behavior using an instruction or expression index in place of the other. Fixes https://github.com/Vector35/binaryninja-api/issues/6897
2025-05-30[Rust] Map LLIL_UNDEF to LowLevelILExpressionKind::UndefMark Rowe
2025-05-30[Rust] Add support for LLIL_SEPARATE_PARAM_LIST_SSAMark Rowe
2025-05-30[Rust] Add support for LLIL_REG_PHI / LLIL_MEM_PHI / LLIL_FLAG_PHIMark Rowe
2025-05-30[Rust] Support retrieving use / def of SSA registers in LLILMark Rowe
2025-05-30[Rust] Add LowLevelILInstruction::basic_block / ↵Mark Rowe
LowLevelILFunction::basic_block_containing_index
2025-05-30[Rust] Have LowLevelILBlock derive Clone rather than manually implementing itMark Rowe
This is possible now that FunctionMutability and FunctionForm require Copy, and fixes an existing clippy warning about the non-canonical implementation of `clone` on a `Copy` type.
2025-05-30[Rust] Allow mapping between SSA and non-SSA forms of instructions / expressionsMark Rowe
2025-05-30[Rust] Make LowLevelIL{Expression,Instruction} implement CopyMark Rowe
2025-05-22Add TypeContainer::GetEmptyTypeContainerGlenn Smith
2025-05-19Implement function level metadataBrandon Miller
2025-05-17Add `BNIsMemoryMapActivated` APIMason Reed
So that users of the memory map API can know if a view has activated the memory map and adjust behavior accordingly.
2025-05-12[Rust] Misc cleanup regarding c stringsMason Reed
2025-05-12[Rust] Keep `TypeArchiveSnapshotId` as a c_str when passing to coreMason Reed
2025-05-12[Rust] Add `Platform::get_type_library_by_name`Mason Reed
2025-05-12[Rust] Enclose the `BnString` with "" in the `Debug` implMason Reed
2025-05-12[Rust] Misc type library cleanupMason Reed
2025-05-12[Rust] Add `Display` and `Debug` impl to `Metadata`Mason Reed
2025-05-12[Rust] Make TypeLibrary ref countedMason Reed
And some other misc cleanup
2025-05-12[Rust] Misc cleanupMason Reed
2025-05-12[Rust] Add missing instruction types to MLILMason Reed
2025-05-12[Rust] Simplify operand list retrieval for MLIL and HLILMason Reed
2025-05-12[Rust] Remove useless alias functionMason Reed
2025-05-12[Rust] Don't panic when a Rust plug-in encounters an unhandled MLIL instructionMark Rowe
`MediumLevelILInstruction` does not yet handle `MLIL_CALL_OUTPUT`, `MLIL_CALL_PARAM`, `MLIL_CALL_PARAM_SSA`, `MLIL_CALL_OUTPUT_SSA`, `MLIL_MEMORY_INTRINSIC_OUTPUT_SSA`, or `MLIL_MEMORY_INTRINSIC_SSA`. Map these to a `NotYetImplemented` kind rather than panicking since a panic takes down the entire app.
2025-05-12[Rust] Flowgraph API improvementsMason Reed
2025-05-12[Rust] Interaction handler API fixesMason Reed
2025-05-12[Rust] Misc cleanupMason Reed
2025-05-12[Rust] Consult secrets provider when trying to connect to a remoteMason Reed
2025-05-12[Rust] Move `BinaryReader` and `BinaryWriter` into `binary_view` moduleMason Reed
Both of these are associated directly to a `BinaryView` and only exist as accessors onto it.
2025-05-12[Rust] Remove `NonSSAVariant` bound from `LowLevelILFunction`Mason Reed
We don't do enough with the lifted il != non lifted il to justify the bound. This makes modifying IL much less work as the historical lifted il bound is gone.
2025-05-12[Rust] Add Assert and ForceVersion LLIL operationsMason Reed
2025-05-12[Rust] Add `CoreRegister` name to the `Debug` implMason Reed
2025-05-12[Rust] Remove unneeded mut from Architecture trait signaturesMason Reed
These are never expressed, just adds another unneeded constraint on the impl
2025-05-12[Rust] Support SSA form properly in low level ILMason Reed
2025-05-12[Rust] Fix misc typosMason Reed
2025-05-12[Rust] Flow graph API improvementsMason Reed
- Fixed some misc bugs - Added real FlowGraphEdge type - Added accessors for node edges - Added interaction handler to the flow graph example to dump the flow graph to stdin - Split out the flow graph API into smaller files
2025-05-12[Rust] Misc cleanupMason Reed
2025-05-12[Rust] Implement custom interactive handlerrbran
2025-05-12[Rust] Add doc comments for undo actionsMason Reed
2025-05-12[Rust] Implement `LanguageRepresentation` and `LineFormatter`rbran
2025-05-12[Rust] Improve `FileAccessor`Mason Reed
- Add unit tests - Expose read/write functionality - Add some much needed documentation when passing to memory map
2025-05-12[Rust] Metadata API improvementsMason Reed
- Don't use Result for some or none values - Fix freeing of key value store objects - Improve ergonomics a little bit - Add unit tests
2025-05-12[Rust] Construct a `SectionBuilder` from a `Section`Mason Reed
2025-05-12[Rust] Correct impls for `Section`Mason Reed
Previously we were comparing the section raw pointer and hashing it
2025-05-12[Rust] Retain core string for section stringsMason Reed
Might want to key off the section string in the core, so we should give it back as a `BnString`
2025-05-12[Rust] Reduce usage of `IntoCStr` in function signaturesMason Reed
This is being done to reduce complexity in function signatures, specifically many of the strings we are passing ultimately should be new types themselves instead of "just strings", things such as type ids. Another place which was confusing was dealing with filesystem related APIs, this commit turns most of those params into a stricter `Path` type. This is bringing the rust api more inline with both python and C++, where the wrapper eagerly converts the string into the languages standard string type. Special consideration must be made for symbols or other possible non utf-8 objects. This commit will be followed up with one that adds the `IntoCStr` bound on API's we want to keep as invalid utf-8 so we can for example, get section by name on a section with invalid utf-8.