From 2c344cf7a77031021e346fd8649de2b7715b5c45 Mon Sep 17 00:00:00 2001 From: KyleMiles Date: Mon, 28 Jun 2021 22:13:43 -0400 Subject: Resolves #2521; Rust API Linking Errors --- rust/examples/template/README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 rust/examples/template/README.md (limited to 'rust/examples/template/README.md') diff --git a/rust/examples/template/README.md b/rust/examples/template/README.md new file mode 100644 index 00000000..f10f89c8 --- /dev/null +++ b/rust/examples/template/README.md @@ -0,0 +1,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()`. + -- cgit v1.3.1