unicorn is free and unencumbered software released into the public domain. We can only accept your contributions if you dedicate it to the public domain as per the clauses of the LICENSE. We request you to please sign the declaration mentioned in CREDITS by adding your name and email to the list of contributors as part of your patch.
Please refrain from contributing patches that conflict with the LICENSE or that you do not own the right to dedicate to public domain.
- Install Rust
stable
(v1.14.0+) andnightly
(v1.15.0+). We recommend usingrustup
. - Install Make.
- Clone the repo.
To build the project in debug
mode, run:
$ make build
This will create the compiled binary at ./target/debug/unicorn
.
If you want a build with all optimizations in place, run this at the root of the repo:
$ make build-release
This will create the compiled binary at ./target/release/unicorn
.
If you want to build against nightly Rust, install rustup
with nightly
toolchain and run:
$ make nightly-build
This will create the compiled binary at ./target/debug/unicorn
.
To execute tests, run:
$ make test
To generate API documentation, run:
$ make doc