Add top-level feature to enable Milagro (#1428)

## Proposed Changes

In the continuing war against unportable binaries I figured we should have an option to enable building the Lighthouse binary itself with Milagro. This PR adds a `milagro` feature that can be used with `cargo install --path lighthouse --features milagro --force --locked`. The BLS library in-use will also show up under `lighthouse --version` like this:

```
Lighthouse 0.1.2-7d8acc20a(modified)
BLS Library: milagro
```

Future work: add other cool stuff like the compiler version and CPU target to `--version`.
This commit is contained in:
Michael Sproul
2020-08-01 05:52:55 +00:00
parent d0f1a3e59f
commit 3ea01ac26b
3 changed files with 20 additions and 0 deletions

1
Cargo.lock generated
View File

@@ -563,6 +563,7 @@ dependencies = [
[[package]]
name = "blst"
version = "0.1.1"
source = "git+https://github.com/sigp/blst.git?rev=dad1ad0cd22861e5773bee177bee4e1684792605#dad1ad0cd22861e5773bee177bee4e1684792605"
dependencies = [
"cc",
"glob",