322dfbcd78
* Very primitive test of the Client API * [WIP] getting rid of request * Add support for redirects. * Remove CpuPool from `fetch::Client`. * Adapt code to API changes and fix tests. * Use reference counter to stop background thread. On `clone` the counter is incremented, on `drop` decremented. Once 0 we send `None` over the channel, expecting the background thread to end. * Fix tests. * Comment. * Change expect messages. * Use local test server for testing fetch client. * Ensure max_size also in BodyReader. * Replace `Condvar` with `sync_channel`. * Re-export `url::Url` from `fetch` crate. * Remove spaces. * Use random ports in local test server.
19 lines
368 B
TOML
19 lines
368 B
TOML
[package]
|
|
description = "Fetch current ETH price"
|
|
homepage = "http://parity.io"
|
|
license = "GPL-3.0"
|
|
name = "price-info"
|
|
version = "1.11.0"
|
|
authors = ["Parity Technologies <admin@parity.io>"]
|
|
|
|
[dependencies]
|
|
fetch = { path = "../util/fetch" }
|
|
futures = "0.1"
|
|
futures-cpupool = "0.1"
|
|
log = "0.3"
|
|
serde_json = "1.0"
|
|
|
|
[dev-dependencies]
|
|
hyper = "0.11"
|
|
parking_lot = "0.5"
|