From 70be4645d30c8017524ae2b444ac7e0c0a8448a6 Mon Sep 17 00:00:00 2001 From: KyleMiles Date: Tue, 29 Jun 2021 11:35:06 -0400 Subject: Rust API : No longer update to latest cargo nightly; Add link args back to -sys to reduce build errors --- rust/examples/template/README.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'rust/examples/template/README.md') diff --git a/rust/examples/template/README.md b/rust/examples/template/README.md index f10f89c8..998a9cd2 100644 --- a/rust/examples/template/README.md +++ b/rust/examples/template/README.md @@ -1,17 +1,19 @@ +# Template + [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 +## Plugins Enable ``` [lib] crate-type = ["cdylib"] ``` -in Cargo.toml` - -### Standalone executables +in `Cargo.toml`. -All standalone executables should call both `binaryninja::headless::init()` and `binaryninja::headless::shutdown()`. +## Standalone executables +All standalone executables should call both `binaryninja::headless::init()` and `binaryninja::headless::shutdown()` (see [`src/main.rs`](src/main.rs)). +Standalone executables will fail to link if you do not provide a `build.rs`. The one provided here should work. -- cgit v1.3.1