-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates Rust binding to the latest version.
Fixed build in disasmtool_lix.
- Loading branch information
Showing
27 changed files
with
1,888 additions
and
724 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# bddisasm-sys changelog | ||
|
||
## Unreleased | ||
|
||
### Changed | ||
|
||
- the crate is now a `no_std` crate (this adds a dependency on [cty](https://crates.io/crates/cty)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
# bddisasm-sys | ||
|
||
Rust bindings for [bddisasm](https://github.com/bitdefender/bddisasm). | ||
`no_std` Rust bindings for [bddisasm](https://github.com/bitdefender/bddisasm). | ||
|
||
See [bddisasm](https://crates.io/crates/bddisasm) if you're looking for a Rust wrapper for these bindings. | ||
|
||
## Requirements | ||
|
||
[bindgen](https://crates.io/crates/bindgen) is used to generate the bindings at build time. Because of this, users need to have `clang` installed. Check the [bindgen documentation](https://rust-lang.github.io/rust-bindgen/requirements.html) for more information. | ||
|
||
## Notes | ||
|
||
While this crate is `no_std`, the `bddisasm` library it links against depends on a C library because it needs `vsnprintf` and `memset`. It is possible to [work around this limitation](https://github.com/bitdefender/bddisasm#nd_vsnprintf_s-and-nd_memset), but this is not currently done for these bindings. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# bddisasm changelog | ||
|
||
## Unreleased | ||
|
||
### Added | ||
|
||
- implement `Decoder::decode_next_with_offset` | ||
- implement ``Decoder::decode_next_with_ip` | ||
- `OperandLookup` struct which makes working with operands easier | ||
- re-export `bddisasm_sys` as `ffi` | ||
- re-export commonly used items | ||
- Implement `as_*` and `is_*` accessors for the `OpInfo` enum | ||
|
||
### Changed | ||
|
||
- the crate is now a `no_std` crate | ||
- public types no longer implement `From` and no longer `panic!` when an unexpected value is encountered |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.