2019-03-01 01:45:01 +00:00
|
|
|
[package]
|
|
|
|
name = "client"
|
|
|
|
version = "0.1.0"
|
|
|
|
authors = ["Age Manning <Age@AgeManning.com>"]
|
|
|
|
edition = "2018"
|
|
|
|
|
|
|
|
[dependencies]
|
|
|
|
beacon_chain = { path = "../beacon_chain" }
|
2019-09-14 19:41:35 +00:00
|
|
|
store = { path = "../store" }
|
2019-03-01 01:45:01 +00:00
|
|
|
network = { path = "../network" }
|
2019-08-23 05:53:53 +00:00
|
|
|
eth2-libp2p = { path = "../eth2-libp2p" }
|
2019-03-19 12:47:58 +00:00
|
|
|
rpc = { path = "../rpc" }
|
First RESTful HTTP API (#399)
* Added generated code for REST API.
- Created a new crate rest_api, which will adapt the openapi generated code to Lighthouse
- Committed automatically generated code from openapi-generator-cli (via docker). Should hopfully not have to modify this at all, and do all changes in the rest_api crate.
* Removed openapi generated code, because it was the rust client, not the rust server.
* Added the correct rust-server code, automatically generated from openapi.
* Added generated code for REST API.
- Created a new crate rest_api, which will adapt the openapi generated code to Lighthouse
- Committed automatically generated code from openapi-generator-cli (via docker). Should hopfully not have to modify this at all, and do all changes in the rest_api crate.
* Removed openapi generated code, because it was the rust client, not the rust server.
* Added the correct rust-server code, automatically generated from openapi.
* Included REST API in configuratuion.
- Started adding the rest_api into the beacon node's dependencies.
- Set up configuration file for rest_api and integrated into main client config
- Added CLI flags for REST API.
* Futher work on REST API.
- Adding the dependencies to rest_api crate
- Created a skeleton BeaconNodeService, which will handle /node requests.
- Started the rest_api server definition, with the high level request handling logic.
* Added generated code for REST API.
- Created a new crate rest_api, which will adapt the openapi generated code to Lighthouse
- Committed automatically generated code from openapi-generator-cli (via docker). Should hopfully not have to modify this at all, and do all changes in the rest_api crate.
* Removed openapi generated code, because it was the rust client, not the rust server.
* Added the correct rust-server code, automatically generated from openapi.
* Included REST API in configuratuion.
- Started adding the rest_api into the beacon node's dependencies.
- Set up configuration file for rest_api and integrated into main client config
- Added CLI flags for REST API.
* Futher work on REST API.
- Adding the dependencies to rest_api crate
- Created a skeleton BeaconNodeService, which will handle /node requests.
- Started the rest_api server definition, with the high level request handling logic.
* WIP: Restructured REST API to use hyper_router and separate services.
* WIP: Fixing rust for REST API
* WIP: Fixed up many bugs in trying to get router to compile.
* WIP: Got the beacon_node to compile with the REST changes
* Basic API works!
- Changed CLI flags from rest-api* to api*
- Fixed port cli flag
- Tested, works over HTTP
* WIP: Moved things around so that we can get state inside the handlers.
* WIP: Significant API updates.
- Started writing a macro for getting the handler functions.
- Added the BeaconChain into the type map, gives stateful access to the beacon state.
- Created new generic error types (haven't figured out yet), to reduce code duplication.
- Moved common stuff into lib.rs
* WIP: Factored macros, defined API result and error.
- did more logging when creating HTTP responses
- Tried moving stuff into macros, but can't get macros in macros to compile.
- Pulled out a lot of placeholder code.
* Fixed macros so that things compile.
* Cleaned up code.
- Removed unused imports
- Removed comments
- Addressed all compiler warnings.
- Ran cargo fmt.
* Removed auto-generated OpenAPI code.
* Addressed Paul's suggestions.
- Fixed spelling mistake
- Moved the simple macros into functions, since it doesn't make sense for them to be macros.
- Removed redundant code & inclusions.
* Removed redundant validate_request function.
* Included graceful shutdown in Hyper server.
* Fixing the dropped exit_signal, which prevented the API from starting.
* Wrapped the exit signal, to get an API shutdown log line.
2019-07-31 08:29:41 +00:00
|
|
|
rest_api = { path = "../rest_api" }
|
2019-09-14 14:34:03 +00:00
|
|
|
websocket_server = { path = "../websocket_server" }
|
2019-10-30 01:22:18 +00:00
|
|
|
prometheus = "0.7.0"
|
2019-03-01 01:45:01 +00:00
|
|
|
types = { path = "../../eth2/types" }
|
2019-10-30 01:22:18 +00:00
|
|
|
tree_hash = "0.1.0"
|
2019-06-09 00:21:50 +00:00
|
|
|
eth2_config = { path = "../../eth2/utils/eth2_config" }
|
2019-03-01 01:45:01 +00:00
|
|
|
slot_clock = { path = "../../eth2/utils/slot_clock" }
|
2019-10-30 01:22:18 +00:00
|
|
|
serde = "1.0.102"
|
|
|
|
serde_derive = "1.0.102"
|
|
|
|
error-chain = "0.12.1"
|
|
|
|
serde_yaml = "0.8.11"
|
|
|
|
slog = { version = "2.5.2", features = ["max_level_trace"] }
|
|
|
|
slog-async = "2.3.0"
|
|
|
|
slog-json = "2.3.0"
|
|
|
|
tokio = "0.1.22"
|
|
|
|
clap = "2.33.0"
|
|
|
|
dirs = "2.0.2"
|
|
|
|
exit-future = "0.1.4"
|
|
|
|
futures = "0.1.29"
|
|
|
|
reqwest = "0.9.22"
|
|
|
|
url = "2.1.0"
|