rustup install nightly
If you are building for the stable release, uncomment the branch fields in Cargo.toml.
Make sure you build against the latest version of the binja api:
cargo updatecargo build --releaseln -s ${PWD}/target/release/libbinja_patterns.so ~/.binaryninja/plugins/mklink "%APPDATA%\Binary Ninja\plugins\binja_patterns.dll" "%CD%\target\release\binja_patterns.dll"New-Item -ItemType SymbolicLink -Path "$env:APPDATA\Binary Ninja\plugins\binja_patterns.dll" -Target "$PWD\target\release\binja_patterns.dll"