summaryrefslogtreecommitdiff
path: root/rust/examples/template/README.md
blob: f10f89c8e3d46de0bb13f48b8271f7a5959d26f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
[The only official method of providing linker arguments to a crate is through that crate's `build.rs`](https://github.com/rust-lang/cargo/issues/9554), thus this template.

Please see `Cargo.toml` for further configuration options.

### Plugins

Enable
```
[lib]
crate-type = ["cdylib"]
```
in  Cargo.toml`

### Standalone executables

All standalone executables should call both `binaryninja::headless::init()` and `binaryninja::headless::shutdown()`.