initial commit

This commit is contained in:
Rairosu
2024-01-24 13:07:27 +01:00
commit 06c785c352
115 changed files with 33162 additions and 0 deletions

67
README.md Normal file
View File

@@ -0,0 +1,67 @@
# BinaryNinja-rs
<img align="right" src="./under_construction.png" width="175" height="175">
> :warning: **These bindings are in a very early beta, only have partial support for the core APIs and are still actively under development. Compatibility _will_ break and conventions _will_ change! They are being used for core Binary Ninja features however, so we expect much of what is already there to be reliable enough to build on, just don't be surprised if your plugins/scripts need to hit a moving target.**
> :warning: This project runs on Rust version `stable-2022-12-15`
## Contributing
:warning: If you're thinking of contributing to the Rust API, we encourage you to join the #rust-api channel in our Slack: https://slack.binary.ninja, especially for large-effort PRs.
Add a "Contributing" section to the Rust API readme
## Dependencies
Having BinaryNinja installed (and your license registered)
Clang
Rust
## How to use
See [`examples/template`](examples/template) for more details.
### To write a plugin:
`Cargo.toml`:
```
[lib]
crate-type = ["cdylib"]
[dependencies]
binaryninja = {git = "https://github.com/Vector35/binaryninja-api.git", branch = "dev"}
```
See the `./examples/`. Plugin registration commands are in `binaryninja::command::*`
### To write a standalone executable:
`Cargo.toml`:
```
[dependencies]
binaryninja = { git = "https://github.com/Vector35/binaryninja-api.git", branch = "dev"}
```
All standalone binaries need to provide a `build.rs`.
See [`examples/template`](examples/template) for details.
## Docs
Docs can be found at https://dev-rust.binary.ninja/
---
#### Attribution
This project makes use of:
- [log] ([log license] - MIT)
- [rayon] ([rayon license] - MIT)
[log]: https://github.com/rust-lang/log
[log license]: https://github.com/rust-lang/log/blob/master/LICENSE-MIT
[rayon]: https://github.com/rayon-rs/rayon
[rayon license]: https://github.com/rayon-rs/rayon/blob/master/LICENSE-MIT