2015-09-07 16:11:00 -04:00
|
|
|
[package]
|
2015-09-12 15:31:26 -04:00
|
|
|
name = "steven"
|
2015-09-07 16:11:00 -04:00
|
|
|
version = "0.0.1"
|
|
|
|
authors = [ "Thinkofdeath <thinkofdeath@spigotmc.org>" ]
|
|
|
|
|
2016-12-09 09:32:02 -05:00
|
|
|
[profile.dev]
|
|
|
|
# Steven runs horrendously slow with no optimizations, and often freezes.
|
|
|
|
# However, building with full -O3 optimizations takes too long for a debug build.
|
|
|
|
# Use an -O1 optimization level strikes a good compromise between build and program performance.
|
|
|
|
opt-level = 1
|
|
|
|
|
2015-09-07 16:11:00 -04:00
|
|
|
[dependencies]
|
2018-10-03 21:28:05 -04:00
|
|
|
sha-1 = "0.8.0"
|
2018-09-29 16:56:52 -04:00
|
|
|
sdl2 = "0.31.0"
|
2018-09-30 16:53:22 -04:00
|
|
|
byteorder = "1.2.6"
|
Replace hyper with reqwest (#7)
An old version of hyper was used before (0.8.0), in the process of updating to hyper 0.12.11, found this higher-level replacement/wrapper, reqwest 0.9.4 which is simpler to use than the latest hyper and serves the purpose of a simple HTTP client well
* Begin updating to hyper 0.12.11
https://github.com/iceiix/steven/issues/4#issuecomment-425759778
* Use type variables for hyper::Client
* Fix setting header syntax, Content-Type: application/json, 17->13
* Parse strings into URLs with url.parse::<hyper::Uri>().unwrap()
https://github.com/hyperium/hyper/blob/b20971cb4e5f158844aec5829eea1854e5b7d4b6/examples/client.rs#L25
* Use hyper::Request::post() then client.request() since client.post() removed
* wait() on the ResponseFuture to get the Result
* try! to unwrap the Result
* status() is now a method
* Concatenate body chunks unwrap into bytes, then parse JSON from byte slice, instead of from_reader which didn't compile
* Replace send() with wait() on ResponseFuture
* Parse HeaderValue to u64
* Slices implement std::io::Read trait
* Read into_bytes() instead of read_to_end()
* Disable boxed logger for now to workaround 'expected function, found macro'
* Remove unnecessary mutability, warnings
* Hack to parse twice to avoid double move
* Use hyper-rustls pure Rust implementation for TLS for HTTPS in hyper
* Start converting to reqwest: add Protocol::Error and reqwest::Error conversion
* Use reqwest, replacing hyper, in protocol
* Convert resources to use reqwest instead of hyper
* Convert skin download to reqwest, instead of hyper
* Remove hyper
* Revert unnecessary variable name change req/body to reduce diff
* Revert unnecessary whitespace change to reduce diff, align indentation on .
* Fix authenticating to server, wrong method and join URL
* Update Cargo.lock
2018-10-27 20:03:34 -04:00
|
|
|
reqwest = "0.9.4"
|
2018-09-30 22:16:25 -04:00
|
|
|
serde = "1.0.79"
|
2018-10-23 21:47:21 -04:00
|
|
|
serde_json = "1.0.31"
|
2018-09-30 19:19:24 -04:00
|
|
|
flate2 = "1.0.2"
|
2018-09-30 19:20:33 -04:00
|
|
|
zip = "0.4.2"
|
2018-09-30 20:21:05 -04:00
|
|
|
image = "0.20.0"
|
2018-09-30 22:05:20 -04:00
|
|
|
rand = "0.5.5"
|
2018-09-30 21:14:36 -04:00
|
|
|
hex = "0.3.2"
|
2018-09-30 20:58:40 -04:00
|
|
|
base64 = "0.9.3"
|
2018-10-28 22:45:57 -04:00
|
|
|
log = { version = "0.4.5", features = ["std"] }
|
2018-10-27 21:11:26 -04:00
|
|
|
cgmath = "0.16.1"
|
2018-09-30 20:11:22 -04:00
|
|
|
lazy_static = "1.1.0"
|
2018-10-27 21:11:26 -04:00
|
|
|
collision = "0.18.0"
|
2018-10-27 22:56:34 -04:00
|
|
|
openssl = "0.10.15"
|
2016-03-26 10:24:26 -04:00
|
|
|
# clippy = "*"
|
2015-09-07 16:11:00 -04:00
|
|
|
|
|
|
|
[dependencies.steven_gl]
|
|
|
|
path = "./gl"
|
|
|
|
version = "0"
|
2015-09-10 06:49:41 -04:00
|
|
|
|
2016-03-16 14:15:13 -04:00
|
|
|
[dependencies.steven_resources]
|
|
|
|
path = "./resources"
|
|
|
|
version = "0"
|
2016-04-03 13:26:52 -04:00
|
|
|
|
|
|
|
[dependencies.steven_blocks]
|
|
|
|
path = "./blocks"
|
|
|
|
version = "0"
|
2016-04-03 15:53:40 -04:00
|
|
|
|
|
|
|
[dependencies.steven_shared]
|
|
|
|
path = "./shared"
|
|
|
|
version = "0"
|