lighthouse/beacon_node
Michael Sproul 47b22d5256 Allow compilation with no slasher backend (#3888)
## Proposed Changes

Allowing compiling without MDBX by running:

```bash
CARGO_INSTALL_EXTRA_FLAGS="--no-default-features" make
```

The reasons to do this are several:

- Save compilation time if the slasher won't be used
- Work around compilation errors in slasher backend dependencies (our pinned version of MDBX is currently not compiling on FreeBSD with certain compiler versions).

## Additional Info

When I opened this PR we were using resolver v1 which [doesn't disable default features in dependencies](https://doc.rust-lang.org/cargo/reference/features.html#resolver-version-2-command-line-flags), and `mdbx` is default for the `slasher` crate. Even after the resolver got changed to v2 in #3697 compiling with `--no-default-features` _still_ wasn't turning off the slasher crate's default features, so I added `default-features = false` in all the places we depend on it.

Co-authored-by: Michael Sproul <micsproul@gmail.com>
2023-02-28 02:20:49 +00:00
..
beacon_chain Allow compilation with no slasher backend (#3888) 2023-02-28 02:20:49 +00:00
builder_client Merge remote-tracking branch 'origin/unstable' into capella 2023-01-12 16:22:00 +11:00
client Allow compilation with no slasher backend (#3888) 2023-02-28 02:20:49 +00:00
eth1 exchangeCapabilities & Capella Readiness Logging (#3918) 2023-01-31 18:26:23 +01:00
execution_layer Suggestions for Capella execution_layer (#3983) 2023-02-17 11:58:33 +11:00
genesis Fix the new BLS to execution change test 2023-01-25 15:47:07 +11:00
http_api Merge branch 'capella' into unstable 2023-02-22 10:25:45 +11:00
http_metrics Support IPv6 in BN and VC HTTP APIs (#3104) 2022-03-24 00:04:49 +00:00
lighthouse_network Register disconnected peers when temporarily banned (#4001) 2023-02-21 23:45:44 +00:00
network Fix metric (#4020) 2023-02-22 09:46:45 +11:00
operation_pool Fix Capella schema downgrades (#4004) 2023-02-20 17:50:42 +11:00
src Self rate limiting dev flag (#3928) 2023-02-08 02:18:53 +00:00
store Fix Capella schema downgrades (#4004) 2023-02-20 17:50:42 +11:00
tests Altair consensus changes and refactors (#2279) 2021-07-09 06:15:32 +00:00
timer Use async code when interacting with EL (#3244) 2022-07-03 05:36:50 +00:00
Cargo.toml Allow compilation with no slasher backend (#3888) 2023-02-28 02:20:49 +00:00