4ac95ad8cf
* explorer-api: move mix node client operations into a package * explorer-api: add port test for mixnodes with cache for results * explorer-api: add `humantime-serde` dependency * explorer-api: mix node API proxy This fixes mixed-content responses when using the mix node API from the network explorer. An in-memory cache protects the explorer API from over-querying the http API on the mix node. * explorer-api: adjust naming * explorer-api: fix up self refs * explorer-api: add method to state to get a mix node by identity key * explorer-api: add cached http resource to proxy the `/description` and `/stats` http api resources to allow the network explorer do https requests for the mix node api resource avoid mixed content requests * explorer-api: set default mix node cache time to 30 minutes * explorer-api: make clippy happy * explorer-api: add CORS with wide open configuration * explorer-api: fixes from review feedback * explorer-api: move port check test into separate function * explorer-api: use `rocket-cors` that is pinned in the `validator-api` and remove custom CORS handler
26 lines
893 B
TOML
26 lines
893 B
TOML
[package]
|
|
name = "explorer-api"
|
|
version = "0.1.0"
|
|
edition = "2018"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[dependencies]
|
|
isocountry = "0.3.2"
|
|
reqwest = "0.11.4"
|
|
rocket = {version = "0.5.0-rc.1", features=["json"] }
|
|
rocket_cors = { git="https://github.com/lawliet89/rocket_cors", rev="dfd3662c49e2f6fc37df35091cb94d82f7fb5915" }
|
|
serde = "1.0.126"
|
|
humantime-serde = "1.0"
|
|
serde_json = "1.0.66"
|
|
tokio = {version = "1.9.0", features = ["full"] }
|
|
chrono = { version = "0.4.19", features = ["serde"] }
|
|
schemars = { version = "0.8", features = ["preserve_order"] }
|
|
okapi = { version = "0.6.0-alpha-1", features = ["derive_json_schema"] }
|
|
rocket_okapi = "0.7.0-alpha-1"
|
|
log = "0.4.0"
|
|
pretty_env_logger = "0.4.0"
|
|
|
|
mixnet-contract = { path = "../common/mixnet-contract" }
|
|
validator-client = { path = "../common/client-libs/validator-client" }
|