f26adc0a36
## Issue Addressed
NA
## Proposed Changes
- Moves the git-based versioning we were doing into the `lighthouse_version` crate in `common`.
- Removes the `beacon_node/version` crate, replacing it with `lighthouse_version`.
- Bumps the version to `v0.2.0`.
## Additional Info
There are now two types of version string:
1. `const VERSION: &str = Lighthouse/v0.2.0-1419501f2+`
1. `version_with_platform() = Lighthouse/v0.2.0-1419501f2+/x86_64-linux`
(1) is handy cause it's a `const` and shorter. (2) has platform info so it's more useful. Note that the plus-sign (`+`) indicates the the git commit is dirty (it used to be `(modified)` but I had to shorten it to fit into graffiti).
These version strings are now included on:
- `lighthouse --version`
- `lcli --version`
- `curl localhost:5052/node/version`
- p2p messages when we communicate our version
You can update the version by changing this constant (version is not related to a `Cargo.toml`):
b9ad7102d5/common/lighthouse_version/src/lib.rs (L4-L15)
59 lines
1.8 KiB
TOML
59 lines
1.8 KiB
TOML
[package]
|
|
name = "beacon_chain"
|
|
version = "0.1.2"
|
|
authors = ["Paul Hauner <paul@paulhauner.com>"]
|
|
edition = "2018"
|
|
|
|
[features]
|
|
default = ["participation_metrics"]
|
|
write_ssz_files = [] # Writes debugging .ssz files to /tmp during block processing.
|
|
participation_metrics = [] # Exposes validator participation metrics to Prometheus.
|
|
|
|
[dev-dependencies]
|
|
int_to_bytes = { path = "../../consensus/int_to_bytes" }
|
|
|
|
[dependencies]
|
|
eth2_config = { path = "../../common/eth2_config" }
|
|
merkle_proof = { path = "../../consensus/merkle_proof" }
|
|
store = { path = "../store" }
|
|
parking_lot = "0.11.0"
|
|
lazy_static = "1.4.0"
|
|
smallvec = "1.4.1"
|
|
lighthouse_metrics = { path = "../../common/lighthouse_metrics" }
|
|
log = "0.4.8"
|
|
operation_pool = { path = "../operation_pool" }
|
|
rayon = "1.3.0"
|
|
serde = "1.0.110"
|
|
serde_derive = "1.0.110"
|
|
serde_yaml = "0.8.11"
|
|
serde_json = "1.0.52"
|
|
slog = { version = "2.5.2", features = ["max_level_trace"] }
|
|
slog-term = "2.6.0"
|
|
sloggers = "1.0.0"
|
|
slot_clock = { path = "../../common/slot_clock" }
|
|
eth2_hashing = "0.1.0"
|
|
eth2_ssz = "0.1.2"
|
|
eth2_ssz_types = { path = "../../consensus/ssz_types" }
|
|
eth2_ssz_derive = "0.1.0"
|
|
state_processing = { path = "../../consensus/state_processing" }
|
|
tree_hash = "0.1.0"
|
|
types = { path = "../../consensus/types" }
|
|
tokio = "0.2.21"
|
|
eth1 = { path = "../eth1" }
|
|
websocket_server = { path = "../websocket_server" }
|
|
futures = "0.3.5"
|
|
genesis = { path = "../genesis" }
|
|
integer-sqrt = "0.1.3"
|
|
rand = "0.7.3"
|
|
proto_array = { path = "../../consensus/proto_array" }
|
|
lru = "0.5.1"
|
|
tempfile = "3.1.0"
|
|
bitvec = "0.17.4"
|
|
bls = { path = "../../crypto/bls" }
|
|
safe_arith = { path = "../../consensus/safe_arith" }
|
|
fork_choice = { path = "../../consensus/fork_choice" }
|
|
environment = { path = "../../lighthouse/environment" }
|
|
bus = "2.2.3"
|
|
derivative = "2.1.1"
|
|
itertools = "0.9.0"
|