From 2fd8fa23219b57d69553398abec5ba28742f6c41 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 8 Apr 2018 15:48:38 +0200 Subject: [PATCH 001/163] chore: Initial commit From 106ade6e41ff0abe269fca99e332d404b2c549c7 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 8 Apr 2018 15:48:49 +0200 Subject: [PATCH 002/163] chore: Add bootstrapped Cargo project --- .gitignore | 3 + Cargo.lock | 1811 ++++++++++++++++++++++++++++++++++++++++++++++++++++ Cargo.toml | 11 + 3 files changed, 1825 insertions(+) create mode 100644 .gitignore create mode 100644 Cargo.lock create mode 100644 Cargo.toml diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..548206b0b --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +.envrc +/target/ +**/*.rs.bk diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 000000000..ea9841b43 --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,1811 @@ +[[package]] +name = "actix" +version = "0.5.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "actix_derive 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", + "bitflags 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", + "bytes 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", + "crossbeam-channel 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", + "failure 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", + "futures 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", + "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", + "log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", + "skeptic 0.13.2 (registry+https://github.com/rust-lang/crates.io-index)", + "smallvec 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-core 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-io 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-signal 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", + "trust-dns-resolver 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)", + "uuid 0.6.2 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "actix-web" +version = "0.5.0-dev" +source = "git+https://github.com/actix/actix-web.git#89bf12605d2856ff9d845b3af8a643f1fa3fddc2" +dependencies = [ + "actix 0.5.5 (registry+https://github.com/rust-lang/crates.io-index)", + "base64 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", + "bitflags 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", + "brotli2 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)", + "byteorder 1.2.2 (registry+https://github.com/rust-lang/crates.io-index)", + "bytes 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", + "cookie 0.10.1 (registry+https://github.com/rust-lang/crates.io-index)", + "encoding 0.2.33 (registry+https://github.com/rust-lang/crates.io-index)", + "failure 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", + "flate2 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", + "futures 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", + "futures-cpupool 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)", + "h2 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", + "http 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", + "http-range 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", + "httparse 1.2.4 (registry+https://github.com/rust-lang/crates.io-index)", + "language-tags 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", + "lazy_static 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", + "log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", + "mime 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", + "mime_guess 2.0.0-alpha.4 (registry+https://github.com/rust-lang/crates.io-index)", + "mio 0.6.14 (registry+https://github.com/rust-lang/crates.io-index)", + "net2 0.2.32 (registry+https://github.com/rust-lang/crates.io-index)", + "num_cpus 1.8.0 (registry+https://github.com/rust-lang/crates.io-index)", + "percent-encoding 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", + "rand 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", + "regex 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)", + "serde 1.0.37 (registry+https://github.com/rust-lang/crates.io-index)", + "serde_json 1.0.13 (registry+https://github.com/rust-lang/crates.io-index)", + "serde_urlencoded 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)", + "sha1 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)", + "skeptic 0.13.2 (registry+https://github.com/rust-lang/crates.io-index)", + "smallvec 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)", + "time 0.1.39 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-core 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-io 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", + "trust-dns-resolver 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)", + "url 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)", + "version_check 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "actix_derive" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "quote 0.3.15 (registry+https://github.com/rust-lang/crates.io-index)", + "rand 0.3.22 (registry+https://github.com/rust-lang/crates.io-index)", + "syn 0.11.11 (registry+https://github.com/rust-lang/crates.io-index)", + "version_check 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "aho-corasick" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "memchr 2.0.1 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "arrayvec" +version = "0.4.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "nodrop 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "atty" +version = "0.2.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", + "termion 1.5.1 (registry+https://github.com/rust-lang/crates.io-index)", + "winapi 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "backtrace" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "backtrace-sys 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)", + "cfg-if 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", + "dbghelp-sys 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", + "kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", + "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", + "rustc-demangle 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", + "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "backtrace" +version = "0.3.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "backtrace-sys 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)", + "cfg-if 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", + "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", + "rustc-demangle 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", + "winapi 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "backtrace-sys" +version = "0.1.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "cc 1.0.9 (registry+https://github.com/rust-lang/crates.io-index)", + "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "base64" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "byteorder 1.2.2 (registry+https://github.com/rust-lang/crates.io-index)", + "safemem 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "base64" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "byteorder 1.2.2 (registry+https://github.com/rust-lang/crates.io-index)", + "safemem 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "bitflags" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "bitflags" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "brotli-sys" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "cc 1.0.9 (registry+https://github.com/rust-lang/crates.io-index)", + "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "brotli2" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "brotli-sys 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)", + "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "bytecount" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "byteorder" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "bytes" +version = "0.4.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "byteorder 1.2.2 (registry+https://github.com/rust-lang/crates.io-index)", + "iovec 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "cargo_metadata" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "error-chain 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)", + "semver 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)", + "serde 1.0.37 (registry+https://github.com/rust-lang/crates.io-index)", + "serde_derive 1.0.37 (registry+https://github.com/rust-lang/crates.io-index)", + "serde_json 1.0.13 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "cc" +version = "1.0.9" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "cfg-if" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "chrono" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "num-integer 0.1.36 (registry+https://github.com/rust-lang/crates.io-index)", + "num-traits 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", + "time 0.1.39 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "converse" +version = "0.1.0" +dependencies = [ + "actix 0.5.5 (registry+https://github.com/rust-lang/crates.io-index)", + "actix-web 0.5.0-dev (git+https://github.com/actix/actix-web.git)", + "chrono 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", + "diesel 1.2.0 (registry+https://github.com/rust-lang/crates.io-index)", + "env_logger 0.5.6 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "cookie" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "base64 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)", + "ring 0.12.1 (registry+https://github.com/rust-lang/crates.io-index)", + "time 0.1.39 (registry+https://github.com/rust-lang/crates.io-index)", + "url 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "crossbeam-channel" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "crossbeam-epoch 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", + "crossbeam-utils 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", + "parking_lot 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "crossbeam-deque" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "crossbeam-epoch 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", + "crossbeam-utils 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "crossbeam-deque" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "crossbeam-epoch 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", + "crossbeam-utils 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "crossbeam-epoch" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "arrayvec 0.4.7 (registry+https://github.com/rust-lang/crates.io-index)", + "cfg-if 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", + "crossbeam-utils 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", + "lazy_static 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", + "memoffset 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", + "scopeguard 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "crossbeam-epoch" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "arrayvec 0.4.7 (registry+https://github.com/rust-lang/crates.io-index)", + "cfg-if 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", + "crossbeam-utils 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", + "lazy_static 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "memoffset 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", + "nodrop 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)", + "scopeguard 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "crossbeam-epoch" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "arrayvec 0.4.7 (registry+https://github.com/rust-lang/crates.io-index)", + "cfg-if 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", + "crossbeam-utils 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)", + "lazy_static 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "memoffset 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", + "scopeguard 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "crossbeam-utils" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "cfg-if 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "crossbeam-utils" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "cfg-if 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "dbghelp-sys" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", + "winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "diesel" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "bitflags 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", + "byteorder 1.2.2 (registry+https://github.com/rust-lang/crates.io-index)", + "chrono 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", + "diesel_derives 1.2.0 (registry+https://github.com/rust-lang/crates.io-index)", + "pq-sys 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "diesel_derives" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "proc-macro2 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", + "quote 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", + "syn 0.12.15 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "dtoa" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "encoding" +version = "0.2.33" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "encoding-index-japanese 1.20141219.5 (registry+https://github.com/rust-lang/crates.io-index)", + "encoding-index-korean 1.20141219.5 (registry+https://github.com/rust-lang/crates.io-index)", + "encoding-index-simpchinese 1.20141219.5 (registry+https://github.com/rust-lang/crates.io-index)", + "encoding-index-singlebyte 1.20141219.5 (registry+https://github.com/rust-lang/crates.io-index)", + "encoding-index-tradchinese 1.20141219.5 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "encoding-index-japanese" +version = "1.20141219.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "encoding_index_tests 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "encoding-index-korean" +version = "1.20141219.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "encoding_index_tests 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "encoding-index-simpchinese" +version = "1.20141219.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "encoding_index_tests 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "encoding-index-singlebyte" +version = "1.20141219.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "encoding_index_tests 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "encoding-index-tradchinese" +version = "1.20141219.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "encoding_index_tests 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "encoding_index_tests" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "env_logger" +version = "0.5.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "atty 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", + "humantime 1.1.1 (registry+https://github.com/rust-lang/crates.io-index)", + "log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", + "regex 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)", + "termcolor 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "error-chain" +version = "0.1.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "backtrace 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "error-chain" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "backtrace 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "error-chain" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "backtrace 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "failure" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "backtrace 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", + "failure_derive 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "failure_derive" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "quote 0.3.15 (registry+https://github.com/rust-lang/crates.io-index)", + "syn 0.11.11 (registry+https://github.com/rust-lang/crates.io-index)", + "synstructure 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "flate2" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", + "miniz-sys 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "fnv" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "fuchsia-zircon" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "bitflags 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", + "fuchsia-zircon-sys 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "fuchsia-zircon-sys" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "futures" +version = "0.1.21" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "futures-cpupool" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "futures 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", + "num_cpus 1.8.0 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "gcc" +version = "0.3.54" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "glob" +version = "0.2.11" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "h2" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "byteorder 1.2.2 (registry+https://github.com/rust-lang/crates.io-index)", + "bytes 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", + "fnv 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", + "futures 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", + "http 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", + "indexmap 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", + "log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", + "slab 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", + "string 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-io 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "hostname" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", + "winutil 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "http" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "bytes 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", + "fnv 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "http-range" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "httparse" +version = "1.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "humantime" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "quick-error 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "idna" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "matches 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", + "unicode-bidi 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", + "unicode-normalization 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "indexmap" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "iovec" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", + "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "ipconfig" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "error-chain 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)", + "socket2 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", + "widestring 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", + "winapi 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", + "winreg 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "itoa" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "itoa" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "kernel32-sys" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", + "winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "language-tags" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "lazy_static" +version = "0.2.11" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "lazy_static" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "lazycell" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "libc" +version = "0.2.40" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "linked-hash-map" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "log" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "cfg-if 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "lru-cache" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "linked-hash-map 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "matches" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "memchr" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "memoffset" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "memoffset" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "mime" +version = "0.3.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "unicase 2.1.0 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "mime_guess" +version = "2.0.0-alpha.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "mime 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", + "phf 0.7.21 (registry+https://github.com/rust-lang/crates.io-index)", + "phf_codegen 0.7.21 (registry+https://github.com/rust-lang/crates.io-index)", + "unicase 1.4.2 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "miniz-sys" +version = "0.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "cc 1.0.9 (registry+https://github.com/rust-lang/crates.io-index)", + "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "mio" +version = "0.6.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "fuchsia-zircon 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", + "fuchsia-zircon-sys 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", + "iovec 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", + "kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", + "lazycell 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)", + "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", + "log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", + "miow 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", + "net2 0.2.32 (registry+https://github.com/rust-lang/crates.io-index)", + "slab 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", + "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "mio-uds" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", + "mio 0.6.14 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "miow" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", + "net2 0.2.32 (registry+https://github.com/rust-lang/crates.io-index)", + "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", + "ws2_32-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "net2" +version = "0.2.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "cfg-if 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", + "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", + "winapi 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "nodrop" +version = "0.1.12" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "num-integer" +version = "0.1.36" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "num-traits 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "num-traits" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "num_cpus" +version = "1.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "owning_ref" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "stable_deref_trait 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "parking_lot" +version = "0.4.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "owning_ref 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", + "parking_lot_core 0.2.13 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "parking_lot_core" +version = "0.2.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", + "rand 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", + "smallvec 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)", + "winapi 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "percent-encoding" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "phf" +version = "0.7.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "phf_shared 0.7.21 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "phf_codegen" +version = "0.7.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "phf_generator 0.7.21 (registry+https://github.com/rust-lang/crates.io-index)", + "phf_shared 0.7.21 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "phf_generator" +version = "0.7.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "phf_shared 0.7.21 (registry+https://github.com/rust-lang/crates.io-index)", + "rand 0.3.22 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "phf_shared" +version = "0.7.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "siphasher 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", + "unicase 1.4.2 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "pq-sys" +version = "0.4.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "vcpkg 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "proc-macro2" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "unicode-xid 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "proc-macro2" +version = "0.3.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "unicode-xid 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "pulldown-cmark" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "bitflags 0.9.1 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "quick-error" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "quote" +version = "0.3.15" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "quote" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "proc-macro2 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "quote" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "proc-macro2 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "rand" +version = "0.3.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "fuchsia-zircon 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", + "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", + "rand 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "rand" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "fuchsia-zircon 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", + "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", + "winapi 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "rayon" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "rayon-core 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "rayon-core" +version = "1.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "crossbeam-deque 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", + "lazy_static 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", + "num_cpus 1.8.0 (registry+https://github.com/rust-lang/crates.io-index)", + "rand 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "redox_syscall" +version = "0.1.37" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "redox_termios" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "redox_syscall 0.1.37 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "regex" +version = "0.2.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "aho-corasick 0.6.4 (registry+https://github.com/rust-lang/crates.io-index)", + "memchr 2.0.1 (registry+https://github.com/rust-lang/crates.io-index)", + "regex-syntax 0.5.3 (registry+https://github.com/rust-lang/crates.io-index)", + "thread_local 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", + "utf8-ranges 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "regex-syntax" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "ucd-util 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "remove_dir_all" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "winapi 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "resolv-conf" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "hostname 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", + "quick-error 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "ring" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "gcc 0.3.54 (registry+https://github.com/rust-lang/crates.io-index)", + "lazy_static 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", + "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", + "rayon 0.8.2 (registry+https://github.com/rust-lang/crates.io-index)", + "untrusted 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "rustc-demangle" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "safemem" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "same-file" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", + "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "scoped-tls" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "scopeguard" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "semver" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "semver-parser 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", + "serde 1.0.37 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "semver-parser" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "serde" +version = "1.0.37" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "serde_derive" +version = "1.0.37" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "proc-macro2 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", + "quote 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)", + "serde_derive_internals 0.23.0 (registry+https://github.com/rust-lang/crates.io-index)", + "syn 0.13.1 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "serde_derive_internals" +version = "0.23.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "proc-macro2 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", + "syn 0.13.1 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "serde_json" +version = "1.0.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "dtoa 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", + "itoa 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", + "num-traits 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", + "serde 1.0.37 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "serde_urlencoded" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "dtoa 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", + "itoa 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", + "serde 1.0.37 (registry+https://github.com/rust-lang/crates.io-index)", + "url 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "sha1" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "siphasher" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "skeptic" +version = "0.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "bytecount 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", + "cargo_metadata 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", + "error-chain 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)", + "glob 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", + "pulldown-cmark 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", + "serde_json 1.0.13 (registry+https://github.com/rust-lang/crates.io-index)", + "tempdir 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)", + "walkdir 1.0.7 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "slab" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "smallvec" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "socket2" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "cfg-if 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", + "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", + "winapi 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "stable_deref_trait" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "string" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "syn" +version = "0.11.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "quote 0.3.15 (registry+https://github.com/rust-lang/crates.io-index)", + "synom 0.11.3 (registry+https://github.com/rust-lang/crates.io-index)", + "unicode-xid 0.0.4 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "syn" +version = "0.12.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "proc-macro2 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", + "quote 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", + "unicode-xid 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "syn" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "proc-macro2 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", + "quote 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)", + "unicode-xid 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "synom" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "unicode-xid 0.0.4 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "synstructure" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "quote 0.3.15 (registry+https://github.com/rust-lang/crates.io-index)", + "syn 0.11.11 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "tempdir" +version = "0.3.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "rand 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", + "remove_dir_all 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "termcolor" +version = "0.3.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "wincolor 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "termion" +version = "1.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", + "redox_syscall 0.1.37 (registry+https://github.com/rust-lang/crates.io-index)", + "redox_termios 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "thread_local" +version = "0.3.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "lazy_static 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "unreachable 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "time" +version = "0.1.39" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", + "redox_syscall 0.1.37 (registry+https://github.com/rust-lang/crates.io-index)", + "winapi 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "tokio" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "futures 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", + "mio 0.6.14 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-executor 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-io 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-reactor 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-tcp 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-threadpool 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-timer 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-udp 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "tokio-core" +version = "0.1.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "bytes 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", + "futures 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", + "iovec 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", + "log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", + "mio 0.6.14 (registry+https://github.com/rust-lang/crates.io-index)", + "scoped-tls 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", + "slab 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-executor 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-io 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-reactor 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "tokio-executor" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "futures 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "tokio-io" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "bytes 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", + "futures 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", + "log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "tokio-reactor" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "futures 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", + "log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", + "mio 0.6.14 (registry+https://github.com/rust-lang/crates.io-index)", + "slab 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-executor 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-io 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "tokio-signal" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "futures 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", + "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", + "mio 0.6.14 (registry+https://github.com/rust-lang/crates.io-index)", + "mio-uds 0.6.4 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-core 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-io 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", + "winapi 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "tokio-tcp" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "bytes 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", + "futures 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", + "iovec 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", + "mio 0.6.14 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-io 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-reactor 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "tokio-threadpool" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "crossbeam-deque 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", + "futures 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", + "log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", + "num_cpus 1.8.0 (registry+https://github.com/rust-lang/crates.io-index)", + "rand 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-executor 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "tokio-timer" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "futures 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-executor 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "tokio-udp" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "bytes 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", + "futures 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", + "log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", + "mio 0.6.14 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-io 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-reactor 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "trust-dns-proto" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "byteorder 1.2.2 (registry+https://github.com/rust-lang/crates.io-index)", + "error-chain 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)", + "futures 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", + "idna 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", + "lazy_static 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", + "rand 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-core 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-io 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", + "url 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "trust-dns-resolver" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "error-chain 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)", + "futures 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", + "ipconfig 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", + "lazy_static 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", + "lru-cache 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", + "resolv-conf 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-core 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)", + "trust-dns-proto 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "ucd-util" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "unicase" +version = "1.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "version_check 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "unicase" +version = "2.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "version_check 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "unicode-bidi" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "matches 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "unicode-normalization" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "unicode-xid" +version = "0.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "unicode-xid" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "unreachable" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "void 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "untrusted" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "url" +version = "1.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "encoding 0.2.33 (registry+https://github.com/rust-lang/crates.io-index)", + "idna 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", + "matches 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", + "percent-encoding 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "utf8-ranges" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "uuid" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "cfg-if 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", + "rand 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "vcpkg" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "version_check" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "void" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "walkdir" +version = "1.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", + "same-file 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", + "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "widestring" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "winapi" +version = "0.2.8" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "winapi" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "winapi-i686-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", + "winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "winapi-build" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "winapi-i686-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "winapi-x86_64-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "wincolor" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "winapi 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "winreg" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "winapi 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "winutil" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "winapi 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "ws2_32-sys" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", + "winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[metadata] +"checksum actix 0.5.5 (registry+https://github.com/rust-lang/crates.io-index)" = "29d85dc76d055498ef65ecf556df154393f94f55d325a05be20c676432536ce7" +"checksum actix-web 0.5.0-dev (git+https://github.com/actix/actix-web.git)" = "" +"checksum actix_derive 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "c4b1dc922654b9aca7a8a31eab875fde804fa9fbd67f220f2e457787b23590f2" +"checksum aho-corasick 0.6.4 (registry+https://github.com/rust-lang/crates.io-index)" = "d6531d44de723825aa81398a6415283229725a00fa30713812ab9323faa82fc4" +"checksum arrayvec 0.4.7 (registry+https://github.com/rust-lang/crates.io-index)" = "a1e964f9e24d588183fcb43503abda40d288c8657dfc27311516ce2f05675aef" +"checksum atty 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)" = "af80143d6f7608d746df1520709e5d141c96f240b0e62b0aa41bdfb53374d9d4" +"checksum backtrace 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "346d7644f0b5f9bc73082d3b2236b69a05fd35cce0cfa3724e184e6a5c9e2a2f" +"checksum backtrace 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)" = "ebbbf59b1c43eefa8c3ede390fcc36820b4999f7914104015be25025e0d62af2" +"checksum backtrace-sys 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)" = "44585761d6161b0f57afc49482ab6bd067e4edef48c12a152c237eb0203f7661" +"checksum base64 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)" = "96434f987501f0ed4eb336a411e0631ecd1afa11574fe148587adc4ff96143c9" +"checksum base64 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)" = "229d032f1a99302697f10b27167ae6d03d49d032e6a8e2550e8d3fc13356d2b4" +"checksum bitflags 0.9.1 (registry+https://github.com/rust-lang/crates.io-index)" = "4efd02e230a02e18f92fc2735f44597385ed02ad8f831e7c1c1156ee5e1ab3a5" +"checksum bitflags 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "b3c30d3802dfb7281680d6285f2ccdaa8c2d8fee41f93805dba5c4cf50dc23cf" +"checksum brotli-sys 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)" = "4445dea95f4c2b41cde57cc9fee236ae4dbae88d8fcbdb4750fc1bb5d86aaecd" +"checksum brotli2 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)" = "0cb036c3eade309815c15ddbacec5b22c4d1f3983a774ab2eac2e3e9ea85568e" +"checksum bytecount 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "af27422163679dea46a1a7239dffff64d3dcdc3ba5fe9c49c789fbfe0eb949de" +"checksum byteorder 1.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "73b5bdfe7ee3ad0b99c9801d58807a9dbc9e09196365b0203853b99889ab3c87" +"checksum bytes 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)" = "1b7db437d718977f6dc9b2e3fd6fc343c02ac6b899b73fdd2179163447bd9ce9" +"checksum cargo_metadata 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "1f56ec3e469bca7c276f2eea015aa05c5e381356febdbb0683c2580189604537" +"checksum cc 1.0.9 (registry+https://github.com/rust-lang/crates.io-index)" = "2b4911e4bdcb4100c7680e7e854ff38e23f1b34d4d9e079efae3da2801341ffc" +"checksum cfg-if 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "d4c819a1287eb618df47cc647173c5c4c66ba19d888a6e50d605672aed3140de" +"checksum chrono 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)" = "1cce36c92cb605414e9b824f866f5babe0a0368e39ea07393b9b63cf3844c0e6" +"checksum cookie 0.10.1 (registry+https://github.com/rust-lang/crates.io-index)" = "746858cae4eae40fff37e1998320068df317bc247dc91a67c6cfa053afdc2abb" +"checksum crossbeam-channel 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "9d7b07a3084d8718d95338443d5a46aab38ce16d5f991d4027a0906b369f70a3" +"checksum crossbeam-deque 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "f739f8c5363aca78cfb059edf753d8f0d36908c348f3d8d1503f03d8b75d9cf3" +"checksum crossbeam-deque 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "c1bdc73742c36f7f35ebcda81dbb33a7e0d33757d03a06d9ddca762712ec5ea2" +"checksum crossbeam-epoch 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "9898f21d6d647793e163c804944941fb19aecd1f4a1a4c254bbb0bee15ccdea5" +"checksum crossbeam-epoch 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "927121f5407de9956180ff5e936fe3cf4324279280001cd56b669d28ee7e9150" +"checksum crossbeam-epoch 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)" = "9b4e2817eb773f770dcb294127c011e22771899c21d18fce7dd739c0b9832e81" +"checksum crossbeam-utils 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "2760899e32a1d58d5abb31129f8fae5de75220bc2176e77ff7c627ae45c918d9" +"checksum crossbeam-utils 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)" = "d636a8b3bcc1b409d7ffd3facef8f21dcb4009626adbd0c5e6c4305c07253c7b" +"checksum dbghelp-sys 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "97590ba53bcb8ac28279161ca943a924d1fd4a8fb3fa63302591647c4fc5b850" +"checksum diesel 1.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "06b6446da8e5ae24540deeb54b724ca401efd321fb0c77e583df05a086e05a2a" +"checksum diesel_derives 1.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "6471a2b637b414d3ee1504cf230409a550381c79204282f8fe06c527e4ae56be" +"checksum dtoa 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)" = "09c3753c3db574d215cba4ea76018483895d7bff25a31b49ba45db21c48e50ab" +"checksum encoding 0.2.33 (registry+https://github.com/rust-lang/crates.io-index)" = "6b0d943856b990d12d3b55b359144ff341533e516d94098b1d3fc1ac666d36ec" +"checksum encoding-index-japanese 1.20141219.5 (registry+https://github.com/rust-lang/crates.io-index)" = "04e8b2ff42e9a05335dbf8b5c6f7567e5591d0d916ccef4e0b1710d32a0d0c91" +"checksum encoding-index-korean 1.20141219.5 (registry+https://github.com/rust-lang/crates.io-index)" = "4dc33fb8e6bcba213fe2f14275f0963fd16f0a02c878e3095ecfdf5bee529d81" +"checksum encoding-index-simpchinese 1.20141219.5 (registry+https://github.com/rust-lang/crates.io-index)" = "d87a7194909b9118fc707194baa434a4e3b0fb6a5a757c73c3adb07aa25031f7" +"checksum encoding-index-singlebyte 1.20141219.5 (registry+https://github.com/rust-lang/crates.io-index)" = "3351d5acffb224af9ca265f435b859c7c01537c0849754d3db3fdf2bfe2ae84a" +"checksum encoding-index-tradchinese 1.20141219.5 (registry+https://github.com/rust-lang/crates.io-index)" = "fd0e20d5688ce3cab59eb3ef3a2083a5c77bf496cb798dc6fcdb75f323890c18" +"checksum encoding_index_tests 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)" = "a246d82be1c9d791c5dfde9a2bd045fc3cbba3fa2b11ad558f27d01712f00569" +"checksum env_logger 0.5.6 (registry+https://github.com/rust-lang/crates.io-index)" = "0561146661ae44c579e993456bc76d11ce1e0c7d745e57b2fa7146b6e49fa2ad" +"checksum error-chain 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)" = "faa976b4fd2e4c2b2f3f486874b19e61944d3de3de8b61c9fcf835d583871bcc" +"checksum error-chain 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ff511d5dc435d703f4971bc399647c9bc38e20cb41452e3b9feb4765419ed3f3" +"checksum error-chain 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)" = "6930e04918388a9a2e41d518c25cf679ccafe26733fb4127dbf21993f2575d46" +"checksum failure 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "934799b6c1de475a012a02dab0ace1ace43789ee4b99bcfbf1a2e3e8ced5de82" +"checksum failure_derive 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "c7cdda555bb90c9bb67a3b670a0f42de8e73f5981524123ad8578aafec8ddb8b" +"checksum flate2 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "9fac2277e84e5e858483756647a9d0aa8d9a2b7cba517fd84325a0aaa69a0909" +"checksum fnv 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)" = "2fad85553e09a6f881f739c29f0b00b0f01357c743266d478b68951ce23285f3" +"checksum fuchsia-zircon 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "2e9763c69ebaae630ba35f74888db465e49e259ba1bc0eda7d06f4a067615d82" +"checksum fuchsia-zircon-sys 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "3dcaa9ae7725d12cdb85b3ad99a434db70b468c09ded17e012d86b5c1010f7a7" +"checksum futures 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)" = "1a70b146671de62ec8c8ed572219ca5d594d9b06c0b364d5e67b722fc559b48c" +"checksum futures-cpupool 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)" = "ab90cde24b3319636588d0c35fe03b1333857621051837ed769faefb4c2162e4" +"checksum gcc 0.3.54 (registry+https://github.com/rust-lang/crates.io-index)" = "5e33ec290da0d127825013597dbdfc28bee4964690c7ce1166cbc2a7bd08b1bb" +"checksum glob 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)" = "8be18de09a56b60ed0edf84bc9df007e30040691af7acd1c41874faac5895bfb" +"checksum h2 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "065fb096fc65bbfb9c765d48c9f3f1a21cdb25ba0d3f82105b38f30ddffa2f7e" +"checksum hostname 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)" = "58fab6e177434b0bb4cd344a4dabaa5bd6d7a8d792b1885aebcae7af1091d1cb" +"checksum http 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "75df369fd52c60635208a4d3e694777c099569b3dcf4844df8f652dc004644ab" +"checksum http-range 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "5f2e4003e6fd05ea9109db00415e670b11f511a42e567ff2d5d771cbdfa24e02" +"checksum httparse 1.2.4 (registry+https://github.com/rust-lang/crates.io-index)" = "c2f407128745b78abc95c0ffbe4e5d37427fdc0d45470710cfef8c44522a2e37" +"checksum humantime 1.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "0484fda3e7007f2a4a0d9c3a703ca38c71c54c55602ce4660c419fd32e188c9e" +"checksum idna 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)" = "014b298351066f1512874135335d62a789ffe78a9974f94b43ed5621951eaf7d" +"checksum indexmap 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "08173ba1e906efb6538785a8844dd496f5d34f0a2d88038e95195172fc667220" +"checksum iovec 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "dbe6e417e7d0975db6512b90796e8ce223145ac4e33c377e4a42882a0e88bb08" +"checksum ipconfig 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = "9ec4e18c0a0d4340870c14284293632d8421f419008371422dd327892b88877c" +"checksum itoa 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)" = "8324a32baf01e2ae060e9de58ed0bc2320c9a2833491ee36cd3b4c414de4db8c" +"checksum itoa 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)" = "c069bbec61e1ca5a596166e55dfe4773ff745c3d16b700013bcaff9a6df2c682" +"checksum kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "7507624b29483431c0ba2d82aece8ca6cdba9382bff4ddd0f7490560c056098d" +"checksum language-tags 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "a91d884b6667cd606bb5a69aa0c99ba811a115fc68915e7056ec08a46e93199a" +"checksum lazy_static 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)" = "76f033c7ad61445c5b347c7382dd1237847eb1bce590fe50365dcb33d546be73" +"checksum lazy_static 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "c8f31047daa365f19be14b47c29df4f7c3b581832407daabe6ae77397619237d" +"checksum lazycell 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)" = "a6f08839bc70ef4a3fe1d566d5350f519c5912ea86be0df1740a7d247c7fc0ef" +"checksum libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)" = "6fd41f331ac7c5b8ac259b8bf82c75c0fb2e469bbf37d2becbba9a6a2221965b" +"checksum linked-hash-map 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)" = "7860ec297f7008ff7a1e3382d7f7e1dcd69efc94751a2284bafc3d013c2aa939" +"checksum log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)" = "89f010e843f2b1a31dbd316b3b8d443758bc634bed37aabade59c686d644e0a2" +"checksum lru-cache 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "4d06ff7ff06f729ce5f4e227876cb88d10bc59cd4ae1e09fbb2bde15c850dc21" +"checksum matches 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = "100aabe6b8ff4e4a7e32c1c13523379802df0772b82466207ac25b013f193376" +"checksum memchr 2.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "796fba70e76612589ed2ce7f45282f5af869e0fdd7cc6199fa1aa1f1d591ba9d" +"checksum memoffset 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "e163e5baece1a039e71e75b074de17a9b4114982aa109921fc20253bdf91a53c" +"checksum memoffset 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "0f9dc261e2b62d7a622bf416ea3c5245cdd5d9a7fcc428c0d06804dfce1775b3" +"checksum mime 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)" = "e2e00e17be181010a91dbfefb01660b17311059dc8c7f48b9017677721e732bd" +"checksum mime_guess 2.0.0-alpha.4 (registry+https://github.com/rust-lang/crates.io-index)" = "130ea3c9c1b65dba905ab5a4d9ac59234a9585c24d135f264e187fe7336febbd" +"checksum miniz-sys 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)" = "609ce024854aeb19a0ef7567d348aaa5a746b32fb72e336df7fcc16869d7e2b4" +"checksum mio 0.6.14 (registry+https://github.com/rust-lang/crates.io-index)" = "6d771e3ef92d58a8da8df7d6976bfca9371ed1de6619d9d5a5ce5b1f29b85bfe" +"checksum mio-uds 0.6.4 (registry+https://github.com/rust-lang/crates.io-index)" = "1731a873077147b626d89cc6c2a0db6288d607496c5d10c0cfcf3adc697ec673" +"checksum miow 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "8c1f2f3b1cf331de6896aabf6e9d55dca90356cc9960cca7eaaf408a355ae919" +"checksum net2 0.2.32 (registry+https://github.com/rust-lang/crates.io-index)" = "9044faf1413a1057267be51b5afba8eb1090bd2231c693664aa1db716fe1eae0" +"checksum nodrop 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)" = "9a2228dca57108069a5262f2ed8bd2e82496d2e074a06d1ccc7ce1687b6ae0a2" +"checksum num-integer 0.1.36 (registry+https://github.com/rust-lang/crates.io-index)" = "f8d26da319fb45674985c78f1d1caf99aa4941f785d384a2ae36d0740bc3e2fe" +"checksum num-traits 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "dee092fcdf725aee04dd7da1d21debff559237d49ef1cb3e69bcb8ece44c7364" +"checksum num_cpus 1.8.0 (registry+https://github.com/rust-lang/crates.io-index)" = "c51a3322e4bca9d212ad9a158a02abc6934d005490c054a2778df73a70aa0a30" +"checksum owning_ref 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "cdf84f41639e037b484f93433aa3897863b561ed65c6e59c7073d7c561710f37" +"checksum parking_lot 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)" = "149d8f5b97f3c1133e3cfcd8886449959e856b557ff281e292b733d7c69e005e" +"checksum parking_lot_core 0.2.13 (registry+https://github.com/rust-lang/crates.io-index)" = "538ef00b7317875071d5e00f603f24d16f0b474c1a5fc0ccb8b454ca72eafa79" +"checksum percent-encoding 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "31010dd2e1ac33d5b46a5b413495239882813e0369f8ed8a5e266f173602f831" +"checksum phf 0.7.21 (registry+https://github.com/rust-lang/crates.io-index)" = "cb325642290f28ee14d8c6201159949a872f220c62af6e110a56ea914fbe42fc" +"checksum phf_codegen 0.7.21 (registry+https://github.com/rust-lang/crates.io-index)" = "d62594c0bb54c464f633175d502038177e90309daf2e0158be42ed5f023ce88f" +"checksum phf_generator 0.7.21 (registry+https://github.com/rust-lang/crates.io-index)" = "6b07ffcc532ccc85e3afc45865469bf5d9e4ef5bfcf9622e3cfe80c2d275ec03" +"checksum phf_shared 0.7.21 (registry+https://github.com/rust-lang/crates.io-index)" = "07e24b0ca9643bdecd0632f2b3da6b1b89bbb0030e0b992afc1113b23a7bc2f2" +"checksum pq-sys 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)" = "4dfb5e575ef93a1b7b2a381d47ba7c5d4e4f73bff37cee932195de769aad9a54" +"checksum proc-macro2 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "cd07deb3c6d1d9ff827999c7f9b04cdfd66b1b17ae508e14fe47b620f2282ae0" +"checksum proc-macro2 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)" = "49b6a521dc81b643e9a51e0d1cf05df46d5a2f3c0280ea72bcb68276ba64a118" +"checksum pulldown-cmark 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "d6fdf85cda6cadfae5428a54661d431330b312bc767ddbc57adbedc24da66e32" +"checksum quick-error 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "eda5fe9b71976e62bc81b781206aaa076401769b2143379d3eb2118388babac4" +"checksum quote 0.3.15 (registry+https://github.com/rust-lang/crates.io-index)" = "7a6e920b65c65f10b2ae65c831a81a073a89edd28c7cce89475bff467ab4167a" +"checksum quote 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)" = "1eca14c727ad12702eb4b6bfb5a232287dcf8385cb8ca83a3eeaf6519c44c408" +"checksum quote 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)" = "7b0ff51282f28dc1b53fd154298feaa2e77c5ea0dba68e1fd8b03b72fbe13d2a" +"checksum rand 0.3.22 (registry+https://github.com/rust-lang/crates.io-index)" = "15a732abf9d20f0ad8eeb6f909bf6868722d9a06e1e50802b6a70351f40b4eb1" +"checksum rand 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)" = "eba5f8cb59cc50ed56be8880a5c7b496bfd9bd26394e176bc67884094145c2c5" +"checksum rayon 0.8.2 (registry+https://github.com/rust-lang/crates.io-index)" = "b614fe08b6665cb9a231d07ac1364b0ef3cb3698f1239ee0c4c3a88a524f54c8" +"checksum rayon-core 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "9d24ad214285a7729b174ed6d3bcfcb80177807f959d95fafd5bfc5c4f201ac8" +"checksum redox_syscall 0.1.37 (registry+https://github.com/rust-lang/crates.io-index)" = "0d92eecebad22b767915e4d529f89f28ee96dbbf5a4810d2b844373f136417fd" +"checksum redox_termios 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "7e891cfe48e9100a70a3b6eb652fef28920c117d366339687bd5576160db0f76" +"checksum regex 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)" = "aec3f58d903a7d2a9dc2bf0e41a746f4530e0cab6b615494e058f67a3ef947fb" +"checksum regex-syntax 0.5.3 (registry+https://github.com/rust-lang/crates.io-index)" = "b2550876c31dc914696a6c2e01cbce8afba79a93c8ae979d2fe051c0230b3756" +"checksum remove_dir_all 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)" = "dfc5b3ce5d5ea144bb04ebd093a9e14e9765bcfec866aecda9b6dec43b3d1e24" +"checksum resolv-conf 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)" = "8e1b086bb6a2659d6ba66e4aa21bde8a53ec03587cd5c80b83bdc3a330f35cab" +"checksum ring 0.12.1 (registry+https://github.com/rust-lang/crates.io-index)" = "6f7d28b30a72c01b458428e0ae988d4149c20d902346902be881e3edc4bb325c" +"checksum rustc-demangle 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)" = "11fb43a206a04116ffd7cfcf9bcb941f8eb6cc7ff667272246b0a1c74259a3cb" +"checksum safemem 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "e27a8b19b835f7aea908818e871f5cc3a5a186550c30773be987e155e8163d8f" +"checksum same-file 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)" = "d931a44fdaa43b8637009e7632a02adc4f2b2e0733c08caa4cf00e8da4a117a7" +"checksum scoped-tls 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "8674d439c964889e2476f474a3bf198cc9e199e77499960893bac5de7e9218a4" +"checksum scopeguard 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "94258f53601af11e6a49f722422f6e3425c52b06245a5cf9bc09908b174f5e27" +"checksum semver 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)" = "bee2bc909ab2d8d60dab26e8cad85b25d795b14603a0dcb627b78b9d30b6454b" +"checksum semver-parser 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3" +"checksum serde 1.0.37 (registry+https://github.com/rust-lang/crates.io-index)" = "d3bcee660dcde8f52c3765dd9ca5ee36b4bf35470a738eb0bd5a8752b0389645" +"checksum serde_derive 1.0.37 (registry+https://github.com/rust-lang/crates.io-index)" = "f1711ab8b208541fa8de00425f6a577d90f27bb60724d2bb5fd911314af9668f" +"checksum serde_derive_internals 0.23.0 (registry+https://github.com/rust-lang/crates.io-index)" = "89b340a48245bc03ddba31d0ff1709c118df90edc6adabaca4aac77aea181cce" +"checksum serde_json 1.0.13 (registry+https://github.com/rust-lang/crates.io-index)" = "5c508584d9913df116b91505eec55610a2f5b16e9ed793c46e4d0152872b3e74" +"checksum serde_urlencoded 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)" = "ce0fd303af908732989354c6f02e05e2e6d597152870f2c6990efb0577137480" +"checksum sha1 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)" = "2579985fda508104f7587689507983eadd6a6e84dd35d6d115361f530916fa0d" +"checksum siphasher 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "0df90a788073e8d0235a67e50441d47db7c8ad9debd91cbf43736a2a92d36537" +"checksum skeptic 0.13.2 (registry+https://github.com/rust-lang/crates.io-index)" = "c8431f8fca168e2db4be547bd8329eac70d095dff1444fee4b0fa0fabc7df75a" +"checksum slab 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "fdeff4cd9ecff59ec7e3744cbca73dfe5ac35c2aedb2cfba8a1c715a18912e9d" +"checksum smallvec 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)" = "44db0ecb22921ef790d17ae13a3f6d15784183ff5f2a01aa32098c7498d2b4b9" +"checksum socket2 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)" = "71ebbe82fcdd697244ba7fe6e05e63b5c45910c3927e28469a04947494ff48d8" +"checksum stable_deref_trait 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "15132e0e364248108c5e2c02e3ab539be8d6f5d52a01ca9bbf27ed657316f02b" +"checksum string 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "31f98b200e7caca9efca50fc0aa69cd58a5ec81d5f6e75b2f3ecaad2e998972a" +"checksum syn 0.11.11 (registry+https://github.com/rust-lang/crates.io-index)" = "d3b891b9015c88c576343b9b3e41c2c11a51c219ef067b264bd9c8aa9b441dad" +"checksum syn 0.12.15 (registry+https://github.com/rust-lang/crates.io-index)" = "c97c05b8ebc34ddd6b967994d5c6e9852fa92f8b82b3858c39451f97346dcce5" +"checksum syn 0.13.1 (registry+https://github.com/rust-lang/crates.io-index)" = "91b52877572087400e83d24b9178488541e3d535259e04ff17a63df1e5ceff59" +"checksum synom 0.11.3 (registry+https://github.com/rust-lang/crates.io-index)" = "a393066ed9010ebaed60b9eafa373d4b1baac186dd7e008555b0f702b51945b6" +"checksum synstructure 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)" = "3a761d12e6d8dcb4dcf952a7a89b475e3a9d69e4a69307e01a470977642914bd" +"checksum tempdir 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)" = "15f2b5fb00ccdf689e0149d1b1b3c03fead81c2b37735d812fa8bddbbf41b6d8" +"checksum termcolor 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)" = "adc4587ead41bf016f11af03e55a624c06568b5a19db4e90fde573d805074f83" +"checksum termion 1.5.1 (registry+https://github.com/rust-lang/crates.io-index)" = "689a3bdfaab439fd92bc87df5c4c78417d3cbe537487274e9b0b2dce76e92096" +"checksum thread_local 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)" = "279ef31c19ededf577bfd12dfae728040a21f635b06a24cd670ff510edd38963" +"checksum time 0.1.39 (registry+https://github.com/rust-lang/crates.io-index)" = "a15375f1df02096fb3317256ce2cee6a1f42fc84ea5ad5fc8c421cfe40c73098" +"checksum tokio 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "be15ef40f675c9fe66e354d74c73f3ed012ca1aa14d65846a33ee48f1ae8d922" +"checksum tokio-core 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)" = "799492ccba3d8ed5e41f2520a7cfd504cb65bbfe5fbbbd0012e335ae5f188051" +"checksum tokio-executor 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "8cac2a7883ff3567e9d66bb09100d09b33d90311feca0206c7ca034bc0c55113" +"checksum tokio-io 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = "6af9eb326f64b2d6b68438e1953341e00ab3cf54de7e35d92bfc73af8555313a" +"checksum tokio-reactor 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "b3cedc8e5af5131dc3423ffa4f877cce78ad25259a9a62de0613735a13ebc64b" +"checksum tokio-signal 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "e8f46863230f9a05cf52d173721ec391b9c5782a2465f593029922b8782b9ffe" +"checksum tokio-tcp 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ec9b094851aadd2caf83ba3ad8e8c4ce65a42104f7b94d9e6550023f0407853f" +"checksum tokio-threadpool 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "bf3d05cdd6a78005e535d2b27c21521bdf91fbb321027a62d8e178929d18966d" +"checksum tokio-timer 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "29a89e4ad0c8f1e4c9860e605c38c69bfdad3cccd4ea446e58ff588c1c07a397" +"checksum tokio-udp 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "137bda266504893ac4774e0ec4c2108f7ccdbcb7ac8dced6305fe9e4e0b5041a" +"checksum trust-dns-proto 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)" = "0266cdf22b1f3904d21252e71079395bc47836513d4f3888ff85b57a6add2227" +"checksum trust-dns-resolver 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)" = "87cff716794d5ab064957bb78fc5575a38337571917ddd86fc2fed52dc48b141" +"checksum ucd-util 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "fd2be2d6639d0f8fe6cdda291ad456e23629558d466e2789d2c3e9892bda285d" +"checksum unicase 1.4.2 (registry+https://github.com/rust-lang/crates.io-index)" = "7f4765f83163b74f957c797ad9253caf97f103fb064d3999aea9568d09fc8a33" +"checksum unicase 2.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "284b6d3db520d67fbe88fd778c21510d1b0ba4a551e5d0fbb023d33405f6de8a" +"checksum unicode-bidi 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)" = "49f2bd0c6468a8230e1db229cff8029217cf623c767ea5d60bfbd42729ea54d5" +"checksum unicode-normalization 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "51ccda9ef9efa3f7ef5d91e8f9b83bbe6955f9bf86aec89d5cce2c874625920f" +"checksum unicode-xid 0.0.4 (registry+https://github.com/rust-lang/crates.io-index)" = "8c1f860d7d29cf02cb2f3f359fd35991af3d30bac52c57d265a3c461074cb4dc" +"checksum unicode-xid 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "fc72304796d0818e357ead4e000d19c9c174ab23dc11093ac919054d20a6a7fc" +"checksum unreachable 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "382810877fe448991dfc7f0dd6e3ae5d58088fd0ea5e35189655f84e6814fa56" +"checksum untrusted 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)" = "f392d7819dbe58833e26872f5f6f0d68b7bbbe90fc3667e98731c4a15ad9a7ae" +"checksum url 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "f808aadd8cfec6ef90e4a14eb46f24511824d1ac596b9682703c87056c8678b7" +"checksum utf8-ranges 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "662fab6525a98beff2921d7f61a39e7d59e0b425ebc7d0d9e66d316e55124122" +"checksum uuid 0.6.2 (registry+https://github.com/rust-lang/crates.io-index)" = "d4670e1e935f7edd193a413f802e2ee52274aed62a09ccaab1656515c9c53a66" +"checksum vcpkg 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "9e0a7d8bed3178a8fb112199d466eeca9ed09a14ba8ad67718179b4fd5487d0b" +"checksum version_check 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)" = "6b772017e347561807c1aa192438c5fd74242a670a6cffacc40f2defd1dc069d" +"checksum void 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = "6a02e4885ed3bc0f2de90ea6dd45ebcbb66dacffe03547fadbb0eeae2770887d" +"checksum walkdir 1.0.7 (registry+https://github.com/rust-lang/crates.io-index)" = "bb08f9e670fab86099470b97cd2b252d6527f0b3cc1401acdb595ffc9dd288ff" +"checksum widestring 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "7157704c2e12e3d2189c507b7482c52820a16dfa4465ba91add92f266667cadb" +"checksum winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)" = "167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a" +"checksum winapi 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)" = "04e3bd221fcbe8a271359c04f21a76db7d0c6028862d1bb5512d85e1e2eb5bb3" +"checksum winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "2d315eee3b34aca4797b2da6b13ed88266e6d612562a0c46390af8299fc699bc" +"checksum winapi-i686-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" +"checksum winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" +"checksum wincolor 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = "eeb06499a3a4d44302791052df005d5232b927ed1a9658146d842165c4de7767" +"checksum winreg 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)" = "9338067aba07889a38beaad4dbb77fa2e62e87c423b770824b3bdf412874bd2c" +"checksum winutil 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "7daf138b6b14196e3830a588acf1e86966c694d3e8fb026fb105b8b5dca07e6e" +"checksum ws2_32-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "d59cefebd0c892fa2dd6de581e937301d8552cb44489cdff035c6187cb63fa5e" diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 000000000..e2f4b2c62 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,11 @@ +[package] +name = "converse" +version = "0.1.0" +authors = ["Vincent Ambo "] + +[dependencies] +actix = "0.5" +actix-web = { git="https://github.com/actix/actix-web.git" } +env_logger = "0.5" +diesel = { version = "1.0", features = ["postgres", "chrono"]} +chrono = "0.4" From 042eb88fd74033b9b606189b626f3f0a11a3e2b1 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 8 Apr 2018 15:48:56 +0200 Subject: [PATCH 003/163] feat(migrations): Add posts & threads tables --- migrations/.gitkeep | 0 .../down.sql | 6 ++++ .../up.sql | 36 +++++++++++++++++++ .../2018-04-08-133240_create_posts/down.sql | 2 ++ .../2018-04-08-133240_create_posts/up.sql | 13 +++++++ 5 files changed, 57 insertions(+) create mode 100644 migrations/.gitkeep create mode 100644 migrations/00000000000000_diesel_initial_setup/down.sql create mode 100644 migrations/00000000000000_diesel_initial_setup/up.sql create mode 100644 migrations/2018-04-08-133240_create_posts/down.sql create mode 100644 migrations/2018-04-08-133240_create_posts/up.sql diff --git a/migrations/.gitkeep b/migrations/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/migrations/00000000000000_diesel_initial_setup/down.sql b/migrations/00000000000000_diesel_initial_setup/down.sql new file mode 100644 index 000000000..a9f526091 --- /dev/null +++ b/migrations/00000000000000_diesel_initial_setup/down.sql @@ -0,0 +1,6 @@ +-- This file was automatically created by Diesel to setup helper functions +-- and other internal bookkeeping. This file is safe to edit, any future +-- changes will be added to existing projects as new migrations. + +DROP FUNCTION IF EXISTS diesel_manage_updated_at(_tbl regclass); +DROP FUNCTION IF EXISTS diesel_set_updated_at(); diff --git a/migrations/00000000000000_diesel_initial_setup/up.sql b/migrations/00000000000000_diesel_initial_setup/up.sql new file mode 100644 index 000000000..d68895b1a --- /dev/null +++ b/migrations/00000000000000_diesel_initial_setup/up.sql @@ -0,0 +1,36 @@ +-- This file was automatically created by Diesel to setup helper functions +-- and other internal bookkeeping. This file is safe to edit, any future +-- changes will be added to existing projects as new migrations. + + + + +-- Sets up a trigger for the given table to automatically set a column called +-- `updated_at` whenever the row is modified (unless `updated_at` was included +-- in the modified columns) +-- +-- # Example +-- +-- ```sql +-- CREATE TABLE users (id SERIAL PRIMARY KEY, updated_at TIMESTAMP NOT NULL DEFAULT NOW()); +-- +-- SELECT diesel_manage_updated_at('users'); +-- ``` +CREATE OR REPLACE FUNCTION diesel_manage_updated_at(_tbl regclass) RETURNS VOID AS $$ +BEGIN + EXECUTE format('CREATE TRIGGER set_updated_at BEFORE UPDATE ON %s + FOR EACH ROW EXECUTE PROCEDURE diesel_set_updated_at()', _tbl); +END; +$$ LANGUAGE plpgsql; + +CREATE OR REPLACE FUNCTION diesel_set_updated_at() RETURNS trigger AS $$ +BEGIN + IF ( + NEW IS DISTINCT FROM OLD AND + NEW.updated_at IS NOT DISTINCT FROM OLD.updated_at + ) THEN + NEW.updated_at := current_timestamp; + END IF; + RETURN NEW; +END; +$$ LANGUAGE plpgsql; diff --git a/migrations/2018-04-08-133240_create_posts/down.sql b/migrations/2018-04-08-133240_create_posts/down.sql new file mode 100644 index 000000000..8ebcef8e1 --- /dev/null +++ b/migrations/2018-04-08-133240_create_posts/down.sql @@ -0,0 +1,2 @@ +DROP TABLE posts; +DROP TABLE threads; diff --git a/migrations/2018-04-08-133240_create_posts/up.sql b/migrations/2018-04-08-133240_create_posts/up.sql new file mode 100644 index 000000000..7cf601fa2 --- /dev/null +++ b/migrations/2018-04-08-133240_create_posts/up.sql @@ -0,0 +1,13 @@ +CREATE TABLE threads ( + id SERIAL PRIMARY KEY, + title VARCHAR NOT NULL, + body TEXT NOT NULL, + posted TIMESTAMPTZ NOT NULL +); + +CREATE TABLE posts ( + id SERIAL PRIMARY KEY, + thread SERIAL REFERENCES threads (id), + body TEXT NOT NULL, + posted TIMESTAMPTZ NOT NULL +); From 72691c8d6386678be51c71d62e50d168d8fe28bb Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 8 Apr 2018 15:49:19 +0200 Subject: [PATCH 004/163] feat(models/schema): Map up posts & threads table --- src/models.rs | 16 ++++++++++++++++ src/schema.rs | 24 ++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 src/models.rs create mode 100644 src/schema.rs diff --git a/src/models.rs b/src/models.rs new file mode 100644 index 000000000..a7ed8a91d --- /dev/null +++ b/src/models.rs @@ -0,0 +1,16 @@ +use chrono::prelude::{DateTime, Utc}; + +#[derive(Queryable)] +pub struct Thread { + pub id: i32, + pub title: String, + pub body: String, + pub posted: DateTime, +} + +pub struct Post { + pub id: i32, + pub thread: i32, + pub body: String, + pub posted: DateTime, +} diff --git a/src/schema.rs b/src/schema.rs new file mode 100644 index 000000000..a899f52ac --- /dev/null +++ b/src/schema.rs @@ -0,0 +1,24 @@ +table! { + posts (id) { + id -> Int4, + thread -> Int4, + body -> Text, + posted -> Timestamptz, + } +} + +table! { + threads (id) { + id -> Int4, + title -> Varchar, + body -> Text, + posted -> Timestamptz, + } +} + +joinable!(posts -> threads (thread)); + +allow_tables_to_appear_in_same_query!( + posts, + threads, +); From f3f509d4631eb7f968894f1f5445071164b2e515 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 8 Apr 2018 15:49:27 +0200 Subject: [PATCH 005/163] feat(main): Bootstrap project entrypoint This doesn't really do anything yet. --- src/main.rs | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/main.rs diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 000000000..2cb814a34 --- /dev/null +++ b/src/main.rs @@ -0,0 +1,26 @@ +#[macro_use] +extern crate diesel; +extern crate chrono; + +pub mod schema; +pub mod models; + +use diesel::prelude::*; +use diesel::pg::PgConnection; +use std::env; + +fn connect_db() -> PgConnection { + let db_url = env::var("DATABASE_URL") + .expect("DATABASE_URL must be set"); + + PgConnection::establish(&db_url) + .expect(&format!("Error connecting to {}", db_url)) +} + +fn main() { + use schema::threads::dsl::*; + use schema::posts::dsl::*; + + let conn = connect_db(); + let threads = threads. +} From 5604d933e89f9020299f59d927d73f2cd12b4134 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 8 Apr 2018 16:08:26 +0200 Subject: [PATCH 006/163] feat(main): Add minimal thread listing example --- Cargo.toml | 2 +- src/main.rs | 11 +++++++++-- src/models.rs | 1 + 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index e2f4b2c62..4800dbd02 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,5 +7,5 @@ authors = ["Vincent Ambo "] actix = "0.5" actix-web = { git="https://github.com/actix/actix-web.git" } env_logger = "0.5" -diesel = { version = "1.0", features = ["postgres", "chrono"]} +diesel = { version = "1.2", features = ["postgres", "chrono"]} chrono = "0.4" diff --git a/src/main.rs b/src/main.rs index 2cb814a34..6e98fe8b1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -19,8 +19,15 @@ fn connect_db() -> PgConnection { fn main() { use schema::threads::dsl::*; - use schema::posts::dsl::*; + use models::*; let conn = connect_db(); - let threads = threads. + let result: Vec = threads + .load::(&conn) + .expect("Error loading threads"); + + for thread in result { + println!("Subject: {}\nPosted: {}\n", thread.title, thread.posted); + println!("{}", thread.body); + } } diff --git a/src/models.rs b/src/models.rs index a7ed8a91d..e50289130 100644 --- a/src/models.rs +++ b/src/models.rs @@ -8,6 +8,7 @@ pub struct Thread { pub posted: DateTime, } +#[derive(Queryable)] pub struct Post { pub id: i32, pub thread: i32, From bea6eb8eb3cf97586155fa4857c6edd6a64fc84e Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 8 Apr 2018 16:41:34 +0200 Subject: [PATCH 007/163] feat(db): Bootstrap DbExecutor actor Bootstraps an Actix actor carrying DB connections. This actor will be used to interact with converse's database. --- Cargo.lock | 29 +++++++++++++++++++++++++++++ Cargo.toml | 4 +++- src/db.rs | 13 +++++++++++++ 3 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 src/db.rs diff --git a/Cargo.lock b/Cargo.lock index ea9841b43..add7e5ba6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -86,6 +86,11 @@ dependencies = [ "memchr 2.0.1 (registry+https://github.com/rust-lang/crates.io-index)", ] +[[package]] +name = "antidote" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" + [[package]] name = "arrayvec" version = "0.4.7" @@ -245,6 +250,8 @@ dependencies = [ "chrono 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", "diesel 1.2.0 (registry+https://github.com/rust-lang/crates.io-index)", "env_logger 0.5.6 (registry+https://github.com/rust-lang/crates.io-index)", + "log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", + "r2d2 0.8.2 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -361,6 +368,7 @@ dependencies = [ "chrono 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", "diesel_derives 1.2.0 (registry+https://github.com/rust-lang/crates.io-index)", "pq-sys 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)", + "r2d2 0.8.2 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -947,6 +955,16 @@ dependencies = [ "proc-macro2 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", ] +[[package]] +name = "r2d2" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "antidote 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", + "scheduled-thread-pool 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", +] + [[package]] name = "rand" version = "0.3.22" @@ -1068,6 +1086,14 @@ dependencies = [ "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", ] +[[package]] +name = "scheduled-thread-pool" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "antidote 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", +] + [[package]] name = "scoped-tls" version = "0.1.1" @@ -1626,6 +1652,7 @@ dependencies = [ "checksum actix-web 0.5.0-dev (git+https://github.com/actix/actix-web.git)" = "" "checksum actix_derive 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "c4b1dc922654b9aca7a8a31eab875fde804fa9fbd67f220f2e457787b23590f2" "checksum aho-corasick 0.6.4 (registry+https://github.com/rust-lang/crates.io-index)" = "d6531d44de723825aa81398a6415283229725a00fa30713812ab9323faa82fc4" +"checksum antidote 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "34fde25430d87a9388dadbe6e34d7f72a462c8b43ac8d309b42b0a8505d7e2a5" "checksum arrayvec 0.4.7 (registry+https://github.com/rust-lang/crates.io-index)" = "a1e964f9e24d588183fcb43503abda40d288c8657dfc27311516ce2f05675aef" "checksum atty 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)" = "af80143d6f7608d746df1520709e5d141c96f240b0e62b0aa41bdfb53374d9d4" "checksum backtrace 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "346d7644f0b5f9bc73082d3b2236b69a05fd35cce0cfa3724e184e6a5c9e2a2f" @@ -1730,6 +1757,7 @@ dependencies = [ "checksum quote 0.3.15 (registry+https://github.com/rust-lang/crates.io-index)" = "7a6e920b65c65f10b2ae65c831a81a073a89edd28c7cce89475bff467ab4167a" "checksum quote 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)" = "1eca14c727ad12702eb4b6bfb5a232287dcf8385cb8ca83a3eeaf6519c44c408" "checksum quote 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)" = "7b0ff51282f28dc1b53fd154298feaa2e77c5ea0dba68e1fd8b03b72fbe13d2a" +"checksum r2d2 0.8.2 (registry+https://github.com/rust-lang/crates.io-index)" = "f9078ca6a8a5568ed142083bb2f7dc9295b69d16f867ddcc9849e51b17d8db46" "checksum rand 0.3.22 (registry+https://github.com/rust-lang/crates.io-index)" = "15a732abf9d20f0ad8eeb6f909bf6868722d9a06e1e50802b6a70351f40b4eb1" "checksum rand 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)" = "eba5f8cb59cc50ed56be8880a5c7b496bfd9bd26394e176bc67884094145c2c5" "checksum rayon 0.8.2 (registry+https://github.com/rust-lang/crates.io-index)" = "b614fe08b6665cb9a231d07ac1364b0ef3cb3698f1239ee0c4c3a88a524f54c8" @@ -1744,6 +1772,7 @@ dependencies = [ "checksum rustc-demangle 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)" = "11fb43a206a04116ffd7cfcf9bcb941f8eb6cc7ff667272246b0a1c74259a3cb" "checksum safemem 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "e27a8b19b835f7aea908818e871f5cc3a5a186550c30773be987e155e8163d8f" "checksum same-file 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)" = "d931a44fdaa43b8637009e7632a02adc4f2b2e0733c08caa4cf00e8da4a117a7" +"checksum scheduled-thread-pool 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "1a2ff3fc5223829be817806c6441279c676e454cc7da608faf03b0ccc09d3889" "checksum scoped-tls 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "8674d439c964889e2476f474a3bf198cc9e199e77499960893bac5de7e9218a4" "checksum scopeguard 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "94258f53601af11e6a49f722422f6e3425c52b06245a5cf9bc09908b174f5e27" "checksum semver 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)" = "bee2bc909ab2d8d60dab26e8cad85b25d795b14603a0dcb627b78b9d30b6454b" diff --git a/Cargo.toml b/Cargo.toml index 4800dbd02..b03275ab0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,5 +7,7 @@ authors = ["Vincent Ambo "] actix = "0.5" actix-web = { git="https://github.com/actix/actix-web.git" } env_logger = "0.5" -diesel = { version = "1.2", features = ["postgres", "chrono"]} +diesel = { version = "1.2", features = ["postgres", "chrono", "r2d2"]} chrono = "0.4" +log = "0.4" +r2d2 = "*" diff --git a/src/db.rs b/src/db.rs new file mode 100644 index 000000000..57aa5f982 --- /dev/null +++ b/src/db.rs @@ -0,0 +1,13 @@ +//! This module implements the database connection actor. + +use actix::prelude::*; +use diesel::prelude::PgConnection; +use diesel::r2d2::{Pool, ConnectionManager}; + +/// The DB actor itself. Several of these will be run in parallel by +/// `SyncArbiter`. +pub struct DbExecutor(pub Pool>); + +impl Actor for DbExecutor { + type Context = SyncContext; +} From 36e520a2b25e15cc227242d6af3784e08e45c1b1 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 8 Apr 2018 17:04:45 +0200 Subject: [PATCH 008/163] feat(db): Implement ListThreads message Implements support for a message for listing threads. This does not have any pagination support yet. --- src/db.rs | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/src/db.rs b/src/db.rs index 57aa5f982..17eecc938 100644 --- a/src/db.rs +++ b/src/db.rs @@ -1,8 +1,10 @@ //! This module implements the database connection actor. use actix::prelude::*; -use diesel::prelude::PgConnection; +use actix_web::Error; +use diesel::prelude::*; use diesel::r2d2::{Pool, ConnectionManager}; +use models::*; /// The DB actor itself. Several of these will be run in parallel by /// `SyncArbiter`. @@ -11,3 +13,23 @@ pub struct DbExecutor(pub Pool>); impl Actor for DbExecutor { type Context = SyncContext; } + +/// Message used to request a list of threads. +/// TODO: This should support page numbers. +pub struct ListThreads; + +impl Message for ListThreads { + type Result = Result, Error>; +} + +impl Handler for DbExecutor { + type Result = ::Result; + + fn handle(&mut self, _: ListThreads, _: &mut Self::Context) -> Self::Result { + use schema::threads::dsl::*; + + let conn = self.0.get().unwrap(); + let results = threads.load::(&conn).expect("Error loading threads"); + Ok(results) + } +} From 1402cfd948e72bfa665b19c30da987170a21aec1 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 8 Apr 2018 17:05:28 +0200 Subject: [PATCH 009/163] feat(main): Add barebares thread listing This ties together the first components here (actix, diesel etc.) to provide a _very_ simple thread overview. --- Cargo.lock | 1 + Cargo.toml | 1 + src/main.rs | 82 ++++++++++++++++++++++++++++++++++++++++++----------- 3 files changed, 68 insertions(+), 16 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index add7e5ba6..065720363 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -250,6 +250,7 @@ dependencies = [ "chrono 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", "diesel 1.2.0 (registry+https://github.com/rust-lang/crates.io-index)", "env_logger 0.5.6 (registry+https://github.com/rust-lang/crates.io-index)", + "futures 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", "r2d2 0.8.2 (registry+https://github.com/rust-lang/crates.io-index)", ] diff --git a/Cargo.toml b/Cargo.toml index b03275ab0..6fec489ac 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,3 +11,4 @@ diesel = { version = "1.2", features = ["postgres", "chrono", "r2d2"]} chrono = "0.4" log = "0.4" r2d2 = "*" +futures = "*" diff --git a/src/main.rs b/src/main.rs index 6e98fe8b1..559db8cc9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,33 +1,83 @@ #[macro_use] extern crate diesel; + +#[macro_use] +extern crate log; + extern crate chrono; +extern crate actix; +extern crate actix_web; +extern crate env_logger; +extern crate r2d2; +extern crate futures; pub mod schema; pub mod models; +pub mod db; + +use actix::prelude::*; +use actix_web::*; -use diesel::prelude::*; use diesel::pg::PgConnection; +use diesel::r2d2::{ConnectionManager, Pool}; use std::env; +use db::*; +use futures::Future; +use models::Thread; -fn connect_db() -> PgConnection { - let db_url = env::var("DATABASE_URL") - .expect("DATABASE_URL must be set"); +/// Represents the state carried by the web server actors. +struct AppState { + db: Addr, +} - PgConnection::establish(&db_url) - .expect(&format!("Error connecting to {}", db_url)) +/// Really inefficient renderer example! +fn render_threads(threads: Vec) -> String { + let mut res = String::new(); + + for thread in threads { + res.push_str(&format!("Subject: {}\n", thread.title)); + res.push_str(&format!("Posted at: {}\n\n", thread.posted)); + res.push_str(&format!("{}\n", thread.body)); + res.push_str("-------------------------------"); + } + + res +} + +fn forum_index(req: HttpRequest) -> FutureResponse { + req.state().db.send(ListThreads) + .from_err() + .and_then(|res| match res { + Ok(threads) => Ok(HttpResponse::from(render_threads(threads))), + Err(err) => { + error!("Error loading threads: {}", err); + Ok(HttpResponse::InternalServerError().into()) + } + }) + .responder() } fn main() { - use schema::threads::dsl::*; - use models::*; + env_logger::init(); - let conn = connect_db(); - let result: Vec = threads - .load::(&conn) - .expect("Error loading threads"); + info!("Welcome to Converse! Hold on tight while we're getting ready."); + let sys = actix::System::new("converse"); - for thread in result { - println!("Subject: {}\nPosted: {}\n", thread.title, thread.posted); - println!("{}", thread.body); - } + info!("Initialising database connection pool ..."); + let db_url = env::var("DATABASE_URL") + .expect("DATABASE_URL must be set"); + + let manager = ConnectionManager::::new(db_url); + let pool = Pool::builder().build(manager).expect("Failed to initialise DB pool"); + + let db_addr = SyncArbiter::start(2, move || DbExecutor(pool.clone())); + + info!("Initialising HTTP server ..."); + server::new(move || { + App::with_state(AppState { db: db_addr.clone() }) + .middleware(middleware::Logger::default()) + .route("/", http::Method::GET, &forum_index) + }).bind("127.0.0.1:4567").unwrap().start(); + + let _ = sys.run(); } From b83dd99e305f8de13211f14654b7bceb1c6024c1 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 8 Apr 2018 17:14:38 +0200 Subject: [PATCH 010/163] chore(cargo): Add dependency on tera Adds tera as the templating engine. --- Cargo.lock | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ Cargo.toml | 1 + 2 files changed, 60 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index 065720363..66412d5c0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -253,6 +253,7 @@ dependencies = [ "futures 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", "r2d2 0.8.2 (registry+https://github.com/rust-lang/crates.io-index)", + "tera 0.11.6 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -596,6 +597,11 @@ name = "httparse" version = "1.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" +[[package]] +name = "humansize" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" + [[package]] name = "humantime" version = "1.1.1" @@ -863,6 +869,21 @@ name = "percent-encoding" version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" +[[package]] +name = "pest" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "pest_derive" +version = "1.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "pest 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", + "quote 0.3.15 (registry+https://github.com/rust-lang/crates.io-index)", + "syn 0.11.11 (registry+https://github.com/rust-lang/crates.io-index)", +] + [[package]] name = "phf" version = "0.7.21" @@ -1196,6 +1217,14 @@ name = "slab" version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" +[[package]] +name = "slug" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "unidecode 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", +] + [[package]] name = "smallvec" version = "0.6.0" @@ -1277,6 +1306,25 @@ dependencies = [ "remove_dir_all 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)", ] +[[package]] +name = "tera" +version = "0.11.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "chrono 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", + "error-chain 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)", + "glob 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", + "humansize 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", + "lazy_static 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "pest 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", + "pest_derive 1.0.7 (registry+https://github.com/rust-lang/crates.io-index)", + "regex 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)", + "serde 1.0.37 (registry+https://github.com/rust-lang/crates.io-index)", + "serde_json 1.0.13 (registry+https://github.com/rust-lang/crates.io-index)", + "slug 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", + "url 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)", +] + [[package]] name = "termcolor" version = "0.3.6" @@ -1518,6 +1566,11 @@ name = "unicode-xid" version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" +[[package]] +name = "unidecode" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" + [[package]] name = "unreachable" version = "1.0.0" @@ -1711,6 +1764,7 @@ dependencies = [ "checksum http 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "75df369fd52c60635208a4d3e694777c099569b3dcf4844df8f652dc004644ab" "checksum http-range 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "5f2e4003e6fd05ea9109db00415e670b11f511a42e567ff2d5d771cbdfa24e02" "checksum httparse 1.2.4 (registry+https://github.com/rust-lang/crates.io-index)" = "c2f407128745b78abc95c0ffbe4e5d37427fdc0d45470710cfef8c44522a2e37" +"checksum humansize 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "b6cab2627acfc432780848602f3f558f7e9dd427352224b0d9324025796d2a5e" "checksum humantime 1.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "0484fda3e7007f2a4a0d9c3a703ca38c71c54c55602ce4660c419fd32e188c9e" "checksum idna 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)" = "014b298351066f1512874135335d62a789ffe78a9974f94b43ed5621951eaf7d" "checksum indexmap 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "08173ba1e906efb6538785a8844dd496f5d34f0a2d88038e95195172fc667220" @@ -1746,6 +1800,8 @@ dependencies = [ "checksum parking_lot 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)" = "149d8f5b97f3c1133e3cfcd8886449959e856b557ff281e292b733d7c69e005e" "checksum parking_lot_core 0.2.13 (registry+https://github.com/rust-lang/crates.io-index)" = "538ef00b7317875071d5e00f603f24d16f0b474c1a5fc0ccb8b454ca72eafa79" "checksum percent-encoding 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "31010dd2e1ac33d5b46a5b413495239882813e0369f8ed8a5e266f173602f831" +"checksum pest 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)" = "0fce5d8b5cc33983fc74f78ad552b5522ab41442c4ca91606e4236eb4b5ceefc" +"checksum pest_derive 1.0.7 (registry+https://github.com/rust-lang/crates.io-index)" = "ab94faafeb93f4c5e3ce81ca0e5a779529a602ad5d09ae6d21996bfb8b6a52bf" "checksum phf 0.7.21 (registry+https://github.com/rust-lang/crates.io-index)" = "cb325642290f28ee14d8c6201159949a872f220c62af6e110a56ea914fbe42fc" "checksum phf_codegen 0.7.21 (registry+https://github.com/rust-lang/crates.io-index)" = "d62594c0bb54c464f633175d502038177e90309daf2e0158be42ed5f023ce88f" "checksum phf_generator 0.7.21 (registry+https://github.com/rust-lang/crates.io-index)" = "6b07ffcc532ccc85e3afc45865469bf5d9e4ef5bfcf9622e3cfe80c2d275ec03" @@ -1787,6 +1843,7 @@ dependencies = [ "checksum siphasher 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "0df90a788073e8d0235a67e50441d47db7c8ad9debd91cbf43736a2a92d36537" "checksum skeptic 0.13.2 (registry+https://github.com/rust-lang/crates.io-index)" = "c8431f8fca168e2db4be547bd8329eac70d095dff1444fee4b0fa0fabc7df75a" "checksum slab 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "fdeff4cd9ecff59ec7e3744cbca73dfe5ac35c2aedb2cfba8a1c715a18912e9d" +"checksum slug 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "f6f5ff4b43cb07b86c5f9236c92714a22cdf9e5a27a7d85e398e2c9403328cb8" "checksum smallvec 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)" = "44db0ecb22921ef790d17ae13a3f6d15784183ff5f2a01aa32098c7498d2b4b9" "checksum socket2 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)" = "71ebbe82fcdd697244ba7fe6e05e63b5c45910c3927e28469a04947494ff48d8" "checksum stable_deref_trait 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "15132e0e364248108c5e2c02e3ab539be8d6f5d52a01ca9bbf27ed657316f02b" @@ -1797,6 +1854,7 @@ dependencies = [ "checksum synom 0.11.3 (registry+https://github.com/rust-lang/crates.io-index)" = "a393066ed9010ebaed60b9eafa373d4b1baac186dd7e008555b0f702b51945b6" "checksum synstructure 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)" = "3a761d12e6d8dcb4dcf952a7a89b475e3a9d69e4a69307e01a470977642914bd" "checksum tempdir 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)" = "15f2b5fb00ccdf689e0149d1b1b3c03fead81c2b37735d812fa8bddbbf41b6d8" +"checksum tera 0.11.6 (registry+https://github.com/rust-lang/crates.io-index)" = "1845350fc31befca6c3976001dc45213b63154a96b58cfbf177d45cbf94538dd" "checksum termcolor 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)" = "adc4587ead41bf016f11af03e55a624c06568b5a19db4e90fde573d805074f83" "checksum termion 1.5.1 (registry+https://github.com/rust-lang/crates.io-index)" = "689a3bdfaab439fd92bc87df5c4c78417d3cbe537487274e9b0b2dce76e92096" "checksum thread_local 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)" = "279ef31c19ededf577bfd12dfae728040a21f635b06a24cd670ff510edd38963" @@ -1820,6 +1878,7 @@ dependencies = [ "checksum unicode-normalization 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "51ccda9ef9efa3f7ef5d91e8f9b83bbe6955f9bf86aec89d5cce2c874625920f" "checksum unicode-xid 0.0.4 (registry+https://github.com/rust-lang/crates.io-index)" = "8c1f860d7d29cf02cb2f3f359fd35991af3d30bac52c57d265a3c461074cb4dc" "checksum unicode-xid 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "fc72304796d0818e357ead4e000d19c9c174ab23dc11093ac919054d20a6a7fc" +"checksum unidecode 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "d2adb95ee07cd579ed18131f2d9e7a17c25a4b76022935c7f2460d2bfae89fd2" "checksum unreachable 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "382810877fe448991dfc7f0dd6e3ae5d58088fd0ea5e35189655f84e6814fa56" "checksum untrusted 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)" = "f392d7819dbe58833e26872f5f6f0d68b7bbbe90fc3667e98731c4a15ad9a7ae" "checksum url 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "f808aadd8cfec6ef90e4a14eb46f24511824d1ac596b9682703c87056c8678b7" diff --git a/Cargo.toml b/Cargo.toml index 6fec489ac..ecc2fc606 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,3 +12,4 @@ chrono = "0.4" log = "0.4" r2d2 = "*" futures = "*" +tera = "0.11" From 3db069c60d5696efc3d8772e07fec65d876b45e2 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 8 Apr 2018 17:30:03 +0200 Subject: [PATCH 011/163] feat(main): Add support for Tera templates Sets up the structure required to carry Tera templates in the actix-web state. The (still very barebones) index renderer has been updated to render a Tera template. --- Cargo.lock | 3 +++ Cargo.toml | 4 +++- src/main.rs | 37 +++++++++++++++++++++++-------------- src/models.rs | 2 +- templates/index.html | 14 ++++++++++++++ 5 files changed, 44 insertions(+), 16 deletions(-) create mode 100644 templates/index.html diff --git a/Cargo.lock b/Cargo.lock index 66412d5c0..7b84193eb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -238,6 +238,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "num-integer 0.1.36 (registry+https://github.com/rust-lang/crates.io-index)", "num-traits 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", + "serde 1.0.37 (registry+https://github.com/rust-lang/crates.io-index)", "time 0.1.39 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -253,6 +254,8 @@ dependencies = [ "futures 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", "r2d2 0.8.2 (registry+https://github.com/rust-lang/crates.io-index)", + "serde 1.0.37 (registry+https://github.com/rust-lang/crates.io-index)", + "serde_derive 1.0.37 (registry+https://github.com/rust-lang/crates.io-index)", "tera 0.11.6 (registry+https://github.com/rust-lang/crates.io-index)", ] diff --git a/Cargo.toml b/Cargo.toml index ecc2fc606..76dccad89 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,8 +8,10 @@ actix = "0.5" actix-web = { git="https://github.com/actix/actix-web.git" } env_logger = "0.5" diesel = { version = "1.2", features = ["postgres", "chrono", "r2d2"]} -chrono = "0.4" +chrono = { version = "0.4", features = ["serde"] } log = "0.4" r2d2 = "*" futures = "*" tera = "0.11" +serde = "1.0" +serde_derive = "1.0" diff --git a/src/main.rs b/src/main.rs index 559db8cc9..419829b3e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,12 +4,19 @@ extern crate diesel; #[macro_use] extern crate log; +#[macro_use] +extern crate tera; + +#[macro_use] +extern crate serde_derive; + extern crate chrono; extern crate actix; extern crate actix_web; extern crate env_logger; extern crate r2d2; extern crate futures; +extern crate serde; pub mod schema; pub mod models; @@ -27,28 +34,27 @@ use models::Thread; /// Represents the state carried by the web server actors. struct AppState { + /// Address of the database actor db: Addr, + + /// Compiled templates + tera: tera::Tera, } /// Really inefficient renderer example! -fn render_threads(threads: Vec) -> String { - let mut res = String::new(); - - for thread in threads { - res.push_str(&format!("Subject: {}\n", thread.title)); - res.push_str(&format!("Posted at: {}\n\n", thread.posted)); - res.push_str(&format!("{}\n", thread.body)); - res.push_str("-------------------------------"); - } - - res +fn render_threads(tpl: &tera::Tera, threads: Vec) -> String { + let mut ctx = tera::Context::new(); + ctx.add("threads", &threads); + tpl.render("index.html", &ctx).expect("Oh no") } fn forum_index(req: HttpRequest) -> FutureResponse { req.state().db.send(ListThreads) .from_err() - .and_then(|res| match res { - Ok(threads) => Ok(HttpResponse::from(render_threads(threads))), + .and_then(move |res| match res { + Ok(threads) => Ok(HttpResponse::Ok() + .content_type("text/html") + .body(render_threads(&req.state().tera, threads))), Err(err) => { error!("Error loading threads: {}", err); Ok(HttpResponse::InternalServerError().into()) @@ -74,7 +80,10 @@ fn main() { info!("Initialising HTTP server ..."); server::new(move || { - App::with_state(AppState { db: db_addr.clone() }) + let template_path = concat!(env!("CARGO_MANIFEST_DIR"), "/templates/**/*"); + let tera = compile_templates!(template_path); + + App::with_state(AppState { db: db_addr.clone(), tera }) .middleware(middleware::Logger::default()) .route("/", http::Method::GET, &forum_index) }).bind("127.0.0.1:4567").unwrap().start(); diff --git a/src/models.rs b/src/models.rs index e50289130..929bd0507 100644 --- a/src/models.rs +++ b/src/models.rs @@ -1,6 +1,6 @@ use chrono::prelude::{DateTime, Utc}; -#[derive(Queryable)] +#[derive(Queryable, Serialize)] pub struct Thread { pub id: i32, pub title: String, diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 000000000..566715248 --- /dev/null +++ b/templates/index.html @@ -0,0 +1,14 @@ + + + + Converse Index page + + +

Welcome to Converse

+
    + {% for thread in threads -%} +
  • {{ thread.title }} (posted at {{ thread.posted }})
  • + {%- endfor %} +
+ + From 7dca9183c581f803f7b456712dfed655722986e8 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 8 Apr 2018 17:42:14 +0200 Subject: [PATCH 012/163] feat(db): Add initial GetThread message Adds a GetThread message that returns a thread by ID. This does not yet load posts. --- src/db.rs | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/db.rs b/src/db.rs index 17eecc938..c3a05a323 100644 --- a/src/db.rs +++ b/src/db.rs @@ -33,3 +33,25 @@ impl Handler for DbExecutor { Ok(results) } } + +/// Message used to fetch a specific thread. Returns the thread and +/// its posts. +pub struct GetThread(pub i32); + +impl Message for GetThread { + type Result = Result<(Thread, Vec), Error>; +} + +impl Handler for DbExecutor { + type Result = ::Result; + + fn handle(&mut self, msg: GetThread, _: &mut Self::Context) -> Self::Result { + use schema::threads::dsl::*; + let conn = self.0.get().unwrap(); + let result: Thread = threads + .find(msg.0).first(&conn) + .expect("Error loading thread"); + + Ok((result, vec![])) + } +} From 6e56f8e729551ff14b7a72ca889b8dd38999fb2d Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 8 Apr 2018 18:02:01 +0200 Subject: [PATCH 013/163] feat(main/templates): Add barebones single-thread view --- src/main.rs | 28 +++++++++++++++++++++++++++- src/models.rs | 2 +- templates/index.html | 2 +- templates/thread.html | 14 ++++++++++++++ 4 files changed, 43 insertions(+), 3 deletions(-) create mode 100644 templates/thread.html diff --git a/src/main.rs b/src/main.rs index 419829b3e..b26954d42 100644 --- a/src/main.rs +++ b/src/main.rs @@ -30,7 +30,7 @@ use diesel::r2d2::{ConnectionManager, Pool}; use std::env; use db::*; use futures::Future; -use models::Thread; +use models::*; /// Represents the state carried by the web server actors. struct AppState { @@ -63,6 +63,31 @@ fn forum_index(req: HttpRequest) -> FutureResponse { .responder() } +fn render_thread(tpl: &tera::Tera, thread: Thread, posts: Vec) -> HttpResponse { + let mut ctx = tera::Context::new(); + ctx.add("thread", &thread); + ctx.add("posts", &posts); + + let body = tpl.render("thread.html", &ctx).expect("Oh no"); + HttpResponse::Ok() + .content_type("text/html") + .body(body) +} + +fn forum_thread(req: HttpRequest) -> FutureResponse { + let thread_id = req.match_info().query("id").unwrap(); + req.state().db.send(GetThread(thread_id)) + .from_err() + .and_then(move |res| match res { + Ok((thread, posts)) => Ok(render_thread(&req.state().tera, thread, posts)), + Err(err) => { + error!("Error loading thread {}: {}", thread_id, err); + Ok(HttpResponse::InternalServerError().into()) + } + }) + .responder() +} + fn main() { env_logger::init(); @@ -86,6 +111,7 @@ fn main() { App::with_state(AppState { db: db_addr.clone(), tera }) .middleware(middleware::Logger::default()) .route("/", http::Method::GET, &forum_index) + .route("/thread/{id}", http::Method::GET, &forum_thread) }).bind("127.0.0.1:4567").unwrap().start(); let _ = sys.run(); diff --git a/src/models.rs b/src/models.rs index 929bd0507..74b386a19 100644 --- a/src/models.rs +++ b/src/models.rs @@ -8,7 +8,7 @@ pub struct Thread { pub posted: DateTime, } -#[derive(Queryable)] +#[derive(Queryable, Serialize)] pub struct Post { pub id: i32, pub thread: i32, diff --git a/templates/index.html b/templates/index.html index 566715248..9faee49ca 100644 --- a/templates/index.html +++ b/templates/index.html @@ -7,7 +7,7 @@

Welcome to Converse

    {% for thread in threads -%} -
  • {{ thread.title }} (posted at {{ thread.posted }})
  • +
  • {{ thread.title }} (posted at {{ thread.posted }})
  • {%- endfor %}
diff --git a/templates/thread.html b/templates/thread.html new file mode 100644 index 000000000..e841668bf --- /dev/null +++ b/templates/thread.html @@ -0,0 +1,14 @@ + + + + Converse: {{ thread.title }} + + +

{{ thread.title }}

+ +

{{ thread.body }}
Posted at {{ thread.posted }}

+ {% for post in posts -%} +
  • {{ post.body }}
    Posted at {{ post.posted }}

    + {%- endfor %} + + From 316036b0a89a428e850ea33e07f5fe2362f833c9 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 8 Apr 2018 18:27:15 +0200 Subject: [PATCH 014/163] refactor(db): Establish Post->Thread association This makes it possible to query posts by thread via Diesel. --- migrations/2018-04-08-161017_joinable_posts/down.sql | 1 + migrations/2018-04-08-161017_joinable_posts/up.sql | 1 + src/db.rs | 8 ++++++-- src/models.rs | 8 +++++--- src/schema.rs | 4 ++-- 5 files changed, 15 insertions(+), 7 deletions(-) create mode 100644 migrations/2018-04-08-161017_joinable_posts/down.sql create mode 100644 migrations/2018-04-08-161017_joinable_posts/up.sql diff --git a/migrations/2018-04-08-161017_joinable_posts/down.sql b/migrations/2018-04-08-161017_joinable_posts/down.sql new file mode 100644 index 000000000..cc7874b41 --- /dev/null +++ b/migrations/2018-04-08-161017_joinable_posts/down.sql @@ -0,0 +1 @@ +ALTER TABLE posts RENAME COLUMN thread_id TO thread; diff --git a/migrations/2018-04-08-161017_joinable_posts/up.sql b/migrations/2018-04-08-161017_joinable_posts/up.sql new file mode 100644 index 000000000..9713de6cf --- /dev/null +++ b/migrations/2018-04-08-161017_joinable_posts/up.sql @@ -0,0 +1 @@ +ALTER TABLE posts RENAME COLUMN thread TO thread_id; diff --git a/src/db.rs b/src/db.rs index c3a05a323..1aa6ff73c 100644 --- a/src/db.rs +++ b/src/db.rs @@ -47,11 +47,15 @@ impl Handler for DbExecutor { fn handle(&mut self, msg: GetThread, _: &mut Self::Context) -> Self::Result { use schema::threads::dsl::*; + let conn = self.0.get().unwrap(); - let result: Thread = threads + let thread_result: Thread = threads .find(msg.0).first(&conn) .expect("Error loading thread"); - Ok((result, vec![])) + let post_list = Post::belonging_to(&thread_result) + .load::(&conn).expect("Error loading posts for thread"); + + Ok((thread_result, post_list)) } } diff --git a/src/models.rs b/src/models.rs index 74b386a19..42d8d1164 100644 --- a/src/models.rs +++ b/src/models.rs @@ -1,6 +1,7 @@ use chrono::prelude::{DateTime, Utc}; +use schema::{threads, posts}; -#[derive(Queryable, Serialize)] +#[derive(Identifiable, Queryable, Serialize)] pub struct Thread { pub id: i32, pub title: String, @@ -8,10 +9,11 @@ pub struct Thread { pub posted: DateTime, } -#[derive(Queryable, Serialize)] +#[derive(Identifiable, Queryable, Serialize, Associations)] +#[belongs_to(Thread)] pub struct Post { pub id: i32, - pub thread: i32, + pub thread_id: i32, pub body: String, pub posted: DateTime, } diff --git a/src/schema.rs b/src/schema.rs index a899f52ac..8b05eb546 100644 --- a/src/schema.rs +++ b/src/schema.rs @@ -1,7 +1,7 @@ table! { posts (id) { id -> Int4, - thread -> Int4, + thread_id -> Int4, body -> Text, posted -> Timestamptz, } @@ -16,7 +16,7 @@ table! { } } -joinable!(posts -> threads (thread)); +joinable!(posts -> threads (thread_id)); allow_tables_to_appear_in_same_query!( posts, From a1a6b77fdfee7fc8b3b9a8692cc4b6e3ec74247d Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 8 Apr 2018 18:42:01 +0200 Subject: [PATCH 015/163] refactor(main): Use actix-web extractor pattern --- src/main.rs | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/src/main.rs b/src/main.rs index b26954d42..4d3d81c81 100644 --- a/src/main.rs +++ b/src/main.rs @@ -24,6 +24,7 @@ pub mod db; use actix::prelude::*; use actix_web::*; +use actix_web::http::Method; use diesel::pg::PgConnection; use diesel::r2d2::{ConnectionManager, Pool}; @@ -48,13 +49,13 @@ fn render_threads(tpl: &tera::Tera, threads: Vec) -> String { tpl.render("index.html", &ctx).expect("Oh no") } -fn forum_index(req: HttpRequest) -> FutureResponse { - req.state().db.send(ListThreads) +fn forum_index(state: State) -> FutureResponse { + state.db.send(ListThreads) .from_err() .and_then(move |res| match res { Ok(threads) => Ok(HttpResponse::Ok() .content_type("text/html") - .body(render_threads(&req.state().tera, threads))), + .body(render_threads(&state.tera, threads))), Err(err) => { error!("Error loading threads: {}", err); Ok(HttpResponse::InternalServerError().into()) @@ -74,14 +75,15 @@ fn render_thread(tpl: &tera::Tera, thread: Thread, posts: Vec) -> HttpResp .body(body) } -fn forum_thread(req: HttpRequest) -> FutureResponse { - let thread_id = req.match_info().query("id").unwrap(); - req.state().db.send(GetThread(thread_id)) +fn forum_thread(state: State, thread_id: Path) + -> FutureResponse { + let id = thread_id.into_inner(); + state.db.send(GetThread(id)) .from_err() .and_then(move |res| match res { - Ok((thread, posts)) => Ok(render_thread(&req.state().tera, thread, posts)), + Ok((thread, posts)) => Ok(render_thread(&state.tera, thread, posts)), Err(err) => { - error!("Error loading thread {}: {}", thread_id, err); + error!("Error loading thread {}: {}", id, err); Ok(HttpResponse::InternalServerError().into()) } }) @@ -110,8 +112,8 @@ fn main() { App::with_state(AppState { db: db_addr.clone(), tera }) .middleware(middleware::Logger::default()) - .route("/", http::Method::GET, &forum_index) - .route("/thread/{id}", http::Method::GET, &forum_thread) + .resource("/", |r| r.method(Method::GET).with(forum_index)) + .resource("/thread/{id}", |r| r.method(Method::GET).with2(forum_thread)) }).bind("127.0.0.1:4567").unwrap().start(); let _ = sys.run(); From 67a0642f8c9b9f90c71ab8ca64be8e6ae15ff830 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 8 Apr 2018 18:44:41 +0200 Subject: [PATCH 016/163] feat(main): Support CONVERSE_BIND_HOST environment variable --- src/main.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 4d3d81c81..3590975c8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -106,6 +106,8 @@ fn main() { let db_addr = SyncArbiter::start(2, move || DbExecutor(pool.clone())); info!("Initialising HTTP server ..."); + let bind_host = env::var("CONVERSE_BIND_HOST").unwrap_or("127.0.0.1:4567".into()); + server::new(move || { let template_path = concat!(env!("CARGO_MANIFEST_DIR"), "/templates/**/*"); let tera = compile_templates!(template_path); @@ -113,8 +115,9 @@ fn main() { App::with_state(AppState { db: db_addr.clone(), tera }) .middleware(middleware::Logger::default()) .resource("/", |r| r.method(Method::GET).with(forum_index)) - .resource("/thread/{id}", |r| r.method(Method::GET).with2(forum_thread)) - }).bind("127.0.0.1:4567").unwrap().start(); + .resource("/thread/{id}", |r| r.method(Method::GET).with2(forum_thread))}) + .bind(&bind_host).expect(&format!("Could not bind on '{}'", bind_host)) + .start(); let _ = sys.run(); } From c8cee945c569d71618b6bce5848233af4c9be18a Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 8 Apr 2018 18:48:50 +0200 Subject: [PATCH 017/163] refactor(main): Move handlers into separate handler module --- src/handlers.rs | 76 +++++++++++++++++++++++++++++++++++++++++++++++++ src/main.rs | 64 ++--------------------------------------- 2 files changed, 79 insertions(+), 61 deletions(-) create mode 100644 src/handlers.rs diff --git a/src/handlers.rs b/src/handlers.rs new file mode 100644 index 000000000..446f59a4f --- /dev/null +++ b/src/handlers.rs @@ -0,0 +1,76 @@ +//! This module contains the implementation of converse's actix-web +//! HTTP handlers. +//! +//! Most handlers have an associated rendering function using one of +//! the tera templates stored in the `/templates` directory in the +//! project root. + +use tera; +use actix_web::*; +use models::*; +use db::*; +use actix::prelude::{Addr, Syn}; +use futures::Future; +use errors::{Result, ConverseError}; + +type ConverseResponse = Box>; + +/// Represents the state carried by the web server actors. +pub struct AppState { + /// Address of the database actor + pub db: Addr, + + /// Compiled templates + pub tera: tera::Tera, +} + +/// This function renders an overview of threads into the default +/// thread list template. +fn render_threads(tpl: &tera::Tera, threads: Vec) -> Result { + let mut ctx = tera::Context::new(); + ctx.add("threads", &threads); + let body = tpl.render("index.html", &ctx)?; + Ok(HttpResponse::Ok().content_type("text/html").body(body)) +} + +pub fn forum_index(state: State) -> ConverseResponse { + state.db.send(ListThreads) + .from_err() + .and_then(move |res| match res { + Ok(threads) => Ok(render_threads(&state.tera, threads)?), + Err(err) => { + error!("Error loading threads: {}", err); + Ok(HttpResponse::InternalServerError().into()) + } + }) + .responder() +} + +/// This function renders a single forum thread into the default +/// thread view. +fn render_thread(tpl: &tera::Tera, thread: Thread, posts: Vec) + -> Result { + let mut ctx = tera::Context::new(); + ctx.add("thread", &thread); + ctx.add("posts", &posts); + + let body = tpl.render("thread.html", &ctx)?; + Ok(HttpResponse::Ok() + .content_type("text/html") + .body(body)) +} + +/// This handler retrieves and displays a single forum thread. +pub fn forum_thread(state: State, thread_id: Path) -> ConverseResponse { + let id = thread_id.into_inner(); + state.db.send(GetThread(id)) + .from_err() + .and_then(move |res| match res { + Ok((thread, posts)) => Ok(render_thread(&state.tera, thread, posts)?), + Err(err) => { + error!("Error loading thread {}: {}", id, err); + Ok(HttpResponse::InternalServerError().into()) + } + }) + .responder() +} diff --git a/src/main.rs b/src/main.rs index 3590975c8..8ce4e1082 100644 --- a/src/main.rs +++ b/src/main.rs @@ -21,74 +21,16 @@ extern crate serde; pub mod schema; pub mod models; pub mod db; +pub mod handlers; use actix::prelude::*; use actix_web::*; use actix_web::http::Method; - +use db::*; use diesel::pg::PgConnection; use diesel::r2d2::{ConnectionManager, Pool}; use std::env; -use db::*; -use futures::Future; -use models::*; - -/// Represents the state carried by the web server actors. -struct AppState { - /// Address of the database actor - db: Addr, - - /// Compiled templates - tera: tera::Tera, -} - -/// Really inefficient renderer example! -fn render_threads(tpl: &tera::Tera, threads: Vec) -> String { - let mut ctx = tera::Context::new(); - ctx.add("threads", &threads); - tpl.render("index.html", &ctx).expect("Oh no") -} - -fn forum_index(state: State) -> FutureResponse { - state.db.send(ListThreads) - .from_err() - .and_then(move |res| match res { - Ok(threads) => Ok(HttpResponse::Ok() - .content_type("text/html") - .body(render_threads(&state.tera, threads))), - Err(err) => { - error!("Error loading threads: {}", err); - Ok(HttpResponse::InternalServerError().into()) - } - }) - .responder() -} - -fn render_thread(tpl: &tera::Tera, thread: Thread, posts: Vec) -> HttpResponse { - let mut ctx = tera::Context::new(); - ctx.add("thread", &thread); - ctx.add("posts", &posts); - - let body = tpl.render("thread.html", &ctx).expect("Oh no"); - HttpResponse::Ok() - .content_type("text/html") - .body(body) -} - -fn forum_thread(state: State, thread_id: Path) - -> FutureResponse { - let id = thread_id.into_inner(); - state.db.send(GetThread(id)) - .from_err() - .and_then(move |res| match res { - Ok((thread, posts)) => Ok(render_thread(&state.tera, thread, posts)), - Err(err) => { - error!("Error loading thread {}: {}", id, err); - Ok(HttpResponse::InternalServerError().into()) - } - }) - .responder() -} +use handlers::*; fn main() { env_logger::init(); From fdc1abe7cc6e2552c30df6c124aca711b130d496 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 8 Apr 2018 19:21:56 +0200 Subject: [PATCH 018/163] feat(errors): Introduce error module with custom error type Introduces an error type using the failure crate. This type has foreign error links established to various errors that can occur within Converse. --- Cargo.lock | 1 + Cargo.toml | 1 + src/errors.rs | 75 +++++++++++++++++++++++++++++++++++++++++++++++++++ src/main.rs | 8 ++++-- 4 files changed, 83 insertions(+), 2 deletions(-) create mode 100644 src/errors.rs diff --git a/Cargo.lock b/Cargo.lock index 7b84193eb..50fdc3ba9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -251,6 +251,7 @@ dependencies = [ "chrono 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", "diesel 1.2.0 (registry+https://github.com/rust-lang/crates.io-index)", "env_logger 0.5.6 (registry+https://github.com/rust-lang/crates.io-index)", + "failure 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", "futures 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", "r2d2 0.8.2 (registry+https://github.com/rust-lang/crates.io-index)", diff --git a/Cargo.toml b/Cargo.toml index 76dccad89..9bcfafac4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,3 +15,4 @@ futures = "*" tera = "0.11" serde = "1.0" serde_derive = "1.0" +failure = "*" diff --git a/src/errors.rs b/src/errors.rs new file mode 100644 index 000000000..3cbda5f4e --- /dev/null +++ b/src/errors.rs @@ -0,0 +1,75 @@ +//! This module defines custom error types using the `failure`-crate. +//! Links to foreign error types (such as database connection errors) +//! are established in a similar way as was tradition in +//! `error_chain`, albeit manually. + +use std::result; +use actix_web::{ResponseError, HttpResponse}; +use actix_web::http::StatusCode; + +// Modules with foreign errors: +use actix; +use diesel; +use r2d2; +use tera; + +pub type Result = result::Result; + +#[derive(Debug, Fail)] +pub enum ConverseError { + #[fail(display = "an internal Converse error occured: {}", reason)] + InternalError { reason: String }, + + #[fail(display = "a database error occured: {}", error)] + Database { error: diesel::result::Error }, + + #[fail(display = "a database connection pool error occured: {}", error)] + ConnectionPool { error: r2d2::Error }, + + #[fail(display = "a template rendering error occured: {}", reason)] + Template { reason: String }, + + // This variant is used as a catch-all for wrapping + // actix-web-compatible response errors, such as the errors it + // throws itself. + #[fail(display = "Actix response error: {}", error)] + ActixWeb { error: Box }, +} + +// Establish conversion links to foreign errors: + +impl From for ConverseError { + fn from(error: diesel::result::Error) -> ConverseError { + ConverseError::Database { error } + } +} + +impl From for ConverseError { + fn from(error: r2d2::Error) -> ConverseError { + ConverseError::ConnectionPool { error } + } +} + +impl From for ConverseError { + fn from(error: tera::Error) -> ConverseError { + ConverseError::Template { + reason: format!("{}", error), + } + } +} + +impl From for ConverseError { + fn from(error: actix::MailboxError) -> ConverseError { + ConverseError::ActixWeb { error: Box::new(error) } + } +} + +// Support conversion of error type into HTTP error responses: + +impl ResponseError for ConverseError { + fn error_response(&self) -> HttpResponse { + // Everything is mapped to internal server errors for now. + HttpResponse::build(StatusCode::INTERNAL_SERVER_ERROR) + .body(format!("An error occured: {}", self)) + } +} diff --git a/src/main.rs b/src/main.rs index 8ce4e1082..767d45891 100644 --- a/src/main.rs +++ b/src/main.rs @@ -10,6 +10,9 @@ extern crate tera; #[macro_use] extern crate serde_derive; +#[macro_use] +extern crate failure; + extern crate chrono; extern crate actix; extern crate actix_web; @@ -18,10 +21,11 @@ extern crate r2d2; extern crate futures; extern crate serde; -pub mod schema; -pub mod models; pub mod db; +pub mod errors; pub mod handlers; +pub mod models; +pub mod schema; use actix::prelude::*; use actix_web::*; From 15d460bab3d45a8253c8d1ae9cdd69223fa78095 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 8 Apr 2018 19:22:42 +0200 Subject: [PATCH 019/163] refactor(db): Use ConverseError instead of unwrapping/expecting --- src/db.rs | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/src/db.rs b/src/db.rs index 1aa6ff73c..ed4a78659 100644 --- a/src/db.rs +++ b/src/db.rs @@ -1,10 +1,10 @@ //! This module implements the database connection actor. use actix::prelude::*; -use actix_web::Error; use diesel::prelude::*; use diesel::r2d2::{Pool, ConnectionManager}; use models::*; +use errors::Result; /// The DB actor itself. Several of these will be run in parallel by /// `SyncArbiter`. @@ -19,7 +19,7 @@ impl Actor for DbExecutor { pub struct ListThreads; impl Message for ListThreads { - type Result = Result, Error>; + type Result = Result>; } impl Handler for DbExecutor { @@ -28,8 +28,8 @@ impl Handler for DbExecutor { fn handle(&mut self, _: ListThreads, _: &mut Self::Context) -> Self::Result { use schema::threads::dsl::*; - let conn = self.0.get().unwrap(); - let results = threads.load::(&conn).expect("Error loading threads"); + let conn = self.0.get()?; + let results = threads.load::(&conn)?; Ok(results) } } @@ -39,7 +39,7 @@ impl Handler for DbExecutor { pub struct GetThread(pub i32); impl Message for GetThread { - type Result = Result<(Thread, Vec), Error>; + type Result = Result<(Thread, Vec)>; } impl Handler for DbExecutor { @@ -48,13 +48,11 @@ impl Handler for DbExecutor { fn handle(&mut self, msg: GetThread, _: &mut Self::Context) -> Self::Result { use schema::threads::dsl::*; - let conn = self.0.get().unwrap(); + let conn = self.0.get()?; let thread_result: Thread = threads - .find(msg.0).first(&conn) - .expect("Error loading thread"); + .find(msg.0).first(&conn)?; - let post_list = Post::belonging_to(&thread_result) - .load::(&conn).expect("Error loading posts for thread"); + let post_list = Post::belonging_to(&thread_result).load::(&conn)?; Ok((thread_result, post_list)) } From f281749b8c5fbd80b77159f170a5ab173ec69d71 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 8 Apr 2018 19:29:56 +0200 Subject: [PATCH 020/163] feat(migrations): Default 'posted' columns to NOW() --- migrations/2018-04-08-172739_default_posted/down.sql | 2 ++ migrations/2018-04-08-172739_default_posted/up.sql | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 migrations/2018-04-08-172739_default_posted/down.sql create mode 100644 migrations/2018-04-08-172739_default_posted/up.sql diff --git a/migrations/2018-04-08-172739_default_posted/down.sql b/migrations/2018-04-08-172739_default_posted/down.sql new file mode 100644 index 000000000..64dc07e06 --- /dev/null +++ b/migrations/2018-04-08-172739_default_posted/down.sql @@ -0,0 +1,2 @@ +ALTER TABLE threads ALTER COLUMN posted DROP DEFAULT; +ALTER TABLE posts ALTER COLUMN posted DROP DEFAULT; diff --git a/migrations/2018-04-08-172739_default_posted/up.sql b/migrations/2018-04-08-172739_default_posted/up.sql new file mode 100644 index 000000000..afca8181c --- /dev/null +++ b/migrations/2018-04-08-172739_default_posted/up.sql @@ -0,0 +1,2 @@ +ALTER TABLE threads ALTER COLUMN posted SET DEFAULT (NOW() AT TIME ZONE 'UTC'); +ALTER TABLE posts ALTER COLUMN posted SET DEFAULT (NOW() AT TIME ZONE 'UTC'); From fc7ca2900d656974891c7e5ccfd532ab93aade94 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 8 Apr 2018 19:41:28 +0200 Subject: [PATCH 021/163] feat(db): Support CreateThread message --- src/db.rs | 22 ++++++++++++++++++++++ src/models.rs | 7 +++++++ 2 files changed, 29 insertions(+) diff --git a/src/db.rs b/src/db.rs index ed4a78659..8c828d9c6 100644 --- a/src/db.rs +++ b/src/db.rs @@ -1,6 +1,7 @@ //! This module implements the database connection actor. use actix::prelude::*; +use diesel; use diesel::prelude::*; use diesel::r2d2::{Pool, ConnectionManager}; use models::*; @@ -57,3 +58,24 @@ impl Handler for DbExecutor { Ok((thread_result, post_list)) } } + +/// Message used to create a new thread +pub struct CreateThread(pub NewThread); + +impl Message for CreateThread { + type Result = Result; +} + +impl Handler for DbExecutor { + type Result = ::Result; + + fn handle(&mut self, msg: CreateThread, _: &mut Self::Context) -> Self::Result { + use schema::threads; + + let conn = self.0.get()?; + + Ok(diesel::insert_into(threads::table) + .values(&msg.0) + .get_result(&conn)?) + } +} diff --git a/src/models.rs b/src/models.rs index 42d8d1164..fc67c260a 100644 --- a/src/models.rs +++ b/src/models.rs @@ -17,3 +17,10 @@ pub struct Post { pub body: String, pub posted: DateTime, } + +#[derive(Insertable)] +#[table_name="threads"] +pub struct NewThread { + pub title: String, + pub body: String, +} From 094b1e07225313c930c26dbeb73755f34a537ce4 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 8 Apr 2018 20:01:32 +0200 Subject: [PATCH 022/163] feat(handlers): Add thread submission handler --- src/handlers.rs | 15 +++++++++++++++ src/main.rs | 1 + src/models.rs | 2 +- 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/src/handlers.rs b/src/handlers.rs index 446f59a4f..cc4ac23c4 100644 --- a/src/handlers.rs +++ b/src/handlers.rs @@ -74,3 +74,18 @@ pub fn forum_thread(state: State, thread_id: Path) -> ConverseRes }) .responder() } + +/// This handler receives a "New thread"-form and redirects the user +/// to the new thread after creation. +pub fn submit_thread(state: State, input: Form) -> ConverseResponse { + state.db.send(CreateThread(input.0)) + .from_err() + .and_then(move |res| { + let thread = res?; + info!("Created new thread \"{}\" with ID {}", thread.title, thread.id); + Ok(HttpResponse::TemporaryRedirect() + .header("Location", format!("/thread/{}", thread.id)) + .finish()) + }) + .responder() +} diff --git a/src/main.rs b/src/main.rs index 767d45891..ad1f81927 100644 --- a/src/main.rs +++ b/src/main.rs @@ -61,6 +61,7 @@ fn main() { App::with_state(AppState { db: db_addr.clone(), tera }) .middleware(middleware::Logger::default()) .resource("/", |r| r.method(Method::GET).with(forum_index)) + .resource("/thread", |r| r.method(Method::POST).with2(submit_thread)) .resource("/thread/{id}", |r| r.method(Method::GET).with2(forum_thread))}) .bind(&bind_host).expect(&format!("Could not bind on '{}'", bind_host)) .start(); diff --git a/src/models.rs b/src/models.rs index fc67c260a..d85a54e03 100644 --- a/src/models.rs +++ b/src/models.rs @@ -18,7 +18,7 @@ pub struct Post { pub posted: DateTime, } -#[derive(Insertable)] +#[derive(Deserialize, Insertable)] #[table_name="threads"] pub struct NewThread { pub title: String, From 55b28f81369b6ea35ea08b67958674198fe94a4d Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 8 Apr 2018 20:01:41 +0200 Subject: [PATCH 023/163] feat(templates): Add a shitty thread submission form --- templates/index.html | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/templates/index.html b/templates/index.html index 9faee49ca..2b835e8eb 100644 --- a/templates/index.html +++ b/templates/index.html @@ -10,5 +10,19 @@
  • {{ thread.title }} (posted at {{ thread.posted }})
  • {%- endfor %} +
    +
    +
    + + +
    +
    + + +
    +
    + +
    +
    From 148dfc39c80266e9c3077737e4258739dba7d86a Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 8 Apr 2018 20:19:46 +0200 Subject: [PATCH 024/163] feat(db/models): Add handling of CreatePost message --- src/db.rs | 25 +++++++++++++++++++++++-- src/models.rs | 7 +++++++ 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/src/db.rs b/src/db.rs index 8c828d9c6..baf404af2 100644 --- a/src/db.rs +++ b/src/db.rs @@ -75,7 +75,28 @@ impl Handler for DbExecutor { let conn = self.0.get()?; Ok(diesel::insert_into(threads::table) - .values(&msg.0) - .get_result(&conn)?) + .values(&msg.0) + .get_result(&conn)?) + } +} + +/// Message used to create a new reply +pub struct CreatePost(pub NewPost); + +impl Message for CreatePost { + type Result = Result; +} + +impl Handler for DbExecutor { + type Result = ::Result; + + fn handle(&mut self, msg: CreatePost, _: &mut Self::Context) -> Self::Result { + use schema::posts; + + let conn = self.0.get()?; + + Ok(diesel::insert_into(posts::table) + .values(&msg.0) + .get_result(&conn)?) } } diff --git a/src/models.rs b/src/models.rs index d85a54e03..28b1caa7c 100644 --- a/src/models.rs +++ b/src/models.rs @@ -24,3 +24,10 @@ pub struct NewThread { pub title: String, pub body: String, } + +#[derive(Deserialize, Insertable)] +#[table_name="posts"] +pub struct NewPost { + pub thread_id: i32, + pub body: String, +} From cf636077e65ae4c8598fd32aa9b233b87070875e Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 8 Apr 2018 20:20:05 +0200 Subject: [PATCH 025/163] feat(handlers): Add reply_thread handler for posts --- src/handlers.rs | 17 ++++++++++++++++- src/main.rs | 3 ++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/src/handlers.rs b/src/handlers.rs index cc4ac23c4..a16f73389 100644 --- a/src/handlers.rs +++ b/src/handlers.rs @@ -83,9 +83,24 @@ pub fn submit_thread(state: State, input: Form) -> Converse .and_then(move |res| { let thread = res?; info!("Created new thread \"{}\" with ID {}", thread.title, thread.id); - Ok(HttpResponse::TemporaryRedirect() + Ok(HttpResponse::SeeOther() .header("Location", format!("/thread/{}", thread.id)) .finish()) }) .responder() } + +/// This handler receives a "Reply"-form and redirects the user to the +/// new post after creation. +pub fn reply_thread(state: State, input: Form) -> ConverseResponse { + state.db.send(CreatePost(input.0)) + .from_err() + .and_then(move |res| { + let post = res?; + info!("Posted reply {} to thread {}", post.id, post.thread_id); + Ok(HttpResponse::SeeOther() + .header("Location", format!("/thread/{}#post{}", post.thread_id, post.id)) + .finish()) + }) + .responder() +} diff --git a/src/main.rs b/src/main.rs index ad1f81927..3269e2d4d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -61,7 +61,8 @@ fn main() { App::with_state(AppState { db: db_addr.clone(), tera }) .middleware(middleware::Logger::default()) .resource("/", |r| r.method(Method::GET).with(forum_index)) - .resource("/thread", |r| r.method(Method::POST).with2(submit_thread)) + .resource("/thread/submit", |r| r.method(Method::POST).with2(submit_thread)) + .resource("/thread/reply", |r| r.method(Method::POST).with2(reply_thread)) .resource("/thread/{id}", |r| r.method(Method::GET).with2(forum_thread))}) .bind(&bind_host).expect(&format!("Could not bind on '{}'", bind_host)) .start(); From ef5f7af89c8dfadca3d2515e4fa1ce71a4b778b9 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 8 Apr 2018 20:20:17 +0200 Subject: [PATCH 026/163] feat(templates): Add shitty little response form in thread view --- templates/index.html | 2 +- templates/thread.html | 14 +++++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/templates/index.html b/templates/index.html index 2b835e8eb..d1b744e94 100644 --- a/templates/index.html +++ b/templates/index.html @@ -11,7 +11,7 @@ {%- endfor %}
    -
    +
    diff --git a/templates/thread.html b/templates/thread.html index e841668bf..e26d4bcc6 100644 --- a/templates/thread.html +++ b/templates/thread.html @@ -8,7 +8,19 @@

    {{ thread.body }}
    Posted at {{ thread.posted }}

    {% for post in posts -%} -
  • {{ post.body }}
    Posted at {{ post.posted }}

    +
  • {{ post.body }}
    Posted at {{ post.posted }}
  • {%- endfor %} + +
    + + +
    + + +
    +
    + +
    + From da33786939979350b58a09145b56913963380c92 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 8 Apr 2018 20:27:22 +0200 Subject: [PATCH 027/163] feat(migrations): Add author columns to tables Adds columns for author names and emails to both threads and posts. "Users" don't (yet? who knows!) exist as independent entity in Converse, they are simply "inferred" via OIDC providers. --- migrations/2018-04-08-182319_add_authors/down.sql | 5 +++++ migrations/2018-04-08-182319_add_authors/up.sql | 10 ++++++++++ 2 files changed, 15 insertions(+) create mode 100644 migrations/2018-04-08-182319_add_authors/down.sql create mode 100644 migrations/2018-04-08-182319_add_authors/up.sql diff --git a/migrations/2018-04-08-182319_add_authors/down.sql b/migrations/2018-04-08-182319_add_authors/down.sql new file mode 100644 index 000000000..8ad817908 --- /dev/null +++ b/migrations/2018-04-08-182319_add_authors/down.sql @@ -0,0 +1,5 @@ +ALTER TABLE threads DROP COLUMN author_name; +ALTER TABLE threads DROP COLUMN author_email; + +ALTER TABLE posts DROP COLUMN author_name; +ALTER TABLE posts DROP COLUMN author_email; diff --git a/migrations/2018-04-08-182319_add_authors/up.sql b/migrations/2018-04-08-182319_add_authors/up.sql new file mode 100644 index 000000000..ad5beb9f6 --- /dev/null +++ b/migrations/2018-04-08-182319_add_authors/up.sql @@ -0,0 +1,10 @@ +-- This migration adds an 'author' column to the thread & post table. +-- Authors don't currently exist as independent objects in the +-- database as most user management is simply delegated to the OIDC +-- provider. + +ALTER TABLE threads ADD COLUMN author_name VARCHAR NOT NULL DEFAULT 'anonymous'; +ALTER TABLE threads ADD COLUMN author_email VARCHAR NOT NULL DEFAULT 'unknown@example.org'; + +ALTER TABLE posts ADD COLUMN author_name VARCHAR NOT NULL DEFAULT 'anonymous'; +ALTER TABLE posts ADD COLUMN author_email VARCHAR NOT NULL DEFAULT 'unknown@example.org'; From 249f17b60a0313a66443a5c67403794986430e34 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 8 Apr 2018 22:36:34 +0200 Subject: [PATCH 028/163] feat(oidc): Implement initial OIDC actor Implements an actor that can perform OAuth2 logins (not really OIDC-compliant yet because Rust doesn't have an easy to use JWT library that supports JWKS, and I don't have time for that right now). Currently this hardcodes some Office365-specific stuff. --- Cargo.lock | 331 ++++++++++++++++++++++++++++++++++++++++++++++++++ Cargo.toml | 6 + src/errors.rs | 9 ++ src/main.rs | 10 +- src/oidc.rs | 135 ++++++++++++++++++++ 5 files changed, 489 insertions(+), 2 deletions(-) create mode 100644 src/oidc.rs diff --git a/Cargo.lock b/Cargo.lock index 50fdc3ba9..7306b8fda 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -78,6 +78,11 @@ dependencies = [ "version_check 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", ] +[[package]] +name = "adler32" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" + [[package]] name = "aho-corasick" version = "0.6.4" @@ -190,6 +195,11 @@ dependencies = [ "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", ] +[[package]] +name = "build_const" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" + [[package]] name = "bytecount" version = "0.2.0" @@ -252,12 +262,18 @@ dependencies = [ "diesel 1.2.0 (registry+https://github.com/rust-lang/crates.io-index)", "env_logger 0.5.6 (registry+https://github.com/rust-lang/crates.io-index)", "failure 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", + "frank_jwt 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", "futures 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", + "hyper 0.11.25 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", "r2d2 0.8.2 (registry+https://github.com/rust-lang/crates.io-index)", + "reqwest 0.8.5 (registry+https://github.com/rust-lang/crates.io-index)", "serde 1.0.37 (registry+https://github.com/rust-lang/crates.io-index)", "serde_derive 1.0.37 (registry+https://github.com/rust-lang/crates.io-index)", + "serde_json 1.0.13 (registry+https://github.com/rust-lang/crates.io-index)", "tera 0.11.6 (registry+https://github.com/rust-lang/crates.io-index)", + "url 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)", + "url_serde 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -271,6 +287,31 @@ dependencies = [ "url 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)", ] +[[package]] +name = "core-foundation" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "core-foundation-sys 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", + "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "core-foundation-sys" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "crc" +version = "1.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "build_const 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", +] + [[package]] name = "crossbeam-channel" version = "0.1.2" @@ -449,6 +490,14 @@ name = "encoding_index_tests" version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" +[[package]] +name = "encoding_rs" +version = "0.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "cfg-if 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", +] + [[package]] name = "env_logger" version = "0.5.6" @@ -518,6 +567,31 @@ name = "fnv" version = "1.0.6" source = "registry+https://github.com/rust-lang/crates.io-index" +[[package]] +name = "foreign-types" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "foreign-types-shared 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "foreign-types-shared" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" + +[[package]] +name = "frank_jwt" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "base64 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", + "openssl 0.9.24 (registry+https://github.com/rust-lang/crates.io-index)", + "serde 1.0.37 (registry+https://github.com/rust-lang/crates.io-index)", + "serde_json 1.0.13 (registry+https://github.com/rust-lang/crates.io-index)", + "time 0.1.39 (registry+https://github.com/rust-lang/crates.io-index)", +] + [[package]] name = "fuchsia-zircon" version = "0.3.3" @@ -614,6 +688,44 @@ dependencies = [ "quick-error 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)", ] +[[package]] +name = "hyper" +version = "0.11.25" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "base64 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", + "bytes 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", + "futures 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", + "futures-cpupool 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)", + "httparse 1.2.4 (registry+https://github.com/rust-lang/crates.io-index)", + "iovec 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", + "language-tags 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", + "log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", + "mime 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", + "percent-encoding 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", + "relay 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", + "time 0.1.39 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-core 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-io 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-proto 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-service 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", + "unicase 2.1.0 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "hyper-tls" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "futures 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", + "hyper 0.11.25 (registry+https://github.com/rust-lang/crates.io-index)", + "native-tls 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-core 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-io 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-service 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-tls 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", +] + [[package]] name = "idna" version = "0.1.4" @@ -694,11 +806,29 @@ name = "libc" version = "0.2.40" source = "registry+https://github.com/rust-lang/crates.io-index" +[[package]] +name = "libflate" +version = "0.1.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "adler32 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", + "byteorder 1.2.2 (registry+https://github.com/rust-lang/crates.io-index)", + "crc 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)", +] + [[package]] name = "linked-hash-map" version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" +[[package]] +name = "log" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", +] + [[package]] name = "log" version = "0.4.1" @@ -804,6 +934,20 @@ dependencies = [ "ws2_32-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", ] +[[package]] +name = "native-tls" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "lazy_static 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", + "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", + "openssl 0.9.24 (registry+https://github.com/rust-lang/crates.io-index)", + "schannel 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)", + "security-framework 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)", + "security-framework-sys 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)", + "tempdir 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)", +] + [[package]] name = "net2" version = "0.2.32" @@ -840,6 +984,29 @@ dependencies = [ "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", ] +[[package]] +name = "openssl" +version = "0.9.24" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "bitflags 0.9.1 (registry+https://github.com/rust-lang/crates.io-index)", + "foreign-types 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)", + "lazy_static 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", + "openssl-sys 0.9.28 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "openssl-sys" +version = "0.9.28" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "cc 1.0.9 (registry+https://github.com/rust-lang/crates.io-index)", + "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", + "pkg-config 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)", + "vcpkg 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", +] + [[package]] name = "owning_ref" version = "0.3.3" @@ -923,6 +1090,11 @@ dependencies = [ "unicase 1.4.2 (registry+https://github.com/rust-lang/crates.io-index)", ] +[[package]] +name = "pkg-config" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" + [[package]] name = "pq-sys" version = "0.4.4" @@ -1064,6 +1236,14 @@ dependencies = [ "ucd-util 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", ] +[[package]] +name = "relay" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "futures 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", +] + [[package]] name = "remove_dir_all" version = "0.5.0" @@ -1072,6 +1252,30 @@ dependencies = [ "winapi 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", ] +[[package]] +name = "reqwest" +version = "0.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "bytes 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", + "encoding_rs 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)", + "futures 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", + "hyper 0.11.25 (registry+https://github.com/rust-lang/crates.io-index)", + "hyper-tls 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", + "libflate 0.1.14 (registry+https://github.com/rust-lang/crates.io-index)", + "log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", + "mime_guess 2.0.0-alpha.4 (registry+https://github.com/rust-lang/crates.io-index)", + "native-tls 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", + "serde 1.0.37 (registry+https://github.com/rust-lang/crates.io-index)", + "serde_json 1.0.13 (registry+https://github.com/rust-lang/crates.io-index)", + "serde_urlencoded 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-core 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-io 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-tls 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", + "url 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)", + "uuid 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)", +] + [[package]] name = "resolv-conf" version = "0.6.0" @@ -1112,6 +1316,15 @@ dependencies = [ "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", ] +[[package]] +name = "schannel" +version = "0.1.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "lazy_static 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "winapi 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", +] + [[package]] name = "scheduled-thread-pool" version = "0.2.0" @@ -1130,6 +1343,26 @@ name = "scopeguard" version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" +[[package]] +name = "security-framework" +version = "0.1.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "core-foundation 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", + "core-foundation-sys 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", + "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", + "security-framework-sys 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "security-framework-sys" +version = "0.1.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "core-foundation-sys 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", + "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", +] + [[package]] name = "semver" version = "0.8.0" @@ -1216,6 +1449,11 @@ dependencies = [ "walkdir 1.0.7 (registry+https://github.com/rust-lang/crates.io-index)", ] +[[package]] +name = "slab" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" + [[package]] name = "slab" version = "0.4.0" @@ -1229,6 +1467,11 @@ dependencies = [ "unidecode 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", ] +[[package]] +name = "smallvec" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" + [[package]] name = "smallvec" version = "0.6.0" @@ -1301,6 +1544,11 @@ dependencies = [ "syn 0.11.11 (registry+https://github.com/rust-lang/crates.io-index)", ] +[[package]] +name = "take" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" + [[package]] name = "tempdir" version = "0.3.7" @@ -1418,6 +1666,23 @@ dependencies = [ "log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", ] +[[package]] +name = "tokio-proto" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "futures 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", + "log 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)", + "net2 0.2.32 (registry+https://github.com/rust-lang/crates.io-index)", + "rand 0.3.22 (registry+https://github.com/rust-lang/crates.io-index)", + "slab 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", + "smallvec 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", + "take 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-core 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-io 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-service 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", +] + [[package]] name = "tokio-reactor" version = "0.1.1" @@ -1431,6 +1696,14 @@ dependencies = [ "tokio-io 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", ] +[[package]] +name = "tokio-service" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "futures 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", +] + [[package]] name = "tokio-signal" version = "0.1.5" @@ -1480,6 +1753,17 @@ dependencies = [ "tokio-executor 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", ] +[[package]] +name = "tokio-tls" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "futures 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", + "native-tls 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-core 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-io 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", +] + [[package]] name = "tokio-udp" version = "0.1.0" @@ -1599,11 +1883,28 @@ dependencies = [ "percent-encoding 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", ] +[[package]] +name = "url_serde" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "serde 1.0.37 (registry+https://github.com/rust-lang/crates.io-index)", + "url 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)", +] + [[package]] name = "utf8-ranges" version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" +[[package]] +name = "uuid" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "rand 0.3.22 (registry+https://github.com/rust-lang/crates.io-index)", +] + [[package]] name = "uuid" version = "0.6.2" @@ -1709,6 +2010,7 @@ dependencies = [ "checksum actix 0.5.5 (registry+https://github.com/rust-lang/crates.io-index)" = "29d85dc76d055498ef65ecf556df154393f94f55d325a05be20c676432536ce7" "checksum actix-web 0.5.0-dev (git+https://github.com/actix/actix-web.git)" = "" "checksum actix_derive 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "c4b1dc922654b9aca7a8a31eab875fde804fa9fbd67f220f2e457787b23590f2" +"checksum adler32 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = "6cbd0b9af8587c72beadc9f72d35b9fbb070982c9e6203e46e93f10df25f8f45" "checksum aho-corasick 0.6.4 (registry+https://github.com/rust-lang/crates.io-index)" = "d6531d44de723825aa81398a6415283229725a00fa30713812ab9323faa82fc4" "checksum antidote 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "34fde25430d87a9388dadbe6e34d7f72a462c8b43ac8d309b42b0a8505d7e2a5" "checksum arrayvec 0.4.7 (registry+https://github.com/rust-lang/crates.io-index)" = "a1e964f9e24d588183fcb43503abda40d288c8657dfc27311516ce2f05675aef" @@ -1722,6 +2024,7 @@ dependencies = [ "checksum bitflags 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "b3c30d3802dfb7281680d6285f2ccdaa8c2d8fee41f93805dba5c4cf50dc23cf" "checksum brotli-sys 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)" = "4445dea95f4c2b41cde57cc9fee236ae4dbae88d8fcbdb4750fc1bb5d86aaecd" "checksum brotli2 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)" = "0cb036c3eade309815c15ddbacec5b22c4d1f3983a774ab2eac2e3e9ea85568e" +"checksum build_const 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "e90dc84f5e62d2ebe7676b83c22d33b6db8bd27340fb6ffbff0a364efa0cb9c9" "checksum bytecount 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "af27422163679dea46a1a7239dffff64d3dcdc3ba5fe9c49c789fbfe0eb949de" "checksum byteorder 1.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "73b5bdfe7ee3ad0b99c9801d58807a9dbc9e09196365b0203853b99889ab3c87" "checksum bytes 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)" = "1b7db437d718977f6dc9b2e3fd6fc343c02ac6b899b73fdd2179163447bd9ce9" @@ -1730,6 +2033,9 @@ dependencies = [ "checksum cfg-if 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "d4c819a1287eb618df47cc647173c5c4c66ba19d888a6e50d605672aed3140de" "checksum chrono 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)" = "1cce36c92cb605414e9b824f866f5babe0a0368e39ea07393b9b63cf3844c0e6" "checksum cookie 0.10.1 (registry+https://github.com/rust-lang/crates.io-index)" = "746858cae4eae40fff37e1998320068df317bc247dc91a67c6cfa053afdc2abb" +"checksum core-foundation 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "25bfd746d203017f7d5cbd31ee5d8e17f94b6521c7af77ece6c9e4b2d4b16c67" +"checksum core-foundation-sys 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "065a5d7ffdcbc8fa145d6f0746f3555025b9097a9e9cda59f7467abae670c78d" +"checksum crc 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "bd5d02c0aac6bd68393ed69e00bbc2457f3e89075c6349db7189618dc4ddc1d7" "checksum crossbeam-channel 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "9d7b07a3084d8718d95338443d5a46aab38ce16d5f991d4027a0906b369f70a3" "checksum crossbeam-deque 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "f739f8c5363aca78cfb059edf753d8f0d36908c348f3d8d1503f03d8b75d9cf3" "checksum crossbeam-deque 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "c1bdc73742c36f7f35ebcda81dbb33a7e0d33757d03a06d9ddca762712ec5ea2" @@ -1749,6 +2055,7 @@ dependencies = [ "checksum encoding-index-singlebyte 1.20141219.5 (registry+https://github.com/rust-lang/crates.io-index)" = "3351d5acffb224af9ca265f435b859c7c01537c0849754d3db3fdf2bfe2ae84a" "checksum encoding-index-tradchinese 1.20141219.5 (registry+https://github.com/rust-lang/crates.io-index)" = "fd0e20d5688ce3cab59eb3ef3a2083a5c77bf496cb798dc6fcdb75f323890c18" "checksum encoding_index_tests 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)" = "a246d82be1c9d791c5dfde9a2bd045fc3cbba3fa2b11ad558f27d01712f00569" +"checksum encoding_rs 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)" = "98fd0f24d1fb71a4a6b9330c8ca04cbd4e7cc5d846b54ca74ff376bc7c9f798d" "checksum env_logger 0.5.6 (registry+https://github.com/rust-lang/crates.io-index)" = "0561146661ae44c579e993456bc76d11ce1e0c7d745e57b2fa7146b6e49fa2ad" "checksum error-chain 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)" = "faa976b4fd2e4c2b2f3f486874b19e61944d3de3de8b61c9fcf835d583871bcc" "checksum error-chain 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ff511d5dc435d703f4971bc399647c9bc38e20cb41452e3b9feb4765419ed3f3" @@ -1757,6 +2064,9 @@ dependencies = [ "checksum failure_derive 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "c7cdda555bb90c9bb67a3b670a0f42de8e73f5981524123ad8578aafec8ddb8b" "checksum flate2 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "9fac2277e84e5e858483756647a9d0aa8d9a2b7cba517fd84325a0aaa69a0909" "checksum fnv 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)" = "2fad85553e09a6f881f739c29f0b00b0f01357c743266d478b68951ce23285f3" +"checksum foreign-types 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)" = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1" +"checksum foreign-types-shared 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" +"checksum frank_jwt 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "2debb36c032c3e19cf8803666963a509034cc80f277d690b711b0acf6dbbf366" "checksum fuchsia-zircon 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "2e9763c69ebaae630ba35f74888db465e49e259ba1bc0eda7d06f4a067615d82" "checksum fuchsia-zircon-sys 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "3dcaa9ae7725d12cdb85b3ad99a434db70b468c09ded17e012d86b5c1010f7a7" "checksum futures 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)" = "1a70b146671de62ec8c8ed572219ca5d594d9b06c0b364d5e67b722fc559b48c" @@ -1770,6 +2080,8 @@ dependencies = [ "checksum httparse 1.2.4 (registry+https://github.com/rust-lang/crates.io-index)" = "c2f407128745b78abc95c0ffbe4e5d37427fdc0d45470710cfef8c44522a2e37" "checksum humansize 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "b6cab2627acfc432780848602f3f558f7e9dd427352224b0d9324025796d2a5e" "checksum humantime 1.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "0484fda3e7007f2a4a0d9c3a703ca38c71c54c55602ce4660c419fd32e188c9e" +"checksum hyper 0.11.25 (registry+https://github.com/rust-lang/crates.io-index)" = "549dbb86397490ce69d908425b9beebc85bbaad25157d67479d4995bb56fdf9a" +"checksum hyper-tls 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)" = "a5aa51f6ae9842239b0fac14af5f22123b8432b4cc774a44ff059fcba0f675ca" "checksum idna 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)" = "014b298351066f1512874135335d62a789ffe78a9974f94b43ed5621951eaf7d" "checksum indexmap 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "08173ba1e906efb6538785a8844dd496f5d34f0a2d88038e95195172fc667220" "checksum iovec 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "dbe6e417e7d0975db6512b90796e8ce223145ac4e33c377e4a42882a0e88bb08" @@ -1782,7 +2094,9 @@ dependencies = [ "checksum lazy_static 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "c8f31047daa365f19be14b47c29df4f7c3b581832407daabe6ae77397619237d" "checksum lazycell 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)" = "a6f08839bc70ef4a3fe1d566d5350f519c5912ea86be0df1740a7d247c7fc0ef" "checksum libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)" = "6fd41f331ac7c5b8ac259b8bf82c75c0fb2e469bbf37d2becbba9a6a2221965b" +"checksum libflate 0.1.14 (registry+https://github.com/rust-lang/crates.io-index)" = "1a429b86418868c7ea91ee50e9170683f47fd9d94f5375438ec86ec3adb74e8e" "checksum linked-hash-map 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)" = "7860ec297f7008ff7a1e3382d7f7e1dcd69efc94751a2284bafc3d013c2aa939" +"checksum log 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)" = "e19e8d5c34a3e0e2223db8e060f9e8264aeeb5c5fc64a4ee9965c062211c024b" "checksum log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)" = "89f010e843f2b1a31dbd316b3b8d443758bc634bed37aabade59c686d644e0a2" "checksum lru-cache 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "4d06ff7ff06f729ce5f4e227876cb88d10bc59cd4ae1e09fbb2bde15c850dc21" "checksum matches 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = "100aabe6b8ff4e4a7e32c1c13523379802df0772b82466207ac25b013f193376" @@ -1795,11 +2109,14 @@ dependencies = [ "checksum mio 0.6.14 (registry+https://github.com/rust-lang/crates.io-index)" = "6d771e3ef92d58a8da8df7d6976bfca9371ed1de6619d9d5a5ce5b1f29b85bfe" "checksum mio-uds 0.6.4 (registry+https://github.com/rust-lang/crates.io-index)" = "1731a873077147b626d89cc6c2a0db6288d607496c5d10c0cfcf3adc697ec673" "checksum miow 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "8c1f2f3b1cf331de6896aabf6e9d55dca90356cc9960cca7eaaf408a355ae919" +"checksum native-tls 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "f74dbadc8b43df7864539cedb7bc91345e532fdd913cfdc23ad94f4d2d40fbc0" "checksum net2 0.2.32 (registry+https://github.com/rust-lang/crates.io-index)" = "9044faf1413a1057267be51b5afba8eb1090bd2231c693664aa1db716fe1eae0" "checksum nodrop 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)" = "9a2228dca57108069a5262f2ed8bd2e82496d2e074a06d1ccc7ce1687b6ae0a2" "checksum num-integer 0.1.36 (registry+https://github.com/rust-lang/crates.io-index)" = "f8d26da319fb45674985c78f1d1caf99aa4941f785d384a2ae36d0740bc3e2fe" "checksum num-traits 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "dee092fcdf725aee04dd7da1d21debff559237d49ef1cb3e69bcb8ece44c7364" "checksum num_cpus 1.8.0 (registry+https://github.com/rust-lang/crates.io-index)" = "c51a3322e4bca9d212ad9a158a02abc6934d005490c054a2778df73a70aa0a30" +"checksum openssl 0.9.24 (registry+https://github.com/rust-lang/crates.io-index)" = "a3605c298474a3aa69de92d21139fb5e2a81688d308262359d85cdd0d12a7985" +"checksum openssl-sys 0.9.28 (registry+https://github.com/rust-lang/crates.io-index)" = "0bbd90640b148b46305c1691eed6039b5c8509bed16991e3562a01eeb76902a3" "checksum owning_ref 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "cdf84f41639e037b484f93433aa3897863b561ed65c6e59c7073d7c561710f37" "checksum parking_lot 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)" = "149d8f5b97f3c1133e3cfcd8886449959e856b557ff281e292b733d7c69e005e" "checksum parking_lot_core 0.2.13 (registry+https://github.com/rust-lang/crates.io-index)" = "538ef00b7317875071d5e00f603f24d16f0b474c1a5fc0ccb8b454ca72eafa79" @@ -1810,6 +2127,7 @@ dependencies = [ "checksum phf_codegen 0.7.21 (registry+https://github.com/rust-lang/crates.io-index)" = "d62594c0bb54c464f633175d502038177e90309daf2e0158be42ed5f023ce88f" "checksum phf_generator 0.7.21 (registry+https://github.com/rust-lang/crates.io-index)" = "6b07ffcc532ccc85e3afc45865469bf5d9e4ef5bfcf9622e3cfe80c2d275ec03" "checksum phf_shared 0.7.21 (registry+https://github.com/rust-lang/crates.io-index)" = "07e24b0ca9643bdecd0632f2b3da6b1b89bbb0030e0b992afc1113b23a7bc2f2" +"checksum pkg-config 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)" = "3a8b4c6b8165cd1a1cd4b9b120978131389f64bdaf456435caa41e630edba903" "checksum pq-sys 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)" = "4dfb5e575ef93a1b7b2a381d47ba7c5d4e4f73bff37cee932195de769aad9a54" "checksum proc-macro2 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "cd07deb3c6d1d9ff827999c7f9b04cdfd66b1b17ae508e14fe47b620f2282ae0" "checksum proc-macro2 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)" = "49b6a521dc81b643e9a51e0d1cf05df46d5a2f3c0280ea72bcb68276ba64a118" @@ -1827,15 +2145,20 @@ dependencies = [ "checksum redox_termios 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "7e891cfe48e9100a70a3b6eb652fef28920c117d366339687bd5576160db0f76" "checksum regex 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)" = "aec3f58d903a7d2a9dc2bf0e41a746f4530e0cab6b615494e058f67a3ef947fb" "checksum regex-syntax 0.5.3 (registry+https://github.com/rust-lang/crates.io-index)" = "b2550876c31dc914696a6c2e01cbce8afba79a93c8ae979d2fe051c0230b3756" +"checksum relay 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "1576e382688d7e9deecea24417e350d3062d97e32e45d70b1cde65994ff1489a" "checksum remove_dir_all 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)" = "dfc5b3ce5d5ea144bb04ebd093a9e14e9765bcfec866aecda9b6dec43b3d1e24" +"checksum reqwest 0.8.5 (registry+https://github.com/rust-lang/crates.io-index)" = "241faa9a8ca28a03cbbb9815a5d085f271d4c0168a19181f106aa93240c22ddb" "checksum resolv-conf 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)" = "8e1b086bb6a2659d6ba66e4aa21bde8a53ec03587cd5c80b83bdc3a330f35cab" "checksum ring 0.12.1 (registry+https://github.com/rust-lang/crates.io-index)" = "6f7d28b30a72c01b458428e0ae988d4149c20d902346902be881e3edc4bb325c" "checksum rustc-demangle 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)" = "11fb43a206a04116ffd7cfcf9bcb941f8eb6cc7ff667272246b0a1c74259a3cb" "checksum safemem 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "e27a8b19b835f7aea908818e871f5cc3a5a186550c30773be987e155e8163d8f" "checksum same-file 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)" = "d931a44fdaa43b8637009e7632a02adc4f2b2e0733c08caa4cf00e8da4a117a7" +"checksum schannel 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)" = "fbaffce35eb61c5b00846e73128b0cd62717e7c0ec46abbec132370d013975b4" "checksum scheduled-thread-pool 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "1a2ff3fc5223829be817806c6441279c676e454cc7da608faf03b0ccc09d3889" "checksum scoped-tls 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "8674d439c964889e2476f474a3bf198cc9e199e77499960893bac5de7e9218a4" "checksum scopeguard 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "94258f53601af11e6a49f722422f6e3425c52b06245a5cf9bc09908b174f5e27" +"checksum security-framework 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)" = "dfa44ee9c54ce5eecc9de7d5acbad112ee58755239381f687e564004ba4a2332" +"checksum security-framework-sys 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)" = "5421621e836278a0b139268f36eee0dc7e389b784dc3f79d8f11aabadf41bead" "checksum semver 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)" = "bee2bc909ab2d8d60dab26e8cad85b25d795b14603a0dcb627b78b9d30b6454b" "checksum semver-parser 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3" "checksum serde 1.0.37 (registry+https://github.com/rust-lang/crates.io-index)" = "d3bcee660dcde8f52c3765dd9ca5ee36b4bf35470a738eb0bd5a8752b0389645" @@ -1846,8 +2169,10 @@ dependencies = [ "checksum sha1 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)" = "2579985fda508104f7587689507983eadd6a6e84dd35d6d115361f530916fa0d" "checksum siphasher 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "0df90a788073e8d0235a67e50441d47db7c8ad9debd91cbf43736a2a92d36537" "checksum skeptic 0.13.2 (registry+https://github.com/rust-lang/crates.io-index)" = "c8431f8fca168e2db4be547bd8329eac70d095dff1444fee4b0fa0fabc7df75a" +"checksum slab 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "17b4fcaed89ab08ef143da37bc52adbcc04d4a69014f4c1208d6b51f0c47bc23" "checksum slab 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "fdeff4cd9ecff59ec7e3744cbca73dfe5ac35c2aedb2cfba8a1c715a18912e9d" "checksum slug 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "f6f5ff4b43cb07b86c5f9236c92714a22cdf9e5a27a7d85e398e2c9403328cb8" +"checksum smallvec 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "4c8cbcd6df1e117c2210e13ab5109635ad68a929fcbb8964dc965b76cb5ee013" "checksum smallvec 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)" = "44db0ecb22921ef790d17ae13a3f6d15784183ff5f2a01aa32098c7498d2b4b9" "checksum socket2 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)" = "71ebbe82fcdd697244ba7fe6e05e63b5c45910c3927e28469a04947494ff48d8" "checksum stable_deref_trait 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "15132e0e364248108c5e2c02e3ab539be8d6f5d52a01ca9bbf27ed657316f02b" @@ -1857,6 +2182,7 @@ dependencies = [ "checksum syn 0.13.1 (registry+https://github.com/rust-lang/crates.io-index)" = "91b52877572087400e83d24b9178488541e3d535259e04ff17a63df1e5ceff59" "checksum synom 0.11.3 (registry+https://github.com/rust-lang/crates.io-index)" = "a393066ed9010ebaed60b9eafa373d4b1baac186dd7e008555b0f702b51945b6" "checksum synstructure 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)" = "3a761d12e6d8dcb4dcf952a7a89b475e3a9d69e4a69307e01a470977642914bd" +"checksum take 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "b157868d8ac1f56b64604539990685fa7611d8fa9e5476cf0c02cf34d32917c5" "checksum tempdir 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)" = "15f2b5fb00ccdf689e0149d1b1b3c03fead81c2b37735d812fa8bddbbf41b6d8" "checksum tera 0.11.6 (registry+https://github.com/rust-lang/crates.io-index)" = "1845350fc31befca6c3976001dc45213b63154a96b58cfbf177d45cbf94538dd" "checksum termcolor 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)" = "adc4587ead41bf016f11af03e55a624c06568b5a19db4e90fde573d805074f83" @@ -1867,11 +2193,14 @@ dependencies = [ "checksum tokio-core 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)" = "799492ccba3d8ed5e41f2520a7cfd504cb65bbfe5fbbbd0012e335ae5f188051" "checksum tokio-executor 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "8cac2a7883ff3567e9d66bb09100d09b33d90311feca0206c7ca034bc0c55113" "checksum tokio-io 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = "6af9eb326f64b2d6b68438e1953341e00ab3cf54de7e35d92bfc73af8555313a" +"checksum tokio-proto 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "8fbb47ae81353c63c487030659494b295f6cb6576242f907f203473b191b0389" "checksum tokio-reactor 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "b3cedc8e5af5131dc3423ffa4f877cce78ad25259a9a62de0613735a13ebc64b" +"checksum tokio-service 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "24da22d077e0f15f55162bdbdc661228c1581892f52074fb242678d015b45162" "checksum tokio-signal 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "e8f46863230f9a05cf52d173721ec391b9c5782a2465f593029922b8782b9ffe" "checksum tokio-tcp 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ec9b094851aadd2caf83ba3ad8e8c4ce65a42104f7b94d9e6550023f0407853f" "checksum tokio-threadpool 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "bf3d05cdd6a78005e535d2b27c21521bdf91fbb321027a62d8e178929d18966d" "checksum tokio-timer 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "29a89e4ad0c8f1e4c9860e605c38c69bfdad3cccd4ea446e58ff588c1c07a397" +"checksum tokio-tls 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)" = "772f4b04e560117fe3b0a53e490c16ddc8ba6ec437015d91fa385564996ed913" "checksum tokio-udp 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "137bda266504893ac4774e0ec4c2108f7ccdbcb7ac8dced6305fe9e4e0b5041a" "checksum trust-dns-proto 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)" = "0266cdf22b1f3904d21252e71079395bc47836513d4f3888ff85b57a6add2227" "checksum trust-dns-resolver 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)" = "87cff716794d5ab064957bb78fc5575a38337571917ddd86fc2fed52dc48b141" @@ -1886,7 +2215,9 @@ dependencies = [ "checksum unreachable 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "382810877fe448991dfc7f0dd6e3ae5d58088fd0ea5e35189655f84e6814fa56" "checksum untrusted 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)" = "f392d7819dbe58833e26872f5f6f0d68b7bbbe90fc3667e98731c4a15ad9a7ae" "checksum url 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "f808aadd8cfec6ef90e4a14eb46f24511824d1ac596b9682703c87056c8678b7" +"checksum url_serde 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "74e7d099f1ee52f823d4bdd60c93c3602043c728f5db3b97bdb548467f7bddea" "checksum utf8-ranges 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "662fab6525a98beff2921d7f61a39e7d59e0b425ebc7d0d9e66d316e55124122" +"checksum uuid 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)" = "bcc7e3b898aa6f6c08e5295b6c89258d1331e9ac578cc992fb818759951bdc22" "checksum uuid 0.6.2 (registry+https://github.com/rust-lang/crates.io-index)" = "d4670e1e935f7edd193a413f802e2ee52274aed62a09ccaab1656515c9c53a66" "checksum vcpkg 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "9e0a7d8bed3178a8fb112199d466eeca9ed09a14ba8ad67718179b4fd5487d0b" "checksum version_check 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)" = "6b772017e347561807c1aa192438c5fd74242a670a6cffacc40f2defd1dc069d" diff --git a/Cargo.toml b/Cargo.toml index 9bcfafac4..66babe416 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,3 +16,9 @@ tera = "0.11" serde = "1.0" serde_derive = "1.0" failure = "*" +url = "1.7" +url_serde = "0.2" +reqwest = "0.8" +frank_jwt = "3.0" +serde_json = "1.0" +hyper = "*" diff --git a/src/errors.rs b/src/errors.rs index 3cbda5f4e..d07d19cd3 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -11,6 +11,7 @@ use actix_web::http::StatusCode; use actix; use diesel; use r2d2; +use reqwest; use tera; pub type Result = result::Result; @@ -64,6 +65,14 @@ impl From for ConverseError { } } +impl From for ConverseError { + fn from(error: reqwest::Error) -> ConverseError { + ConverseError::InternalError { + reason: format!("Failed to make HTTP request: {}", error), + } + } +} + // Support conversion of error type into HTTP error responses: impl ResponseError for ConverseError { diff --git a/src/main.rs b/src/main.rs index 3269e2d4d..7df74b541 100644 --- a/src/main.rs +++ b/src/main.rs @@ -13,14 +13,20 @@ extern crate serde_derive; #[macro_use] extern crate failure; -extern crate chrono; extern crate actix; extern crate actix_web; +extern crate chrono; extern crate env_logger; -extern crate r2d2; extern crate futures; +extern crate r2d2; +extern crate reqwest; extern crate serde; +extern crate url; +extern crate url_serde; +extern crate serde_json; +extern crate hyper; +pub mod oidc; pub mod db; pub mod errors; pub mod handlers; diff --git a/src/oidc.rs b/src/oidc.rs new file mode 100644 index 000000000..bd2044ce5 --- /dev/null +++ b/src/oidc.rs @@ -0,0 +1,135 @@ +//! This module provides authentication via OIDC compliant +//! authentication sources. +//! +//! Currently Converse only supports a single OIDC provider. Note that +//! this has so far only been tested with Office365. + +use actix::prelude::*; +use reqwest; +use url::Url; +use url_serde; +use errors::*; +use reqwest::header::Authorization; +use hyper::header::Bearer; + +/// This structure represents the contents of an OIDC discovery +/// document. +#[derive(Deserialize, Debug, Clone)] +pub struct OidcConfig { + #[serde(with = "url_serde")] + authorization_endpoint: Url, + token_endpoint: String, + userinfo_endpoint: String, + + scopes_supported: Vec, + issuer: String, +} + +#[derive(Clone, Debug)] +pub struct OidcExecutor { + pub client_id: String, + pub client_secret: String, + pub redirect_uri: String, + pub oidc_config: OidcConfig, +} + +/// This struct represents the form response returned by an OIDC +/// provider with the `code`. +#[derive(Debug, Deserialize)] +pub struct CodeResponse { + pub code: String, +} + +/// This struct represents the data extracted from the ID token and +/// stored in the user's session. +#[derive(Debug)] +pub struct Author { + pub name: String, + pub email: String, +} + +impl Actor for OidcExecutor { + type Context = Context; +} + +/// Message used to request the login URL: +pub struct GetLoginUrl; // TODO: Add a nonce parameter stored in session. + +impl Message for GetLoginUrl { + type Result = String; +} + +impl Handler for OidcExecutor { + type Result = String; + + fn handle(&mut self, _: GetLoginUrl, _: &mut Self::Context) -> Self::Result { + let mut url: Url = self.oidc_config.authorization_endpoint.clone(); + { + let mut params = url.query_pairs_mut(); + params.append_pair("client_id", &self.client_id); + params.append_pair("response_type", "code"); + params.append_pair("scope", "openid"); + params.append_pair("redirect_uri", &self.redirect_uri); + params.append_pair("response_mode", "form_post"); + } + return url.into_string(); + } +} + +/// Message used to request the token from the returned code and +/// retrieve userinfo from the appropriate endpoint. +pub struct RetrieveToken(pub CodeResponse); + +impl Message for RetrieveToken { + type Result = Result; +} + +#[derive(Debug, Deserialize)] +struct TokenResponse { + access_token: String, +} + +// TODO: This is currently hardcoded to Office365 fields. +#[derive(Debug, Deserialize)] +struct Userinfo { + name: String, + unique_name: String, // email in office365 +} + +impl Handler for OidcExecutor { + type Result = Result; + + fn handle(&mut self, msg: RetrieveToken, _: &mut Self::Context) -> Self::Result { + debug!("Received OAuth2 code, requesting access_token"); + let client = reqwest::Client::new(); + let params: [(&str, &str); 5] = [ + ("client_id", &self.client_id), + ("client_secret", &self.client_secret), + ("grant_type", "authorization_code"), + ("code", &msg.0.code), + ("redirect_uri", &self.redirect_uri), + ]; + + let response: TokenResponse = client.post(&self.oidc_config.token_endpoint) + .form(¶ms) + .send()? + .json()?; + + let user: Userinfo = client.get(&self.oidc_config.userinfo_endpoint) + .header(Authorization(Bearer { token: response.access_token })) + .send()? + .json()?; + + Ok(Author { + name: user.name, + email: user.unique_name, + }) + } +} + +/// Convenience function to attempt loading an OIDC discovery document +/// from a specified URL: +pub fn load_oidc(url: &str) -> Result { + let config: OidcConfig = reqwest::get(url)?.json()?; + Ok(config) +} From 115f50ae37338450c3533f403a8404a84cfb8670 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 8 Apr 2018 22:37:21 +0200 Subject: [PATCH 029/163] chore(models/schema): Update with author fields --- src/models.rs | 4 ++++ src/schema.rs | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/models.rs b/src/models.rs index 28b1caa7c..daeccf852 100644 --- a/src/models.rs +++ b/src/models.rs @@ -7,6 +7,8 @@ pub struct Thread { pub title: String, pub body: String, pub posted: DateTime, + pub author_name: String, + pub author_email: String, } #[derive(Identifiable, Queryable, Serialize, Associations)] @@ -16,6 +18,8 @@ pub struct Post { pub thread_id: i32, pub body: String, pub posted: DateTime, + pub author_name: String, + pub author_email: String, } #[derive(Deserialize, Insertable)] diff --git a/src/schema.rs b/src/schema.rs index 8b05eb546..4881056c1 100644 --- a/src/schema.rs +++ b/src/schema.rs @@ -4,6 +4,8 @@ table! { thread_id -> Int4, body -> Text, posted -> Timestamptz, + author_name -> Varchar, + author_email -> Varchar, } } @@ -13,6 +15,8 @@ table! { title -> Varchar, body -> Text, posted -> Timestamptz, + author_name -> Varchar, + author_email -> Varchar, } } From a63bc782b02ac4c784b67ef13da5405183ceeacc Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 8 Apr 2018 22:37:36 +0200 Subject: [PATCH 030/163] feat(handler): Implement OIDC login & callback handlers --- src/handlers.rs | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/handlers.rs b/src/handlers.rs index a16f73389..ebae7f390 100644 --- a/src/handlers.rs +++ b/src/handlers.rs @@ -12,6 +12,7 @@ use db::*; use actix::prelude::{Addr, Syn}; use futures::Future; use errors::{Result, ConverseError}; +use oidc::*; type ConverseResponse = Box>; @@ -20,6 +21,9 @@ pub struct AppState { /// Address of the database actor pub db: Addr, + /// Address of the OIDC actor + pub oidc: Addr, + /// Compiled templates pub tera: tera::Tera, } @@ -104,3 +108,22 @@ pub fn reply_thread(state: State, input: Form) -> ConverseRes }) .responder() } + +/// This handler initiates an OIDC login. +pub fn login(state: State) -> ConverseResponse { + state.oidc.send(GetLoginUrl) + .from_err() + .and_then(|url| Ok(HttpResponse::TemporaryRedirect() + .header("Location", url) + .finish())) + .responder() +} + +pub fn callback(state: State, data: Form) -> ConverseResponse { + state.oidc.send(RetrieveToken(data.0)) + .from_err() + .and_then(|author| { + Ok(HttpResponse::from(format!("{:?}", author))) + }) + .responder() +} From 1c4d436eae0d5c05c0cee2d7587f97486442a991 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 8 Apr 2018 22:37:52 +0200 Subject: [PATCH 031/163] feat(main): Configure & start OIDC actor when Converse launches --- src/main.rs | 38 +++++++++++++++++++++++++++++++++----- 1 file changed, 33 insertions(+), 5 deletions(-) diff --git a/src/main.rs b/src/main.rs index 7df74b541..570a1b39f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -42,6 +42,14 @@ use diesel::r2d2::{ConnectionManager, Pool}; use std::env; use handlers::*; +fn config(name: &str) -> String { + env::var(name).expect(&format!("{} must be set", name)) +} + +fn config_default(name: &str, default: &str) -> String { + env::var(name).unwrap_or(default.into()) +} + fn main() { env_logger::init(); @@ -49,27 +57,47 @@ fn main() { let sys = actix::System::new("converse"); info!("Initialising database connection pool ..."); - let db_url = env::var("DATABASE_URL") - .expect("DATABASE_URL must be set"); + let db_url = config("DATABASE_URL"); let manager = ConnectionManager::::new(db_url); let pool = Pool::builder().build(manager).expect("Failed to initialise DB pool"); let db_addr = SyncArbiter::start(2, move || DbExecutor(pool.clone())); + info!("Initialising OIDC integration ..."); + let oidc_url = config("OIDC_DISCOVERY_URL"); + let oidc_config = oidc::load_oidc(&oidc_url) + .expect("Failed to retrieve OIDC discovery document"); + + let oidc = oidc::OidcExecutor { + oidc_config, + client_id: config("OIDC_CLIENT_ID"), + client_secret: config("OIDC_CLIENT_SECRET"), + redirect_uri: format!("{}/oidc/callback", config("BASE_URL")), + }; + + let oidc_addr: Addr = oidc.start(); + info!("Initialising HTTP server ..."); - let bind_host = env::var("CONVERSE_BIND_HOST").unwrap_or("127.0.0.1:4567".into()); + let bind_host = config_default("CONVERSE_BIND_HOST", "127.0.0.1:4567"); server::new(move || { let template_path = concat!(env!("CARGO_MANIFEST_DIR"), "/templates/**/*"); let tera = compile_templates!(template_path); + let state = AppState { + db: db_addr.clone(), + oidc: oidc_addr.clone(), + tera, + }; - App::with_state(AppState { db: db_addr.clone(), tera }) + App::with_state(state) .middleware(middleware::Logger::default()) .resource("/", |r| r.method(Method::GET).with(forum_index)) .resource("/thread/submit", |r| r.method(Method::POST).with2(submit_thread)) .resource("/thread/reply", |r| r.method(Method::POST).with2(reply_thread)) - .resource("/thread/{id}", |r| r.method(Method::GET).with2(forum_thread))}) + .resource("/thread/{id}", |r| r.method(Method::GET).with2(forum_thread)) + .resource("/oidc/login", |r| r.method(Method::GET).with(login)) + .resource("/oidc/callback", |r| r.method(Method::POST).with2(callback))}) .bind(&bind_host).expect(&format!("Could not bind on '{}'", bind_host)) .start(); From e761b2d295c920da153ac673892cfd9616e6a2b7 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 8 Apr 2018 22:38:06 +0200 Subject: [PATCH 032/163] feat(templates): Display author information in templates --- templates/index.html | 2 +- templates/thread.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/index.html b/templates/index.html index d1b744e94..fe35eb7bc 100644 --- a/templates/index.html +++ b/templates/index.html @@ -7,7 +7,7 @@

    Welcome to Converse


    diff --git a/templates/thread.html b/templates/thread.html index e26d4bcc6..83007d6ac 100644 --- a/templates/thread.html +++ b/templates/thread.html @@ -6,9 +6,9 @@

    {{ thread.title }}

    -

    {{ thread.body }}
    Posted at {{ thread.posted }}

    +

    {{ thread.body }}
    Posted at {{ thread.posted }} by {{ thread.author_name }}

    {% for post in posts -%} -
  • {{ post.body }}
    Posted at {{ post.posted }}
  • +
  • {{ post.body }}
    Posted at {{ post.posted }} by {{ post.author_name }}
  • {%- endfor %}
    From 9eb8501fae4b4024e1b2d052b213351deeae8b81 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 8 Apr 2018 22:56:29 +0200 Subject: [PATCH 033/163] feat(handlers): Use cookie session backend to store author info --- src/errors.rs | 14 ++++++++++++-- src/handlers.rs | 26 +++++++++++++++++--------- src/main.rs | 8 ++++++-- 3 files changed, 35 insertions(+), 13 deletions(-) diff --git a/src/errors.rs b/src/errors.rs index d07d19cd3..cf75f0e29 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -9,6 +9,7 @@ use actix_web::http::StatusCode; // Modules with foreign errors: use actix; +use actix_web; use diesel; use r2d2; use reqwest; @@ -30,11 +31,14 @@ pub enum ConverseError { #[fail(display = "a template rendering error occured: {}", reason)] Template { reason: String }, + #[fail(display = "error occured during request handling: {}", error)] + ActixWeb { error: actix_web::Error }, + // This variant is used as a catch-all for wrapping // actix-web-compatible response errors, such as the errors it // throws itself. #[fail(display = "Actix response error: {}", error)] - ActixWeb { error: Box }, + Actix { error: Box }, } // Establish conversion links to foreign errors: @@ -61,7 +65,13 @@ impl From for ConverseError { impl From for ConverseError { fn from(error: actix::MailboxError) -> ConverseError { - ConverseError::ActixWeb { error: Box::new(error) } + ConverseError::Actix { error: Box::new(error) } + } +} + +impl From for ConverseError { + fn from(error: actix_web::Error) -> ConverseError { + ConverseError::ActixWeb { error } } } diff --git a/src/handlers.rs b/src/handlers.rs index ebae7f390..0531bb174 100644 --- a/src/handlers.rs +++ b/src/handlers.rs @@ -5,14 +5,15 @@ //! the tera templates stored in the `/templates` directory in the //! project root. -use tera; -use actix_web::*; -use models::*; -use db::*; use actix::prelude::{Addr, Syn}; -use futures::Future; +use actix_web::*; +use actix_web::middleware::RequestSession; +use db::*; use errors::{Result, ConverseError}; +use futures::Future; +use models::*; use oidc::*; +use tera; type ConverseResponse = Box>; @@ -119,11 +120,18 @@ pub fn login(state: State) -> ConverseResponse { .responder() } -pub fn callback(state: State, data: Form) -> ConverseResponse { +pub fn callback(state: State, + data: Form, + mut req: HttpRequest) -> ConverseResponse { state.oidc.send(RetrieveToken(data.0)) .from_err() - .and_then(|author| { - Ok(HttpResponse::from(format!("{:?}", author))) - }) + .and_then(move |result| { + let author = result?; + info!("Setting cookie for {} after callback", author.name); + req.session().set("author_name", author.name)?; + req.session().set("author_email", author.email)?; + Ok(HttpResponse::SeeOther() + .header("Location", "/") + .finish())}) .responder() } diff --git a/src/main.rs b/src/main.rs index 570a1b39f..2e2664a2c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -35,6 +35,7 @@ pub mod schema; use actix::prelude::*; use actix_web::*; +use actix_web::middleware::{Logger, SessionStorage, CookieSessionBackend}; use actix_web::http::Method; use db::*; use diesel::pg::PgConnection; @@ -80,6 +81,7 @@ fn main() { info!("Initialising HTTP server ..."); let bind_host = config_default("CONVERSE_BIND_HOST", "127.0.0.1:4567"); + let key: &[u8] = &[0; 32]; // TODO: generate! server::new(move || { let template_path = concat!(env!("CARGO_MANIFEST_DIR"), "/templates/**/*"); @@ -91,13 +93,15 @@ fn main() { }; App::with_state(state) - .middleware(middleware::Logger::default()) + .middleware(Logger::default()) + // TODO: Configure session backend with more secure settings. + .middleware(SessionStorage::new(CookieSessionBackend::new(key))) .resource("/", |r| r.method(Method::GET).with(forum_index)) .resource("/thread/submit", |r| r.method(Method::POST).with2(submit_thread)) .resource("/thread/reply", |r| r.method(Method::POST).with2(reply_thread)) .resource("/thread/{id}", |r| r.method(Method::GET).with2(forum_thread)) .resource("/oidc/login", |r| r.method(Method::GET).with(login)) - .resource("/oidc/callback", |r| r.method(Method::POST).with2(callback))}) + .resource("/oidc/callback", |r| r.method(Method::POST).with3(callback))}) .bind(&bind_host).expect(&format!("Could not bind on '{}'", bind_host)) .start(); From c07c46621960010b2a351f55a8255439362745f0 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 8 Apr 2018 22:57:24 +0200 Subject: [PATCH 034/163] docs(todo): Add TODO list --- todo.org | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 todo.org diff --git a/todo.org b/todo.org new file mode 100644 index 000000000..af8fb223a --- /dev/null +++ b/todo.org @@ -0,0 +1,4 @@ +* TODO Configurable number of DB workers +* TODO Pin *-versions in cargo.toml +* TODO Match certain types of Diesel errors (esp. for "not found") +* TODO Sketch out categories vs. tags system From d91dec28f8aa1eacbcce697f232902ad09d79523 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Mon, 9 Apr 2018 09:10:28 +0200 Subject: [PATCH 035/163] fix(main): Generate random session key --- Cargo.lock | 1 + Cargo.toml | 1 + src/main.rs | 11 ++++++++++- 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index 7306b8fda..4f64a7026 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -267,6 +267,7 @@ dependencies = [ "hyper 0.11.25 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", "r2d2 0.8.2 (registry+https://github.com/rust-lang/crates.io-index)", + "rand 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", "reqwest 0.8.5 (registry+https://github.com/rust-lang/crates.io-index)", "serde 1.0.37 (registry+https://github.com/rust-lang/crates.io-index)", "serde_derive 1.0.37 (registry+https://github.com/rust-lang/crates.io-index)", diff --git a/Cargo.toml b/Cargo.toml index 66babe416..2fb52937f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,3 +22,4 @@ reqwest = "0.8" frank_jwt = "3.0" serde_json = "1.0" hyper = "*" +rand = "0.4" diff --git a/src/main.rs b/src/main.rs index 2e2664a2c..a68721729 100644 --- a/src/main.rs +++ b/src/main.rs @@ -19,6 +19,7 @@ extern crate chrono; extern crate env_logger; extern crate futures; extern crate r2d2; +extern crate rand; extern crate reqwest; extern crate serde; extern crate url; @@ -41,6 +42,7 @@ use db::*; use diesel::pg::PgConnection; use diesel::r2d2::{ConnectionManager, Pool}; use std::env; +use rand::{OsRng, Rng}; use handlers::*; fn config(name: &str) -> String { @@ -81,7 +83,14 @@ fn main() { info!("Initialising HTTP server ..."); let bind_host = config_default("CONVERSE_BIND_HOST", "127.0.0.1:4567"); - let key: &[u8] = &[0; 32]; // TODO: generate! + let key = { + let mut key_bytes = [0; 32]; + let mut rng = OsRng::new() + .expect("Failed to retrieve RNG for key generation"); + rng.fill_bytes(&mut key_bytes); + + key_bytes + }; server::new(move || { let template_path = concat!(env!("CARGO_MANIFEST_DIR"), "/templates/**/*"); From ef5e8ec8bd2cf06cdc48b7d77ec9a85b370b4433 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Mon, 9 Apr 2018 09:10:48 +0200 Subject: [PATCH 036/163] feat(handlers): Add RequireLogin middleware Adds a middleware that automatically redirects users to the login page if they don't have an active session (i.e. 'author' set). --- src/handlers.rs | 29 ++++++++++++++++++++++++++--- src/oidc.rs | 2 +- 2 files changed, 27 insertions(+), 4 deletions(-) diff --git a/src/handlers.rs b/src/handlers.rs index 0531bb174..e709fdd20 100644 --- a/src/handlers.rs +++ b/src/handlers.rs @@ -6,8 +6,9 @@ //! project root. use actix::prelude::{Addr, Syn}; +use actix_web; use actix_web::*; -use actix_web::middleware::RequestSession; +use actix_web::middleware::{Started, Middleware, RequestSession}; use db::*; use errors::{Result, ConverseError}; use futures::Future; @@ -120,6 +121,8 @@ pub fn login(state: State) -> ConverseResponse { .responder() } +const AUTHOR: &'static str = "author"; + pub fn callback(state: State, data: Form, mut req: HttpRequest) -> ConverseResponse { @@ -128,10 +131,30 @@ pub fn callback(state: State, .and_then(move |result| { let author = result?; info!("Setting cookie for {} after callback", author.name); - req.session().set("author_name", author.name)?; - req.session().set("author_email", author.email)?; + req.session().set(AUTHOR, author)?; Ok(HttpResponse::SeeOther() .header("Location", "/") .finish())}) .responder() } + + +/// Middleware used to enforce logins unceremonially. +pub struct RequireLogin; + +impl Middleware for RequireLogin { + fn start(&self, req: &mut HttpRequest) -> actix_web::Result { + let has_author = req.session().get::(AUTHOR)?.is_some(); + let is_oidc_req = req.path().starts_with("/oidc"); + + if !is_oidc_req && !has_author { + Ok(Started::Response( + HttpResponse::SeeOther() + .header("Location", "/oidc/login") + .finish() + )) + } else { + Ok(Started::Done) + } + } +} diff --git a/src/oidc.rs b/src/oidc.rs index bd2044ce5..09f7f7b6e 100644 --- a/src/oidc.rs +++ b/src/oidc.rs @@ -42,7 +42,7 @@ pub struct CodeResponse { /// This struct represents the data extracted from the ID token and /// stored in the user's session. -#[derive(Debug)] +#[derive(Debug, Serialize, Deserialize)] pub struct Author { pub name: String, pub email: String, From 64453ec6834f657de8c63276fb93ff8b87cf6017 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Mon, 9 Apr 2018 09:11:25 +0200 Subject: [PATCH 037/163] feat(main): Initialise RequireLogin middleware on launch --- src/main.rs | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index a68721729..59e711ad4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -18,14 +18,14 @@ extern crate actix_web; extern crate chrono; extern crate env_logger; extern crate futures; +extern crate hyper; extern crate r2d2; extern crate rand; extern crate reqwest; extern crate serde; +extern crate serde_json; extern crate url; extern crate url_serde; -extern crate serde_json; -extern crate hyper; pub mod oidc; pub mod db; @@ -36,7 +36,7 @@ pub mod schema; use actix::prelude::*; use actix_web::*; -use actix_web::middleware::{Logger, SessionStorage, CookieSessionBackend}; +use actix_web::middleware::{Logger, SessionStorage, CookieSessionBackendBuilder}; use actix_web::http::Method; use db::*; use diesel::pg::PgConnection; @@ -71,6 +71,7 @@ fn main() { let oidc_url = config("OIDC_DISCOVERY_URL"); let oidc_config = oidc::load_oidc(&oidc_url) .expect("Failed to retrieve OIDC discovery document"); + let base_url = config("BASE_URL"); let oidc = oidc::OidcExecutor { oidc_config, @@ -101,10 +102,16 @@ fn main() { tera, }; + let sessions = SessionStorage::new( + CookieSessionBackendBuilder::new(&key) + .secure(base_url.starts_with("https")) + .finish()); + App::with_state(state) .middleware(Logger::default()) // TODO: Configure session backend with more secure settings. - .middleware(SessionStorage::new(CookieSessionBackend::new(key))) + .middleware(sessions) + .middleware(RequireLogin) .resource("/", |r| r.method(Method::GET).with(forum_index)) .resource("/thread/submit", |r| r.method(Method::POST).with2(submit_thread)) .resource("/thread/reply", |r| r.method(Method::POST).with2(reply_thread)) From 7c73949066cf1b730a2c8c3408fa016048538716 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Mon, 9 Apr 2018 09:20:27 +0200 Subject: [PATCH 038/163] feat(handlers): Extract & add author to thread and post information --- src/handlers.rs | 44 ++++++++++++++++++++++++++++++++++++++++---- src/main.rs | 4 ++-- src/models.rs | 4 ++++ 3 files changed, 46 insertions(+), 6 deletions(-) diff --git a/src/handlers.rs b/src/handlers.rs index e709fdd20..c31cdf679 100644 --- a/src/handlers.rs +++ b/src/handlers.rs @@ -81,10 +81,28 @@ pub fn forum_thread(state: State, thread_id: Path) -> ConverseRes .responder() } +#[derive(Deserialize)] +pub struct NewThreadForm { + pub title: String, + pub body: String, +} + /// This handler receives a "New thread"-form and redirects the user /// to the new thread after creation. -pub fn submit_thread(state: State, input: Form) -> ConverseResponse { - state.db.send(CreateThread(input.0)) +pub fn submit_thread(state: State, + input: Form, + mut req: HttpRequest) -> ConverseResponse { + // Author is "unwrapped" because the RequireLogin middleware + // guarantees it to be present. + let author: Author = req.session().get(AUTHOR).unwrap().unwrap(); + let new_thread = NewThread { + title: input.0.title, + body: input.0.body, + author_name: author.name, + author_email: author.email, + }; + + state.db.send(CreateThread(new_thread)) .from_err() .and_then(move |res| { let thread = res?; @@ -96,10 +114,28 @@ pub fn submit_thread(state: State, input: Form) -> Converse .responder() } +#[derive(Deserialize)] +pub struct NewPostForm { + pub thread_id: i32, + pub body: String, +} + /// This handler receives a "Reply"-form and redirects the user to the /// new post after creation. -pub fn reply_thread(state: State, input: Form) -> ConverseResponse { - state.db.send(CreatePost(input.0)) +pub fn reply_thread(state: State, + input: Form, + mut req: HttpRequest) -> ConverseResponse { + // Author is "unwrapped" because the RequireLogin middleware + // guarantees it to be present. + let author: Author = req.session().get(AUTHOR).unwrap().unwrap(); + let new_post = NewPost { + thread_id: input.thread_id, + body: input.0.body, + author_name: author.name, + author_email: author.email, + }; + + state.db.send(CreatePost(new_post)) .from_err() .and_then(move |res| { let post = res?; diff --git a/src/main.rs b/src/main.rs index 59e711ad4..8400f570a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -113,8 +113,8 @@ fn main() { .middleware(sessions) .middleware(RequireLogin) .resource("/", |r| r.method(Method::GET).with(forum_index)) - .resource("/thread/submit", |r| r.method(Method::POST).with2(submit_thread)) - .resource("/thread/reply", |r| r.method(Method::POST).with2(reply_thread)) + .resource("/thread/submit", |r| r.method(Method::POST).with3(submit_thread)) + .resource("/thread/reply", |r| r.method(Method::POST).with3(reply_thread)) .resource("/thread/{id}", |r| r.method(Method::GET).with2(forum_thread)) .resource("/oidc/login", |r| r.method(Method::GET).with(login)) .resource("/oidc/callback", |r| r.method(Method::POST).with3(callback))}) diff --git a/src/models.rs b/src/models.rs index daeccf852..388dab485 100644 --- a/src/models.rs +++ b/src/models.rs @@ -27,6 +27,8 @@ pub struct Post { pub struct NewThread { pub title: String, pub body: String, + pub author_name: String, + pub author_email: String, } #[derive(Deserialize, Insertable)] @@ -34,4 +36,6 @@ pub struct NewThread { pub struct NewPost { pub thread_id: i32, pub body: String, + pub author_name: String, + pub author_email: String, } From fb7df7a34680524cd269d12e6b49fa487cef38b3 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Mon, 9 Apr 2018 23:37:21 +0200 Subject: [PATCH 039/163] feat(templates): Slightly less barebones index & thread templates --- templates/index.html | 57 +++++++++++++++---------- templates/thread.html | 97 +++++++++++++++++++++++++++++++++++-------- 2 files changed, 115 insertions(+), 39 deletions(-) diff --git a/templates/index.html b/templates/index.html index fe35eb7bc..5fc0d9a77 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,28 +1,41 @@ - - + + - Converse Index page + + + + + Converse Index -

    Welcome to Converse

    -
      - {% for thread in threads -%} -
    • {{ thread.title }} (posted at {{ thread.posted }} by {{ thread.author_name }})
    • - {%- endfor %} -
    -
    -
    -
    - - +
    + +
    +
    + -
    - - -
    -
    - -
    - +
    diff --git a/templates/thread.html b/templates/thread.html index 83007d6ac..3c93a5248 100644 --- a/templates/thread.html +++ b/templates/thread.html @@ -1,26 +1,89 @@ - - + + + + + + Converse: {{ thread.title }} -

    {{ thread.title }}

    +
    + +
    -

    {{ thread.body }}
    Posted at {{ thread.posted }} by {{ thread.author_name }}

    - {% for post in posts -%} -
  • {{ post.body }}
    Posted at {{ post.posted }} by {{ post.author_name }}
  • - {%- endfor %} +
    +
    +
    +
    +
    +
    +
    +

    {{ thread.title }}

    +
    +
    +
    +
    +
    +
    +
    +
    + +
    +
    +
    +
    + {{ thread.author_name }} +
    +
    +
    +
    + {{ thread.body }} +
    + {{ thread.posted }} +
    +
    -
    -
    - -
    - - + {% for post in posts -%} +
    +
    +
    + + {{ post.author_name }} +
    +
    + {{ post.body }} +
    + {{ post.posted }} +
    +
    + {%- endfor %} +
    +
    +
    + + + +
    + +
    + +
    +
    + +
    +
    +
    +
    +
    -
    - -
    - +
    From 103a59485fbb47e44740a976fb846791b8df0802 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Mon, 9 Apr 2018 23:37:41 +0200 Subject: [PATCH 040/163] feat(handlers/templates): Add "New Thread" handler and template --- src/handlers.rs | 9 +++++++ src/main.rs | 2 +- templates/new-thread.html | 52 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 62 insertions(+), 1 deletion(-) create mode 100644 templates/new-thread.html diff --git a/src/handlers.rs b/src/handlers.rs index c31cdf679..3af8a8c40 100644 --- a/src/handlers.rs +++ b/src/handlers.rs @@ -81,6 +81,15 @@ pub fn forum_thread(state: State, thread_id: Path) -> ConverseRes .responder() } +/// This handler presents the user with the "New Thread" form. +pub fn new_thread(state: State) -> Result { + let ctx = tera::Context::new(); + let body = state.tera.render("new-thread.html", &ctx)?; + Ok(HttpResponse::Ok() + .content_type("text/html") + .body(body)) +} + #[derive(Deserialize)] pub struct NewThreadForm { pub title: String, diff --git a/src/main.rs b/src/main.rs index 8400f570a..ef5d2e92f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -109,10 +109,10 @@ fn main() { App::with_state(state) .middleware(Logger::default()) - // TODO: Configure session backend with more secure settings. .middleware(sessions) .middleware(RequireLogin) .resource("/", |r| r.method(Method::GET).with(forum_index)) + .resource("/thread/new", |r| r.method(Method::GET).with(new_thread)) .resource("/thread/submit", |r| r.method(Method::POST).with3(submit_thread)) .resource("/thread/reply", |r| r.method(Method::POST).with3(reply_thread)) .resource("/thread/{id}", |r| r.method(Method::GET).with2(forum_thread)) diff --git a/templates/new-thread.html b/templates/new-thread.html new file mode 100644 index 000000000..90c724b01 --- /dev/null +++ b/templates/new-thread.html @@ -0,0 +1,52 @@ + + + + + + + + Converse Index + + +
    + +
    +
    +
    +

    Make your own thread on these here forums!

    +

    Remember that you can use Markdown when + writing your posts.

    +
    +
    +
    +
    + Title: +
    + +
    +
    +
    +
    +
    + Body: +
    + +
    +
    +
    +
    + +
    +
    +
    +
    +
    + + From c5833c02e202f2cbb236a092f851afb117ae2b28 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Mon, 9 Apr 2018 23:41:21 +0200 Subject: [PATCH 041/163] fix(db): Order index threads in descending post time Technically the last post date should matter more here, but we'll get there. --- src/db.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/db.rs b/src/db.rs index baf404af2..0ff716f70 100644 --- a/src/db.rs +++ b/src/db.rs @@ -30,7 +30,9 @@ impl Handler for DbExecutor { use schema::threads::dsl::*; let conn = self.0.get()?; - let results = threads.load::(&conn)?; + let results = threads + .order(posted.desc()) + .load::(&conn)?; Ok(results) } } From 97d77ffd07cf0c81deaffd70ad1448d56d325a35 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Mon, 9 Apr 2018 23:48:31 +0200 Subject: [PATCH 042/163] fix(templates): Fix author name & avatar display --- templates/thread.html | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/templates/thread.html b/templates/thread.html index 3c93a5248..ee5a3a427 100644 --- a/templates/thread.html +++ b/templates/thread.html @@ -47,7 +47,7 @@
    {{ thread.body }}
    - {{ thread.posted }} + {{ thread.posted }}
    @@ -55,13 +55,21 @@
    - - {{ post.author_name }} +
    +
    + +
    +
    +
    +
    + {{ post.author_name }} +
    +
    {{ post.body }}
    - {{ post.posted }} + {{ post.posted }}
    {%- endfor %} From f599f661bad023955aaa3436224914bb9933256e Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Tue, 10 Apr 2018 09:53:38 +0200 Subject: [PATCH 043/163] chore(cargo): Dependency bump & pin versions --- Cargo.lock | 104 ++++++++++++++++++++++++++++++++++++++++++++++++++--- Cargo.toml | 9 ++--- 2 files changed, 105 insertions(+), 8 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 4f64a7026..5afbdfa63 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -22,8 +22,8 @@ dependencies = [ [[package]] name = "actix-web" -version = "0.5.0-dev" -source = "git+https://github.com/actix/actix-web.git#89bf12605d2856ff9d845b3af8a643f1fa3fddc2" +version = "0.5.0" +source = "git+https://github.com/actix/actix-web.git#bb11fb3d242477ad0d61458b4c1dca7b146b4f3c" dependencies = [ "actix 0.5.5 (registry+https://github.com/rust-lang/crates.io-index)", "base64 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -91,6 +91,14 @@ dependencies = [ "memchr 2.0.1 (registry+https://github.com/rust-lang/crates.io-index)", ] +[[package]] +name = "ansi_term" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "winapi 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", +] + [[package]] name = "antidote" version = "1.0.0" @@ -252,13 +260,44 @@ dependencies = [ "time 0.1.39 (registry+https://github.com/rust-lang/crates.io-index)", ] +[[package]] +name = "clap" +version = "2.31.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "ansi_term 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)", + "atty 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", + "bitflags 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", + "strsim 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", + "textwrap 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", + "unicode-width 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", + "vec_map 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "comrak" +version = "0.2.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "clap 2.31.2 (registry+https://github.com/rust-lang/crates.io-index)", + "entities 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", + "lazy_static 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "pest 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", + "pest_derive 1.0.7 (registry+https://github.com/rust-lang/crates.io-index)", + "regex 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)", + "twoway 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)", + "typed-arena 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)", + "unicode_categories 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", +] + [[package]] name = "converse" version = "0.1.0" dependencies = [ "actix 0.5.5 (registry+https://github.com/rust-lang/crates.io-index)", - "actix-web 0.5.0-dev (git+https://github.com/actix/actix-web.git)", + "actix-web 0.5.0 (git+https://github.com/actix/actix-web.git)", "chrono 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", + "comrak 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", "diesel 1.2.0 (registry+https://github.com/rust-lang/crates.io-index)", "env_logger 0.5.6 (registry+https://github.com/rust-lang/crates.io-index)", "failure 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", @@ -499,6 +538,11 @@ dependencies = [ "cfg-if 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", ] +[[package]] +name = "entities" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" + [[package]] name = "env_logger" version = "0.5.6" @@ -1498,6 +1542,11 @@ name = "string" version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" +[[package]] +name = "strsim" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" + [[package]] name = "syn" version = "0.11.11" @@ -1596,6 +1645,14 @@ dependencies = [ "redox_termios 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", ] +[[package]] +name = "textwrap" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "unicode-width 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", +] + [[package]] name = "thread_local" version = "0.3.5" @@ -1811,6 +1868,19 @@ dependencies = [ "trust-dns-proto 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)", ] +[[package]] +name = "twoway" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "memchr 2.0.1 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "typed-arena" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" + [[package]] name = "ucd-util" version = "0.1.1" @@ -1845,6 +1915,11 @@ name = "unicode-normalization" version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" +[[package]] +name = "unicode-width" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" + [[package]] name = "unicode-xid" version = "0.0.4" @@ -1855,6 +1930,11 @@ name = "unicode-xid" version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" +[[package]] +name = "unicode_categories" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" + [[package]] name = "unidecode" version = "0.2.0" @@ -1920,6 +2000,11 @@ name = "vcpkg" version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" +[[package]] +name = "vec_map" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" + [[package]] name = "version_check" version = "0.1.3" @@ -2009,10 +2094,11 @@ dependencies = [ [metadata] "checksum actix 0.5.5 (registry+https://github.com/rust-lang/crates.io-index)" = "29d85dc76d055498ef65ecf556df154393f94f55d325a05be20c676432536ce7" -"checksum actix-web 0.5.0-dev (git+https://github.com/actix/actix-web.git)" = "" +"checksum actix-web 0.5.0 (git+https://github.com/actix/actix-web.git)" = "" "checksum actix_derive 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "c4b1dc922654b9aca7a8a31eab875fde804fa9fbd67f220f2e457787b23590f2" "checksum adler32 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = "6cbd0b9af8587c72beadc9f72d35b9fbb070982c9e6203e46e93f10df25f8f45" "checksum aho-corasick 0.6.4 (registry+https://github.com/rust-lang/crates.io-index)" = "d6531d44de723825aa81398a6415283229725a00fa30713812ab9323faa82fc4" +"checksum ansi_term 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ee49baf6cb617b853aa8d93bf420db2383fab46d314482ca2803b40d5fde979b" "checksum antidote 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "34fde25430d87a9388dadbe6e34d7f72a462c8b43ac8d309b42b0a8505d7e2a5" "checksum arrayvec 0.4.7 (registry+https://github.com/rust-lang/crates.io-index)" = "a1e964f9e24d588183fcb43503abda40d288c8657dfc27311516ce2f05675aef" "checksum atty 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)" = "af80143d6f7608d746df1520709e5d141c96f240b0e62b0aa41bdfb53374d9d4" @@ -2033,6 +2119,8 @@ dependencies = [ "checksum cc 1.0.9 (registry+https://github.com/rust-lang/crates.io-index)" = "2b4911e4bdcb4100c7680e7e854ff38e23f1b34d4d9e079efae3da2801341ffc" "checksum cfg-if 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "d4c819a1287eb618df47cc647173c5c4c66ba19d888a6e50d605672aed3140de" "checksum chrono 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)" = "1cce36c92cb605414e9b824f866f5babe0a0368e39ea07393b9b63cf3844c0e6" +"checksum clap 2.31.2 (registry+https://github.com/rust-lang/crates.io-index)" = "f0f16b89cbb9ee36d87483dc939fe9f1e13c05898d56d7b230a0d4dff033a536" +"checksum comrak 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)" = "9c53dbd76bd87f59d43e2c57334a87cffaecef897d4728bdf82b3c5d9a3507f7" "checksum cookie 0.10.1 (registry+https://github.com/rust-lang/crates.io-index)" = "746858cae4eae40fff37e1998320068df317bc247dc91a67c6cfa053afdc2abb" "checksum core-foundation 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "25bfd746d203017f7d5cbd31ee5d8e17f94b6521c7af77ece6c9e4b2d4b16c67" "checksum core-foundation-sys 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "065a5d7ffdcbc8fa145d6f0746f3555025b9097a9e9cda59f7467abae670c78d" @@ -2057,6 +2145,7 @@ dependencies = [ "checksum encoding-index-tradchinese 1.20141219.5 (registry+https://github.com/rust-lang/crates.io-index)" = "fd0e20d5688ce3cab59eb3ef3a2083a5c77bf496cb798dc6fcdb75f323890c18" "checksum encoding_index_tests 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)" = "a246d82be1c9d791c5dfde9a2bd045fc3cbba3fa2b11ad558f27d01712f00569" "checksum encoding_rs 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)" = "98fd0f24d1fb71a4a6b9330c8ca04cbd4e7cc5d846b54ca74ff376bc7c9f798d" +"checksum entities 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "b5320ae4c3782150d900b79807611a59a99fc9a1d61d686faafc24b93fc8d7ca" "checksum env_logger 0.5.6 (registry+https://github.com/rust-lang/crates.io-index)" = "0561146661ae44c579e993456bc76d11ce1e0c7d745e57b2fa7146b6e49fa2ad" "checksum error-chain 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)" = "faa976b4fd2e4c2b2f3f486874b19e61944d3de3de8b61c9fcf835d583871bcc" "checksum error-chain 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ff511d5dc435d703f4971bc399647c9bc38e20cb41452e3b9feb4765419ed3f3" @@ -2178,6 +2267,7 @@ dependencies = [ "checksum socket2 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)" = "71ebbe82fcdd697244ba7fe6e05e63b5c45910c3927e28469a04947494ff48d8" "checksum stable_deref_trait 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "15132e0e364248108c5e2c02e3ab539be8d6f5d52a01ca9bbf27ed657316f02b" "checksum string 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "31f98b200e7caca9efca50fc0aa69cd58a5ec81d5f6e75b2f3ecaad2e998972a" +"checksum strsim 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "bb4f380125926a99e52bc279241539c018323fab05ad6368b56f93d9369ff550" "checksum syn 0.11.11 (registry+https://github.com/rust-lang/crates.io-index)" = "d3b891b9015c88c576343b9b3e41c2c11a51c219ef067b264bd9c8aa9b441dad" "checksum syn 0.12.15 (registry+https://github.com/rust-lang/crates.io-index)" = "c97c05b8ebc34ddd6b967994d5c6e9852fa92f8b82b3858c39451f97346dcce5" "checksum syn 0.13.1 (registry+https://github.com/rust-lang/crates.io-index)" = "91b52877572087400e83d24b9178488541e3d535259e04ff17a63df1e5ceff59" @@ -2188,6 +2278,7 @@ dependencies = [ "checksum tera 0.11.6 (registry+https://github.com/rust-lang/crates.io-index)" = "1845350fc31befca6c3976001dc45213b63154a96b58cfbf177d45cbf94538dd" "checksum termcolor 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)" = "adc4587ead41bf016f11af03e55a624c06568b5a19db4e90fde573d805074f83" "checksum termion 1.5.1 (registry+https://github.com/rust-lang/crates.io-index)" = "689a3bdfaab439fd92bc87df5c4c78417d3cbe537487274e9b0b2dce76e92096" +"checksum textwrap 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)" = "c0b59b6b4b44d867f1370ef1bd91bfb262bf07bf0ae65c202ea2fbc16153b693" "checksum thread_local 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)" = "279ef31c19ededf577bfd12dfae728040a21f635b06a24cd670ff510edd38963" "checksum time 0.1.39 (registry+https://github.com/rust-lang/crates.io-index)" = "a15375f1df02096fb3317256ce2cee6a1f42fc84ea5ad5fc8c421cfe40c73098" "checksum tokio 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "be15ef40f675c9fe66e354d74c73f3ed012ca1aa14d65846a33ee48f1ae8d922" @@ -2205,13 +2296,17 @@ dependencies = [ "checksum tokio-udp 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "137bda266504893ac4774e0ec4c2108f7ccdbcb7ac8dced6305fe9e4e0b5041a" "checksum trust-dns-proto 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)" = "0266cdf22b1f3904d21252e71079395bc47836513d4f3888ff85b57a6add2227" "checksum trust-dns-resolver 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)" = "87cff716794d5ab064957bb78fc5575a38337571917ddd86fc2fed52dc48b141" +"checksum twoway 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)" = "59b11b2b5241ba34be09c3cc85a36e56e48f9888862e19cedf23336d35316ed1" +"checksum typed-arena 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "5934776c3ac1bea4a9d56620d6bf2d483b20d394e49581db40f187e1118ff667" "checksum ucd-util 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "fd2be2d6639d0f8fe6cdda291ad456e23629558d466e2789d2c3e9892bda285d" "checksum unicase 1.4.2 (registry+https://github.com/rust-lang/crates.io-index)" = "7f4765f83163b74f957c797ad9253caf97f103fb064d3999aea9568d09fc8a33" "checksum unicase 2.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "284b6d3db520d67fbe88fd778c21510d1b0ba4a551e5d0fbb023d33405f6de8a" "checksum unicode-bidi 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)" = "49f2bd0c6468a8230e1db229cff8029217cf623c767ea5d60bfbd42729ea54d5" "checksum unicode-normalization 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "51ccda9ef9efa3f7ef5d91e8f9b83bbe6955f9bf86aec89d5cce2c874625920f" +"checksum unicode-width 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)" = "bf3a113775714a22dcb774d8ea3655c53a32debae63a063acc00a91cc586245f" "checksum unicode-xid 0.0.4 (registry+https://github.com/rust-lang/crates.io-index)" = "8c1f860d7d29cf02cb2f3f359fd35991af3d30bac52c57d265a3c461074cb4dc" "checksum unicode-xid 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "fc72304796d0818e357ead4e000d19c9c174ab23dc11093ac919054d20a6a7fc" +"checksum unicode_categories 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "39ec24b3121d976906ece63c9daad25b85969647682eee313cb5779fdd69e14e" "checksum unidecode 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "d2adb95ee07cd579ed18131f2d9e7a17c25a4b76022935c7f2460d2bfae89fd2" "checksum unreachable 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "382810877fe448991dfc7f0dd6e3ae5d58088fd0ea5e35189655f84e6814fa56" "checksum untrusted 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)" = "f392d7819dbe58833e26872f5f6f0d68b7bbbe90fc3667e98731c4a15ad9a7ae" @@ -2221,6 +2316,7 @@ dependencies = [ "checksum uuid 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)" = "bcc7e3b898aa6f6c08e5295b6c89258d1331e9ac578cc992fb818759951bdc22" "checksum uuid 0.6.2 (registry+https://github.com/rust-lang/crates.io-index)" = "d4670e1e935f7edd193a413f802e2ee52274aed62a09ccaab1656515c9c53a66" "checksum vcpkg 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "9e0a7d8bed3178a8fb112199d466eeca9ed09a14ba8ad67718179b4fd5487d0b" +"checksum vec_map 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)" = "887b5b631c2ad01628bbbaa7dd4c869f80d3186688f8d0b6f58774fbe324988c" "checksum version_check 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)" = "6b772017e347561807c1aa192438c5fd74242a670a6cffacc40f2defd1dc069d" "checksum void 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = "6a02e4885ed3bc0f2de90ea6dd45ebcbb66dacffe03547fadbb0eeae2770887d" "checksum walkdir 1.0.7 (registry+https://github.com/rust-lang/crates.io-index)" = "bb08f9e670fab86099470b97cd2b252d6527f0b3cc1401acdb595ffc9dd288ff" diff --git a/Cargo.toml b/Cargo.toml index 2fb52937f..284e0a702 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,16 +10,17 @@ env_logger = "0.5" diesel = { version = "1.2", features = ["postgres", "chrono", "r2d2"]} chrono = { version = "0.4", features = ["serde"] } log = "0.4" -r2d2 = "*" -futures = "*" +r2d2 = "0.8" +futures = "0.1" tera = "0.11" serde = "1.0" serde_derive = "1.0" -failure = "*" +failure = "0.1" url = "1.7" url_serde = "0.2" reqwest = "0.8" frank_jwt = "3.0" serde_json = "1.0" -hyper = "*" +hyper = "0.11" rand = "0.4" +comrak = "0.2" From 4eb0a57177b82c9d2fc65b610a77bb9fd3226693 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Tue, 10 Apr 2018 09:53:58 +0200 Subject: [PATCH 044/163] fix(main): Update cookie session setup for new actix-web --- src/main.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index ef5d2e92f..d748be64f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -36,7 +36,7 @@ pub mod schema; use actix::prelude::*; use actix_web::*; -use actix_web::middleware::{Logger, SessionStorage, CookieSessionBackendBuilder}; +use actix_web::middleware::{Logger, SessionStorage, CookieSessionBackend}; use actix_web::http::Method; use db::*; use diesel::pg::PgConnection; @@ -103,9 +103,8 @@ fn main() { }; let sessions = SessionStorage::new( - CookieSessionBackendBuilder::new(&key) - .secure(base_url.starts_with("https")) - .finish()); + CookieSessionBackend::signed(&key) + .secure(base_url.starts_with("https"))); App::with_state(state) .middleware(Logger::default()) From fe7e5e48b5702a0547b3008e06a1f0c04d88e3bf Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Wed, 11 Apr 2018 12:17:33 +0200 Subject: [PATCH 045/163] feat(render): Add rendering actor Adds a separate actor that handles page rendering, templating engine state and other related topics. --- src/main.rs | 3 ++- src/render.rs | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 72 insertions(+), 1 deletion(-) create mode 100644 src/render.rs diff --git a/src/main.rs b/src/main.rs index d748be64f..72bc5e00e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -27,11 +27,12 @@ extern crate serde_json; extern crate url; extern crate url_serde; -pub mod oidc; pub mod db; pub mod errors; pub mod handlers; pub mod models; +pub mod oidc; +pub mod render; pub mod schema; use actix::prelude::*; diff --git a/src/render.rs b/src/render.rs new file mode 100644 index 000000000..8dfce219b --- /dev/null +++ b/src/render.rs @@ -0,0 +1,70 @@ +//! This module defines a rendering actor used for processing Converse +//! data into whatever format is needed by the templates and rendering +//! them. + +use actix::prelude::*; +use actix_web::HttpResponse; +use tera::{Context, Tera}; +use models::*; +use errors::*; + +pub struct Renderer(pub Tera); + +impl Actor for Renderer { + type Context = actix::Context; +} + +/// Message used to render the index page. +pub struct IndexPage { + pub threads: Vec, +} + +impl Message for IndexPage { + type Result = Result; +} + +impl Handler for Renderer { + type Result = Result; + + fn handle(&mut self, msg: IndexPage, _: &mut Self::Context) -> Self::Result { + let mut ctx = Context::new(); + ctx.add("threads", &msg.threads); + Ok(self.0.render("index.html", &ctx)?) + } +} + +/// Message used to render a thread. +pub struct ThreadPage { + pub thread: Thread, + pub posts: Vec, +} + +impl Message for ThreadPage { + type Result = Result; +} + +impl Handler for Renderer { + type Result = Result; + + fn handle(&mut self, msg: ThreadPage, _: &mut Self::Context) -> Self::Result { + let mut ctx = Context::new(); + ctx.add("thread", &msg.thread); + ctx.add("posts", &msg.posts); + Ok(self.0.render("thread.html", &ctx)?) + } +} + +/// Message used to render new thread page. +pub struct NewThreadPage; + +impl Message for NewThreadPage { + type Result = Result; +} + +impl Handler for Renderer { + type Result = Result; + + fn handle(&mut self, _: NewThreadPage, _: &mut Self::Context) -> Self::Result { + Ok(self.0.render("new-thread.html", &Context::new())?) + } +} From 1cce37446b3dbc558ffe82b1b1728279dec92175 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Wed, 11 Apr 2018 12:18:08 +0200 Subject: [PATCH 046/163] refactor(handlers): Use rendering actor for page renders This currently breaks error handling in page render flows. To fix it properly, the database actor should return failable futures instead of `Result` wrapped in a future. --- src/handlers.rs | 72 +++++++++++++++++++------------------------------ todo.org | 5 +++- 2 files changed, 31 insertions(+), 46 deletions(-) diff --git a/src/handlers.rs b/src/handlers.rs index 3af8a8c40..9732414b3 100644 --- a/src/handlers.rs +++ b/src/handlers.rs @@ -5,7 +5,7 @@ //! the tera templates stored in the `/templates` directory in the //! project root. -use actix::prelude::{Addr, Syn}; +use actix::prelude::*; use actix_web; use actix_web::*; use actix_web::middleware::{Started, Middleware, RequestSession}; @@ -15,9 +15,12 @@ use futures::Future; use models::*; use oidc::*; use tera; +use render::*; type ConverseResponse = Box>; +const HTML: &'static str = "text/html"; + /// Represents the state carried by the web server actors. pub struct AppState { /// Address of the database actor @@ -26,68 +29,47 @@ pub struct AppState { /// Address of the OIDC actor pub oidc: Addr, - /// Compiled templates - pub tera: tera::Tera, + /// Address of the rendering actor + pub renderer: Addr, } -/// This function renders an overview of threads into the default -/// thread list template. -fn render_threads(tpl: &tera::Tera, threads: Vec) -> Result { - let mut ctx = tera::Context::new(); - ctx.add("threads", &threads); - let body = tpl.render("index.html", &ctx)?; - Ok(HttpResponse::Ok().content_type("text/html").body(body)) -} +// impl AppState { +// fn render_ok(self, msg: M) -> ConverseResponse +// where M: Send + Message, Renderer: Handler { +// self.renderer.send(msg); +// unimplemented!() +// } +// } pub fn forum_index(state: State) -> ConverseResponse { state.db.send(ListThreads) + .and_then(move |res| state.renderer.send(IndexPage { threads: res.unwrap() })) .from_err() - .and_then(move |res| match res { - Ok(threads) => Ok(render_threads(&state.tera, threads)?), - Err(err) => { - error!("Error loading threads: {}", err); - Ok(HttpResponse::InternalServerError().into()) - } - }) + .map(|res| HttpResponse::Ok().content_type(HTML).body(res.unwrap())) .responder() } -/// This function renders a single forum thread into the default -/// thread view. -fn render_thread(tpl: &tera::Tera, thread: Thread, posts: Vec) - -> Result { - let mut ctx = tera::Context::new(); - ctx.add("thread", &thread); - ctx.add("posts", &posts); - - let body = tpl.render("thread.html", &ctx)?; - Ok(HttpResponse::Ok() - .content_type("text/html") - .body(body)) -} - /// This handler retrieves and displays a single forum thread. pub fn forum_thread(state: State, thread_id: Path) -> ConverseResponse { let id = thread_id.into_inner(); state.db.send(GetThread(id)) - .from_err() - .and_then(move |res| match res { - Ok((thread, posts)) => Ok(render_thread(&state.tera, thread, posts)?), - Err(err) => { - error!("Error loading thread {}: {}", id, err); - Ok(HttpResponse::InternalServerError().into()) - } + .and_then(move |res| { + let u = res.unwrap(); + state.renderer.send(ThreadPage { + thread: u.0, + posts: u.1, + }) }) + .from_err() + .map(|res| HttpResponse::Ok().content_type(HTML).body(res.unwrap())) .responder() } /// This handler presents the user with the "New Thread" form. -pub fn new_thread(state: State) -> Result { - let ctx = tera::Context::new(); - let body = state.tera.render("new-thread.html", &ctx)?; - Ok(HttpResponse::Ok() - .content_type("text/html") - .body(body)) +pub fn new_thread(state: State) -> ConverseResponse { + state.renderer.send(NewThreadPage).from_err() + .map(|res| HttpResponse::Ok().content_type(HTML).body(res.unwrap())) + .responder() } #[derive(Deserialize)] diff --git a/todo.org b/todo.org index af8fb223a..63ad4ebb0 100644 --- a/todo.org +++ b/todo.org @@ -1,4 +1,7 @@ +* DONE Pin *-versions in cargo.toml * TODO Configurable number of DB workers -* TODO Pin *-versions in cargo.toml * TODO Match certain types of Diesel errors (esp. for "not found") * TODO Sketch out categories vs. tags system +* TODO Markdown support +* TODO Quote button +* TODO Multiquote buttons From 18ba3eba3c1ea53a22e824be57ad4c32e9c2564e Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Wed, 11 Apr 2018 12:19:10 +0200 Subject: [PATCH 047/163] fix(main): Correctly set up rendering actor --- src/main.rs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 72bc5e00e..434bd40f3 100644 --- a/src/main.rs +++ b/src/main.rs @@ -83,6 +83,12 @@ fn main() { let oidc_addr: Addr = oidc.start(); + info!("Compiling templates ..."); + let template_path = concat!(env!("CARGO_MANIFEST_DIR"), "/templates/**/*"); + let tera = compile_templates!(template_path); + let renderer = render::Renderer(tera); + let renderer_addr: Addr = renderer.start(); + info!("Initialising HTTP server ..."); let bind_host = config_default("CONVERSE_BIND_HOST", "127.0.0.1:4567"); let key = { @@ -95,12 +101,10 @@ fn main() { }; server::new(move || { - let template_path = concat!(env!("CARGO_MANIFEST_DIR"), "/templates/**/*"); - let tera = compile_templates!(template_path); let state = AppState { db: db_addr.clone(), oidc: oidc_addr.clone(), - tera, + renderer: renderer_addr.clone(), }; let sessions = SessionStorage::new( From 405e6340f86b5806e865c570e3afc28a1416cf34 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Wed, 11 Apr 2018 13:24:32 +0200 Subject: [PATCH 048/163] chore(cargo): Add md5 crate dependency Required for Gravatar. --- Cargo.lock | 7 +++++++ Cargo.toml | 1 + src/main.rs | 2 ++ 3 files changed, 10 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index 5afbdfa63..a22e1e110 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -305,6 +305,7 @@ dependencies = [ "futures 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", "hyper 0.11.25 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", + "md5 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)", "r2d2 0.8.2 (registry+https://github.com/rust-lang/crates.io-index)", "rand 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", "reqwest 0.8.5 (registry+https://github.com/rust-lang/crates.io-index)", @@ -895,6 +896,11 @@ name = "matches" version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" +[[package]] +name = "md5" +version = "0.3.7" +source = "registry+https://github.com/rust-lang/crates.io-index" + [[package]] name = "memchr" version = "2.0.1" @@ -2190,6 +2196,7 @@ dependencies = [ "checksum log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)" = "89f010e843f2b1a31dbd316b3b8d443758bc634bed37aabade59c686d644e0a2" "checksum lru-cache 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "4d06ff7ff06f729ce5f4e227876cb88d10bc59cd4ae1e09fbb2bde15c850dc21" "checksum matches 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = "100aabe6b8ff4e4a7e32c1c13523379802df0772b82466207ac25b013f193376" +"checksum md5 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)" = "daa1004633f76cdcd5a9d83ffcfe615e30ca7a2a638fcc8b8039a2dac21289d7" "checksum memchr 2.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "796fba70e76612589ed2ce7f45282f5af869e0fdd7cc6199fa1aa1f1d591ba9d" "checksum memoffset 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "e163e5baece1a039e71e75b074de17a9b4114982aa109921fc20253bdf91a53c" "checksum memoffset 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "0f9dc261e2b62d7a622bf416ea3c5245cdd5d9a7fcc428c0d06804dfce1775b3" diff --git a/Cargo.toml b/Cargo.toml index 284e0a702..45c3215c3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,3 +24,4 @@ serde_json = "1.0" hyper = "0.11" rand = "0.4" comrak = "0.2" +md5 = "0.3.7" diff --git a/src/main.rs b/src/main.rs index 434bd40f3..a3ad36430 100644 --- a/src/main.rs +++ b/src/main.rs @@ -16,9 +16,11 @@ extern crate failure; extern crate actix; extern crate actix_web; extern crate chrono; +extern crate comrak; extern crate env_logger; extern crate futures; extern crate hyper; +extern crate md5; extern crate r2d2; extern crate rand; extern crate reqwest; From 87237f5c28f177830808aeb4710f72d31f14c045 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Wed, 11 Apr 2018 13:25:12 +0200 Subject: [PATCH 049/163] feat(render): Implement Markdown thread rendering & Gravatar Implements a new thread rendering pipeline which all posts and the main thread body are first converted to a `RenderablePost` structure. During the conversion to this structure, the post body is rendered as Markdown and the author's email address is converted into the format required by Gravatar. --- src/main.rs | 14 ++++++-- src/render.rs | 75 ++++++++++++++++++++++++++++++++++++++----- templates/thread.html | 31 ++++-------------- 3 files changed, 85 insertions(+), 35 deletions(-) diff --git a/src/main.rs b/src/main.rs index a3ad36430..eeab96e83 100644 --- a/src/main.rs +++ b/src/main.rs @@ -87,8 +87,18 @@ fn main() { info!("Compiling templates ..."); let template_path = concat!(env!("CARGO_MANIFEST_DIR"), "/templates/**/*"); - let tera = compile_templates!(template_path); - let renderer = render::Renderer(tera); + let mut tera = compile_templates!(template_path); + tera.autoescape_on(vec![]); + let comrak = comrak::ComrakOptions{ + github_pre_lang: true, + ext_strikethrough: true, + ext_table: true, + ext_autolink: true, + ext_tasklist: true, + ext_footnotes: true, + ..Default::default() + }; + let renderer = render::Renderer{ tera, comrak }; let renderer_addr: Addr = renderer.start(); info!("Initialising HTTP server ..."); diff --git a/src/render.rs b/src/render.rs index 8dfce219b..fee897f28 100644 --- a/src/render.rs +++ b/src/render.rs @@ -4,11 +4,17 @@ use actix::prelude::*; use actix_web::HttpResponse; -use tera::{Context, Tera}; -use models::*; use errors::*; +use md5; +use models::*; +use tera::{escape_html, Context, Tera}; +use chrono::prelude::{DateTime, Utc}; +use comrak::{ComrakOptions, markdown_to_html}; -pub struct Renderer(pub Tera); +pub struct Renderer { + pub tera: Tera, + pub comrak: ComrakOptions, +} impl Actor for Renderer { type Context = actix::Context; @@ -29,7 +35,7 @@ impl Handler for Renderer { fn handle(&mut self, msg: IndexPage, _: &mut Self::Context) -> Self::Result { let mut ctx = Context::new(); ctx.add("threads", &msg.threads); - Ok(self.0.render("index.html", &ctx)?) + Ok(self.tera.render("index.html", &ctx)?) } } @@ -43,14 +49,67 @@ impl Message for ThreadPage { type Result = Result; } +// "Renderable" structures with data transformations applied. +#[derive(Debug, Serialize)] +struct RenderablePost { + id: i32, + body: String, + posted: DateTime, + author_name: String, + author_gravatar: String, +} + +/// This structure represents the transformed thread data with +/// Markdown rendering and other changes applied. +#[derive(Debug, Serialize)] +struct RenderableThreadPage { + id: i32, + title: String, + posts: Vec, +} + +/// Helper function for computing Gravatar links. +fn md5_hex(input: &[u8]) -> String { + format!("{:x}", md5::compute(input)) +} + +fn prepare_thread(comrak: &ComrakOptions, page: ThreadPage) -> RenderableThreadPage { + let mut posts = vec![RenderablePost { + // Always pin the ID of the first post. + id: 0, + body: markdown_to_html(&page.thread.body, comrak), + posted: page.thread.posted, + author_name: page.thread.author_name, + author_gravatar: md5_hex(page.thread.author_email.as_bytes()), + }]; + + for post in page.posts { + posts.push(RenderablePost { + id: post.id, + body: markdown_to_html(&post.body, comrak), + posted: post.posted, + author_name: post.author_name, + author_gravatar: md5_hex(post.author_email.as_bytes()), + }); + } + + RenderableThreadPage { + posts, + id: page.thread.id, + title: escape_html(&page.thread.title), + } +} + impl Handler for Renderer { type Result = Result; fn handle(&mut self, msg: ThreadPage, _: &mut Self::Context) -> Self::Result { + let renderable = prepare_thread(&self.comrak, msg); let mut ctx = Context::new(); - ctx.add("thread", &msg.thread); - ctx.add("posts", &msg.posts); - Ok(self.0.render("thread.html", &ctx)?) + ctx.add("title", &renderable.title); + ctx.add("posts", &renderable.posts); + ctx.add("id", &renderable.id); + Ok(self.tera.render("thread.html", &ctx)?) } } @@ -65,6 +124,6 @@ impl Handler for Renderer { type Result = Result; fn handle(&mut self, _: NewThreadPage, _: &mut Self::Context) -> Self::Result { - Ok(self.0.render("new-thread.html", &Context::new())?) + Ok(self.tera.render("new-thread.html", &Context::new())?) } } diff --git a/templates/thread.html b/templates/thread.html index ee5a3a427..bbe288e92 100644 --- a/templates/thread.html +++ b/templates/thread.html @@ -5,7 +5,7 @@ - Converse: {{ thread.title }} + Converse: {{ title }}
    @@ -26,30 +26,10 @@
    -

    {{ thread.title }}

    +

    {{ title }}

    -
    -
    -
    -
    -
    - -
    -
    -
    -
    - {{ thread.author_name }} -
    -
    -
    -
    - {{ thread.body }} -
    - {{ thread.posted }} -
    -
    {% for post in posts -%}
    @@ -57,7 +37,7 @@
    - +
    @@ -69,15 +49,16 @@
    {{ post.body }}
    - {{ post.posted }} + {{ post.posted }}
    {%- endfor %} +
    - +
    From 2bbcc8432efd8536fee8f93d7f18e8bfc4d775a7 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Wed, 11 Apr 2018 13:52:37 +0200 Subject: [PATCH 050/163] fix(render): Escape thread titles in index --- src/render.rs | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/src/render.rs b/src/render.rs index fee897f28..4087dd45d 100644 --- a/src/render.rs +++ b/src/render.rs @@ -29,12 +29,30 @@ impl Message for IndexPage { type Result = Result; } +#[derive(Debug, Serialize)] +struct IndexThread { + id: i32, + title: String, + posted: DateTime, + author_name: String, +} + impl Handler for Renderer { type Result = Result; fn handle(&mut self, msg: IndexPage, _: &mut Self::Context) -> Self::Result { + let threads: Vec = msg.threads + .into_iter() + .map(|thread| IndexThread { + id: thread.id, + title: escape_html(&thread.title), + posted: thread.posted, + author_name: thread.author_name, + }) + .collect(); + let mut ctx = Context::new(); - ctx.add("threads", &msg.threads); + ctx.add("threads", &threads); Ok(self.tera.render("index.html", &ctx)?) } } From 138f4f608d53bbe2731f75918d59223445a48ce3 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Wed, 11 Apr 2018 16:16:37 +0200 Subject: [PATCH 051/163] feat(render): Use a more human-readable format for dates --- src/render.rs | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/src/render.rs b/src/render.rs index 4087dd45d..2372e887c 100644 --- a/src/render.rs +++ b/src/render.rs @@ -20,6 +20,16 @@ impl Actor for Renderer { type Context = actix::Context; } +/// Represents a data formatted for human consumption +#[derive(Debug, Serialize)] +struct FormattedDate(String); + +impl From> for FormattedDate { + fn from(date: DateTime) -> Self { + FormattedDate(format!("{}", date.format("%a %d %B %Y, %R"))) + } +} + /// Message used to render the index page. pub struct IndexPage { pub threads: Vec, @@ -33,7 +43,7 @@ impl Message for IndexPage { struct IndexThread { id: i32, title: String, - posted: DateTime, + posted: FormattedDate, author_name: String, } @@ -46,7 +56,7 @@ impl Handler for Renderer { .map(|thread| IndexThread { id: thread.id, title: escape_html(&thread.title), - posted: thread.posted, + posted: thread.posted.into(), author_name: thread.author_name, }) .collect(); @@ -72,7 +82,7 @@ impl Message for ThreadPage { struct RenderablePost { id: i32, body: String, - posted: DateTime, + posted: FormattedDate, author_name: String, author_gravatar: String, } @@ -96,7 +106,7 @@ fn prepare_thread(comrak: &ComrakOptions, page: ThreadPage) -> RenderableThreadP // Always pin the ID of the first post. id: 0, body: markdown_to_html(&page.thread.body, comrak), - posted: page.thread.posted, + posted: page.thread.posted.into(), author_name: page.thread.author_name, author_gravatar: md5_hex(page.thread.author_email.as_bytes()), }]; @@ -105,7 +115,7 @@ fn prepare_thread(comrak: &ComrakOptions, page: ThreadPage) -> RenderableThreadP posts.push(RenderablePost { id: post.id, body: markdown_to_html(&post.body, comrak), - posted: post.posted, + posted: post.posted.into(), author_name: post.author_name, author_gravatar: md5_hex(post.author_email.as_bytes()), }); From b781a1fe57f7b589b97703ce08758991b39cb067 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Wed, 11 Apr 2018 16:35:26 +0200 Subject: [PATCH 052/163] chore: Clean up unused imports --- src/handlers.rs | 3 +-- src/render.rs | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/handlers.rs b/src/handlers.rs index 9732414b3..43bc69afe 100644 --- a/src/handlers.rs +++ b/src/handlers.rs @@ -10,11 +10,10 @@ use actix_web; use actix_web::*; use actix_web::middleware::{Started, Middleware, RequestSession}; use db::*; -use errors::{Result, ConverseError}; +use errors::ConverseError; use futures::Future; use models::*; use oidc::*; -use tera; use render::*; type ConverseResponse = Box>; diff --git a/src/render.rs b/src/render.rs index 2372e887c..527cc4044 100644 --- a/src/render.rs +++ b/src/render.rs @@ -3,7 +3,6 @@ //! them. use actix::prelude::*; -use actix_web::HttpResponse; use errors::*; use md5; use models::*; From 918c2726b409b6820f66d9138cda5cf1c2307dd4 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Wed, 11 Apr 2018 16:35:40 +0200 Subject: [PATCH 053/163] fix(templates/handlers): Fix post anchors - ensure users are correctly linked to a post actor after replying - ensure timestamps are clickable to get post IDs --- src/handlers.rs | 2 +- templates/thread.html | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/handlers.rs b/src/handlers.rs index 43bc69afe..05b73a699 100644 --- a/src/handlers.rs +++ b/src/handlers.rs @@ -131,7 +131,7 @@ pub fn reply_thread(state: State, let post = res?; info!("Posted reply {} to thread {}", post.id, post.thread_id); Ok(HttpResponse::SeeOther() - .header("Location", format!("/thread/{}#post{}", post.thread_id, post.id)) + .header("Location", format!("/thread/{}#post-{}", post.thread_id, post.id)) .finish()) }) .responder() diff --git a/templates/thread.html b/templates/thread.html index bbe288e92..1b4846373 100644 --- a/templates/thread.html +++ b/templates/thread.html @@ -32,7 +32,10 @@
    {% for post in posts -%} -
    +
    + + {{ post.posted }} +
    @@ -49,7 +52,6 @@
    {{ post.body }}
    - {{ post.posted }}
    {%- endfor %} From b862e3dc7913f103c9ad6c7a45f180013402b9b7 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Wed, 11 Apr 2018 21:21:21 +0200 Subject: [PATCH 054/163] chore(cargo): Use stable release of actix-web The git version previously tracked by Converse has been released. --- Cargo.lock | 38 +++++++++++++++++++------------------- Cargo.toml | 2 +- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index a22e1e110..dffd9b5f8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -13,7 +13,7 @@ dependencies = [ "log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", "skeptic 0.13.2 (registry+https://github.com/rust-lang/crates.io-index)", "smallvec 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)", - "tokio-core 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-core 0.1.17 (registry+https://github.com/rust-lang/crates.io-index)", "tokio-io 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", "tokio-signal 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", "trust-dns-resolver 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)", @@ -23,7 +23,7 @@ dependencies = [ [[package]] name = "actix-web" version = "0.5.0" -source = "git+https://github.com/actix/actix-web.git#bb11fb3d242477ad0d61458b4c1dca7b146b4f3c" +source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "actix 0.5.5 (registry+https://github.com/rust-lang/crates.io-index)", "base64 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -60,7 +60,7 @@ dependencies = [ "skeptic 0.13.2 (registry+https://github.com/rust-lang/crates.io-index)", "smallvec 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)", "time 0.1.39 (registry+https://github.com/rust-lang/crates.io-index)", - "tokio-core 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-core 0.1.17 (registry+https://github.com/rust-lang/crates.io-index)", "tokio-io 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", "trust-dns-resolver 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)", "url 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -295,10 +295,10 @@ name = "converse" version = "0.1.0" dependencies = [ "actix 0.5.5 (registry+https://github.com/rust-lang/crates.io-index)", - "actix-web 0.5.0 (git+https://github.com/actix/actix-web.git)", + "actix-web 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)", "chrono 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", "comrak 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", - "diesel 1.2.0 (registry+https://github.com/rust-lang/crates.io-index)", + "diesel 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)", "env_logger 0.5.6 (registry+https://github.com/rust-lang/crates.io-index)", "failure 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", "frank_jwt 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -448,7 +448,7 @@ dependencies = [ [[package]] name = "diesel" -version = "1.2.0" +version = "1.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "bitflags 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", @@ -751,7 +751,7 @@ dependencies = [ "percent-encoding 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", "relay 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", "time 0.1.39 (registry+https://github.com/rust-lang/crates.io-index)", - "tokio-core 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-core 0.1.17 (registry+https://github.com/rust-lang/crates.io-index)", "tokio-io 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", "tokio-proto 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", "tokio-service 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -766,7 +766,7 @@ dependencies = [ "futures 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", "hyper 0.11.25 (registry+https://github.com/rust-lang/crates.io-index)", "native-tls 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", - "tokio-core 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-core 0.1.17 (registry+https://github.com/rust-lang/crates.io-index)", "tokio-io 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", "tokio-service 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "tokio-tls 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1320,7 +1320,7 @@ dependencies = [ "serde 1.0.37 (registry+https://github.com/rust-lang/crates.io-index)", "serde_json 1.0.13 (registry+https://github.com/rust-lang/crates.io-index)", "serde_urlencoded 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)", - "tokio-core 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-core 0.1.17 (registry+https://github.com/rust-lang/crates.io-index)", "tokio-io 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", "tokio-tls 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", "url 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1696,7 +1696,7 @@ dependencies = [ [[package]] name = "tokio-core" -version = "0.1.16" +version = "0.1.17" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "bytes 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1705,11 +1705,11 @@ dependencies = [ "log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", "mio 0.6.14 (registry+https://github.com/rust-lang/crates.io-index)", "scoped-tls 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", - "slab 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", "tokio 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", "tokio-executor 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", "tokio-io 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", "tokio-reactor 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-timer 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -1742,7 +1742,7 @@ dependencies = [ "slab 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", "smallvec 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", "take 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", - "tokio-core 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-core 0.1.17 (registry+https://github.com/rust-lang/crates.io-index)", "tokio-io 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", "tokio-service 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -1777,7 +1777,7 @@ dependencies = [ "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", "mio 0.6.14 (registry+https://github.com/rust-lang/crates.io-index)", "mio-uds 0.6.4 (registry+https://github.com/rust-lang/crates.io-index)", - "tokio-core 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-core 0.1.17 (registry+https://github.com/rust-lang/crates.io-index)", "tokio-io 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", "winapi 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -1824,7 +1824,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "futures 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", "native-tls 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", - "tokio-core 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-core 0.1.17 (registry+https://github.com/rust-lang/crates.io-index)", "tokio-io 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -1853,7 +1853,7 @@ dependencies = [ "lazy_static 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", "rand 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", - "tokio-core 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-core 0.1.17 (registry+https://github.com/rust-lang/crates.io-index)", "tokio-io 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", "url 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -1870,7 +1870,7 @@ dependencies = [ "log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", "lru-cache 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", "resolv-conf 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)", - "tokio-core 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-core 0.1.17 (registry+https://github.com/rust-lang/crates.io-index)", "trust-dns-proto 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -2100,7 +2100,7 @@ dependencies = [ [metadata] "checksum actix 0.5.5 (registry+https://github.com/rust-lang/crates.io-index)" = "29d85dc76d055498ef65ecf556df154393f94f55d325a05be20c676432536ce7" -"checksum actix-web 0.5.0 (git+https://github.com/actix/actix-web.git)" = "" +"checksum actix-web 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)" = "af57fb387a5ca73f8902a0edfac7fe49271b2a9c2bb78815b519c0ad35637c77" "checksum actix_derive 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "c4b1dc922654b9aca7a8a31eab875fde804fa9fbd67f220f2e457787b23590f2" "checksum adler32 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = "6cbd0b9af8587c72beadc9f72d35b9fbb070982c9e6203e46e93f10df25f8f45" "checksum aho-corasick 0.6.4 (registry+https://github.com/rust-lang/crates.io-index)" = "d6531d44de723825aa81398a6415283229725a00fa30713812ab9323faa82fc4" @@ -2140,7 +2140,7 @@ dependencies = [ "checksum crossbeam-utils 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "2760899e32a1d58d5abb31129f8fae5de75220bc2176e77ff7c627ae45c918d9" "checksum crossbeam-utils 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)" = "d636a8b3bcc1b409d7ffd3facef8f21dcb4009626adbd0c5e6c4305c07253c7b" "checksum dbghelp-sys 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "97590ba53bcb8ac28279161ca943a924d1fd4a8fb3fa63302591647c4fc5b850" -"checksum diesel 1.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "06b6446da8e5ae24540deeb54b724ca401efd321fb0c77e583df05a086e05a2a" +"checksum diesel 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "6d84a516e1eca7094d5ed8e618fb8d59748e185d24316ed8663eb46fc2a27dff" "checksum diesel_derives 1.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "6471a2b637b414d3ee1504cf230409a550381c79204282f8fe06c527e4ae56be" "checksum dtoa 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)" = "09c3753c3db574d215cba4ea76018483895d7bff25a31b49ba45db21c48e50ab" "checksum encoding 0.2.33 (registry+https://github.com/rust-lang/crates.io-index)" = "6b0d943856b990d12d3b55b359144ff341533e516d94098b1d3fc1ac666d36ec" @@ -2289,7 +2289,7 @@ dependencies = [ "checksum thread_local 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)" = "279ef31c19ededf577bfd12dfae728040a21f635b06a24cd670ff510edd38963" "checksum time 0.1.39 (registry+https://github.com/rust-lang/crates.io-index)" = "a15375f1df02096fb3317256ce2cee6a1f42fc84ea5ad5fc8c421cfe40c73098" "checksum tokio 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "be15ef40f675c9fe66e354d74c73f3ed012ca1aa14d65846a33ee48f1ae8d922" -"checksum tokio-core 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)" = "799492ccba3d8ed5e41f2520a7cfd504cb65bbfe5fbbbd0012e335ae5f188051" +"checksum tokio-core 0.1.17 (registry+https://github.com/rust-lang/crates.io-index)" = "aeeffbbb94209023feaef3c196a41cbcdafa06b4a6f893f68779bb5e53796f71" "checksum tokio-executor 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "8cac2a7883ff3567e9d66bb09100d09b33d90311feca0206c7ca034bc0c55113" "checksum tokio-io 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = "6af9eb326f64b2d6b68438e1953341e00ab3cf54de7e35d92bfc73af8555313a" "checksum tokio-proto 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "8fbb47ae81353c63c487030659494b295f6cb6576242f907f203473b191b0389" diff --git a/Cargo.toml b/Cargo.toml index 45c3215c3..cd002057f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,7 +5,7 @@ authors = ["Vincent Ambo "] [dependencies] actix = "0.5" -actix-web = { git="https://github.com/actix/actix-web.git" } +actix-web = "0.5" env_logger = "0.5" diesel = { version = "1.2", features = ["postgres", "chrono", "r2d2"]} chrono = { version = "0.4", features = ["serde"] } From a9917d54a82c3ff0dc35b412a85093028d340902 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Wed, 11 Apr 2018 23:34:49 +0200 Subject: [PATCH 055/163] chore(handlers): Remove unused code --- src/handlers.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/handlers.rs b/src/handlers.rs index 05b73a699..71469deea 100644 --- a/src/handlers.rs +++ b/src/handlers.rs @@ -32,14 +32,6 @@ pub struct AppState { pub renderer: Addr, } -// impl AppState { -// fn render_ok(self, msg: M) -> ConverseResponse -// where M: Send + Message, Renderer: Handler { -// self.renderer.send(msg); -// unimplemented!() -// } -// } - pub fn forum_index(state: State) -> ConverseResponse { state.db.send(ListThreads) .and_then(move |res| state.renderer.send(IndexPage { threads: res.unwrap() })) From 0ec214423e0367ad3be21a7c9df5341da3c633c4 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Thu, 12 Apr 2018 00:04:37 +0200 Subject: [PATCH 056/163] fix(handlers): Fix chained error handling in actors This took me some time to figure out so it's useful to document in the commit message. When chaining messages from actors, the result type of a message (i.e. the actual `::Result`) is sometimes itself a `Result`. In many cases this leads to a situation where the return type of a message sending process is something like (simplified): Future, Error=actix::MailboxError> Due to the implementation of `From for ConverseError` it is possible to use `.from_err()` on these futures to convert the future's `Error` to `ConverseError`. The type `Result` apparently implements `IntoFuture`, which means that due to some trait magic that's been applied somewhere in the futures API a call to `flatten()` can "lift" the contained error if the error types match and give us a "simple" Future From that point on chaining becomes easy. --- src/handlers.rs | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/src/handlers.rs b/src/handlers.rs index 71469deea..43e45d925 100644 --- a/src/handlers.rs +++ b/src/handlers.rs @@ -34,9 +34,12 @@ pub struct AppState { pub fn forum_index(state: State) -> ConverseResponse { state.db.send(ListThreads) - .and_then(move |res| state.renderer.send(IndexPage { threads: res.unwrap() })) - .from_err() - .map(|res| HttpResponse::Ok().content_type(HTML).body(res.unwrap())) + .flatten() + .and_then(move |res| state.renderer.send(IndexPage { + threads: res + }).from_err()) + .flatten() + .map(|res| HttpResponse::Ok().content_type(HTML).body(res)) .responder() } @@ -44,22 +47,20 @@ pub fn forum_index(state: State) -> ConverseResponse { pub fn forum_thread(state: State, thread_id: Path) -> ConverseResponse { let id = thread_id.into_inner(); state.db.send(GetThread(id)) - .and_then(move |res| { - let u = res.unwrap(); - state.renderer.send(ThreadPage { - thread: u.0, - posts: u.1, - }) - }) - .from_err() - .map(|res| HttpResponse::Ok().content_type(HTML).body(res.unwrap())) + .flatten() + .and_then(move |res| state.renderer.send(ThreadPage { + thread: res.0, + posts: res.1, + }).from_err()) + .flatten() + .map(|res| HttpResponse::Ok().content_type(HTML).body(res)) .responder() } /// This handler presents the user with the "New Thread" form. pub fn new_thread(state: State) -> ConverseResponse { - state.renderer.send(NewThreadPage).from_err() - .map(|res| HttpResponse::Ok().content_type(HTML).body(res.unwrap())) + state.renderer.send(NewThreadPage).flatten() + .map(|res| HttpResponse::Ok().content_type(HTML).body(res)) .responder() } From f46f6f3c4296a16e3040398df2774756dec29e93 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Thu, 12 Apr 2018 00:32:06 +0200 Subject: [PATCH 057/163] chore(cargo): Remove unused dependency --- Cargo.lock | 14 -------------- Cargo.toml | 1 - 2 files changed, 15 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index dffd9b5f8..70a490cf5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -301,7 +301,6 @@ dependencies = [ "diesel 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)", "env_logger 0.5.6 (registry+https://github.com/rust-lang/crates.io-index)", "failure 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", - "frank_jwt 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)", "futures 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", "hyper 0.11.25 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", @@ -626,18 +625,6 @@ name = "foreign-types-shared" version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -[[package]] -name = "frank_jwt" -version = "3.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "base64 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", - "openssl 0.9.24 (registry+https://github.com/rust-lang/crates.io-index)", - "serde 1.0.37 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_json 1.0.13 (registry+https://github.com/rust-lang/crates.io-index)", - "time 0.1.39 (registry+https://github.com/rust-lang/crates.io-index)", -] - [[package]] name = "fuchsia-zircon" version = "0.3.3" @@ -2162,7 +2149,6 @@ dependencies = [ "checksum fnv 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)" = "2fad85553e09a6f881f739c29f0b00b0f01357c743266d478b68951ce23285f3" "checksum foreign-types 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)" = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1" "checksum foreign-types-shared 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" -"checksum frank_jwt 3.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "2debb36c032c3e19cf8803666963a509034cc80f277d690b711b0acf6dbbf366" "checksum fuchsia-zircon 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "2e9763c69ebaae630ba35f74888db465e49e259ba1bc0eda7d06f4a067615d82" "checksum fuchsia-zircon-sys 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "3dcaa9ae7725d12cdb85b3ad99a434db70b468c09ded17e012d86b5c1010f7a7" "checksum futures 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)" = "1a70b146671de62ec8c8ed572219ca5d594d9b06c0b364d5e67b722fc559b48c" diff --git a/Cargo.toml b/Cargo.toml index cd002057f..e274ee5f5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,7 +19,6 @@ failure = "0.1" url = "1.7" url_serde = "0.2" reqwest = "0.8" -frank_jwt = "3.0" serde_json = "1.0" hyper = "0.11" rand = "0.4" From e7a54a5affd40f92f788f46ab64033d14860959a Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Thu, 12 Apr 2018 01:07:25 +0200 Subject: [PATCH 058/163] feat(handler): Perform basic input validation on new thread view --- src/handlers.rs | 19 +++++++++++++++++-- src/render.rs | 18 +++++++++++++++--- templates/new-thread.html | 7 +++++-- templates/thread.html | 6 ++---- 4 files changed, 39 insertions(+), 11 deletions(-) diff --git a/src/handlers.rs b/src/handlers.rs index 43e45d925..0848740bc 100644 --- a/src/handlers.rs +++ b/src/handlers.rs @@ -59,7 +59,7 @@ pub fn forum_thread(state: State, thread_id: Path) -> ConverseRes /// This handler presents the user with the "New Thread" form. pub fn new_thread(state: State) -> ConverseResponse { - state.renderer.send(NewThreadPage).flatten() + state.renderer.send(NewThreadPage::default()).flatten() .map(|res| HttpResponse::Ok().content_type(HTML).body(res)) .responder() } @@ -70,11 +70,26 @@ pub struct NewThreadForm { pub body: String, } +const NEW_THREAD_LENGTH_ERR: &'static str = "Title and body can not be empty!"; + /// This handler receives a "New thread"-form and redirects the user /// to the new thread after creation. pub fn submit_thread(state: State, input: Form, mut req: HttpRequest) -> ConverseResponse { + // Perform simple validation and abort here if it fails: + if input.0.title.is_empty() || input.0.body.is_empty() { + return state.renderer + .send(NewThreadPage { + alerts: vec![NEW_THREAD_LENGTH_ERR], + title: Some(input.0.title), + body: Some(input.0.body), + }) + .flatten() + .map(|res| HttpResponse::Ok().content_type(HTML).body(res)) + .responder(); + } + // Author is "unwrapped" because the RequireLogin middleware // guarantees it to be present. let author: Author = req.session().get(AUTHOR).unwrap().unwrap(); @@ -158,7 +173,7 @@ pub fn callback(state: State, } -/// Middleware used to enforce logins unceremonially. +/// Middleware used to enforce logins unceremoniously. pub struct RequireLogin; impl Middleware for RequireLogin { diff --git a/src/render.rs b/src/render.rs index 527cc4044..37f1c4b7f 100644 --- a/src/render.rs +++ b/src/render.rs @@ -141,7 +141,15 @@ impl Handler for Renderer { } /// Message used to render new thread page. -pub struct NewThreadPage; +/// +/// It can optionally contain a vector of warnings to display to the +/// user in alert boxes, such as input validation errors. +#[derive(Default)] +pub struct NewThreadPage { + pub alerts: Vec<&'static str>, + pub title: Option, + pub body: Option, +} impl Message for NewThreadPage { type Result = Result; @@ -150,7 +158,11 @@ impl Message for NewThreadPage { impl Handler for Renderer { type Result = Result; - fn handle(&mut self, _: NewThreadPage, _: &mut Self::Context) -> Self::Result { - Ok(self.tera.render("new-thread.html", &Context::new())?) + fn handle(&mut self, msg: NewThreadPage, _: &mut Self::Context) -> Self::Result { + let mut ctx = Context::new(); + ctx.add("alerts", &msg.alerts); + ctx.add("title", &msg.title.map(|s| escape_html(&s))); + ctx.add("body", &msg.body.map(|s| escape_html(&s))); + Ok(self.tera.render("new-thread.html", &ctx)?) } } diff --git a/templates/new-thread.html b/templates/new-thread.html index 90c724b01..fec26fb5a 100644 --- a/templates/new-thread.html +++ b/templates/new-thread.html @@ -20,6 +20,9 @@
    + {% for alert in alerts %} +
    {{ alert }}
    + {% endfor %}

    Make your own thread on these here forums!

    Remember that you can use Markdown when writing your posts.

    @@ -29,7 +32,7 @@
    Title:
    - +
    @@ -37,7 +40,7 @@
    Body:
    - +
    diff --git a/templates/thread.html b/templates/thread.html index 1b4846373..4909365a8 100644 --- a/templates/thread.html +++ b/templates/thread.html @@ -13,9 +13,7 @@

    Converse

    - - Back to index - + Back to index @@ -59,7 +57,7 @@
    -
    +
    From bf02c70f74ea13452d9ee129ad047075e64cdfd6 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Thu, 12 Apr 2018 01:28:37 +0200 Subject: [PATCH 059/163] feat(handlers/main): Add 'anonymous' mode for forum Adds a `REQUIRE_LOGIN` environment variable which, if set to anything other than true, will let users post anonymously on the forums. --- src/handlers.rs | 23 +++++++++++++++++------ src/main.rs | 13 ++++++++++--- 2 files changed, 27 insertions(+), 9 deletions(-) diff --git a/src/handlers.rs b/src/handlers.rs index 0848740bc..c97e67731 100644 --- a/src/handlers.rs +++ b/src/handlers.rs @@ -64,6 +64,15 @@ pub fn new_thread(state: State) -> ConverseResponse { .responder() } +/// This function provides an anonymous "default" author if logins are +/// not required. +fn anonymous() -> Author { + Author { + name: "Anonymous".into(), + email: "anonymous@nothing.org".into(), + } +} + #[derive(Deserialize)] pub struct NewThreadForm { pub title: String, @@ -90,9 +99,10 @@ pub fn submit_thread(state: State, .responder(); } - // Author is "unwrapped" because the RequireLogin middleware - // guarantees it to be present. - let author: Author = req.session().get(AUTHOR).unwrap().unwrap(); + let author: Author = req.session().get(AUTHOR) + .unwrap_or_else(|_| Some(anonymous())) + .unwrap_or_else(anonymous); + let new_thread = NewThread { title: input.0.title, body: input.0.body, @@ -123,9 +133,10 @@ pub struct NewPostForm { pub fn reply_thread(state: State, input: Form, mut req: HttpRequest) -> ConverseResponse { - // Author is "unwrapped" because the RequireLogin middleware - // guarantees it to be present. - let author: Author = req.session().get(AUTHOR).unwrap().unwrap(); + let author: Author = req.session().get(AUTHOR) + .unwrap_or_else(|_| Some(anonymous())) + .unwrap_or_else(anonymous); + let new_post = NewPost { thread_id: input.thread_id, body: input.0.body, diff --git a/src/main.rs b/src/main.rs index eeab96e83..8188d4987 100644 --- a/src/main.rs +++ b/src/main.rs @@ -112,6 +112,8 @@ fn main() { key_bytes }; + let require_login = config_default("REQUIRE_LOGIN", "true".into()) == "true"; + server::new(move || { let state = AppState { db: db_addr.clone(), @@ -123,17 +125,22 @@ fn main() { CookieSessionBackend::signed(&key) .secure(base_url.starts_with("https"))); - App::with_state(state) + let app = App::with_state(state) .middleware(Logger::default()) .middleware(sessions) - .middleware(RequireLogin) .resource("/", |r| r.method(Method::GET).with(forum_index)) .resource("/thread/new", |r| r.method(Method::GET).with(new_thread)) .resource("/thread/submit", |r| r.method(Method::POST).with3(submit_thread)) .resource("/thread/reply", |r| r.method(Method::POST).with3(reply_thread)) .resource("/thread/{id}", |r| r.method(Method::GET).with2(forum_thread)) .resource("/oidc/login", |r| r.method(Method::GET).with(login)) - .resource("/oidc/callback", |r| r.method(Method::POST).with3(callback))}) + .resource("/oidc/callback", |r| r.method(Method::POST).with3(callback)); + + if require_login { + app.middleware(RequireLogin) + } else { + app + }}) .bind(&bind_host).expect(&format!("Could not bind on '{}'", bind_host)) .start(); From a90d1cc1a41e405ea397b06a3bc1907291c98b65 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sat, 14 Apr 2018 16:33:15 +0200 Subject: [PATCH 060/163] feat(migrations): Drop 'body' column from threads As a data model simplification, the text of a thread's top post should simply also go into the posts table. --- migrations/2018-04-14-140818_posts_only_in_posts/down.sql | 1 + migrations/2018-04-14-140818_posts_only_in_posts/up.sql | 6 ++++++ 2 files changed, 7 insertions(+) create mode 100644 migrations/2018-04-14-140818_posts_only_in_posts/down.sql create mode 100644 migrations/2018-04-14-140818_posts_only_in_posts/up.sql diff --git a/migrations/2018-04-14-140818_posts_only_in_posts/down.sql b/migrations/2018-04-14-140818_posts_only_in_posts/down.sql new file mode 100644 index 000000000..bb6528f33 --- /dev/null +++ b/migrations/2018-04-14-140818_posts_only_in_posts/down.sql @@ -0,0 +1 @@ +ALTER TABLE threads ADD COLUMN body TEXT NOT NULL DEFAULT ''; diff --git a/migrations/2018-04-14-140818_posts_only_in_posts/up.sql b/migrations/2018-04-14-140818_posts_only_in_posts/up.sql new file mode 100644 index 000000000..07ff9a119 --- /dev/null +++ b/migrations/2018-04-14-140818_posts_only_in_posts/up.sql @@ -0,0 +1,6 @@ +-- Instead of storing the thread OP in the thread table, this will +-- make it a post as well. +-- At the time at which this migration was created no important data +-- existed in any converse instances, so data is not moved. + +ALTER TABLE threads DROP COLUMN body; From 8c30ef92f652f411679408344031706745346f02 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sat, 14 Apr 2018 16:33:45 +0200 Subject: [PATCH 061/163] refactor(db): Store thread body in the posts table This is a simplification over the previous approach. The OP of a thread is just a normal post like any other in this model, which allows some code simplifications (and future query convenience). --- src/db.rs | 31 ++++++++++++++++++++++++++----- src/handlers.rs | 8 ++++++-- src/models.rs | 2 -- src/render.rs | 17 ++++------------- src/schema.rs | 1 - 5 files changed, 36 insertions(+), 23 deletions(-) diff --git a/src/db.rs b/src/db.rs index 0ff716f70..35d7a6b35 100644 --- a/src/db.rs +++ b/src/db.rs @@ -5,7 +5,7 @@ use diesel; use diesel::prelude::*; use diesel::r2d2::{Pool, ConnectionManager}; use models::*; -use errors::Result; +use errors::{ConverseError, Result}; /// The DB actor itself. Several of these will be run in parallel by /// `SyncArbiter`. @@ -62,7 +62,10 @@ impl Handler for DbExecutor { } /// Message used to create a new thread -pub struct CreateThread(pub NewThread); +pub struct CreateThread { + pub new_thread: NewThread, + pub body: String, +} impl Message for CreateThread { type Result = Result; @@ -73,12 +76,30 @@ impl Handler for DbExecutor { fn handle(&mut self, msg: CreateThread, _: &mut Self::Context) -> Self::Result { use schema::threads; + use schema::posts; let conn = self.0.get()?; - Ok(diesel::insert_into(threads::table) - .values(&msg.0) - .get_result(&conn)?) + conn.transaction::(|| { + // First insert the thread structure itself + let thread: Thread = diesel::insert_into(threads::table) + .values(&msg.new_thread) + .get_result(&conn)?; + + // ... then create the first post in the thread. + let new_post = NewPost { + thread_id: thread.id, + body: msg.body, + author_name: msg.new_thread.author_name.clone(), + author_email: msg.new_thread.author_email.clone(), + }; + + diesel::insert_into(posts::table) + .values(&new_post) + .execute(&conn)?; + + Ok(thread) + }) } } diff --git a/src/handlers.rs b/src/handlers.rs index c97e67731..c866f7a14 100644 --- a/src/handlers.rs +++ b/src/handlers.rs @@ -105,12 +105,16 @@ pub fn submit_thread(state: State, let new_thread = NewThread { title: input.0.title, - body: input.0.body, author_name: author.name, author_email: author.email, }; - state.db.send(CreateThread(new_thread)) + let msg = CreateThread { + new_thread, + body: input.0.body, + }; + + state.db.send(msg) .from_err() .and_then(move |res| { let thread = res?; diff --git a/src/models.rs b/src/models.rs index 388dab485..eb3030ccb 100644 --- a/src/models.rs +++ b/src/models.rs @@ -5,7 +5,6 @@ use schema::{threads, posts}; pub struct Thread { pub id: i32, pub title: String, - pub body: String, pub posted: DateTime, pub author_name: String, pub author_email: String, @@ -26,7 +25,6 @@ pub struct Post { #[table_name="threads"] pub struct NewThread { pub title: String, - pub body: String, pub author_name: String, pub author_email: String, } diff --git a/src/render.rs b/src/render.rs index 37f1c4b7f..f47830fa8 100644 --- a/src/render.rs +++ b/src/render.rs @@ -101,24 +101,15 @@ fn md5_hex(input: &[u8]) -> String { } fn prepare_thread(comrak: &ComrakOptions, page: ThreadPage) -> RenderableThreadPage { - let mut posts = vec![RenderablePost { - // Always pin the ID of the first post. - id: 0, - body: markdown_to_html(&page.thread.body, comrak), - posted: page.thread.posted.into(), - author_name: page.thread.author_name, - author_gravatar: md5_hex(page.thread.author_email.as_bytes()), - }]; - - for post in page.posts { - posts.push(RenderablePost { + let posts = page.posts.into_iter().map(|post| { + RenderablePost { id: post.id, body: markdown_to_html(&post.body, comrak), posted: post.posted.into(), author_name: post.author_name, author_gravatar: md5_hex(post.author_email.as_bytes()), - }); - } + } + }).collect(); RenderableThreadPage { posts, diff --git a/src/schema.rs b/src/schema.rs index 4881056c1..d14c89c4c 100644 --- a/src/schema.rs +++ b/src/schema.rs @@ -13,7 +13,6 @@ table! { threads (id) { id -> Int4, title -> Varchar, - body -> Text, posted -> Timestamptz, author_name -> Varchar, author_email -> Varchar, From b0825f3850a0f6fc97f05a02fa9f30aefee7a158 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sat, 14 Apr 2018 16:38:05 +0200 Subject: [PATCH 062/163] docs(README): Add a very simple README file --- README.org | 14 ++++++++++++++ todo.org | 5 ++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 README.org diff --git a/README.org b/README.org new file mode 100644 index 000000000..46df507c3 --- /dev/null +++ b/README.org @@ -0,0 +1,14 @@ +#+TITLE: Converse +#+AUTHOR: Vincent Ambo + +Welcome to Converse, a work-in-progress forum software written in +Rust. The intention behind Converse is to provide a simple forum-like +experience. + +There is not a lot of documentation about Converse yet and it has +several known issues. Also note that Converse is being developed for a +specific use-case and is not going to be a forum feature kitchen-sink +like most classical forum softwares. + +Better documentation is forthcoming once the remaining basics have +been taken care of. diff --git a/todo.org b/todo.org index 63ad4ebb0..d417b571a 100644 --- a/todo.org +++ b/todo.org @@ -1,7 +1,10 @@ * DONE Pin *-versions in cargo.toml +* DONE Markdown support * TODO Configurable number of DB workers * TODO Match certain types of Diesel errors (esp. for "not found") * TODO Sketch out categories vs. tags system -* TODO Markdown support * TODO Quote button * TODO Multiquote buttons +* TODO Search +* TODO Post ordering as expected +* TODO Pagination From d1acf4cfd7d81488146b9573fda60bd05f2e2704 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sat, 14 Apr 2018 16:38:48 +0200 Subject: [PATCH 063/163] docs(CODE_OF_CONDUCT): Add a reasonable code of conduct --- CODE_OF_CONDUCT.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 CODE_OF_CONDUCT.md diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md new file mode 100644 index 000000000..0e46bbedb --- /dev/null +++ b/CODE_OF_CONDUCT.md @@ -0,0 +1,29 @@ +A SERMON ON ETHICS AND LOVE +=========================== + +One day Mal-2 asked the messenger spirit Saint Gulik to approach the +Goddess and request Her presence for some desperate advice. Shortly +afterwards the radio came on by itself, and an ethereal female Voice +said **YES?** + +"O! Eris! Blessed Mother of Man! Queen of Chaos! Daughter of Discord! +Concubine of Confusion! O! Exquisite Lady, I beseech You to lift a +heavy burden from my heart!" + +**WHAT BOTHERS YOU, MAL? YOU DON'T SOUND WELL.** + +"I am filled with fear and tormented with terrible visions of pain. +Everywhere people are hurting one another, the planet is rampant with +injustices, whole societies plunder groups of their own people, +mothers imprison sons, children perish while brothers war. O, woe." + +**WHAT IS THE MATTER WITH THAT, IF IT IS WHAT YOU WANT TO DO?** + +"But nobody Wants it! Everybody hates it." + +**OH. WELL, THEN *STOP*.** + +At which moment She turned herself into an aspirin commercial and left +The Polyfather stranded alone with his species. + +SINISTER DEXTER HAS A BROKEN SPIROMETER. From a326e1ea2e686f6ce835e1f5876165882ac5d1aa Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sat, 14 Apr 2018 16:40:56 +0200 Subject: [PATCH 064/163] feat: License project under GPLv3 --- LICENSE | 674 ++++++++++++++++++++++++++++++++++++++++++++++++ src/db.rs | 16 ++ src/errors.rs | 16 ++ src/handlers.rs | 16 ++ src/main.rs | 16 ++ src/models.rs | 16 ++ src/oidc.rs | 16 ++ src/render.rs | 16 ++ 8 files changed, 786 insertions(+) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 000000000..94a9ed024 --- /dev/null +++ b/LICENSE @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. diff --git a/src/db.rs b/src/db.rs index 35d7a6b35..c26597293 100644 --- a/src/db.rs +++ b/src/db.rs @@ -1,3 +1,19 @@ +// Copyright (C) 2018 Vincent Ambo +// +// Converse is free software: you can redistribute it and/or modify it +// under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// This program is distributed in the hope that it will be useful, but +// WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with this program. If not, see +// . + //! This module implements the database connection actor. use actix::prelude::*; diff --git a/src/errors.rs b/src/errors.rs index cf75f0e29..c7c1e14f4 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -1,3 +1,19 @@ +// Copyright (C) 2018 Vincent Ambo +// +// Converse is free software: you can redistribute it and/or modify it +// under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// This program is distributed in the hope that it will be useful, but +// WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with this program. If not, see +// . + //! This module defines custom error types using the `failure`-crate. //! Links to foreign error types (such as database connection errors) //! are established in a similar way as was tradition in diff --git a/src/handlers.rs b/src/handlers.rs index c866f7a14..dd1a5007c 100644 --- a/src/handlers.rs +++ b/src/handlers.rs @@ -1,3 +1,19 @@ +// Copyright (C) 2018 Vincent Ambo +// +// Converse is free software: you can redistribute it and/or modify it +// under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// This program is distributed in the hope that it will be useful, but +// WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with this program. If not, see +// . + //! This module contains the implementation of converse's actix-web //! HTTP handlers. //! diff --git a/src/main.rs b/src/main.rs index 8188d4987..61969bcff 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,19 @@ +// Copyright (C) 2018 Vincent Ambo +// +// Converse is free software: you can redistribute it and/or modify it +// under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// This program is distributed in the hope that it will be useful, but +// WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with this program. If not, see +// . + #[macro_use] extern crate diesel; diff --git a/src/models.rs b/src/models.rs index eb3030ccb..29d196b9a 100644 --- a/src/models.rs +++ b/src/models.rs @@ -1,3 +1,19 @@ +// Copyright (C) 2018 Vincent Ambo +// +// Converse is free software: you can redistribute it and/or modify it +// under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// This program is distributed in the hope that it will be useful, but +// WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with this program. If not, see +// . + use chrono::prelude::{DateTime, Utc}; use schema::{threads, posts}; diff --git a/src/oidc.rs b/src/oidc.rs index 09f7f7b6e..d9ba4237b 100644 --- a/src/oidc.rs +++ b/src/oidc.rs @@ -1,3 +1,19 @@ +// Copyright (C) 2018 Vincent Ambo +// +// Converse is free software: you can redistribute it and/or modify it +// under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// This program is distributed in the hope that it will be useful, but +// WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with this program. If not, see +// . + //! This module provides authentication via OIDC compliant //! authentication sources. //! diff --git a/src/render.rs b/src/render.rs index f47830fa8..ca1fd8ac3 100644 --- a/src/render.rs +++ b/src/render.rs @@ -1,3 +1,19 @@ +// Copyright (C) 2018 Vincent Ambo +// +// Converse is free software: you can redistribute it and/or modify it +// under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// This program is distributed in the hope that it will be useful, but +// WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with this program. If not, see +// . + //! This module defines a rendering actor used for processing Converse //! data into whatever format is needed by the templates and rendering //! them. From cf64826e4eda1ee7839a9a3e9b114564b3cced92 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sat, 14 Apr 2018 16:43:59 +0200 Subject: [PATCH 065/163] feat(build): Configure Travis builds for Rust --- .travis.yml | 1 + 1 file changed, 1 insertion(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..22761ba7e --- /dev/null +++ b/.travis.yml @@ -0,0 +1 @@ +language: rust From f10bd20276dc1271b3a17197adf53a014c5979b1 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sat, 14 Apr 2018 17:15:27 +0200 Subject: [PATCH 066/163] feat(db): Add view for ordering thread index by most recent post This implements the classic thread ordering expected by most forum users (i.e. the thread with the most recent post is at the top). --- .../2018-04-14-145711_create_index_view/down.sql | 1 + .../2018-04-14-145711_create_index_view/up.sql | 15 +++++++++++++++ src/db.rs | 9 ++++----- src/models.rs | 12 ++++++++++++ src/render.rs | 4 ++-- src/schema.rs | 11 +++++++++++ 6 files changed, 45 insertions(+), 7 deletions(-) create mode 100644 migrations/2018-04-14-145711_create_index_view/down.sql create mode 100644 migrations/2018-04-14-145711_create_index_view/up.sql diff --git a/migrations/2018-04-14-145711_create_index_view/down.sql b/migrations/2018-04-14-145711_create_index_view/down.sql new file mode 100644 index 000000000..87d26820f --- /dev/null +++ b/migrations/2018-04-14-145711_create_index_view/down.sql @@ -0,0 +1 @@ +DROP VIEW thread_index; diff --git a/migrations/2018-04-14-145711_create_index_view/up.sql b/migrations/2018-04-14-145711_create_index_view/up.sql new file mode 100644 index 000000000..3b7ddc1d6 --- /dev/null +++ b/migrations/2018-04-14-145711_create_index_view/up.sql @@ -0,0 +1,15 @@ +-- Create a simple view that returns the list of threads ordered by +-- the last post that occured in the thread. + +CREATE VIEW thread_index AS + SELECT t.id AS thread_id, + t.title AS title, + t.author_name AS author_name, + t.posted AS posted, + p.id AS post_id + FROM threads t + JOIN (SELECT DISTINCT ON (thread_id) id, thread_id + FROM posts + ORDER BY thread_id, id DESC) AS p + ON t.id = p.thread_id + ORDER BY p.id DESC; diff --git a/src/db.rs b/src/db.rs index c26597293..5a66fbb0f 100644 --- a/src/db.rs +++ b/src/db.rs @@ -36,19 +36,18 @@ impl Actor for DbExecutor { pub struct ListThreads; impl Message for ListThreads { - type Result = Result>; + type Result = Result>; } impl Handler for DbExecutor { type Result = ::Result; fn handle(&mut self, _: ListThreads, _: &mut Self::Context) -> Self::Result { - use schema::threads::dsl::*; + use schema::thread_index::dsl::*; let conn = self.0.get()?; - let results = threads - .order(posted.desc()) - .load::(&conn)?; + let results = thread_index + .load::(&conn)?; Ok(results) } } diff --git a/src/models.rs b/src/models.rs index 29d196b9a..159a85469 100644 --- a/src/models.rs +++ b/src/models.rs @@ -26,6 +26,18 @@ pub struct Thread { pub author_email: String, } +/// This struct is used as the query type for the thread index view, +/// which lists the index of threads ordered by the last post in each +/// thread. +#[derive(Queryable, Serialize)] +pub struct ThreadIndex { + pub thread_id: i32, + pub title: String, + pub author_name: String, + pub posted: DateTime, + pub post_id: i32, +} + #[derive(Identifiable, Queryable, Serialize, Associations)] #[belongs_to(Thread)] pub struct Post { diff --git a/src/render.rs b/src/render.rs index ca1fd8ac3..66b3fe19c 100644 --- a/src/render.rs +++ b/src/render.rs @@ -47,7 +47,7 @@ impl From> for FormattedDate { /// Message used to render the index page. pub struct IndexPage { - pub threads: Vec, + pub threads: Vec, } impl Message for IndexPage { @@ -69,7 +69,7 @@ impl Handler for Renderer { let threads: Vec = msg.threads .into_iter() .map(|thread| IndexThread { - id: thread.id, + id: thread.thread_id, title: escape_html(&thread.title), posted: thread.posted.into(), author_name: thread.author_name, diff --git a/src/schema.rs b/src/schema.rs index d14c89c4c..02392c8fc 100644 --- a/src/schema.rs +++ b/src/schema.rs @@ -19,6 +19,17 @@ table! { } } +// Note: Manually inserted as print-schema does not add views. +table! { + thread_index (thread_id){ + thread_id -> Integer, + title -> Text, + author_name -> Text, + posted -> Timestamptz, + post_id -> Integer, + } +} + joinable!(posts -> threads (thread_id)); allow_tables_to_appear_in_same_query!( From c136d34e798f399c515b31d90fd1194b02005c96 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sat, 14 Apr 2018 17:16:10 +0200 Subject: [PATCH 067/163] docs(todo): Add note about stickies --- todo.org | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/todo.org b/todo.org index d417b571a..97f9d0ab9 100644 --- a/todo.org +++ b/todo.org @@ -1,10 +1,11 @@ * DONE Pin *-versions in cargo.toml * DONE Markdown support +* DONE Post ordering as expected +* TODO Stickies! * TODO Configurable number of DB workers * TODO Match certain types of Diesel errors (esp. for "not found") * TODO Sketch out categories vs. tags system * TODO Quote button * TODO Multiquote buttons * TODO Search -* TODO Post ordering as expected * TODO Pagination From d1c45159b9bb23553768b06ce7ad97ec38e8b845 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sat, 14 Apr 2018 17:47:31 +0200 Subject: [PATCH 068/163] feat(db): Add support for stickies in database Adds a 'sticky' column to threads and rewrites the thread index to take sticky markings into account when ordering threads. Stickies are not yet highlighted in any way in the forum overview. --- .../down.sql | 1 - .../up.sql | 15 ------------- .../down.sql | 2 ++ .../up.sql | 21 +++++++++++++++++++ src/models.rs | 8 +++++-- src/render.rs | 2 +- src/schema.rs | 8 +++++-- 7 files changed, 36 insertions(+), 21 deletions(-) delete mode 100644 migrations/2018-04-14-145711_create_index_view/down.sql delete mode 100644 migrations/2018-04-14-145711_create_index_view/up.sql create mode 100644 migrations/2018-04-14-153202_add_stickies_improve_index/down.sql create mode 100644 migrations/2018-04-14-153202_add_stickies_improve_index/up.sql diff --git a/migrations/2018-04-14-145711_create_index_view/down.sql b/migrations/2018-04-14-145711_create_index_view/down.sql deleted file mode 100644 index 87d26820f..000000000 --- a/migrations/2018-04-14-145711_create_index_view/down.sql +++ /dev/null @@ -1 +0,0 @@ -DROP VIEW thread_index; diff --git a/migrations/2018-04-14-145711_create_index_view/up.sql b/migrations/2018-04-14-145711_create_index_view/up.sql deleted file mode 100644 index 3b7ddc1d6..000000000 --- a/migrations/2018-04-14-145711_create_index_view/up.sql +++ /dev/null @@ -1,15 +0,0 @@ --- Create a simple view that returns the list of threads ordered by --- the last post that occured in the thread. - -CREATE VIEW thread_index AS - SELECT t.id AS thread_id, - t.title AS title, - t.author_name AS author_name, - t.posted AS posted, - p.id AS post_id - FROM threads t - JOIN (SELECT DISTINCT ON (thread_id) id, thread_id - FROM posts - ORDER BY thread_id, id DESC) AS p - ON t.id = p.thread_id - ORDER BY p.id DESC; diff --git a/migrations/2018-04-14-153202_add_stickies_improve_index/down.sql b/migrations/2018-04-14-153202_add_stickies_improve_index/down.sql new file mode 100644 index 000000000..a67ada3d4 --- /dev/null +++ b/migrations/2018-04-14-153202_add_stickies_improve_index/down.sql @@ -0,0 +1,2 @@ +DROP VIEW thread_index; +ALTER TABLE threads DROP COLUMN sticky; diff --git a/migrations/2018-04-14-153202_add_stickies_improve_index/up.sql b/migrations/2018-04-14-153202_add_stickies_improve_index/up.sql new file mode 100644 index 000000000..74a559e35 --- /dev/null +++ b/migrations/2018-04-14-153202_add_stickies_improve_index/up.sql @@ -0,0 +1,21 @@ +-- Add support for stickies in threads +ALTER TABLE threads ADD COLUMN sticky BOOLEAN NOT NULL DEFAULT FALSE; + +-- CREATE a simple view that returns the list of threads ordered by +-- the last post that occured in the thread. +CREATE VIEW thread_index AS + SELECT t.id AS thread_id, + t.title AS title, + t.author_name AS thread_author, + t.posted AS created, + t.sticky AS sticky, + p.id AS post_id, + p.author_name AS post_author, + p.posted AS posted + FROM threads t + JOIN (SELECT DISTINCT ON (thread_id) + id, thread_id, author_name, posted + FROM posts + ORDER BY thread_id, id DESC) AS p + ON t.id = p.thread_id + ORDER BY t.sticky DESC, p.id DESC; diff --git a/src/models.rs b/src/models.rs index 159a85469..9d3405e15 100644 --- a/src/models.rs +++ b/src/models.rs @@ -24,6 +24,7 @@ pub struct Thread { pub posted: DateTime, pub author_name: String, pub author_email: String, + pub sticky: bool, } /// This struct is used as the query type for the thread index view, @@ -33,9 +34,12 @@ pub struct Thread { pub struct ThreadIndex { pub thread_id: i32, pub title: String, - pub author_name: String, - pub posted: DateTime, + pub thread_author: String, + pub created: DateTime, + pub sticky: bool, pub post_id: i32, + pub post_author: String, + pub posted: DateTime, } #[derive(Identifiable, Queryable, Serialize, Associations)] diff --git a/src/render.rs b/src/render.rs index 66b3fe19c..598d48bce 100644 --- a/src/render.rs +++ b/src/render.rs @@ -72,7 +72,7 @@ impl Handler for Renderer { id: thread.thread_id, title: escape_html(&thread.title), posted: thread.posted.into(), - author_name: thread.author_name, + author_name: thread.thread_author, }) .collect(); diff --git a/src/schema.rs b/src/schema.rs index 02392c8fc..50a55c786 100644 --- a/src/schema.rs +++ b/src/schema.rs @@ -16,6 +16,7 @@ table! { posted -> Timestamptz, author_name -> Varchar, author_email -> Varchar, + sticky -> Bool, } } @@ -24,9 +25,12 @@ table! { thread_index (thread_id){ thread_id -> Integer, title -> Text, - author_name -> Text, - posted -> Timestamptz, + thread_author -> Text, + created -> Timestamptz, + sticky -> Bool, post_id -> Integer, + post_author -> Text, + posted -> Timestamptz, } } From c6995fcab3e8f2d2db7d4c7647811f0dd038ab2b Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sat, 14 Apr 2018 17:55:57 +0200 Subject: [PATCH 069/163] feat(templates): Highlight stickied threads in index --- src/render.rs | 2 ++ templates/index.html | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/render.rs b/src/render.rs index 598d48bce..186b96d24 100644 --- a/src/render.rs +++ b/src/render.rs @@ -58,6 +58,7 @@ impl Message for IndexPage { struct IndexThread { id: i32, title: String, + sticky: bool, posted: FormattedDate, author_name: String, } @@ -71,6 +72,7 @@ impl Handler for Renderer { .map(|thread| IndexThread { id: thread.thread_id, title: escape_html(&thread.title), + sticky: thread.sticky, posted: thread.posted.into(), author_name: thread.thread_author, }) diff --git a/templates/index.html b/templates/index.html index 5fc0d9a77..f499f4047 100644 --- a/templates/index.html +++ b/templates/index.html @@ -25,10 +25,10 @@
    {% for thread in threads -%} - +
    {{ thread.title }}
    - {{ thread.posted }} + {{ thread.posted }}

    Created by {{ thread.author_name }}

    From b684320a73933b2c98096fef73f1ae62e0e71596 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sat, 14 Apr 2018 17:56:36 +0200 Subject: [PATCH 070/163] docs(todo): Stickies are done! --- todo.org | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/todo.org b/todo.org index 97f9d0ab9..014a5bba4 100644 --- a/todo.org +++ b/todo.org @@ -1,7 +1,7 @@ * DONE Pin *-versions in cargo.toml * DONE Markdown support * DONE Post ordering as expected -* TODO Stickies! +* DONE Stickies! * TODO Configurable number of DB workers * TODO Match certain types of Diesel errors (esp. for "not found") * TODO Sketch out categories vs. tags system From 324778c7e008128b8e9e1ea1699cd5250a81c73d Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sat, 14 Apr 2018 17:59:52 +0200 Subject: [PATCH 071/163] fix(templates): Set CSPs on templates --- templates/index.html | 1 + templates/new-thread.html | 1 + templates/thread.html | 1 + 3 files changed, 3 insertions(+) diff --git a/templates/index.html b/templates/index.html index f499f4047..35cfeba05 100644 --- a/templates/index.html +++ b/templates/index.html @@ -3,6 +3,7 @@ + Converse Index diff --git a/templates/new-thread.html b/templates/new-thread.html index fec26fb5a..855626b8e 100644 --- a/templates/new-thread.html +++ b/templates/new-thread.html @@ -3,6 +3,7 @@ + Converse Index diff --git a/templates/thread.html b/templates/thread.html index 4909365a8..6222b9926 100644 --- a/templates/thread.html +++ b/templates/thread.html @@ -3,6 +3,7 @@ + Converse: {{ title }} From 529da884da2a208ad91aebf052522517a704c742 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sat, 14 Apr 2018 18:12:24 +0200 Subject: [PATCH 072/163] fix(templates): Fluidly scale all images --- templates/thread.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/thread.html b/templates/thread.html index 6222b9926..7a2d6ee2e 100644 --- a/templates/thread.html +++ b/templates/thread.html @@ -6,6 +6,8 @@ + + Converse: {{ title }} From 2d8db520107c25c5bc7d1ba861047fa9b7eaea5f Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sat, 14 Apr 2018 20:27:16 +0200 Subject: [PATCH 073/163] feat(migrations): Add materialized view & index for full text search Adds a materialized view to be used for full-text searches that indexes the tsvector documents for each post. --- .../2018-04-14-170750_search-index/down.sql | 2 ++ .../2018-04-14-170750_search-index/up.sql | 21 +++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 migrations/2018-04-14-170750_search-index/down.sql create mode 100644 migrations/2018-04-14-170750_search-index/up.sql diff --git a/migrations/2018-04-14-170750_search-index/down.sql b/migrations/2018-04-14-170750_search-index/down.sql new file mode 100644 index 000000000..c57e66290 --- /dev/null +++ b/migrations/2018-04-14-170750_search-index/down.sql @@ -0,0 +1,2 @@ +DROP INDEX idx_fts_search; +DROP MATERIALIZED VIEW search_index; diff --git a/migrations/2018-04-14-170750_search-index/up.sql b/migrations/2018-04-14-170750_search-index/up.sql new file mode 100644 index 000000000..ed997d3e0 --- /dev/null +++ b/migrations/2018-04-14-170750_search-index/up.sql @@ -0,0 +1,21 @@ +-- Prepare a materialised view containing the tsvector data for all +-- threads and posts. This view is indexed using a GIN-index to enable +-- performant full-text searches. +-- +-- For now the query language is hardcoded to be English. + +CREATE MATERIALIZED VIEW search_index AS + SELECT p.id AS post_id, + p.author_name AS author, + t.id AS thread_id, + t.title AS title, + p.body AS body, + setweight(to_tsvector('english', t.title), 'A') || + setweight(to_tsvector('english', p.body), 'B') || + setweight(to_tsvector('simple', t.author_name), 'C') || + setweight(to_tsvector('simple', p.author_name), 'C') AS document + FROM posts p + JOIN threads t + ON t.id = p.thread_id; + +CREATE INDEX idx_fts_search ON search_index USING gin(document); From 31b0a550f2b96a1de5de65308420788c9a6aa5df Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sat, 14 Apr 2018 20:28:30 +0200 Subject: [PATCH 074/163] feat(db): Implement handling of 'SearchPosts' message Adds support for executing full-text search across a forum instance by sending the `SearchPosts` message with a search query to the DB actor. The struct used for results is mapped manually to the expected query result as the query is embedded via raw SQL. --- src/db.rs | 41 ++++++++++++++++++++++++++++++++++++++++- src/models.rs | 21 +++++++++++++++++++++ 2 files changed, 61 insertions(+), 1 deletion(-) diff --git a/src/db.rs b/src/db.rs index 5a66fbb0f..416e3fdd0 100644 --- a/src/db.rs +++ b/src/db.rs @@ -17,7 +17,8 @@ //! This module implements the database connection actor. use actix::prelude::*; -use diesel; +use diesel::{self, sql_query}; +use diesel::sql_types::Text; use diesel::prelude::*; use diesel::r2d2::{Pool, ConnectionManager}; use models::*; @@ -138,3 +139,41 @@ impl Handler for DbExecutor { .get_result(&conn)?) } } + +/// Message used to search for posts +#[derive(Deserialize)] +pub struct SearchPosts { pub query: String } + +impl Message for SearchPosts { + type Result = Result>; +} + +/// Raw PostgreSQL query used to perform full-text search on posts +/// with a supplied phrase. For now, the query language is hardcoded +/// to English and only "plain" queries (i.e. no searches for exact +/// matches or more advanced query syntax) are supported. +const SEARCH_QUERY: &'static str = r#" +WITH search_query (query) AS (VALUES (plainto_tsquery('english', $1))) +SELECT post_id, + thread_id, + author, + title, + ts_headline('english', body, query) AS headline + FROM search_index, search_query + WHERE document @@ query + ORDER BY ts_rank(document, query) DESC +"#; + +impl Handler for DbExecutor { + type Result = ::Result; + + fn handle(&mut self, msg: SearchPosts, _: &mut Self::Context) -> Self::Result { + let conn = self.0.get()?; + + let search_results = sql_query(SEARCH_QUERY) + .bind::(msg.query) + .get_results::(&conn)?; + + Ok(search_results) + } +} diff --git a/src/models.rs b/src/models.rs index 9d3405e15..927a78513 100644 --- a/src/models.rs +++ b/src/models.rs @@ -16,6 +16,7 @@ use chrono::prelude::{DateTime, Utc}; use schema::{threads, posts}; +use diesel::sql_types::{Text, Integer}; #[derive(Identifiable, Queryable, Serialize)] pub struct Thread { @@ -69,3 +70,23 @@ pub struct NewPost { pub author_name: String, pub author_email: String, } + +/// This struct models the response of a full-text search query. It +/// does not use a table/schema definition struct like the other +/// tables, as no table of this type actually exists. +#[derive(QueryableByName, Debug)] +pub struct SearchResult { + #[sql_type = "Integer"] + pub post_id: i32, + #[sql_type = "Integer"] + pub thread_id: i32, + #[sql_type = "Text"] + pub author: String, + #[sql_type = "Text"] + pub title: String, + + /// Headline represents the result of Postgres' ts_headline() + /// function, which highlights search terms in the search results. + #[sql_type = "Text"] + pub headline: String, +} From ea68bac4273895c22282049eb08775baae3154b8 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sat, 14 Apr 2018 20:29:46 +0200 Subject: [PATCH 075/163] refactor(handlers): Improve error handling in post creation --- src/handlers.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/handlers.rs b/src/handlers.rs index dd1a5007c..33f33decc 100644 --- a/src/handlers.rs +++ b/src/handlers.rs @@ -165,9 +165,9 @@ pub fn reply_thread(state: State, }; state.db.send(CreatePost(new_post)) + .flatten() .from_err() - .and_then(move |res| { - let post = res?; + .and_then(move |post| { info!("Posted reply {} to thread {}", post.id, post.thread_id); Ok(HttpResponse::SeeOther() .header("Location", format!("/thread/{}#post-{}", post.thread_id, post.id)) From 3e5b1098c6ae2852ea2df37b7c292cb37d5b1e84 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sat, 14 Apr 2018 20:30:13 +0200 Subject: [PATCH 076/163] refactor(schema): Unify integer type usage across tables --- src/schema.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/schema.rs b/src/schema.rs index 50a55c786..6f73af69c 100644 --- a/src/schema.rs +++ b/src/schema.rs @@ -23,12 +23,12 @@ table! { // Note: Manually inserted as print-schema does not add views. table! { thread_index (thread_id){ - thread_id -> Integer, + thread_id -> Int4, title -> Text, thread_author -> Text, created -> Timestamptz, sticky -> Bool, - post_id -> Integer, + post_id -> Int4, post_author -> Text, posted -> Timestamptz, } From 39d1cd64bc5ffe250dc2a30d05d0b6312e7abbc1 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sat, 14 Apr 2018 22:05:06 +0200 Subject: [PATCH 077/163] feat(main/db): Schedule regular search view refresh Schedules refreshes of the database view used for search at one-minute intervals. --- Cargo.lock | 2 ++ Cargo.toml | 2 ++ src/db.rs | 21 +++++++++++++++++++++ src/errors.rs | 10 ++++++++++ src/main.rs | 19 +++++++++++++++++++ 5 files changed, 54 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index 70a490cf5..34369e928 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -312,6 +312,8 @@ dependencies = [ "serde_derive 1.0.37 (registry+https://github.com/rust-lang/crates.io-index)", "serde_json 1.0.13 (registry+https://github.com/rust-lang/crates.io-index)", "tera 0.11.6 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-timer 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", "url 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)", "url_serde 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", ] diff --git a/Cargo.toml b/Cargo.toml index e274ee5f5..735e65502 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,3 +24,5 @@ hyper = "0.11" rand = "0.4" comrak = "0.2" md5 = "0.3.7" +tokio = "0.1" +tokio-timer = "0.2" diff --git a/src/db.rs b/src/db.rs index 416e3fdd0..a4f86977c 100644 --- a/src/db.rs +++ b/src/db.rs @@ -177,3 +177,24 @@ impl Handler for DbExecutor { Ok(search_results) } } + +/// Message that triggers a refresh of the view used for full-text +/// searching. +pub struct RefreshSearchView; + +impl Message for RefreshSearchView { + type Result = Result<()>; +} + +const REFRESH_QUERY: &'static str = "REFRESH MATERIALIZED VIEW search_index"; + +impl Handler for DbExecutor { + type Result = Result<()>; + + fn handle(&mut self, _: RefreshSearchView, _: &mut Self::Context) -> Self::Result { + let conn = self.0.get()?; + debug!("Refreshing search_index view in DB"); + sql_query(REFRESH_QUERY).execute(&conn)?; + Ok(()) + } +} diff --git a/src/errors.rs b/src/errors.rs index c7c1e14f4..9de907430 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -30,6 +30,7 @@ use diesel; use r2d2; use reqwest; use tera; +use tokio_timer; pub type Result = result::Result; @@ -50,6 +51,9 @@ pub enum ConverseError { #[fail(display = "error occured during request handling: {}", error)] ActixWeb { error: actix_web::Error }, + #[fail(display = "error occured running timer: {}", error)] + Timer { error: tokio_timer::Error }, + // This variant is used as a catch-all for wrapping // actix-web-compatible response errors, such as the errors it // throws itself. @@ -99,6 +103,12 @@ impl From for ConverseError { } } +impl From for ConverseError { + fn from(error: tokio_timer::Error) -> ConverseError { + ConverseError::Timer { error } + } +} + // Support conversion of error type into HTTP error responses: impl ResponseError for ConverseError { diff --git a/src/main.rs b/src/main.rs index 61969bcff..9f4eea03f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -42,6 +42,8 @@ extern crate rand; extern crate reqwest; extern crate serde; extern crate serde_json; +extern crate tokio; +extern crate tokio_timer; extern crate url; extern crate url_serde; @@ -86,6 +88,8 @@ fn main() { let db_addr = SyncArbiter::start(2, move || DbExecutor(pool.clone())); + schedule_search_refresh(db_addr.clone()); + info!("Initialising OIDC integration ..."); let oidc_url = config("OIDC_DISCOVERY_URL"); let oidc_config = oidc::load_oidc(&oidc_url) @@ -162,3 +166,18 @@ fn main() { let _ = sys.run(); } + +fn schedule_search_refresh(db: Addr) { + use tokio::prelude::*; + use tokio::timer::Interval; + use std::time::{Duration, Instant}; + use std::thread; + + let task = Interval::new(Instant::now(), Duration::from_secs(60)) + .from_err() + .for_each(move |_| db.send(db::RefreshSearchView).flatten()) + .map_err(|err| error!("Error while updating search view: {}", err)); + //.and_then(|_| debug!("Refreshed search view in DB")); + + thread::spawn(|| tokio::run(task)); +} From dae97fdaf5a9541895d9719f1f58902cca846e2b Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sat, 14 Apr 2018 22:05:35 +0200 Subject: [PATCH 078/163] chore(db): Arbitrarily limit search result size ... until pagination is in place. --- src/db.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/db.rs b/src/db.rs index a4f86977c..22438d2b8 100644 --- a/src/db.rs +++ b/src/db.rs @@ -162,6 +162,7 @@ SELECT post_id, FROM search_index, search_query WHERE document @@ query ORDER BY ts_rank(document, query) DESC + LIMIT 50 "#; impl Handler for DbExecutor { From 4132869277656437f1f62869a2b1676d4c1c42d7 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sat, 14 Apr 2018 22:06:30 +0200 Subject: [PATCH 079/163] feat: Implement search result view & enable search Implements a very simple and currently kinda broken-looking search result view. --- src/handlers.rs | 16 +++++++++++++++ src/main.rs | 1 + src/models.rs | 2 +- src/render.rs | 21 +++++++++++++++++++ templates/index.html | 6 +++--- templates/search.html | 48 +++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 90 insertions(+), 4 deletions(-) create mode 100644 templates/search.html diff --git a/src/handlers.rs b/src/handlers.rs index 33f33decc..02ff99394 100644 --- a/src/handlers.rs +++ b/src/handlers.rs @@ -176,6 +176,22 @@ pub fn reply_thread(state: State, .responder() } +/// This handler executes a full-text search on the forum database and +/// displays the results to the user. +pub fn search_forum(state: State, + query: Form) -> ConverseResponse { + let query_string = query.0.query.clone(); + state.db.send(query.0) + .flatten() + .and_then(move |results| state.renderer.send(SearchResultPage { + results, + query: query_string, + }).from_err()) + .flatten() + .map(|res| HttpResponse::Ok().content_type(HTML).body(res)) + .responder() +} + /// This handler initiates an OIDC login. pub fn login(state: State) -> ConverseResponse { state.oidc.send(GetLoginUrl) diff --git a/src/main.rs b/src/main.rs index 9f4eea03f..92eeca48d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -153,6 +153,7 @@ fn main() { .resource("/thread/submit", |r| r.method(Method::POST).with3(submit_thread)) .resource("/thread/reply", |r| r.method(Method::POST).with3(reply_thread)) .resource("/thread/{id}", |r| r.method(Method::GET).with2(forum_thread)) + .resource("/search", |r| r.method(Method::POST).with2(search_forum)) .resource("/oidc/login", |r| r.method(Method::GET).with(login)) .resource("/oidc/callback", |r| r.method(Method::POST).with3(callback)); diff --git a/src/models.rs b/src/models.rs index 927a78513..dfadd53fd 100644 --- a/src/models.rs +++ b/src/models.rs @@ -74,7 +74,7 @@ pub struct NewPost { /// This struct models the response of a full-text search query. It /// does not use a table/schema definition struct like the other /// tables, as no table of this type actually exists. -#[derive(QueryableByName, Debug)] +#[derive(QueryableByName, Debug, Serialize)] pub struct SearchResult { #[sql_type = "Integer"] pub post_id: i32, diff --git a/src/render.rs b/src/render.rs index 186b96d24..537cab59d 100644 --- a/src/render.rs +++ b/src/render.rs @@ -175,3 +175,24 @@ impl Handler for Renderer { Ok(self.tera.render("new-thread.html", &ctx)?) } } + +/// Message used to render search results +pub struct SearchResultPage { + pub query: String, + pub results: Vec, +} + +impl Message for SearchResultPage { + type Result = Result; +} + +impl Handler for Renderer { + type Result = Result; + + fn handle(&mut self, msg: SearchResultPage, _: &mut Self::Context) -> Self::Result { + let mut ctx = Context::new(); + ctx.add("query", &msg.query); + ctx.add("results", &msg.results); + Ok(self.tera.render("search.html", &ctx)?) + } +} diff --git a/templates/index.html b/templates/index.html index 35cfeba05..263c8828a 100644 --- a/templates/index.html +++ b/templates/index.html @@ -14,9 +14,9 @@

    Converse

    - - - + + + New thread diff --git a/templates/search.html b/templates/search.html new file mode 100644 index 000000000..95384b1ca --- /dev/null +++ b/templates/search.html @@ -0,0 +1,48 @@ + + + + + + + + + Converse Index + + +
    + +
    +
    +
    +
    +

    Search results for '{{ query }}':

    +
    +
    + +
    + + From 06f7f23bab2113ba80f8fa863c8281a585ef822e Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sat, 14 Apr 2018 22:10:43 +0200 Subject: [PATCH 080/163] fix(migrations): Change weighting of title vs. body After thinking for a little while I actually think the body of a post may be more relevant when searching for posts than the thread title. Right now this is just a hunch and we'll have to find out how it actually ends up working in real life. --- migrations/2018-04-14-170750_search-index/up.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/migrations/2018-04-14-170750_search-index/up.sql b/migrations/2018-04-14-170750_search-index/up.sql index ed997d3e0..6b7d90eca 100644 --- a/migrations/2018-04-14-170750_search-index/up.sql +++ b/migrations/2018-04-14-170750_search-index/up.sql @@ -10,8 +10,8 @@ CREATE MATERIALIZED VIEW search_index AS t.id AS thread_id, t.title AS title, p.body AS body, - setweight(to_tsvector('english', t.title), 'A') || - setweight(to_tsvector('english', p.body), 'B') || + setweight(to_tsvector('english', t.title), 'B') || + setweight(to_tsvector('english', p.body), 'A') || setweight(to_tsvector('simple', t.author_name), 'C') || setweight(to_tsvector('simple', p.author_name), 'C') AS document FROM posts p From 8057b8849e1f4e53d0731c75da16bfdbc32fc602 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sat, 14 Apr 2018 22:30:03 +0200 Subject: [PATCH 081/163] feat(templates): Add 'sticky' badge to sticky threads --- templates/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/index.html b/templates/index.html index 263c8828a..d4daa216c 100644 --- a/templates/index.html +++ b/templates/index.html @@ -28,7 +28,7 @@ {% for thread in threads -%}
    -
    {{ thread.title }}
    +
    {% if thread.sticky %}Sticky {% endif %}{{ thread.title }}
    {{ thread.posted }}

    Created by {{ thread.author_name }}

    From e0b1bc2627d65a759003842c4dc508e9f842da35 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sat, 14 Apr 2018 22:30:17 +0200 Subject: [PATCH 082/163] fix(render): Escape post bodies ... derp. Well, the CSP prevented script executions already. --- src/render.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/render.rs b/src/render.rs index 537cab59d..3254d480b 100644 --- a/src/render.rs +++ b/src/render.rs @@ -120,9 +120,10 @@ fn md5_hex(input: &[u8]) -> String { fn prepare_thread(comrak: &ComrakOptions, page: ThreadPage) -> RenderableThreadPage { let posts = page.posts.into_iter().map(|post| { + let escaped_body = escape_html(&post.body); RenderablePost { id: post.id, - body: markdown_to_html(&post.body, comrak), + body: markdown_to_html(&escaped_body, comrak), posted: post.posted.into(), author_name: post.author_name, author_gravatar: md5_hex(post.author_email.as_bytes()), From ba33efd772575bbd51643fbf2aa176df3bced258 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sat, 14 Apr 2018 23:28:34 +0200 Subject: [PATCH 083/163] refactor(handlers): Receive search terms via query parameters There are several reasons for this, but one important one is that people expect to be able to share search links. --- src/handlers.rs | 6 +++--- src/main.rs | 2 +- templates/index.html | 2 +- templates/search.html | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/handlers.rs b/src/handlers.rs index 02ff99394..ccb01eb3c 100644 --- a/src/handlers.rs +++ b/src/handlers.rs @@ -179,9 +179,9 @@ pub fn reply_thread(state: State, /// This handler executes a full-text search on the forum database and /// displays the results to the user. pub fn search_forum(state: State, - query: Form) -> ConverseResponse { - let query_string = query.0.query.clone(); - state.db.send(query.0) + query: Query) -> ConverseResponse { + let query_string = query.query.clone(); + state.db.send(query.into_inner()) .flatten() .and_then(move |results| state.renderer.send(SearchResultPage { results, diff --git a/src/main.rs b/src/main.rs index 92eeca48d..851e81041 100644 --- a/src/main.rs +++ b/src/main.rs @@ -153,7 +153,7 @@ fn main() { .resource("/thread/submit", |r| r.method(Method::POST).with3(submit_thread)) .resource("/thread/reply", |r| r.method(Method::POST).with3(reply_thread)) .resource("/thread/{id}", |r| r.method(Method::GET).with2(forum_thread)) - .resource("/search", |r| r.method(Method::POST).with2(search_forum)) + .resource("/search", |r| r.method(Method::GET).with2(search_forum)) .resource("/oidc/login", |r| r.method(Method::GET).with(login)) .resource("/oidc/callback", |r| r.method(Method::POST).with3(callback)); diff --git a/templates/index.html b/templates/index.html index d4daa216c..16ddf44c3 100644 --- a/templates/index.html +++ b/templates/index.html @@ -14,7 +14,7 @@

    Converse

    -
    + New thread diff --git a/templates/search.html b/templates/search.html index 95384b1ca..3bb30e5d6 100644 --- a/templates/search.html +++ b/templates/search.html @@ -14,7 +14,7 @@

    Converse

    - + New thread From 02a466a28be4c6fdcd88075d6345841759ff630c Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 15 Apr 2018 00:41:17 +0200 Subject: [PATCH 084/163] style(templates): Minor fixes to search & index layouts --- templates/index.html | 4 ++-- templates/search.html | 7 +++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/templates/index.html b/templates/index.html index 16ddf44c3..184e06e34 100644 --- a/templates/index.html +++ b/templates/index.html @@ -26,10 +26,10 @@
    {% for thread in threads -%} - +
    {% if thread.sticky %}Sticky {% endif %}{{ thread.title }}
    - {{ thread.posted }} + {{ thread.posted }}

    Created by {{ thread.author_name }}

    diff --git a/templates/search.html b/templates/search.html index 3bb30e5d6..2254c97f0 100644 --- a/templates/search.html +++ b/templates/search.html @@ -32,11 +32,10 @@
    {% for result in results -%} - +
    -
    In thread '{{ result.title }}':
    -
    {{ result.headline }}
    -
    (Posted by {{ result.author }})
    +

    {{ result.headline }}

    + (Posted in '{{ result.title }}' by {{ result.author }})
    {%- endfor %} From 9cee48f2dac7400fc0df78b8790ff1e1600a632e Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 15 Apr 2018 12:38:12 +0200 Subject: [PATCH 085/163] feat(handlers): Determine whether current user can edit a post --- src/handlers.rs | 9 ++++++++- src/main.rs | 2 +- src/render.rs | 11 ++++++++++- 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/src/handlers.rs b/src/handlers.rs index ccb01eb3c..f4346f26c 100644 --- a/src/handlers.rs +++ b/src/handlers.rs @@ -60,11 +60,18 @@ pub fn forum_index(state: State) -> ConverseResponse { } /// This handler retrieves and displays a single forum thread. -pub fn forum_thread(state: State, thread_id: Path) -> ConverseResponse { +pub fn forum_thread(state: State, + mut req: HttpRequest, + thread_id: Path) -> ConverseResponse { let id = thread_id.into_inner(); + let user = req.session().get(AUTHOR) + .unwrap_or_else(|_| None) + .map(|a: Author| a.email); + state.db.send(GetThread(id)) .flatten() .and_then(move |res| state.renderer.send(ThreadPage { + current_user: user, thread: res.0, posts: res.1, }).from_err()) diff --git a/src/main.rs b/src/main.rs index 851e81041..f748be1a7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -152,7 +152,7 @@ fn main() { .resource("/thread/new", |r| r.method(Method::GET).with(new_thread)) .resource("/thread/submit", |r| r.method(Method::POST).with3(submit_thread)) .resource("/thread/reply", |r| r.method(Method::POST).with3(reply_thread)) - .resource("/thread/{id}", |r| r.method(Method::GET).with2(forum_thread)) + .resource("/thread/{id}", |r| r.method(Method::GET).with3(forum_thread)) .resource("/search", |r| r.method(Method::GET).with2(search_forum)) .resource("/oidc/login", |r| r.method(Method::GET).with(login)) .resource("/oidc/callback", |r| r.method(Method::POST).with3(callback)); diff --git a/src/render.rs b/src/render.rs index 3254d480b..9cc9efd4d 100644 --- a/src/render.rs +++ b/src/render.rs @@ -86,6 +86,7 @@ impl Handler for Renderer { /// Message used to render a thread. pub struct ThreadPage { + pub current_user: Option, pub thread: Thread, pub posts: Vec, } @@ -102,6 +103,7 @@ struct RenderablePost { posted: FormattedDate, author_name: String, author_gravatar: String, + editable: bool, } /// This structure represents the transformed thread data with @@ -119,14 +121,21 @@ fn md5_hex(input: &[u8]) -> String { } fn prepare_thread(comrak: &ComrakOptions, page: ThreadPage) -> RenderableThreadPage { + let user = page.current_user; + let posts = page.posts.into_iter().map(|post| { let escaped_body = escape_html(&post.body); + let editable = user.clone() + .map(|c| post.author_email.eq(&c)) + .unwrap_or_else(|| false); + RenderablePost { id: post.id, body: markdown_to_html(&escaped_body, comrak), posted: post.posted.into(), - author_name: post.author_name, + author_name: post.author_name.clone(), author_gravatar: md5_hex(post.author_email.as_bytes()), + editable, } }).collect(); From ee4b690d22050b790d161ea943baf87f6f20a256 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 15 Apr 2018 12:38:33 +0200 Subject: [PATCH 086/163] refactor(templates): Restyle thread view using flex layout --- templates/thread.html | 85 ++++++++++++++++++------------------------- 1 file changed, 36 insertions(+), 49 deletions(-) diff --git a/templates/thread.html b/templates/thread.html index 7a2d6ee2e..f11b96b4d 100644 --- a/templates/thread.html +++ b/templates/thread.html @@ -21,60 +21,47 @@
    -
    -
    -
    -
    -
    -
    -

    {{ title }}

    -
    -
    -
    +
    +
    +

    {{ title }}

    +
    - {% for post in posts -%} -
    - - {{ post.posted }} - -
    -
    -
    -
    - -
    -
    -
    -
    - {{ post.author_name }} -
    -
    -
    -
    - {{ post.body }} -
    -
    -
    - {%- endfor %} + {% for post in posts -%} +
    +
    + + {{ post.author_name }} +
    -
    -
    -
    - - - -
    - -
    - -
    -
    - -
    -
    +
    {{ post.body }}
    + +
    + + {{ post.posted }} + + +
    + {%- if post.editable %} + Edit + {% endif -%} + Quote
    + {%- endfor %} + +
    +
    + + +
    + +
    + +
    +
    +
    +
    From aeaa497a621a132e4bbc4ab6fb766473621196b7 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 15 Apr 2018 12:59:43 +0200 Subject: [PATCH 087/163] fix(handlers): Trim leading/trailing whitespace from new threads --- src/handlers.rs | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/handlers.rs b/src/handlers.rs index f4346f26c..1cd596aad 100644 --- a/src/handlers.rs +++ b/src/handlers.rs @@ -109,13 +109,19 @@ const NEW_THREAD_LENGTH_ERR: &'static str = "Title and body can not be empty!"; pub fn submit_thread(state: State, input: Form, mut req: HttpRequest) -> ConverseResponse { + // Trim whitespace out of inputs: + let input = NewThreadForm { + title: input.title.trim().into(), + body: input.body.trim().into(), + }; + // Perform simple validation and abort here if it fails: - if input.0.title.is_empty() || input.0.body.is_empty() { + if input.title.is_empty() || input.body.is_empty() { return state.renderer .send(NewThreadPage { alerts: vec![NEW_THREAD_LENGTH_ERR], - title: Some(input.0.title), - body: Some(input.0.body), + title: Some(input.title), + body: Some(input.body), }) .flatten() .map(|res| HttpResponse::Ok().content_type(HTML).body(res)) @@ -127,14 +133,14 @@ pub fn submit_thread(state: State, .unwrap_or_else(anonymous); let new_thread = NewThread { - title: input.0.title, + title: input.title, author_name: author.name, author_email: author.email, }; let msg = CreateThread { new_thread, - body: input.0.body, + body: input.body, }; state.db.send(msg) @@ -166,7 +172,7 @@ pub fn reply_thread(state: State, let new_post = NewPost { thread_id: input.thread_id, - body: input.0.body, + body: input.body.trim().into(), author_name: author.name, author_email: author.email, }; From 4c0e6552e80e70de55fa0ab4310dfec0078b18b9 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 15 Apr 2018 13:16:49 +0200 Subject: [PATCH 088/163] refactor(main): Split enormous main() into smaller methods A little bit of logical grouping of things has never hurt anyone. --- src/main.rs | 96 ++++++++++++++++++++++++++++++++--------------------- 1 file changed, 58 insertions(+), 38 deletions(-) diff --git a/src/main.rs b/src/main.rs index f748be1a7..9ec600440 100644 --- a/src/main.rs +++ b/src/main.rs @@ -57,14 +57,16 @@ pub mod schema; use actix::prelude::*; use actix_web::*; -use actix_web::middleware::{Logger, SessionStorage, CookieSessionBackend}; use actix_web::http::Method; +use actix_web::middleware::{Logger, SessionStorage, CookieSessionBackend}; use db::*; use diesel::pg::PgConnection; use diesel::r2d2::{ConnectionManager, Pool}; -use std::env; -use rand::{OsRng, Rng}; use handlers::*; +use oidc::OidcExecutor; +use rand::{OsRng, Rng}; +use std::env; +use render::Renderer; fn config(name: &str) -> String { env::var(name).expect(&format!("{} must be set", name)) @@ -74,37 +76,47 @@ fn config_default(name: &str, default: &str) -> String { env::var(name).unwrap_or(default.into()) } -fn main() { - env_logger::init(); - - info!("Welcome to Converse! Hold on tight while we're getting ready."); - let sys = actix::System::new("converse"); - +fn start_db_executor() -> Addr { info!("Initialising database connection pool ..."); let db_url = config("DATABASE_URL"); let manager = ConnectionManager::::new(db_url); let pool = Pool::builder().build(manager).expect("Failed to initialise DB pool"); - let db_addr = SyncArbiter::start(2, move || DbExecutor(pool.clone())); + SyncArbiter::start(2, move || DbExecutor(pool.clone())) +} - schedule_search_refresh(db_addr.clone()); +fn schedule_search_refresh(db: Addr) { + use tokio::prelude::*; + use tokio::timer::Interval; + use std::time::{Duration, Instant}; + use std::thread; + let task = Interval::new(Instant::now(), Duration::from_secs(60)) + .from_err() + .for_each(move |_| db.send(db::RefreshSearchView).flatten()) + .map_err(|err| error!("Error while updating search view: {}", err)); + + thread::spawn(|| tokio::run(task)); +} + +fn start_oidc_executor(base_url: &str) -> Addr { info!("Initialising OIDC integration ..."); let oidc_url = config("OIDC_DISCOVERY_URL"); let oidc_config = oidc::load_oidc(&oidc_url) .expect("Failed to retrieve OIDC discovery document"); - let base_url = config("BASE_URL"); let oidc = oidc::OidcExecutor { oidc_config, client_id: config("OIDC_CLIENT_ID"), client_secret: config("OIDC_CLIENT_SECRET"), - redirect_uri: format!("{}/oidc/callback", config("BASE_URL")), + redirect_uri: format!("{}/oidc/callback", base_url), }; - let oidc_addr: Addr = oidc.start(); + oidc.start() +} +fn start_renderer() -> Addr { info!("Compiling templates ..."); let template_path = concat!(env!("CARGO_MANIFEST_DIR"), "/templates/**/*"); let mut tera = compile_templates!(template_path); @@ -118,20 +130,26 @@ fn main() { ext_footnotes: true, ..Default::default() }; - let renderer = render::Renderer{ tera, comrak }; - let renderer_addr: Addr = renderer.start(); + Renderer{ tera, comrak }.start() +} + +fn gen_session_key() -> [u8; 64] { + let mut key_bytes = [0; 64]; + let mut rng = OsRng::new() + .expect("Failed to retrieve RNG for key generation"); + rng.fill_bytes(&mut key_bytes); + + key_bytes +} + +fn start_http_server(base_url: String, + db_addr: Addr, + oidc_addr: Addr, + renderer_addr: Addr) { info!("Initialising HTTP server ..."); let bind_host = config_default("CONVERSE_BIND_HOST", "127.0.0.1:4567"); - let key = { - let mut key_bytes = [0; 32]; - let mut rng = OsRng::new() - .expect("Failed to retrieve RNG for key generation"); - rng.fill_bytes(&mut key_bytes); - - key_bytes - }; - + let key = gen_session_key(); let require_login = config_default("REQUIRE_LOGIN", "true".into()) == "true"; server::new(move || { @@ -164,21 +182,23 @@ fn main() { }}) .bind(&bind_host).expect(&format!("Could not bind on '{}'", bind_host)) .start(); - - let _ = sys.run(); } -fn schedule_search_refresh(db: Addr) { - use tokio::prelude::*; - use tokio::timer::Interval; - use std::time::{Duration, Instant}; - use std::thread; +fn main() { + env_logger::init(); - let task = Interval::new(Instant::now(), Duration::from_secs(60)) - .from_err() - .for_each(move |_| db.send(db::RefreshSearchView).flatten()) - .map_err(|err| error!("Error while updating search view: {}", err)); - //.and_then(|_| debug!("Refreshed search view in DB")); + info!("Welcome to Converse! Hold on tight while we're getting ready."); + let sys = actix::System::new("converse"); - thread::spawn(|| tokio::run(task)); + let base_url = config("BASE_URL"); + + let db_addr = start_db_executor(); + let oidc_addr = start_oidc_executor(&base_url); + let renderer_addr = start_renderer(); + + schedule_search_refresh(db_addr.clone()); + + start_http_server(base_url, db_addr, oidc_addr, renderer_addr); + + sys.run(); } From ec712cc4c0e12329f51d10d9bd626d1859a011b8 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 15 Apr 2018 21:13:20 +0200 Subject: [PATCH 089/163] refactor(templates/render): Add generic post editing template Adds a generic template that can be used for submitting, responding to and editing posts. --- src/db.rs | 4 +- src/handlers.rs | 14 +++--- src/render.rs | 49 +++++++++++++++--- templates/new-thread.html | 56 --------------------- templates/post.html | 103 ++++++++++++++++++++++++++++++++++++++ templates/thread.html | 2 +- 6 files changed, 156 insertions(+), 72 deletions(-) delete mode 100644 templates/new-thread.html create mode 100644 templates/post.html diff --git a/src/db.rs b/src/db.rs index 22438d2b8..ad1c148a7 100644 --- a/src/db.rs +++ b/src/db.rs @@ -80,7 +80,7 @@ impl Handler for DbExecutor { /// Message used to create a new thread pub struct CreateThread { pub new_thread: NewThread, - pub body: String, + pub post: String, } impl Message for CreateThread { @@ -105,7 +105,7 @@ impl Handler for DbExecutor { // ... then create the first post in the thread. let new_post = NewPost { thread_id: thread.id, - body: msg.body, + body: msg.post, author_name: msg.new_thread.author_name.clone(), author_email: msg.new_thread.author_email.clone(), }; diff --git a/src/handlers.rs b/src/handlers.rs index 1cd596aad..8bfd3c151 100644 --- a/src/handlers.rs +++ b/src/handlers.rs @@ -99,7 +99,7 @@ fn anonymous() -> Author { #[derive(Deserialize)] pub struct NewThreadForm { pub title: String, - pub body: String, + pub post: String, } const NEW_THREAD_LENGTH_ERR: &'static str = "Title and body can not be empty!"; @@ -112,16 +112,16 @@ pub fn submit_thread(state: State, // Trim whitespace out of inputs: let input = NewThreadForm { title: input.title.trim().into(), - body: input.body.trim().into(), + post: input.post.trim().into(), }; // Perform simple validation and abort here if it fails: - if input.title.is_empty() || input.body.is_empty() { + if input.title.is_empty() || input.post.is_empty() { return state.renderer .send(NewThreadPage { alerts: vec![NEW_THREAD_LENGTH_ERR], title: Some(input.title), - body: Some(input.body), + post: Some(input.post), }) .flatten() .map(|res| HttpResponse::Ok().content_type(HTML).body(res)) @@ -140,7 +140,7 @@ pub fn submit_thread(state: State, let msg = CreateThread { new_thread, - body: input.body, + post: input.post, }; state.db.send(msg) @@ -158,7 +158,7 @@ pub fn submit_thread(state: State, #[derive(Deserialize)] pub struct NewPostForm { pub thread_id: i32, - pub body: String, + pub post: String, } /// This handler receives a "Reply"-form and redirects the user to the @@ -172,7 +172,7 @@ pub fn reply_thread(state: State, let new_post = NewPost { thread_id: input.thread_id, - body: input.body.trim().into(), + body: input.post.trim().into(), author_name: author.name, author_email: author.email, }; diff --git a/src/render.rs b/src/render.rs index 9cc9efd4d..d95fb6934 100644 --- a/src/render.rs +++ b/src/render.rs @@ -159,6 +159,41 @@ impl Handler for Renderer { } } +/// The different types of editing modes supported by the editing +/// template: +#[derive(Debug, Serialize)] +pub enum EditingMode { + NewThread, + PostReply, + EditPost, +} + +impl Default for EditingMode { + fn default() -> EditingMode { EditingMode::NewThread } +} + +/// This struct represents the context submitted to the template used +/// for rendering the new thread, edit post and reply to thread forms. +#[derive(Default, Serialize)] +pub struct FormContext { + /// Which editing mode is to be used by the template? + pub mode: EditingMode, + + /// Potential alerts to display to the user (e.g. input validation + /// results) + pub alerts: Vec<&'static str>, + + /// Either the title to be used in the subject field or the title + /// of the thread the user is responding to. + pub title: Option, + + /// Body of the post being edited, if present. + pub post: Option, + + /// ID of the thread being replied to or the post being edited. + pub id: Option, +} + /// Message used to render new thread page. /// /// It can optionally contain a vector of warnings to display to the @@ -167,7 +202,7 @@ impl Handler for Renderer { pub struct NewThreadPage { pub alerts: Vec<&'static str>, pub title: Option, - pub body: Option, + pub post: Option, } impl Message for NewThreadPage { @@ -178,11 +213,13 @@ impl Handler for Renderer { type Result = Result; fn handle(&mut self, msg: NewThreadPage, _: &mut Self::Context) -> Self::Result { - let mut ctx = Context::new(); - ctx.add("alerts", &msg.alerts); - ctx.add("title", &msg.title.map(|s| escape_html(&s))); - ctx.add("body", &msg.body.map(|s| escape_html(&s))); - Ok(self.tera.render("new-thread.html", &ctx)?) + let ctx: FormContext = FormContext { + alerts: msg.alerts, + title: msg.title, + post: msg.post, + ..Default::default() + }; + Ok(self.tera.render("post.html", &ctx)?) } } diff --git a/templates/new-thread.html b/templates/new-thread.html deleted file mode 100644 index 855626b8e..000000000 --- a/templates/new-thread.html +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - - - Converse Index - - -
    - -
    -
    -
    - {% for alert in alerts %} -
    {{ alert }}
    - {% endfor %} -

    Make your own thread on these here forums!

    -

    Remember that you can use Markdown when - writing your posts.

    -
    -
    -
    -
    - Title: -
    - -
    -
    -
    -
    -
    - Body: -
    - -
    -
    -
    -
    - -
    -
    -
    -
    -
    - - diff --git a/templates/post.html b/templates/post.html new file mode 100644 index 000000000..74cf03abf --- /dev/null +++ b/templates/post.html @@ -0,0 +1,103 @@ + + + + + + + + + + + Converse Index + + +
    + +
    +
    +
    + {%- for alert in alerts %} +
    {{ alert }}
    + {% endfor -%} + + {%- if mode == "NewThread" %} +
    Create a new thread
    + {% elif mode == "PostReply" %} +
    Respond to thread '{{ title }}'
    + {% elif mode == "EditPost" %} +
    Edit your post
    + {% endif -%} +
    +
    + {% if mode == "NewThread" %} +
    + {% elif mode == "PostReply" %} + + {% elif mode == "EditPost" %} + + {% endif %} + {% if mode == "PostReply" %} + + {% elif mode == "EditPost" %} + + {% endif %} + + {% if mode == "NewThread" %} +
    +
    + Title: +
    + +
    + {% endif %} + +
    +
    +
    + Post: +
    + +
    +
    +

    + Remember that you can use Markdown when + writing your posts: +

    +

    *italic text*

    +

    **bold text**

    +

    ~strikethrough text~

    +

    [link text](https://some.link.com/)

    +

    ![image text](https://foo.com/thing.jpg)

    +

    Use * or - to enumerate lists.

    +

    See Markdown documentation for more information!

    +
    +
    + +
    +
    +
    + + diff --git a/templates/thread.html b/templates/thread.html index f11b96b4d..6a89135cd 100644 --- a/templates/thread.html +++ b/templates/thread.html @@ -55,7 +55,7 @@
    - +
    From d9d1a3313f5cbceb5cb4878752fe0dc117bed3b0 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 15 Apr 2018 21:18:27 +0200 Subject: [PATCH 090/163] refactor(render): Pass serializable structs to Tera directly No need to go the intermediate step via `Context::new()` --- src/render.rs | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/render.rs b/src/render.rs index d95fb6934..0c1e69d3c 100644 --- a/src/render.rs +++ b/src/render.rs @@ -151,11 +151,7 @@ impl Handler for Renderer { fn handle(&mut self, msg: ThreadPage, _: &mut Self::Context) -> Self::Result { let renderable = prepare_thread(&self.comrak, msg); - let mut ctx = Context::new(); - ctx.add("title", &renderable.title); - ctx.add("posts", &renderable.posts); - ctx.add("id", &renderable.id); - Ok(self.tera.render("thread.html", &ctx)?) + Ok(self.tera.render("thread.html", &renderable)?) } } @@ -224,6 +220,7 @@ impl Handler for Renderer { } /// Message used to render search results +#[derive(Serialize)] pub struct SearchResultPage { pub query: String, pub results: Vec, @@ -237,9 +234,6 @@ impl Handler for Renderer { type Result = Result; fn handle(&mut self, msg: SearchResultPage, _: &mut Self::Context) -> Self::Result { - let mut ctx = Context::new(); - ctx.add("query", &msg.query); - ctx.add("results", &msg.results); - Ok(self.tera.render("search.html", &ctx)?) + Ok(self.tera.render("search.html", &msg)?) } } From ce18cfa2d67ccf6ec560d59da1753930e86d169c Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 15 Apr 2018 21:31:14 +0200 Subject: [PATCH 091/163] refactor: Add a message!-macro to reduce message boilerplate --- src/db.rs | 30 ++++++------------------------ src/main.rs | 10 ++++++++++ src/oidc.rs | 10 ++-------- src/render.rs | 20 ++++---------------- 4 files changed, 22 insertions(+), 48 deletions(-) diff --git a/src/db.rs b/src/db.rs index ad1c148a7..202f6c160 100644 --- a/src/db.rs +++ b/src/db.rs @@ -35,10 +35,7 @@ impl Actor for DbExecutor { /// Message used to request a list of threads. /// TODO: This should support page numbers. pub struct ListThreads; - -impl Message for ListThreads { - type Result = Result>; -} +message!(ListThreads, Result>); impl Handler for DbExecutor { type Result = ::Result; @@ -56,10 +53,7 @@ impl Handler for DbExecutor { /// Message used to fetch a specific thread. Returns the thread and /// its posts. pub struct GetThread(pub i32); - -impl Message for GetThread { - type Result = Result<(Thread, Vec)>; -} +message!(GetThread, Result<(Thread, Vec)>); impl Handler for DbExecutor { type Result = ::Result; @@ -82,10 +76,7 @@ pub struct CreateThread { pub new_thread: NewThread, pub post: String, } - -impl Message for CreateThread { - type Result = Result; -} +message!(CreateThread, Result); impl Handler for DbExecutor { type Result = ::Result; @@ -121,10 +112,7 @@ impl Handler for DbExecutor { /// Message used to create a new reply pub struct CreatePost(pub NewPost); - -impl Message for CreatePost { - type Result = Result; -} +message!(CreatePost, Result); impl Handler for DbExecutor { type Result = ::Result; @@ -143,10 +131,7 @@ impl Handler for DbExecutor { /// Message used to search for posts #[derive(Deserialize)] pub struct SearchPosts { pub query: String } - -impl Message for SearchPosts { - type Result = Result>; -} +message!(SearchPosts, Result>); /// Raw PostgreSQL query used to perform full-text search on posts /// with a supplied phrase. For now, the query language is hardcoded @@ -182,10 +167,7 @@ impl Handler for DbExecutor { /// Message that triggers a refresh of the view used for full-text /// searching. pub struct RefreshSearchView; - -impl Message for RefreshSearchView { - type Result = Result<()>; -} +message!(RefreshSearchView, Result<()>); const REFRESH_QUERY: &'static str = "REFRESH MATERIALIZED VIEW search_index"; diff --git a/src/main.rs b/src/main.rs index 9ec600440..8d81a670e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -47,6 +47,16 @@ extern crate tokio_timer; extern crate url; extern crate url_serde; +/// Simple macro used to reduce boilerplate when defining actor +/// message types. +macro_rules! message { + ( $t:ty, $r:ty ) => { + impl Message for $t { + type Result = $r; + } + } +} + pub mod db; pub mod errors; pub mod handlers; diff --git a/src/oidc.rs b/src/oidc.rs index d9ba4237b..3ec15854a 100644 --- a/src/oidc.rs +++ b/src/oidc.rs @@ -70,10 +70,7 @@ impl Actor for OidcExecutor { /// Message used to request the login URL: pub struct GetLoginUrl; // TODO: Add a nonce parameter stored in session. - -impl Message for GetLoginUrl { - type Result = String; -} +message!(GetLoginUrl, String); impl Handler for OidcExecutor { type Result = String; @@ -95,10 +92,7 @@ impl Handler for OidcExecutor { /// Message used to request the token from the returned code and /// retrieve userinfo from the appropriate endpoint. pub struct RetrieveToken(pub CodeResponse); - -impl Message for RetrieveToken { - type Result = Result; -} +message!(RetrieveToken, Result); #[derive(Debug, Deserialize)] struct TokenResponse { diff --git a/src/render.rs b/src/render.rs index 0c1e69d3c..c0a2fe88e 100644 --- a/src/render.rs +++ b/src/render.rs @@ -49,10 +49,7 @@ impl From> for FormattedDate { pub struct IndexPage { pub threads: Vec, } - -impl Message for IndexPage { - type Result = Result; -} +message!(IndexPage, Result); #[derive(Debug, Serialize)] struct IndexThread { @@ -90,10 +87,7 @@ pub struct ThreadPage { pub thread: Thread, pub posts: Vec, } - -impl Message for ThreadPage { - type Result = Result; -} +message!(ThreadPage, Result); // "Renderable" structures with data transformations applied. #[derive(Debug, Serialize)] @@ -200,10 +194,7 @@ pub struct NewThreadPage { pub title: Option, pub post: Option, } - -impl Message for NewThreadPage { - type Result = Result; -} +message!(NewThreadPage, Result); impl Handler for Renderer { type Result = Result; @@ -225,10 +216,7 @@ pub struct SearchResultPage { pub query: String, pub results: Vec, } - -impl Message for SearchResultPage { - type Result = Result; -} +message!(SearchResultPage, Result); impl Handler for Renderer { type Result = Result; From f4ca632c003e318f6b86b601557d345db32bdf03 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 15 Apr 2018 23:09:00 +0200 Subject: [PATCH 092/163] feat(db): Support GetPost message Very simple message that retrieves a post from the DB. --- src/db.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/db.rs b/src/db.rs index 202f6c160..4ac658a5c 100644 --- a/src/db.rs +++ b/src/db.rs @@ -71,6 +71,22 @@ impl Handler for DbExecutor { } } +/// Message used to fetch a specific post. +#[derive(Deserialize, Debug)] +pub struct GetPost { pub id: i32 } + +message!(GetPost, Result); + +impl Handler for DbExecutor { + type Result = ::Result; + + fn handle(&mut self, msg: GetPost, _: &mut Self::Context) -> Self::Result { + use schema::posts::dsl::*; + let conn = self.0.get()?; + Ok(posts.find(msg.id).first(&conn)?) + } +} + /// Message used to create a new thread pub struct CreateThread { pub new_thread: NewThread, From 7a557865528d6dba78b4dcb90248623aa100f930 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 15 Apr 2018 23:09:24 +0200 Subject: [PATCH 093/163] fix(templates/post): Correctly insert post body --- templates/post.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/post.html b/templates/post.html index 74cf03abf..bdc725c94 100644 --- a/templates/post.html +++ b/templates/post.html @@ -79,7 +79,7 @@
    Post:
    - +

    From 705097dab91c57524d2311dd839615840044437c Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 15 Apr 2018 23:09:44 +0200 Subject: [PATCH 094/163] feat(handlers/render): Display edit form for user's own posts Displays an edit form for posts that are owned by a user (which is currently defined as "email addresses match"). --- src/errors.rs | 3 +++ src/handlers.rs | 35 +++++++++++++++++++++++++++++++++++ src/main.rs | 1 + src/render.rs | 24 +++++++++++++++++++++++- templates/thread.html | 2 +- 5 files changed, 63 insertions(+), 2 deletions(-) diff --git a/src/errors.rs b/src/errors.rs index 9de907430..8345a9382 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -54,6 +54,9 @@ pub enum ConverseError { #[fail(display = "error occured running timer: {}", error)] Timer { error: tokio_timer::Error }, + #[fail(display = "user does not have permission to edit post {}", id)] + PostEditForbidden { id: i32 }, + // This variant is used as a catch-all for wrapping // actix-web-compatible response errors, such as the errors it // throws itself. diff --git a/src/handlers.rs b/src/handlers.rs index 8bfd3c151..cbe4e4292 100644 --- a/src/handlers.rs +++ b/src/handlers.rs @@ -189,6 +189,41 @@ pub fn reply_thread(state: State, .responder() } +/// This handler presents the user with the form to edit a post. If +/// the user attempts to edit a post that they do not have access to, +/// they are currently ungracefully redirected back to the post +/// itself. +pub fn edit_form(state: State, + mut req: HttpRequest, + query: Path) -> ConverseResponse { + let author: Option = req.session().get(AUTHOR) + .unwrap_or_else(|_| None); + + state.db.send(query.into_inner()) + .flatten() + .from_err() + .and_then(move |post| { + if let Some(author) = author { + if author.email.eq(&post.author_email) { + return Ok(post); + } + } + + Err(ConverseError::PostEditForbidden { id: post.id }) + }) + .and_then(move |post| { + let edit_msg = EditPostPage { + id: post.id, + post: post.body, + }; + + state.renderer.send(edit_msg).from_err() + }) + .flatten() + .map(|page| HttpResponse::Ok().content_type(HTML).body(page)) + .responder() +} + /// This handler executes a full-text search on the forum database and /// displays the results to the user. pub fn search_forum(state: State, diff --git a/src/main.rs b/src/main.rs index 8d81a670e..55b19b0be 100644 --- a/src/main.rs +++ b/src/main.rs @@ -181,6 +181,7 @@ fn start_http_server(base_url: String, .resource("/thread/submit", |r| r.method(Method::POST).with3(submit_thread)) .resource("/thread/reply", |r| r.method(Method::POST).with3(reply_thread)) .resource("/thread/{id}", |r| r.method(Method::GET).with3(forum_thread)) + .resource("/post/{id}/edit", |r| r.method(Method::GET).with3(edit_form)) .resource("/search", |r| r.method(Method::GET).with2(search_forum)) .resource("/oidc/login", |r| r.method(Method::GET).with(login)) .resource("/oidc/callback", |r| r.method(Method::POST).with3(callback)); diff --git a/src/render.rs b/src/render.rs index c0a2fe88e..e02ac31ea 100644 --- a/src/render.rs +++ b/src/render.rs @@ -200,7 +200,7 @@ impl Handler for Renderer { type Result = Result; fn handle(&mut self, msg: NewThreadPage, _: &mut Self::Context) -> Self::Result { - let ctx: FormContext = FormContext { + let ctx = FormContext { alerts: msg.alerts, title: msg.title, post: msg.post, @@ -210,6 +210,28 @@ impl Handler for Renderer { } } +/// Message used to render post editing page. +pub struct EditPostPage { + pub id: i32, + pub post: String, +} +message!(EditPostPage, Result); + +impl Handler for Renderer { + type Result = Result; + + fn handle(&mut self, msg: EditPostPage, _: &mut Self::Context) -> Self::Result { + let ctx = FormContext { + mode: EditingMode::EditPost, + id: Some(msg.id), + post: Some(msg.post), + ..Default::default() + }; + + Ok(self.tera.render("post.html", &ctx)?) + } +} + /// Message used to render search results #[derive(Serialize)] pub struct SearchResultPage { diff --git a/templates/thread.html b/templates/thread.html index 6a89135cd..826046ce1 100644 --- a/templates/thread.html +++ b/templates/thread.html @@ -42,7 +42,7 @@

    {%- if post.editable %} - Edit + Edit {% endif -%} Quote
    From e130e15b79c0a77c7759ec24e44310eebc013417 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 15 Apr 2018 23:23:13 +0200 Subject: [PATCH 095/163] feat(db): Support UpdatePost message Simple message intended to be used for post editing. --- src/db.rs | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/db.rs b/src/db.rs index 4ac658a5c..3641bddb5 100644 --- a/src/db.rs +++ b/src/db.rs @@ -87,6 +87,29 @@ impl Handler for DbExecutor { } } +/// Message used to update the content of a post. +#[derive(Deserialize)] +pub struct UpdatePost { + post_id: i32, + post: String, +} + +message!(UpdatePost, Result); + +impl Handler for DbExecutor { + type Result = Result; + + fn handle(&mut self, msg: UpdatePost, _: &mut Self::Context) -> Self::Result { + use schema::posts::dsl::*; + let conn = self.0.get()?; + let updated = diesel::update(posts.find(msg.post_id)) + .set(body.eq(msg.post)) + .get_result(&conn)?; + + Ok(updated) + } +} + /// Message used to create a new thread pub struct CreateThread { pub new_thread: NewThread, From 56d57edfd0df66978ff069651fc4c21dee856b0a Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 15 Apr 2018 23:30:22 +0200 Subject: [PATCH 096/163] feat(handlers): Implement post editing handler Implements a handler that receives the edit form result and updates the database accordingly if the user identity matches. --- src/db.rs | 4 ++-- src/handlers.rs | 28 ++++++++++++++++++++++++++++ src/main.rs | 1 + 3 files changed, 31 insertions(+), 2 deletions(-) diff --git a/src/db.rs b/src/db.rs index 3641bddb5..e7af0fdd4 100644 --- a/src/db.rs +++ b/src/db.rs @@ -90,8 +90,8 @@ impl Handler for DbExecutor { /// Message used to update the content of a post. #[derive(Deserialize)] pub struct UpdatePost { - post_id: i32, - post: String, + pub post_id: i32, + pub post: String, } message!(UpdatePost, Result); diff --git a/src/handlers.rs b/src/handlers.rs index cbe4e4292..feac6b864 100644 --- a/src/handlers.rs +++ b/src/handlers.rs @@ -224,6 +224,34 @@ pub fn edit_form(state: State, .responder() } +/// This handler "executes" an edit to a post if the current user owns +/// the edited post. +pub fn edit_post(state: State, + mut req: HttpRequest, + update: Form) -> ConverseResponse { + let author: Option = req.session().get(AUTHOR) + .unwrap_or_else(|_| None); + + state.db.send(GetPost { id: update.post_id }) + .flatten() + .from_err() + .and_then(move |post| { + if let Some(author) = author { + if author.email.eq(&post.author_email) { + return Ok(()); + } + } + Err(ConverseError::PostEditForbidden { id: post.id }) + }) + .and_then(move |_| state.db.send(update.0).from_err()) + .flatten() + .map(|updated| HttpResponse::SeeOther() + .header("Location", format!("/thread/{}#post-{}", + updated.thread_id, updated.id)) + .finish()) + .responder() +} + /// This handler executes a full-text search on the forum database and /// displays the results to the user. pub fn search_forum(state: State, diff --git a/src/main.rs b/src/main.rs index 55b19b0be..30b371eae 100644 --- a/src/main.rs +++ b/src/main.rs @@ -182,6 +182,7 @@ fn start_http_server(base_url: String, .resource("/thread/reply", |r| r.method(Method::POST).with3(reply_thread)) .resource("/thread/{id}", |r| r.method(Method::GET).with3(forum_thread)) .resource("/post/{id}/edit", |r| r.method(Method::GET).with3(edit_form)) + .resource("/post/edit", |r| r.method(Method::POST).with3(edit_post)) .resource("/search", |r| r.method(Method::GET).with2(search_forum)) .resource("/oidc/login", |r| r.method(Method::GET).with(login)) .resource("/oidc/callback", |r| r.method(Method::POST).with3(callback)); From 6fd7ee05f2915c13b87ad3405bfe9ec84bdeee6f Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 15 Apr 2018 23:31:36 +0200 Subject: [PATCH 097/163] docs(todo): Update todo-list --- todo.org | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/todo.org b/todo.org index 014a5bba4..fa54db9b3 100644 --- a/todo.org +++ b/todo.org @@ -2,10 +2,11 @@ * DONE Markdown support * DONE Post ordering as expected * DONE Stickies! +* DONE Search +* DONE Post editing * TODO Configurable number of DB workers * TODO Match certain types of Diesel errors (esp. for "not found") * TODO Sketch out categories vs. tags system * TODO Quote button * TODO Multiquote buttons -* TODO Search * TODO Pagination From 71c55b8bb8059654049489d20a84f53d38ff1666 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Mon, 16 Apr 2018 00:24:13 +0200 Subject: [PATCH 098/163] feat(build): Add Nix build configuration Adds a Nix build configuration baesd on the default rustPlatform configuration. The configuration pins a specific nixpkgs commit (which at the time was a commit tracking nixpkgs-unstable). --- .travis.yml | 2 +- default.nix | 31 +++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 default.nix diff --git a/.travis.yml b/.travis.yml index 22761ba7e..d8cc8efa4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1 +1 @@ -language: rust +language: nix diff --git a/default.nix b/default.nix new file mode 100644 index 000000000..14e2219a4 --- /dev/null +++ b/default.nix @@ -0,0 +1,31 @@ +{ pkgs ? import {} +, doCheck ? true }: + +# This pins the nixpkgs version to an - admittedly arbitrarily chosen +# - commit with the correct dependencies. +# This should be removed once the majority of relevant machines are +# running NixOS 18.03. + +let unstable = import (pkgs.fetchFromGitHub { + owner = "NixOS"; + repo = "nixpkgs-channels"; + rev = "ea145b68a019f6fff89e772e9a6c5f0584acc02c"; + sha256 = "18jr124cbgc5zvawvqvvmrp8lq9jcscmn5sg8f5xap6qbg1dgf22"; +}) {}; +in with unstable; rustPlatform.buildRustPackage rec { + name = "converse-${version}"; + version = "0.1.0"; + src = ./.; + cargoSha256 = "0a0634v22wazmyym05x4ricqkxwn4r3spv6s2f3ilma65cy6qyrf"; + + buildInputs = [ openssl pkgconfig ]; + + inherit doCheck; + + meta = with stdenv.lib; { + description = "A simple forum software"; + homepage = "https://github.com/tazjin/converse"; + license = licenses.gpl3; + maintainers = [ maintainers.tazjin ]; + }; +} From fc0b9d7fa5f73e47eccf63f4a73ff6efdbcb63c3 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Mon, 16 Apr 2018 00:24:55 +0200 Subject: [PATCH 099/163] refactor(main): Include Tera templates into application binary Instead of loading the templates at launch time (which requires the template folder to be present), include the template strings into the binary. This also re-enables auto-escaping in Tera. --- src/main.rs | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/src/main.rs b/src/main.rs index 30b371eae..a16ee2c0d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -20,9 +20,6 @@ extern crate diesel; #[macro_use] extern crate log; -#[macro_use] -extern crate tera; - #[macro_use] extern crate serde_derive; @@ -42,6 +39,7 @@ extern crate rand; extern crate reqwest; extern crate serde; extern crate serde_json; +extern crate tera; extern crate tokio; extern crate tokio_timer; extern crate url; @@ -75,8 +73,9 @@ use diesel::r2d2::{ConnectionManager, Pool}; use handlers::*; use oidc::OidcExecutor; use rand::{OsRng, Rng}; -use std::env; use render::Renderer; +use std::env; +use tera::Tera; fn config(name: &str) -> String { env::var(name).expect(&format!("{} must be set", name)) @@ -128,9 +127,18 @@ fn start_oidc_executor(base_url: &str) -> Addr { fn start_renderer() -> Addr { info!("Compiling templates ..."); - let template_path = concat!(env!("CARGO_MANIFEST_DIR"), "/templates/**/*"); - let mut tera = compile_templates!(template_path); - tera.autoescape_on(vec![]); + let mut tera: Tera = Default::default(); + + // Include template strings into the binary instead of being + // location-dependent. + // Drawback is that template changes require recompilation ... + tera.add_raw_templates(vec![ + ("index.html", include_str!("../templates/index.html")), + ("post.html", include_str!("../templates/post.html")), + ("search.html", include_str!("../templates/search.html")), + ("thread.html", include_str!("../templates/thread.html")), + ]).expect("Could not compile templates"); + let comrak = comrak::ComrakOptions{ github_pre_lang: true, ext_strikethrough: true, From 72f6fa65fd4fe5ff9788a733ed3f53b18f9242ae Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Mon, 16 Apr 2018 00:25:29 +0200 Subject: [PATCH 100/163] fix(templates): Mark pre-escaped variables as 'safe' --- templates/search.html | 2 +- templates/thread.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/search.html b/templates/search.html index 2254c97f0..35193fb61 100644 --- a/templates/search.html +++ b/templates/search.html @@ -34,7 +34,7 @@ {% for result in results -%}
    -

    {{ result.headline }}

    +

    {{ result.headline | safe }}

    (Posted in '{{ result.title }}' by {{ result.author }})
    diff --git a/templates/thread.html b/templates/thread.html index 826046ce1..7c0f852f4 100644 --- a/templates/thread.html +++ b/templates/thread.html @@ -33,7 +33,7 @@ {{ post.author_name }}
    -
    {{ post.body }}
    +
    {{ post.body | safe }}
    From 985ca0a3e58fa548ea3c3eb9e69f99b758001a7e Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Mon, 16 Apr 2018 01:06:20 +0200 Subject: [PATCH 101/163] fix(build): Add PostgreSQL library to Nix dependencies --- default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/default.nix b/default.nix index 14e2219a4..cf295fa6f 100644 --- a/default.nix +++ b/default.nix @@ -18,7 +18,7 @@ in with unstable; rustPlatform.buildRustPackage rec { src = ./.; cargoSha256 = "0a0634v22wazmyym05x4ricqkxwn4r3spv6s2f3ilma65cy6qyrf"; - buildInputs = [ openssl pkgconfig ]; + buildInputs = [ openssl pkgconfig postgresql.lib ]; inherit doCheck; From 1b662c867438fa9e36846b2de820ff61815cb2a2 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Mon, 16 Apr 2018 02:16:34 +0200 Subject: [PATCH 102/163] chore(oidc): Enable debug log statement for token responses --- src/oidc.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/oidc.rs b/src/oidc.rs index 3ec15854a..8e0f66696 100644 --- a/src/oidc.rs +++ b/src/oidc.rs @@ -120,13 +120,15 @@ impl Handler for OidcExecutor { ("redirect_uri", &self.redirect_uri), ]; - let response: TokenResponse = client.post(&self.oidc_config.token_endpoint) + let mut response = client.post(&self.oidc_config.token_endpoint) .form(¶ms) - .send()? - .json()?; + .send()?; + + debug!("Received token response: {:?}", response); + let token: TokenResponse = response.json()?; let user: Userinfo = client.get(&self.oidc_config.userinfo_endpoint) - .header(Authorization(Bearer { token: response.access_token })) + .header(Authorization(Bearer { token: token.access_token })) .send()? .json()?; From a5f26777857abe740bd738ca059739d52dcc3273 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Mon, 16 Apr 2018 02:56:55 +0200 Subject: [PATCH 103/163] fix(templates): Add some pleasing spacing to thread layout --- templates/thread.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/thread.html b/templates/thread.html index 7c0f852f4..a34308fe8 100644 --- a/templates/thread.html +++ b/templates/thread.html @@ -33,7 +33,7 @@ {{ post.author_name }}
    -
    {{ post.body | safe }}
    +
    {{ post.body | safe }}
    From 1462810963f54f59b5eacd8657057583c87dc0e4 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Mon, 16 Apr 2018 03:15:50 +0200 Subject: [PATCH 104/163] fix(render): Enable GFM's tagfilter extension --- src/main.rs | 1 + src/render.rs | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index a16ee2c0d..9b5f2f742 100644 --- a/src/main.rs +++ b/src/main.rs @@ -146,6 +146,7 @@ fn start_renderer() -> Addr { ext_autolink: true, ext_tasklist: true, ext_footnotes: true, + ext_tagfilter: true, ..Default::default() }; diff --git a/src/render.rs b/src/render.rs index e02ac31ea..95edb5749 100644 --- a/src/render.rs +++ b/src/render.rs @@ -118,14 +118,13 @@ fn prepare_thread(comrak: &ComrakOptions, page: ThreadPage) -> RenderableThreadP let user = page.current_user; let posts = page.posts.into_iter().map(|post| { - let escaped_body = escape_html(&post.body); let editable = user.clone() .map(|c| post.author_email.eq(&c)) .unwrap_or_else(|| false); RenderablePost { id: post.id, - body: markdown_to_html(&escaped_body, comrak), + body: markdown_to_html(&post.body, comrak), posted: post.posted.into(), author_name: post.author_name.clone(), author_gravatar: md5_hex(post.author_email.as_bytes()), From 9c2359c8c9ba07b4449c7a47612bbed505e35de4 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Mon, 16 Apr 2018 11:03:15 +0200 Subject: [PATCH 105/163] fix(templates): Fix double-escaping of thread titles --- templates/index.html | 2 +- templates/thread.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/index.html b/templates/index.html index 184e06e34..c8c72d9d2 100644 --- a/templates/index.html +++ b/templates/index.html @@ -28,7 +28,7 @@ {% for thread in threads -%}
    -
    {% if thread.sticky %}Sticky {% endif %}{{ thread.title }}
    +
    {% if thread.sticky %}Sticky {% endif %}{{ thread.title | safe }}
    {{ thread.posted }}

    Created by {{ thread.author_name }}

    diff --git a/templates/thread.html b/templates/thread.html index a34308fe8..8c7678cf2 100644 --- a/templates/thread.html +++ b/templates/thread.html @@ -8,7 +8,7 @@ - Converse: {{ title }} + Converse: {{ title | safe }}
    @@ -23,7 +23,7 @@
    -

    {{ title }}

    +

    {{ title | safe }}

    {% for post in posts -%} From 9bc5bbff54faf5bbc29e8cc059784735e830cb01 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Mon, 16 Apr 2018 13:33:47 +0200 Subject: [PATCH 106/163] fix(templates): Fix alignment of columns in thread view The author column is maybe slightly too large now, but that can be sorted out later. --- templates/thread.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/templates/thread.html b/templates/thread.html index 8c7678cf2..5245adf99 100644 --- a/templates/thread.html +++ b/templates/thread.html @@ -22,20 +22,20 @@
    -
    +

    {{ title | safe }}

    {% for post in posts -%} -
    -
    - - {{ post.author_name }} +
    +
    + + {{ post.author_name }}
    -
    {{ post.body | safe }}
    +
    {{ post.body | safe }}
    -
    +
    {{ post.posted }} @@ -50,7 +50,7 @@
    {%- endfor %} -
    +
    From c5cf911a070e7196ef3a91887158b21bc4399034 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Mon, 16 Apr 2018 14:14:26 +0200 Subject: [PATCH 107/163] fix(db): Explicitly order posts in a thread --- src/db.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/db.rs b/src/db.rs index e7af0fdd4..c67eed774 100644 --- a/src/db.rs +++ b/src/db.rs @@ -60,12 +60,15 @@ impl Handler for DbExecutor { fn handle(&mut self, msg: GetThread, _: &mut Self::Context) -> Self::Result { use schema::threads::dsl::*; - + use schema::posts::dsl::id; + let conn = self.0.get()?; let thread_result: Thread = threads .find(msg.0).first(&conn)?; - let post_list = Post::belonging_to(&thread_result).load::(&conn)?; + let post_list = Post::belonging_to(&thread_result) + .order_by(id.asc()) + .load::(&conn)?; Ok((thread_result, post_list)) } From 8d32200999194611de536c2dc8cfe989d319e933 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Mon, 16 Apr 2018 14:17:02 +0200 Subject: [PATCH 108/163] style(db): Fix whitespace error --- src/db.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/db.rs b/src/db.rs index c67eed774..e08553302 100644 --- a/src/db.rs +++ b/src/db.rs @@ -61,7 +61,7 @@ impl Handler for DbExecutor { fn handle(&mut self, msg: GetThread, _: &mut Self::Context) -> Self::Result { use schema::threads::dsl::*; use schema::posts::dsl::id; - + let conn = self.0.get()?; let thread_result: Thread = threads .find(msg.0).first(&conn)?; From 09a97d46ea8ecb6b94e4576cf9776d6348d5c924 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Mon, 16 Apr 2018 14:24:42 +0200 Subject: [PATCH 109/163] docs(envrc): Add .envrc example file --- envrc.example | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 envrc.example diff --git a/envrc.example b/envrc.example new file mode 100644 index 000000000..f255d269f --- /dev/null +++ b/envrc.example @@ -0,0 +1,14 @@ +# This is an example configuration for running converse during +# development using direnv: +# https://github.com/direnv/direnv +# +# The OIDC actor is configured with bogus values as disabling logins +# never causes it to run anyways. + +export DATABASE_URL=postgres://converse:converse@localhost/converse +export RUST_LOG=info +export OIDC_DISCOVERY_URL=https://does.not.matter.com/ +export OIDC_CLIENT_ID=some-client-id +export OIDC_CLIENT_SECRET='some-client-secret' +export BASE_URL=http://localhost:4567 +export REQUIRE_LOGIN=false From ee855d8b6748cc9c22a6dc4cb2bd5f1b7e44e346 Mon Sep 17 00:00:00 2001 From: TatriX Date: Mon, 16 Apr 2018 16:56:00 +0300 Subject: [PATCH 110/163] feat(templates): Add 'Last post by' to the list of threads --- src/render.rs | 2 ++ templates/index.html | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/render.rs b/src/render.rs index 95edb5749..91f4d3f3f 100644 --- a/src/render.rs +++ b/src/render.rs @@ -58,6 +58,7 @@ struct IndexThread { sticky: bool, posted: FormattedDate, author_name: String, + post_author: String, } impl Handler for Renderer { @@ -72,6 +73,7 @@ impl Handler for Renderer { sticky: thread.sticky, posted: thread.posted.into(), author_name: thread.thread_author, + post_author: thread.post_author, }) .collect(); diff --git a/templates/index.html b/templates/index.html index c8c72d9d2..024d0aef5 100644 --- a/templates/index.html +++ b/templates/index.html @@ -31,7 +31,10 @@
    {% if thread.sticky %}Sticky {% endif %}{{ thread.title | safe }}
    {{ thread.posted }}
    -

    Created by {{ thread.author_name }}

    +
    +

    Created by {{ thread.author_name }}

    + Last post by {{ thread.post_author }} +
    {%- endfor %}
    From 37331d9107c6f51a5051f6501fa9b469d0aa8e69 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Mon, 16 Apr 2018 16:48:42 +0200 Subject: [PATCH 111/163] fix(thread): Load Gravatar images at larger size This makes them look nicer in 2x situations (e.g. retina displays) and when a user zooms in. --- templates/thread.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/thread.html b/templates/thread.html index 5245adf99..655b9095d 100644 --- a/templates/thread.html +++ b/templates/thread.html @@ -29,7 +29,7 @@ {% for post in posts -%}
    - + {{ post.author_name }}
    From 1427220f9dd43a1d9bccd18b6f0df69d02e561ae Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Mon, 16 Apr 2018 20:17:15 +0200 Subject: [PATCH 112/163] style(thread): Fix padding on thread view Removing this padding lets the author column render evenly sized. --- templates/thread.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/thread.html b/templates/thread.html index 655b9095d..906f21ee6 100644 --- a/templates/thread.html +++ b/templates/thread.html @@ -27,7 +27,7 @@
    {% for post in posts -%} -
    +
    {{ post.author_name }} From 93d6c7bbd19f83f77dd23eb38ddeaf941657f555 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Tue, 17 Apr 2018 14:42:11 +0200 Subject: [PATCH 113/163] chore(license): Relicense under AGPL-3.0-or-later Relicense the project from the standard GPL3 to the Affero version of the license, requiring source code disclosure for modifications made on instances of Converse that are serving users over the network. --- Cargo.toml | 1 + LICENSE | 147 ++++++++++++++++++++++-------------------------- default.nix | 2 +- src/db.rs | 18 +++--- src/errors.rs | 18 +++--- src/handlers.rs | 18 +++--- src/main.rs | 18 +++--- src/models.rs | 18 +++--- src/oidc.rs | 18 +++--- src/render.rs | 18 +++--- src/schema.rs | 18 ++++++ 11 files changed, 157 insertions(+), 137 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 735e65502..e46808e5f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,6 +2,7 @@ name = "converse" version = "0.1.0" authors = ["Vincent Ambo "] +license = "AGPL-3.0-or-later" [dependencies] actix = "0.5" diff --git a/LICENSE b/LICENSE index 94a9ed024..be3f7b28e 100644 --- a/LICENSE +++ b/LICENSE @@ -1,23 +1,21 @@ - GNU GENERAL PUBLIC LICENSE - Version 3, 29 June 2007 + GNU AFFERO GENERAL PUBLIC LICENSE + Version 3, 19 November 2007 - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble - The GNU General Public License is a free, copyleft license for -software and other kinds of works. + The GNU Affero General Public License is a free, copyleft license for +software and other kinds of works, specifically designed to ensure +cooperation with the community in the case of network server software. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, -the GNU General Public License is intended to guarantee your freedom to +our General Public Licenses are intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free -software for all its users. We, the Free Software Foundation, use the -GNU General Public License for most of our software; it applies also to -any other work released this way by its authors. You can apply it to -your programs, too. +software for all its users. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you @@ -26,44 +24,34 @@ them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. - To protect your rights, we need to prevent others from denying you -these rights or asking you to surrender the rights. Therefore, you have -certain responsibilities if you distribute copies of the software, or if -you modify it: responsibilities to respect the freedom of others. + Developers that use our General Public Licenses protect your rights +with two steps: (1) assert copyright on the software, and (2) offer +you this License which gives you legal permission to copy, distribute +and/or modify the software. - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must pass on to the recipients the same -freedoms that you received. You must make sure that they, too, receive -or can get the source code. And you must show them these terms so they -know their rights. + A secondary benefit of defending all users' freedom is that +improvements made in alternate versions of the program, if they +receive widespread use, become available for other developers to +incorporate. Many developers of free software are heartened and +encouraged by the resulting cooperation. However, in the case of +software used on network servers, this result may fail to come about. +The GNU General Public License permits making a modified version and +letting the public access it on a server without ever releasing its +source code to the public. - Developers that use the GNU GPL protect your rights with two steps: -(1) assert copyright on the software, and (2) offer you this License -giving you legal permission to copy, distribute and/or modify it. + The GNU Affero General Public License is designed specifically to +ensure that, in such cases, the modified source code becomes available +to the community. It requires the operator of a network server to +provide the source code of the modified version running there to the +users of that server. Therefore, public use of a modified version, on +a publicly accessible server, gives the public access to the source +code of the modified version. - For the developers' and authors' protection, the GPL clearly explains -that there is no warranty for this free software. For both users' and -authors' sake, the GPL requires that modified versions be marked as -changed, so that their problems will not be attributed erroneously to -authors of previous versions. - - Some devices are designed to deny users access to install or run -modified versions of the software inside them, although the manufacturer -can do so. This is fundamentally incompatible with the aim of -protecting users' freedom to change the software. The systematic -pattern of such abuse occurs in the area of products for individuals to -use, which is precisely where it is most unacceptable. Therefore, we -have designed this version of the GPL to prohibit the practice for those -products. If such problems arise substantially in other domains, we -stand ready to extend this provision to those domains in future versions -of the GPL, as needed to protect the freedom of users. - - Finally, every program is threatened constantly by software patents. -States should not allow patents to restrict development and use of -software on general-purpose computers, but in those that do, we wish to -avoid the special danger that patents applied to a free program could -make it effectively proprietary. To prevent this, the GPL assures that -patents cannot be used to render the program non-free. + An older license, called the Affero General Public License and +published by Affero, was designed to accomplish similar goals. This is +a different license, not a version of the Affero GPL, but Affero has +released a new version of the Affero GPL which permits relicensing under +this license. The precise terms and conditions for copying, distribution and modification follow. @@ -72,7 +60,7 @@ modification follow. 0. Definitions. - "This License" refers to version 3 of the GNU General Public License. + "This License" refers to version 3 of the GNU Affero General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. @@ -549,35 +537,45 @@ to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. - 13. Use with the GNU Affero General Public License. + 13. Remote Network Interaction; Use with the GNU General Public License. + + Notwithstanding any other provision of this License, if you modify the +Program, your modified version must prominently offer all users +interacting with it remotely through a computer network (if your version +supports such interaction) an opportunity to receive the Corresponding +Source of your version by providing access to the Corresponding Source +from a network server at no charge, through some standard or customary +means of facilitating copying of software. This Corresponding Source +shall include the Corresponding Source for any work covered by version 3 +of the GNU General Public License that is incorporated pursuant to the +following paragraph. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed -under version 3 of the GNU Affero General Public License into a single +under version 3 of the GNU General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, -but the special requirements of the GNU Affero General Public License, -section 13, concerning interaction through a network will apply to the -combination as such. +but the work with which it is combined will remain governed by version +3 of the GNU General Public License. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of -the GNU General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to +the GNU Affero General Public License from time to time. Such new versions +will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the -Program specifies that a certain numbered version of the GNU General +Program specifies that a certain numbered version of the GNU Affero General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the -GNU General Public License, you may choose any version ever published +GNU Affero General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future -versions of the GNU General Public License can be used, that proxy's +versions of the GNU Affero General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. @@ -635,40 +633,29 @@ the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by + it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. + GNU Affero General Public License for more details. - You should have received a copy of the GNU General Public License - along with this program. If not, see . + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. - If the program does terminal interaction, make it output a short -notice like this when it starts in an interactive mode: - - Copyright (C) - This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. - This is free software, and you are welcome to redistribute it - under certain conditions; type `show c' for details. - -The hypothetical commands `show w' and `show c' should show the appropriate -parts of the General Public License. Of course, your program's commands -might be different; for a GUI interface, you would use an "about box". + If your software can interact with users remotely through a computer +network, you should also make sure that it provides a way for users to +get its source. For example, if your program is a web application, its +interface could display a "Source" link that leads users to an archive +of the code. There are many ways you could offer source, and different +solutions will be better for different programs; see section 13 for the +specific requirements. You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. -For more information on this, and how to apply and follow the GNU GPL, see -. - - The GNU General Public License does not permit incorporating your program -into proprietary programs. If your program is a subroutine library, you -may consider it more useful to permit linking proprietary applications with -the library. If this is what you want to do, use the GNU Lesser General -Public License instead of this License. But first, please read -. +For more information on this, and how to apply and follow the GNU AGPL, see +. diff --git a/default.nix b/default.nix index cf295fa6f..479d7807b 100644 --- a/default.nix +++ b/default.nix @@ -25,7 +25,7 @@ in with unstable; rustPlatform.buildRustPackage rec { meta = with stdenv.lib; { description = "A simple forum software"; homepage = "https://github.com/tazjin/converse"; - license = licenses.gpl3; + license = licenses.agpl3; maintainers = [ maintainers.tazjin ]; }; } diff --git a/src/db.rs b/src/db.rs index e08553302..cde4642d4 100644 --- a/src/db.rs +++ b/src/db.rs @@ -1,17 +1,19 @@ // Copyright (C) 2018 Vincent Ambo // +// This file is part of Converse. +// // Converse is free software: you can redistribute it and/or modify it -// under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. - +// under the terms of the GNU Affero General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// // This program is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// General Public License for more details. - -// You should have received a copy of the GNU General Public License -// along with this program. If not, see +// Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public +// License along with this program. If not, see // . //! This module implements the database connection actor. diff --git a/src/errors.rs b/src/errors.rs index 8345a9382..c4c2be198 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -1,17 +1,19 @@ // Copyright (C) 2018 Vincent Ambo // +// This file is part of Converse. +// // Converse is free software: you can redistribute it and/or modify it -// under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. - +// under the terms of the GNU Affero General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// // This program is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// General Public License for more details. - -// You should have received a copy of the GNU General Public License -// along with this program. If not, see +// Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public +// License along with this program. If not, see // . //! This module defines custom error types using the `failure`-crate. diff --git a/src/handlers.rs b/src/handlers.rs index feac6b864..fa41ca354 100644 --- a/src/handlers.rs +++ b/src/handlers.rs @@ -1,17 +1,19 @@ // Copyright (C) 2018 Vincent Ambo // +// This file is part of Converse. +// // Converse is free software: you can redistribute it and/or modify it -// under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. - +// under the terms of the GNU Affero General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// // This program is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// General Public License for more details. - -// You should have received a copy of the GNU General Public License -// along with this program. If not, see +// Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public +// License along with this program. If not, see // . //! This module contains the implementation of converse's actix-web diff --git a/src/main.rs b/src/main.rs index 9b5f2f742..bc9fca681 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,17 +1,19 @@ // Copyright (C) 2018 Vincent Ambo // +// This file is part of Converse. +// // Converse is free software: you can redistribute it and/or modify it -// under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. - +// under the terms of the GNU Affero General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// // This program is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// General Public License for more details. - -// You should have received a copy of the GNU General Public License -// along with this program. If not, see +// Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public +// License along with this program. If not, see // . #[macro_use] diff --git a/src/models.rs b/src/models.rs index dfadd53fd..26985394c 100644 --- a/src/models.rs +++ b/src/models.rs @@ -1,17 +1,19 @@ // Copyright (C) 2018 Vincent Ambo // +// This file is part of Converse. +// // Converse is free software: you can redistribute it and/or modify it -// under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. - +// under the terms of the GNU Affero General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// // This program is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// General Public License for more details. - -// You should have received a copy of the GNU General Public License -// along with this program. If not, see +// Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public +// License along with this program. If not, see // . use chrono::prelude::{DateTime, Utc}; diff --git a/src/oidc.rs b/src/oidc.rs index 8e0f66696..23d82e0fa 100644 --- a/src/oidc.rs +++ b/src/oidc.rs @@ -1,17 +1,19 @@ // Copyright (C) 2018 Vincent Ambo // +// This file is part of Converse. +// // Converse is free software: you can redistribute it and/or modify it -// under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. - +// under the terms of the GNU Affero General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// // This program is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// General Public License for more details. - -// You should have received a copy of the GNU General Public License -// along with this program. If not, see +// Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public +// License along with this program. If not, see // . //! This module provides authentication via OIDC compliant diff --git a/src/render.rs b/src/render.rs index 91f4d3f3f..9a81d2c4c 100644 --- a/src/render.rs +++ b/src/render.rs @@ -1,17 +1,19 @@ // Copyright (C) 2018 Vincent Ambo // +// This file is part of Converse. +// // Converse is free software: you can redistribute it and/or modify it -// under the terms of the GNU General Public License as published by -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. - +// under the terms of the GNU Affero General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// // This program is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// General Public License for more details. - -// You should have received a copy of the GNU General Public License -// along with this program. If not, see +// Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public +// License along with this program. If not, see // . //! This module defines a rendering actor used for processing Converse diff --git a/src/schema.rs b/src/schema.rs index 6f73af69c..b5a8fab7f 100644 --- a/src/schema.rs +++ b/src/schema.rs @@ -1,3 +1,21 @@ +// Copyright (C) 2018 Vincent Ambo +// +// This file is part of Converse. +// +// Converse is free software: you can redistribute it and/or modify it +// under the terms of the GNU Affero General Public License as +// published by the Free Software Foundation, either version 3 of the +// License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, but +// WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public +// License along with this program. If not, see +// . + table! { posts (id) { id -> Int4, From 9dc1143b14744ab59d2c1ba7859bd2633f1671be Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Mon, 23 Apr 2018 21:39:23 +0200 Subject: [PATCH 114/163] chore(cargo): Bump dependency minor versions --- Cargo.lock | 191 ++++++++++++++++++++++++++--------------------------- todo.org | 1 + 2 files changed, 95 insertions(+), 97 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 34369e928..4c8f6159b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,6 +1,6 @@ [[package]] name = "actix" -version = "0.5.5" +version = "0.5.6" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "actix_derive 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -17,16 +17,16 @@ dependencies = [ "tokio-io 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", "tokio-signal 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", "trust-dns-resolver 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)", - "uuid 0.6.2 (registry+https://github.com/rust-lang/crates.io-index)", + "uuid 0.6.3 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] name = "actix-web" -version = "0.5.0" +version = "0.5.4" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "actix 0.5.5 (registry+https://github.com/rust-lang/crates.io-index)", - "base64 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", + "actix 0.5.6 (registry+https://github.com/rust-lang/crates.io-index)", + "base64 0.9.1 (registry+https://github.com/rust-lang/crates.io-index)", "bitflags 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", "brotli2 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)", "byteorder 1.2.2 (registry+https://github.com/rust-lang/crates.io-index)", @@ -53,16 +53,14 @@ dependencies = [ "percent-encoding 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", "rand 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", "regex 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)", - "serde 1.0.37 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_json 1.0.13 (registry+https://github.com/rust-lang/crates.io-index)", + "serde 1.0.43 (registry+https://github.com/rust-lang/crates.io-index)", + "serde_json 1.0.16 (registry+https://github.com/rust-lang/crates.io-index)", "serde_urlencoded 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)", "sha1 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)", - "skeptic 0.13.2 (registry+https://github.com/rust-lang/crates.io-index)", "smallvec 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)", "time 0.1.39 (registry+https://github.com/rust-lang/crates.io-index)", "tokio-core 0.1.17 (registry+https://github.com/rust-lang/crates.io-index)", "tokio-io 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", - "trust-dns-resolver 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)", "url 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)", "version_check 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -114,7 +112,7 @@ dependencies = [ [[package]] name = "atty" -version = "0.2.8" +version = "0.2.9" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", @@ -138,7 +136,7 @@ dependencies = [ [[package]] name = "backtrace" -version = "0.3.5" +version = "0.3.6" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "backtrace-sys 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)", @@ -153,7 +151,7 @@ name = "backtrace-sys" version = "0.1.16" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "cc 1.0.9 (registry+https://github.com/rust-lang/crates.io-index)", + "cc 1.0.10 (registry+https://github.com/rust-lang/crates.io-index)", "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -168,7 +166,7 @@ dependencies = [ [[package]] name = "base64" -version = "0.9.0" +version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "byteorder 1.2.2 (registry+https://github.com/rust-lang/crates.io-index)", @@ -190,7 +188,7 @@ name = "brotli-sys" version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "cc 1.0.9 (registry+https://github.com/rust-lang/crates.io-index)", + "cc 1.0.10 (registry+https://github.com/rust-lang/crates.io-index)", "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -205,7 +203,7 @@ dependencies = [ [[package]] name = "build_const" -version = "0.2.0" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] @@ -234,14 +232,14 @@ source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "error-chain 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)", "semver 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)", - "serde 1.0.37 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_derive 1.0.37 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_json 1.0.13 (registry+https://github.com/rust-lang/crates.io-index)", + "serde 1.0.43 (registry+https://github.com/rust-lang/crates.io-index)", + "serde_derive 1.0.43 (registry+https://github.com/rust-lang/crates.io-index)", + "serde_json 1.0.16 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] name = "cc" -version = "1.0.9" +version = "1.0.10" source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] @@ -256,7 +254,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "num-integer 0.1.36 (registry+https://github.com/rust-lang/crates.io-index)", "num-traits 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", - "serde 1.0.37 (registry+https://github.com/rust-lang/crates.io-index)", + "serde 1.0.43 (registry+https://github.com/rust-lang/crates.io-index)", "time 0.1.39 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -266,7 +264,7 @@ version = "2.31.2" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "ansi_term 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)", - "atty 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", + "atty 0.2.9 (registry+https://github.com/rust-lang/crates.io-index)", "bitflags 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", "strsim 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", "textwrap 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -276,7 +274,7 @@ dependencies = [ [[package]] name = "comrak" -version = "0.2.8" +version = "0.2.9" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "clap 2.31.2 (registry+https://github.com/rust-lang/crates.io-index)", @@ -294,12 +292,12 @@ dependencies = [ name = "converse" version = "0.1.0" dependencies = [ - "actix 0.5.5 (registry+https://github.com/rust-lang/crates.io-index)", - "actix-web 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)", + "actix 0.5.6 (registry+https://github.com/rust-lang/crates.io-index)", + "actix-web 0.5.4 (registry+https://github.com/rust-lang/crates.io-index)", "chrono 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", - "comrak 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", - "diesel 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)", - "env_logger 0.5.6 (registry+https://github.com/rust-lang/crates.io-index)", + "comrak 0.2.9 (registry+https://github.com/rust-lang/crates.io-index)", + "diesel 1.2.2 (registry+https://github.com/rust-lang/crates.io-index)", + "env_logger 0.5.9 (registry+https://github.com/rust-lang/crates.io-index)", "failure 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", "futures 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", "hyper 0.11.25 (registry+https://github.com/rust-lang/crates.io-index)", @@ -308,9 +306,9 @@ dependencies = [ "r2d2 0.8.2 (registry+https://github.com/rust-lang/crates.io-index)", "rand 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", "reqwest 0.8.5 (registry+https://github.com/rust-lang/crates.io-index)", - "serde 1.0.37 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_derive 1.0.37 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_json 1.0.13 (registry+https://github.com/rust-lang/crates.io-index)", + "serde 1.0.43 (registry+https://github.com/rust-lang/crates.io-index)", + "serde_derive 1.0.43 (registry+https://github.com/rust-lang/crates.io-index)", + "serde_json 1.0.16 (registry+https://github.com/rust-lang/crates.io-index)", "tera 0.11.6 (registry+https://github.com/rust-lang/crates.io-index)", "tokio 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", "tokio-timer 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", @@ -351,7 +349,7 @@ name = "crc" version = "1.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "build_const 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", + "build_const 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -449,7 +447,7 @@ dependencies = [ [[package]] name = "diesel" -version = "1.2.1" +version = "1.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "bitflags 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", @@ -547,10 +545,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "env_logger" -version = "0.5.6" +version = "0.5.9" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "atty 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", + "atty 0.2.9 (registry+https://github.com/rust-lang/crates.io-index)", "humantime 1.1.1 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", "regex 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)", @@ -570,7 +568,7 @@ name = "error-chain" version = "0.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "backtrace 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", + "backtrace 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -578,7 +576,7 @@ name = "error-chain" version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "backtrace 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", + "backtrace 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -586,7 +584,7 @@ name = "failure" version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "backtrace 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", + "backtrace 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", "failure_derive 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -728,7 +726,7 @@ name = "hyper" version = "0.11.25" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "base64 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", + "base64 0.9.1 (registry+https://github.com/rust-lang/crates.io-index)", "bytes 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", "futures 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", "futures-cpupool 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)", @@ -791,7 +789,7 @@ version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "error-chain 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)", - "socket2 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", + "socket2 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", "widestring 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", "winapi 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", "winreg 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -932,7 +930,7 @@ name = "miniz-sys" version = "0.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "cc 1.0.9 (registry+https://github.com/rust-lang/crates.io-index)", + "cc 1.0.10 (registry+https://github.com/rust-lang/crates.io-index)", "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -982,7 +980,7 @@ dependencies = [ "lazy_static 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", "openssl 0.9.24 (registry+https://github.com/rust-lang/crates.io-index)", - "schannel 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)", + "schannel 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)", "security-framework 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)", "security-framework-sys 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)", "tempdir 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1041,10 +1039,10 @@ name = "openssl-sys" version = "0.9.28" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "cc 1.0.9 (registry+https://github.com/rust-lang/crates.io-index)", + "cc 1.0.10 (registry+https://github.com/rust-lang/crates.io-index)", "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", "pkg-config 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)", - "vcpkg 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", + "vcpkg 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -1140,7 +1138,7 @@ name = "pq-sys" version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "vcpkg 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", + "vcpkg 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -1187,7 +1185,7 @@ dependencies = [ [[package]] name = "quote" -version = "0.5.1" +version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "proc-macro2 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1263,14 +1261,14 @@ source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "aho-corasick 0.6.4 (registry+https://github.com/rust-lang/crates.io-index)", "memchr 2.0.1 (registry+https://github.com/rust-lang/crates.io-index)", - "regex-syntax 0.5.3 (registry+https://github.com/rust-lang/crates.io-index)", + "regex-syntax 0.5.5 (registry+https://github.com/rust-lang/crates.io-index)", "thread_local 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", "utf8-ranges 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] name = "regex-syntax" -version = "0.5.3" +version = "0.5.5" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "ucd-util 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1286,7 +1284,7 @@ dependencies = [ [[package]] name = "remove_dir_all" -version = "0.5.0" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "winapi 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1306,8 +1304,8 @@ dependencies = [ "log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", "mime_guess 2.0.0-alpha.4 (registry+https://github.com/rust-lang/crates.io-index)", "native-tls 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", - "serde 1.0.37 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_json 1.0.13 (registry+https://github.com/rust-lang/crates.io-index)", + "serde 1.0.43 (registry+https://github.com/rust-lang/crates.io-index)", + "serde_json 1.0.16 (registry+https://github.com/rust-lang/crates.io-index)", "serde_urlencoded 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)", "tokio-core 0.1.17 (registry+https://github.com/rust-lang/crates.io-index)", "tokio-io 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1358,7 +1356,7 @@ dependencies = [ [[package]] name = "schannel" -version = "0.1.11" +version = "0.1.12" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "lazy_static 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1409,7 +1407,7 @@ version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "semver-parser 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", - "serde 1.0.37 (registry+https://github.com/rust-lang/crates.io-index)", + "serde 1.0.43 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -1419,23 +1417,23 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "serde" -version = "1.0.37" +version = "1.0.43" source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "serde_derive" -version = "1.0.37" +version = "1.0.43" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "proc-macro2 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", - "quote 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_derive_internals 0.23.0 (registry+https://github.com/rust-lang/crates.io-index)", + "quote 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)", + "serde_derive_internals 0.23.1 (registry+https://github.com/rust-lang/crates.io-index)", "syn 0.13.1 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] name = "serde_derive_internals" -version = "0.23.0" +version = "0.23.1" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "proc-macro2 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1444,13 +1442,12 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.13" +version = "1.0.16" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "dtoa 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", "itoa 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", - "num-traits 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", - "serde 1.0.37 (registry+https://github.com/rust-lang/crates.io-index)", + "serde 1.0.43 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -1460,7 +1457,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "dtoa 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", "itoa 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", - "serde 1.0.37 (registry+https://github.com/rust-lang/crates.io-index)", + "serde 1.0.43 (registry+https://github.com/rust-lang/crates.io-index)", "url 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -1484,7 +1481,7 @@ dependencies = [ "error-chain 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)", "glob 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", "pulldown-cmark 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_json 1.0.13 (registry+https://github.com/rust-lang/crates.io-index)", + "serde_json 1.0.16 (registry+https://github.com/rust-lang/crates.io-index)", "tempdir 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)", "walkdir 1.0.7 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -1501,10 +1498,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "slug" -version = "0.1.2" +version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "unidecode 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", + "unidecode 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -1519,7 +1516,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "socket2" -version = "0.3.4" +version = "0.3.5" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "cfg-if 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1568,7 +1565,7 @@ version = "0.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "proc-macro2 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", - "quote 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)", + "quote 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)", "unicode-xid 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -1600,7 +1597,7 @@ version = "0.3.7" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "rand 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", - "remove_dir_all 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)", + "remove_dir_all 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -1616,9 +1613,9 @@ dependencies = [ "pest 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", "pest_derive 1.0.7 (registry+https://github.com/rust-lang/crates.io-index)", "regex 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)", - "serde 1.0.37 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_json 1.0.13 (registry+https://github.com/rust-lang/crates.io-index)", - "slug 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", + "serde 1.0.43 (registry+https://github.com/rust-lang/crates.io-index)", + "serde_json 1.0.16 (registry+https://github.com/rust-lang/crates.io-index)", + "slug 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", "url 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -1932,7 +1929,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "unidecode" -version = "0.2.0" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] @@ -1964,7 +1961,7 @@ name = "url_serde" version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "serde 1.0.37 (registry+https://github.com/rust-lang/crates.io-index)", + "serde 1.0.43 (registry+https://github.com/rust-lang/crates.io-index)", "url 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -1983,7 +1980,7 @@ dependencies = [ [[package]] name = "uuid" -version = "0.6.2" +version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "cfg-if 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1992,7 +1989,7 @@ dependencies = [ [[package]] name = "vcpkg" -version = "0.2.2" +version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] @@ -2088,34 +2085,34 @@ dependencies = [ ] [metadata] -"checksum actix 0.5.5 (registry+https://github.com/rust-lang/crates.io-index)" = "29d85dc76d055498ef65ecf556df154393f94f55d325a05be20c676432536ce7" -"checksum actix-web 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)" = "af57fb387a5ca73f8902a0edfac7fe49271b2a9c2bb78815b519c0ad35637c77" +"checksum actix 0.5.6 (registry+https://github.com/rust-lang/crates.io-index)" = "e767e3170dc7cdec50fe1b74d22fd9d2f4b78b97b2052a254b5acb07dae68634" +"checksum actix-web 0.5.4 (registry+https://github.com/rust-lang/crates.io-index)" = "9948406e3d13d44d43987e1e2050809a415f752a8096e5dff3a879c9714a9871" "checksum actix_derive 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "c4b1dc922654b9aca7a8a31eab875fde804fa9fbd67f220f2e457787b23590f2" "checksum adler32 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = "6cbd0b9af8587c72beadc9f72d35b9fbb070982c9e6203e46e93f10df25f8f45" "checksum aho-corasick 0.6.4 (registry+https://github.com/rust-lang/crates.io-index)" = "d6531d44de723825aa81398a6415283229725a00fa30713812ab9323faa82fc4" "checksum ansi_term 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ee49baf6cb617b853aa8d93bf420db2383fab46d314482ca2803b40d5fde979b" "checksum antidote 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "34fde25430d87a9388dadbe6e34d7f72a462c8b43ac8d309b42b0a8505d7e2a5" "checksum arrayvec 0.4.7 (registry+https://github.com/rust-lang/crates.io-index)" = "a1e964f9e24d588183fcb43503abda40d288c8657dfc27311516ce2f05675aef" -"checksum atty 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)" = "af80143d6f7608d746df1520709e5d141c96f240b0e62b0aa41bdfb53374d9d4" +"checksum atty 0.2.9 (registry+https://github.com/rust-lang/crates.io-index)" = "6609a866dd1a1b2d0ee1362195bf3e4f6438abb2d80120b83b1e1f4fb6476dd0" "checksum backtrace 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "346d7644f0b5f9bc73082d3b2236b69a05fd35cce0cfa3724e184e6a5c9e2a2f" -"checksum backtrace 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)" = "ebbbf59b1c43eefa8c3ede390fcc36820b4999f7914104015be25025e0d62af2" +"checksum backtrace 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)" = "ebbe525f66f42d207968308ee86bc2dd60aa5fab535b22e616323a173d097d8e" "checksum backtrace-sys 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)" = "44585761d6161b0f57afc49482ab6bd067e4edef48c12a152c237eb0203f7661" "checksum base64 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)" = "96434f987501f0ed4eb336a411e0631ecd1afa11574fe148587adc4ff96143c9" -"checksum base64 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)" = "229d032f1a99302697f10b27167ae6d03d49d032e6a8e2550e8d3fc13356d2b4" +"checksum base64 0.9.1 (registry+https://github.com/rust-lang/crates.io-index)" = "9263aa6a38da271eec5c91a83ce1e800f093c8535788d403d626d8d5c3f8f007" "checksum bitflags 0.9.1 (registry+https://github.com/rust-lang/crates.io-index)" = "4efd02e230a02e18f92fc2735f44597385ed02ad8f831e7c1c1156ee5e1ab3a5" "checksum bitflags 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "b3c30d3802dfb7281680d6285f2ccdaa8c2d8fee41f93805dba5c4cf50dc23cf" "checksum brotli-sys 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)" = "4445dea95f4c2b41cde57cc9fee236ae4dbae88d8fcbdb4750fc1bb5d86aaecd" "checksum brotli2 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)" = "0cb036c3eade309815c15ddbacec5b22c4d1f3983a774ab2eac2e3e9ea85568e" -"checksum build_const 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "e90dc84f5e62d2ebe7676b83c22d33b6db8bd27340fb6ffbff0a364efa0cb9c9" +"checksum build_const 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "39092a32794787acd8525ee150305ff051b0aa6cc2abaf193924f5ab05425f39" "checksum bytecount 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "af27422163679dea46a1a7239dffff64d3dcdc3ba5fe9c49c789fbfe0eb949de" "checksum byteorder 1.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "73b5bdfe7ee3ad0b99c9801d58807a9dbc9e09196365b0203853b99889ab3c87" "checksum bytes 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)" = "1b7db437d718977f6dc9b2e3fd6fc343c02ac6b899b73fdd2179163447bd9ce9" "checksum cargo_metadata 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "1f56ec3e469bca7c276f2eea015aa05c5e381356febdbb0683c2580189604537" -"checksum cc 1.0.9 (registry+https://github.com/rust-lang/crates.io-index)" = "2b4911e4bdcb4100c7680e7e854ff38e23f1b34d4d9e079efae3da2801341ffc" +"checksum cc 1.0.10 (registry+https://github.com/rust-lang/crates.io-index)" = "8b9d2900f78631a5876dc5d6c9033ede027253efcd33dd36b1309fc6cab97ee0" "checksum cfg-if 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "d4c819a1287eb618df47cc647173c5c4c66ba19d888a6e50d605672aed3140de" "checksum chrono 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)" = "1cce36c92cb605414e9b824f866f5babe0a0368e39ea07393b9b63cf3844c0e6" "checksum clap 2.31.2 (registry+https://github.com/rust-lang/crates.io-index)" = "f0f16b89cbb9ee36d87483dc939fe9f1e13c05898d56d7b230a0d4dff033a536" -"checksum comrak 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)" = "9c53dbd76bd87f59d43e2c57334a87cffaecef897d4728bdf82b3c5d9a3507f7" +"checksum comrak 0.2.9 (registry+https://github.com/rust-lang/crates.io-index)" = "17a5772ca33e3ec805360145413ccb60e0256b504919d3c7d38bfb844cd0dc75" "checksum cookie 0.10.1 (registry+https://github.com/rust-lang/crates.io-index)" = "746858cae4eae40fff37e1998320068df317bc247dc91a67c6cfa053afdc2abb" "checksum core-foundation 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "25bfd746d203017f7d5cbd31ee5d8e17f94b6521c7af77ece6c9e4b2d4b16c67" "checksum core-foundation-sys 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "065a5d7ffdcbc8fa145d6f0746f3555025b9097a9e9cda59f7467abae670c78d" @@ -2129,7 +2126,7 @@ dependencies = [ "checksum crossbeam-utils 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "2760899e32a1d58d5abb31129f8fae5de75220bc2176e77ff7c627ae45c918d9" "checksum crossbeam-utils 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)" = "d636a8b3bcc1b409d7ffd3facef8f21dcb4009626adbd0c5e6c4305c07253c7b" "checksum dbghelp-sys 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "97590ba53bcb8ac28279161ca943a924d1fd4a8fb3fa63302591647c4fc5b850" -"checksum diesel 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "6d84a516e1eca7094d5ed8e618fb8d59748e185d24316ed8663eb46fc2a27dff" +"checksum diesel 1.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "24815a0c2094f2c8dafe74ab3b9e975892f44acbb94b4d4b4898025a7615efa4" "checksum diesel_derives 1.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "6471a2b637b414d3ee1504cf230409a550381c79204282f8fe06c527e4ae56be" "checksum dtoa 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)" = "09c3753c3db574d215cba4ea76018483895d7bff25a31b49ba45db21c48e50ab" "checksum encoding 0.2.33 (registry+https://github.com/rust-lang/crates.io-index)" = "6b0d943856b990d12d3b55b359144ff341533e516d94098b1d3fc1ac666d36ec" @@ -2141,7 +2138,7 @@ dependencies = [ "checksum encoding_index_tests 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)" = "a246d82be1c9d791c5dfde9a2bd045fc3cbba3fa2b11ad558f27d01712f00569" "checksum encoding_rs 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)" = "98fd0f24d1fb71a4a6b9330c8ca04cbd4e7cc5d846b54ca74ff376bc7c9f798d" "checksum entities 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "b5320ae4c3782150d900b79807611a59a99fc9a1d61d686faafc24b93fc8d7ca" -"checksum env_logger 0.5.6 (registry+https://github.com/rust-lang/crates.io-index)" = "0561146661ae44c579e993456bc76d11ce1e0c7d745e57b2fa7146b6e49fa2ad" +"checksum env_logger 0.5.9 (registry+https://github.com/rust-lang/crates.io-index)" = "00c45cec4cde3daac5f036c74098b4956151525cdf360cff5ee0092c98823e54" "checksum error-chain 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)" = "faa976b4fd2e4c2b2f3f486874b19e61944d3de3de8b61c9fcf835d583871bcc" "checksum error-chain 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ff511d5dc435d703f4971bc399647c9bc38e20cb41452e3b9feb4765419ed3f3" "checksum error-chain 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)" = "6930e04918388a9a2e41d518c25cf679ccafe26733fb4127dbf21993f2575d46" @@ -2220,7 +2217,7 @@ dependencies = [ "checksum quick-error 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "eda5fe9b71976e62bc81b781206aaa076401769b2143379d3eb2118388babac4" "checksum quote 0.3.15 (registry+https://github.com/rust-lang/crates.io-index)" = "7a6e920b65c65f10b2ae65c831a81a073a89edd28c7cce89475bff467ab4167a" "checksum quote 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)" = "1eca14c727ad12702eb4b6bfb5a232287dcf8385cb8ca83a3eeaf6519c44c408" -"checksum quote 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)" = "7b0ff51282f28dc1b53fd154298feaa2e77c5ea0dba68e1fd8b03b72fbe13d2a" +"checksum quote 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)" = "9949cfe66888ffe1d53e6ec9d9f3b70714083854be20fd5e271b232a017401e8" "checksum r2d2 0.8.2 (registry+https://github.com/rust-lang/crates.io-index)" = "f9078ca6a8a5568ed142083bb2f7dc9295b69d16f867ddcc9849e51b17d8db46" "checksum rand 0.3.22 (registry+https://github.com/rust-lang/crates.io-index)" = "15a732abf9d20f0ad8eeb6f909bf6868722d9a06e1e50802b6a70351f40b4eb1" "checksum rand 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)" = "eba5f8cb59cc50ed56be8880a5c7b496bfd9bd26394e176bc67884094145c2c5" @@ -2229,16 +2226,16 @@ dependencies = [ "checksum redox_syscall 0.1.37 (registry+https://github.com/rust-lang/crates.io-index)" = "0d92eecebad22b767915e4d529f89f28ee96dbbf5a4810d2b844373f136417fd" "checksum redox_termios 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "7e891cfe48e9100a70a3b6eb652fef28920c117d366339687bd5576160db0f76" "checksum regex 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)" = "aec3f58d903a7d2a9dc2bf0e41a746f4530e0cab6b615494e058f67a3ef947fb" -"checksum regex-syntax 0.5.3 (registry+https://github.com/rust-lang/crates.io-index)" = "b2550876c31dc914696a6c2e01cbce8afba79a93c8ae979d2fe051c0230b3756" +"checksum regex-syntax 0.5.5 (registry+https://github.com/rust-lang/crates.io-index)" = "bd90079345f4a4c3409214734ae220fd773c6f2e8a543d07370c6c1c369cfbfb" "checksum relay 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "1576e382688d7e9deecea24417e350d3062d97e32e45d70b1cde65994ff1489a" -"checksum remove_dir_all 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)" = "dfc5b3ce5d5ea144bb04ebd093a9e14e9765bcfec866aecda9b6dec43b3d1e24" +"checksum remove_dir_all 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)" = "3488ba1b9a2084d38645c4c08276a1752dcbf2c7130d74f1569681ad5d2799c5" "checksum reqwest 0.8.5 (registry+https://github.com/rust-lang/crates.io-index)" = "241faa9a8ca28a03cbbb9815a5d085f271d4c0168a19181f106aa93240c22ddb" "checksum resolv-conf 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)" = "8e1b086bb6a2659d6ba66e4aa21bde8a53ec03587cd5c80b83bdc3a330f35cab" "checksum ring 0.12.1 (registry+https://github.com/rust-lang/crates.io-index)" = "6f7d28b30a72c01b458428e0ae988d4149c20d902346902be881e3edc4bb325c" "checksum rustc-demangle 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)" = "11fb43a206a04116ffd7cfcf9bcb941f8eb6cc7ff667272246b0a1c74259a3cb" "checksum safemem 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "e27a8b19b835f7aea908818e871f5cc3a5a186550c30773be987e155e8163d8f" "checksum same-file 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)" = "d931a44fdaa43b8637009e7632a02adc4f2b2e0733c08caa4cf00e8da4a117a7" -"checksum schannel 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)" = "fbaffce35eb61c5b00846e73128b0cd62717e7c0ec46abbec132370d013975b4" +"checksum schannel 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)" = "85fd9df495640643ad2d00443b3d78aae69802ad488debab4f1dd52fc1806ade" "checksum scheduled-thread-pool 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "1a2ff3fc5223829be817806c6441279c676e454cc7da608faf03b0ccc09d3889" "checksum scoped-tls 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "8674d439c964889e2476f474a3bf198cc9e199e77499960893bac5de7e9218a4" "checksum scopeguard 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "94258f53601af11e6a49f722422f6e3425c52b06245a5cf9bc09908b174f5e27" @@ -2246,20 +2243,20 @@ dependencies = [ "checksum security-framework-sys 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)" = "5421621e836278a0b139268f36eee0dc7e389b784dc3f79d8f11aabadf41bead" "checksum semver 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)" = "bee2bc909ab2d8d60dab26e8cad85b25d795b14603a0dcb627b78b9d30b6454b" "checksum semver-parser 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3" -"checksum serde 1.0.37 (registry+https://github.com/rust-lang/crates.io-index)" = "d3bcee660dcde8f52c3765dd9ca5ee36b4bf35470a738eb0bd5a8752b0389645" -"checksum serde_derive 1.0.37 (registry+https://github.com/rust-lang/crates.io-index)" = "f1711ab8b208541fa8de00425f6a577d90f27bb60724d2bb5fd911314af9668f" -"checksum serde_derive_internals 0.23.0 (registry+https://github.com/rust-lang/crates.io-index)" = "89b340a48245bc03ddba31d0ff1709c118df90edc6adabaca4aac77aea181cce" -"checksum serde_json 1.0.13 (registry+https://github.com/rust-lang/crates.io-index)" = "5c508584d9913df116b91505eec55610a2f5b16e9ed793c46e4d0152872b3e74" +"checksum serde 1.0.43 (registry+https://github.com/rust-lang/crates.io-index)" = "0c855d888276f20d140223bd06515e5bf1647fd6d02593cb5792466d9a8ec2d0" +"checksum serde_derive 1.0.43 (registry+https://github.com/rust-lang/crates.io-index)" = "aa113e5fc4b008a626ba2bbd41330b56c9987d667f79f7b243e5a2d03d91ed1c" +"checksum serde_derive_internals 0.23.1 (registry+https://github.com/rust-lang/crates.io-index)" = "9d30c4596450fd7bbda79ef15559683f9a79ac0193ea819db90000d7e1cae794" +"checksum serde_json 1.0.16 (registry+https://github.com/rust-lang/crates.io-index)" = "8c6c4e049dc657a99e394bd85c22acbf97356feeec6dbf44150f2dcf79fb3118" "checksum serde_urlencoded 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)" = "ce0fd303af908732989354c6f02e05e2e6d597152870f2c6990efb0577137480" "checksum sha1 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)" = "2579985fda508104f7587689507983eadd6a6e84dd35d6d115361f530916fa0d" "checksum siphasher 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "0df90a788073e8d0235a67e50441d47db7c8ad9debd91cbf43736a2a92d36537" "checksum skeptic 0.13.2 (registry+https://github.com/rust-lang/crates.io-index)" = "c8431f8fca168e2db4be547bd8329eac70d095dff1444fee4b0fa0fabc7df75a" "checksum slab 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "17b4fcaed89ab08ef143da37bc52adbcc04d4a69014f4c1208d6b51f0c47bc23" "checksum slab 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "fdeff4cd9ecff59ec7e3744cbca73dfe5ac35c2aedb2cfba8a1c715a18912e9d" -"checksum slug 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "f6f5ff4b43cb07b86c5f9236c92714a22cdf9e5a27a7d85e398e2c9403328cb8" +"checksum slug 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)" = "797bcb4d24e91239a8615415814f4afb2d8ca400c472de3c73f803a5a7689e11" "checksum smallvec 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "4c8cbcd6df1e117c2210e13ab5109635ad68a929fcbb8964dc965b76cb5ee013" "checksum smallvec 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)" = "44db0ecb22921ef790d17ae13a3f6d15784183ff5f2a01aa32098c7498d2b4b9" -"checksum socket2 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)" = "71ebbe82fcdd697244ba7fe6e05e63b5c45910c3927e28469a04947494ff48d8" +"checksum socket2 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)" = "ff606e0486e88f5fc6cfeb3966e434fb409abbc7a3ab495238f70a1ca97f789d" "checksum stable_deref_trait 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "15132e0e364248108c5e2c02e3ab539be8d6f5d52a01ca9bbf27ed657316f02b" "checksum string 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "31f98b200e7caca9efca50fc0aa69cd58a5ec81d5f6e75b2f3ecaad2e998972a" "checksum strsim 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "bb4f380125926a99e52bc279241539c018323fab05ad6368b56f93d9369ff550" @@ -2302,15 +2299,15 @@ dependencies = [ "checksum unicode-xid 0.0.4 (registry+https://github.com/rust-lang/crates.io-index)" = "8c1f860d7d29cf02cb2f3f359fd35991af3d30bac52c57d265a3c461074cb4dc" "checksum unicode-xid 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "fc72304796d0818e357ead4e000d19c9c174ab23dc11093ac919054d20a6a7fc" "checksum unicode_categories 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "39ec24b3121d976906ece63c9daad25b85969647682eee313cb5779fdd69e14e" -"checksum unidecode 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "d2adb95ee07cd579ed18131f2d9e7a17c25a4b76022935c7f2460d2bfae89fd2" +"checksum unidecode 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "402bb19d8e03f1d1a7450e2bd613980869438e0666331be3e073089124aa1adc" "checksum unreachable 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "382810877fe448991dfc7f0dd6e3ae5d58088fd0ea5e35189655f84e6814fa56" "checksum untrusted 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)" = "f392d7819dbe58833e26872f5f6f0d68b7bbbe90fc3667e98731c4a15ad9a7ae" "checksum url 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "f808aadd8cfec6ef90e4a14eb46f24511824d1ac596b9682703c87056c8678b7" "checksum url_serde 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "74e7d099f1ee52f823d4bdd60c93c3602043c728f5db3b97bdb548467f7bddea" "checksum utf8-ranges 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "662fab6525a98beff2921d7f61a39e7d59e0b425ebc7d0d9e66d316e55124122" "checksum uuid 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)" = "bcc7e3b898aa6f6c08e5295b6c89258d1331e9ac578cc992fb818759951bdc22" -"checksum uuid 0.6.2 (registry+https://github.com/rust-lang/crates.io-index)" = "d4670e1e935f7edd193a413f802e2ee52274aed62a09ccaab1656515c9c53a66" -"checksum vcpkg 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "9e0a7d8bed3178a8fb112199d466eeca9ed09a14ba8ad67718179b4fd5487d0b" +"checksum uuid 0.6.3 (registry+https://github.com/rust-lang/crates.io-index)" = "8630752f979f1b6b87c49830a5e3784082545de63920d59fbaac252474319447" +"checksum vcpkg 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "7ed0f6789c8a85ca41bbc1c9d175422116a9869bd1cf31bb08e1493ecce60380" "checksum vec_map 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)" = "887b5b631c2ad01628bbbaa7dd4c869f80d3186688f8d0b6f58774fbe324988c" "checksum version_check 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)" = "6b772017e347561807c1aa192438c5fd74242a670a6cffacc40f2defd1dc069d" "checksum void 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = "6a02e4885ed3bc0f2de90ea6dd45ebcbb66dacffe03547fadbb0eeae2770887d" diff --git a/todo.org b/todo.org index fa54db9b3..379f10753 100644 --- a/todo.org +++ b/todo.org @@ -10,3 +10,4 @@ * TODO Quote button * TODO Multiquote buttons * TODO Pagination +* TODO Multi-thread guest accounts From 0f6f5aeb4c71835499eae39b921b4d45fac765d8 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Mon, 23 Apr 2018 21:39:33 +0200 Subject: [PATCH 115/163] refactor(build): Use Carnix-based expression for building This is probably going to break Github's language statistics ... --- default.nix | 5182 ++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 5155 insertions(+), 27 deletions(-) diff --git a/default.nix b/default.nix index 479d7807b..33794d1d5 100644 --- a/default.nix +++ b/default.nix @@ -1,31 +1,5159 @@ -{ pkgs ? import {} -, doCheck ? true }: +# Generated by carnix 0.6.7: carnix --standalone -o carnix.nix Cargo.lock +with import {}; +let kernel = buildPlatform.parsed.kernel.name; + abi = buildPlatform.parsed.abi.name; + include = includedFiles: src: + # The comments assume the `include` field of the Cargo.toml like: + # include = [ "foo", "bar" ] + # and the package is being built from /mypackage + # + # includeFiles == [ "foo" "bar" ] + let + # and includedFileAbsolutePaths == [ "/mypackage/foo" "/mypackage/bar" ] + includedFileAbsolutePaths = builtins.map (relativePath: toString (src + ("/" + relativePath))) includedFiles; -# This pins the nixpkgs version to an - admittedly arbitrarily chosen -# - commit with the correct dependencies. -# This should be removed once the majority of relevant machines are -# running NixOS 18.03. + # Return true only when a possible path exactly matches an + # absolute path, ie: + # + # checkExactMatch "/mypackage/foo" == true + # checkExactMatch "/mypackage/foo/bar" == false + # checkExactMatch "/mypackage/baz" == false + checkExactMatch = possiblePath: builtins.elem possiblePath includedFileAbsolutePaths; -let unstable = import (pkgs.fetchFromGitHub { - owner = "NixOS"; - repo = "nixpkgs-channels"; - rev = "ea145b68a019f6fff89e772e9a6c5f0584acc02c"; - sha256 = "18jr124cbgc5zvawvqvvmrp8lq9jcscmn5sg8f5xap6qbg1dgf22"; -}) {}; -in with unstable; rustPlatform.buildRustPackage rec { - name = "converse-${version}"; - version = "0.1.0"; - src = ./.; - cargoSha256 = "0a0634v22wazmyym05x4ricqkxwn4r3spv6s2f3ilma65cy6qyrf"; + # Return true only when a possible path is a suffix to a + # directory described by the include. + # + # checkPrefixMatch "/mypackage/buzfoo" == false + # checkPrefixMatch "/mypackage/foo" == false + # checkPrefixMatch "/mypackage/foo/bar" == true + # checkPrefixMatch "/mypackage/baz/foo" == false + checkPrefixMatch = possiblePath: lib.lists.any + (acceptablePrefix: lib.strings.hasPrefix "${acceptablePrefix}/" possiblePath) + includedFileAbsolutePaths; - buildInputs = [ openssl pkgconfig postgresql.lib ]; - - inherit doCheck; - - meta = with stdenv.lib; { - description = "A simple forum software"; - homepage = "https://github.com/tazjin/converse"; - license = licenses.agpl3; - maintainers = [ maintainers.tazjin ]; + in builtins.filterSource (possiblePath: _type: + builtins.trace "${possiblePath}" ((checkExactMatch possiblePath) || (checkPrefixMatch possiblePath)) + ) + src; + updateFeatures = f: up: functions: builtins.deepSeq f (lib.lists.foldl' (features: fun: fun features) (lib.attrsets.recursiveUpdate f up) functions); + mapFeatures = features: map (fun: fun { features = features; }); + mkFeatures = feat: lib.lists.foldl (features: featureName: + if feat.${featureName} or false then + [ featureName ] ++ features + else + features + ) [] (builtins.attrNames feat); +in +rec { + converse = f: converse_0_1_0 { features = converse_0_1_0_features { converse_0_1_0 = f; }; }; + actix_0_5_6_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "actix"; + version = "0.5.6"; + authors = [ "Nikolay Kim " ]; + sha256 = "13n1fq51banr49xd3pcxwdjciqhmbcpn32ym2m5rpa4bifpvid59"; + libPath = "src/lib.rs"; + build = "build.rs"; + inherit dependencies buildDependencies features; }; -} + actix_web_0_5_4_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "actix-web"; + version = "0.5.4"; + authors = [ "Nikolay Kim " ]; + sha256 = "0282zy6knbwlna2yvvzxzy1b98882n71hz0miljh41bfyd3n39wh"; + libPath = "src/lib.rs"; + libName = "actix_web"; + build = "build.rs"; + inherit dependencies buildDependencies features; + }; + actix_derive_0_2_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "actix_derive"; + version = "0.2.0"; + authors = [ "Callym " "Nikolay Kim " ]; + sha256 = "0mh7wmw4kb8vy6pqzhis2y4qqfdz86c1zn4ns4knmvq3rqcjgqpa"; + procMacro = true; + build = "build.rs"; + inherit dependencies buildDependencies features; + }; + adler32_1_0_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "adler32"; + version = "1.0.2"; + authors = [ "Remi Rampin " ]; + sha256 = "1974q3nysai026zhz24df506cxwi09jdzqksll4h7ibpb5n9g1d4"; + inherit dependencies buildDependencies features; + }; + aho_corasick_0_6_4_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "aho-corasick"; + version = "0.6.4"; + authors = [ "Andrew Gallant " ]; + sha256 = "189v919mp6rzzgjp1khpn4zlq8ls81gh43x1lmc8kbkagdlpq888"; + libName = "aho_corasick"; + crateBin = [ { name = "aho-corasick-dot"; } ]; + inherit dependencies buildDependencies features; + }; + ansi_term_0_11_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "ansi_term"; + version = "0.11.0"; + authors = [ "ogham@bsago.me" "Ryan Scheel (Havvy) " "Josh Triplett " ]; + sha256 = "08fk0p2xvkqpmz3zlrwnf6l8sj2vngw464rvzspzp31sbgxbwm4v"; + inherit dependencies buildDependencies features; + }; + antidote_1_0_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "antidote"; + version = "1.0.0"; + authors = [ "Steven Fackler " ]; + sha256 = "1x2wgaw603jcjwsfvc8s2rpaqjv0aqj8mvws2ahhkvfnwkdf7icw"; + inherit dependencies buildDependencies features; + }; + arrayvec_0_4_7_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "arrayvec"; + version = "0.4.7"; + authors = [ "bluss" ]; + sha256 = "0fzgv7z1x1qnyd7j32vdcadk4k9wfx897y06mr3bw1yi52iqf4z4"; + inherit dependencies buildDependencies features; + }; + atty_0_2_9_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "atty"; + version = "0.2.9"; + authors = [ "softprops " ]; + sha256 = "1qww3g9698kv583kgy7vy1lc2176rgs9g54gcw6iv2grymbpxk75"; + inherit dependencies buildDependencies features; + }; + backtrace_0_2_3_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "backtrace"; + version = "0.2.3"; + authors = [ "Alex Crichton " "The Rust Project Developers" ]; + sha256 = "12bv0zibls8wckz082jnky2ixykhixc7f72n652nd7l3ljlmkzim"; + build = "build.rs"; + inherit dependencies buildDependencies features; + }; + backtrace_0_3_6_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "backtrace"; + version = "0.3.6"; + authors = [ "Alex Crichton " "The Rust Project Developers" ]; + sha256 = "00p77iqrv2p47m4y5lq1clb8fi1xfmnz2520frqx88497ff4zhrx"; + inherit dependencies buildDependencies features; + }; + backtrace_sys_0_1_16_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "backtrace-sys"; + version = "0.1.16"; + authors = [ "Alex Crichton " ]; + sha256 = "1cn2c8q3dn06crmnk0p62czkngam4l8nf57wy33nz1y5g25pszwy"; + build = "build.rs"; + inherit dependencies buildDependencies features; + }; + base64_0_6_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "base64"; + version = "0.6.0"; + authors = [ "Alice Maz " "Marshall Pierce " ]; + sha256 = "0ql1rmczbnww3iszc0pfc6mqa47ravpsdf525vp6s8r32nyzspl5"; + inherit dependencies buildDependencies features; + }; + base64_0_9_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "base64"; + version = "0.9.1"; + authors = [ "Alice Maz " "Marshall Pierce " ]; + sha256 = "0fnsgkhn6aqbvvgbpcyzy1dbx840g0x5rvxdf82c5pv23knl0j0a"; + inherit dependencies buildDependencies features; + }; + bitflags_0_9_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "bitflags"; + version = "0.9.1"; + authors = [ "The Rust Project Developers" ]; + sha256 = "18h073l5jd88rx4qdr95fjddr9rk79pb1aqnshzdnw16cfmb9rws"; + inherit dependencies buildDependencies features; + }; + bitflags_1_0_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "bitflags"; + version = "1.0.1"; + authors = [ "The Rust Project Developers" ]; + sha256 = "0p4b3nr0s5nda2qmm7xdhnvh4lkqk3xd8l9ffmwbvqw137vx7mj1"; + inherit dependencies buildDependencies features; + }; + brotli_sys_0_3_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "brotli-sys"; + version = "0.3.2"; + authors = [ "Alex Crichton " ]; + sha256 = "0b68xckd06a5gvdykimgr5f0f2whrhj0lwqq6scy0viaargqkdnl"; + build = "build.rs"; + inherit dependencies buildDependencies features; + }; + brotli2_0_3_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "brotli2"; + version = "0.3.2"; + authors = [ "Alex Crichton " ]; + sha256 = "1daqrhn50rr8k03h7dd2zkjc0qn2c45q6hrmi642fnz0y5rfwm5y"; + inherit dependencies buildDependencies features; + }; + build_const_0_2_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "build_const"; + version = "0.2.1"; + authors = [ "Garrett Berg " ]; + sha256 = "15249xzi3qlm72p4glxgavwyq70fx2sp4df6ii0sdlrixrrp77pl"; + inherit dependencies buildDependencies features; + }; + bytecount_0_2_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "bytecount"; + version = "0.2.0"; + authors = [ "Andre Bogus " "Joshua Landau " ]; + sha256 = "0aa82dv2mdx01n8wrhqj7bzdffyw5p4fdps4lf4a2h2dkn7sgjg1"; + inherit dependencies buildDependencies features; + }; + byteorder_1_2_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "byteorder"; + version = "1.2.2"; + authors = [ "Andrew Gallant " ]; + sha256 = "03cj21di3hck3w8a09z2b9a4jv0aay7a4bjdd1f86h3a4icl68m1"; + inherit dependencies buildDependencies features; + }; + bytes_0_4_6_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "bytes"; + version = "0.4.6"; + authors = [ "Carl Lerche " ]; + sha256 = "0q7adalpqd09qhxgszw72rd55whgpchpc4r523qhlmaw4gipjsa2"; + inherit dependencies buildDependencies features; + }; + cargo_metadata_0_3_3_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "cargo_metadata"; + version = "0.3.3"; + authors = [ "Oliver Schneider " ]; + sha256 = "0vdxzdh6qmqdlcigvkzya5a4d4f9p0awm2kgkjgnxbc50y1xrndz"; + inherit dependencies buildDependencies features; + }; + cc_1_0_10_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "cc"; + version = "1.0.10"; + authors = [ "Alex Crichton " ]; + sha256 = "0fqchrxcrd2j2b9x7cqs49ck7b3ilsap8s9xhs75gzgl6c1ylpdn"; + inherit dependencies buildDependencies features; + }; + cfg_if_0_1_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "cfg-if"; + version = "0.1.2"; + authors = [ "Alex Crichton " ]; + sha256 = "0x06hvrrqy96m97593823vvxcgvjaxckghwyy2jcyc8qc7c6cyhi"; + inherit dependencies buildDependencies features; + }; + chrono_0_4_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "chrono"; + version = "0.4.2"; + authors = [ "Kang Seonghoon " "Brandon W Maister " ]; + sha256 = "1zp63v1g56kfjnazmqg8s4gb66l0ra8ggn3gzqbf9sr8d5lnfzak"; + inherit dependencies buildDependencies features; + }; + clap_2_31_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "clap"; + version = "2.31.2"; + authors = [ "Kevin K. " ]; + sha256 = "0r24ziw85a8y1sf2l21y4mvv5qan3rjafcshpyfsjfadqfxsij72"; + inherit dependencies buildDependencies features; + }; + comrak_0_2_9_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "comrak"; + version = "0.2.9"; + authors = [ "Ashe Connor " ]; + sha256 = "14pqn1m2yiyhanbnvza8zc2y8k7yzz0jdxqxpxi02d38d211wi2d"; + crateBin = [ { name = "comrak"; } ]; + inherit dependencies buildDependencies features; + }; + converse_0_1_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "converse"; + version = "0.1.0"; + authors = [ "Vincent Ambo " ]; + src = ./.; + inherit dependencies buildDependencies features; + }; + cookie_0_10_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "cookie"; + version = "0.10.1"; + authors = [ "Alex Crichton " "Sergio Benitez " ]; + sha256 = "0sipihjzmipb13i2hzlvzsyljj00cjs7vx1ymslxr9m6kl2y0qpq"; + inherit dependencies buildDependencies features; + }; + core_foundation_0_2_3_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "core-foundation"; + version = "0.2.3"; + authors = [ "The Servo Project Developers" ]; + sha256 = "1g0vpya5h2wa0nlz4a74jar6y8z09f0p76zbzfqrm3dbfsrld1pm"; + inherit dependencies buildDependencies features; + }; + core_foundation_sys_0_2_3_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "core-foundation-sys"; + version = "0.2.3"; + authors = [ "The Servo Project Developers" ]; + sha256 = "19s0d03294m9s5j8cvy345db3gkhs2y02j5268ap0c6ky5apl53s"; + build = "build.rs"; + inherit dependencies buildDependencies features; + }; + crc_1_7_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "crc"; + version = "1.7.0"; + authors = [ "Rui Hu " ]; + sha256 = "1m4lfnjf5qvgy7is97kyi5jjpk6kw0hp088fi59cl7ms1gc9knv0"; + inherit dependencies buildDependencies features; + }; + crossbeam_channel_0_1_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "crossbeam-channel"; + version = "0.1.2"; + authors = [ "The Crossbeam Project Developers" ]; + sha256 = "008xqz8w58sl43fmwpqqf08lp33sjq9gnmbgzw04l6ry7kidwm56"; + inherit dependencies buildDependencies features; + }; + crossbeam_deque_0_2_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "crossbeam-deque"; + version = "0.2.0"; + authors = [ "The Crossbeam Project Developers" ]; + sha256 = "1h3n1p1qy45b6388j3svfy1m72xlcx9j9a5y0mww6jz8fmknipnb"; + inherit dependencies buildDependencies features; + }; + crossbeam_deque_0_3_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "crossbeam-deque"; + version = "0.3.0"; + authors = [ "The Crossbeam Project Developers" ]; + sha256 = "0skpja7ri6q34li5plq8yk7xinc853014ra59ra9l5sdspcbdypa"; + inherit dependencies buildDependencies features; + }; + crossbeam_epoch_0_2_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "crossbeam-epoch"; + version = "0.2.0"; + authors = [ "The Crossbeam Project Developers" ]; + sha256 = "05hyrrbmz64z0gz6n9h6jmx7swnhika90h96fcyd83psjwpkap88"; + inherit dependencies buildDependencies features; + }; + crossbeam_epoch_0_3_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "crossbeam-epoch"; + version = "0.3.1"; + authors = [ "The Crossbeam Project Developers" ]; + sha256 = "1ljrrpvalabi3r2nnpcz7rqkbl2ydmd0mrrr2fv335f7d46xgfxa"; + inherit dependencies buildDependencies features; + }; + crossbeam_epoch_0_4_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "crossbeam-epoch"; + version = "0.4.1"; + authors = [ "The Crossbeam Project Developers" ]; + sha256 = "134565vkm0h14bk8c3bw0f7n8zzhwl6zi8127zvpa8iglchafn0a"; + inherit dependencies buildDependencies features; + }; + crossbeam_utils_0_2_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "crossbeam-utils"; + version = "0.2.2"; + authors = [ "The Crossbeam Project Developers" ]; + sha256 = "0jiwzxv0lysjq68yk4bzkygrf69zhdidyw55nxlmimxlm6xv0j4m"; + inherit dependencies buildDependencies features; + }; + crossbeam_utils_0_3_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "crossbeam-utils"; + version = "0.3.2"; + authors = [ "The Crossbeam Project Developers" ]; + sha256 = "1byx31nkxl48la58571h40ssk94faky26jwz15w40v2gba3v4fql"; + inherit dependencies buildDependencies features; + }; + dbghelp_sys_0_2_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "dbghelp-sys"; + version = "0.2.0"; + authors = [ "Peter Atashian " ]; + sha256 = "0ylpi3bbiy233m57hnisn1df1v0lbl7nsxn34b0anzsgg440hqpq"; + libName = "dbghelp"; + build = "build.rs"; + inherit dependencies buildDependencies features; + }; + diesel_1_2_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "diesel"; + version = "1.2.2"; + authors = [ "Sean Griffin " ]; + sha256 = "0bcy779ndq9l2l2vh3a7h1s1s2cw67365vkx4zhxdq22wyb8z90w"; + inherit dependencies buildDependencies features; + }; + diesel_derives_1_2_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "diesel_derives"; + version = "1.2.0"; + authors = [ "Sean Griffin " ]; + sha256 = "0ykq7c77zsdsak0r8d384nnca9fglhih6jq66d0b9sws8vjvn4m1"; + procMacro = true; + inherit dependencies buildDependencies features; + }; + dtoa_0_4_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "dtoa"; + version = "0.4.2"; + authors = [ "David Tolnay " ]; + sha256 = "1bxsh6fags7nr36vlz07ik2a1rzyipc8x1y30kjk832hf2pzadmw"; + inherit dependencies buildDependencies features; + }; + encoding_0_2_33_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "encoding"; + version = "0.2.33"; + authors = [ "Kang Seonghoon " ]; + sha256 = "16ls6avhv5ll28zajl5q1jbiz1g80c4ygnw13zzqmij14wsp5329"; + inherit dependencies buildDependencies features; + }; + encoding_index_japanese_1_20141219_5_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "encoding-index-japanese"; + version = "1.20141219.5"; + authors = [ "Kang Seonghoon " ]; + sha256 = "1pmfaabps0x6v6cd4fbk9ssykhkmc799dma2y78fhk7gvyr5gyl4"; + libPath = "lib.rs"; + libName = "encoding_index_japanese"; + inherit dependencies buildDependencies features; + }; + encoding_index_korean_1_20141219_5_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "encoding-index-korean"; + version = "1.20141219.5"; + authors = [ "Kang Seonghoon " ]; + sha256 = "1b756n7gcilkx07y7zjrikcg0b8v8yd6mw8w01ji8sp3k1cabcf2"; + libPath = "lib.rs"; + libName = "encoding_index_korean"; + inherit dependencies buildDependencies features; + }; + encoding_index_simpchinese_1_20141219_5_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "encoding-index-simpchinese"; + version = "1.20141219.5"; + authors = [ "Kang Seonghoon " ]; + sha256 = "0rb4xd8cqymhqffqqxdk18mf9n354vs50ar66jrysb1z6ymcvvpy"; + libPath = "lib.rs"; + libName = "encoding_index_simpchinese"; + inherit dependencies buildDependencies features; + }; + encoding_index_singlebyte_1_20141219_5_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "encoding-index-singlebyte"; + version = "1.20141219.5"; + authors = [ "Kang Seonghoon " ]; + sha256 = "07df3jrfwfmzi2s352lvcpvy5dqpy2s45d2xx2dz1x7zh3q5284d"; + libPath = "lib.rs"; + libName = "encoding_index_singlebyte"; + inherit dependencies buildDependencies features; + }; + encoding_index_tradchinese_1_20141219_5_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "encoding-index-tradchinese"; + version = "1.20141219.5"; + authors = [ "Kang Seonghoon " ]; + sha256 = "0lb12nbv29cy41gx26yz3v4kfi8h1xbn1ppja8szgqi2zm1wlywn"; + libPath = "lib.rs"; + libName = "encoding_index_tradchinese"; + inherit dependencies buildDependencies features; + }; + encoding_index_tests_0_1_4_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "encoding_index_tests"; + version = "0.1.4"; + authors = [ "Kang Seonghoon " ]; + sha256 = "0z09kwh4z76q00cfr081rgjbnai4s2maq2vk88lgrq9d6bkf93f6"; + libPath = "index_tests.rs"; + inherit dependencies buildDependencies features; + }; + encoding_rs_0_7_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "encoding_rs"; + version = "0.7.2"; + authors = [ "Henri Sivonen " ]; + sha256 = "1c23bi3q4qmi2ci8g7p5j4b4i5abyggvyg6hkl7w4p4r527c9g3q"; + inherit dependencies buildDependencies features; + }; + entities_1_0_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "entities"; + version = "1.0.1"; + authors = [ "Philip Jackson " ]; + sha256 = "1wvhgyl5mbbh3psw7c5w3mli6h87bk78aqap49mhp0654k87zw5g"; + inherit dependencies buildDependencies features; + }; + env_logger_0_5_9_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "env_logger"; + version = "0.5.9"; + authors = [ "The Rust Project Developers" ]; + sha256 = "1scf1gd6mjvxj4qzibpfvw5kqj36vxsgs19lm6wnbd84kh78892v"; + inherit dependencies buildDependencies features; + }; + error_chain_0_1_12_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "error-chain"; + version = "0.1.12"; + authors = [ "Brian Anderson " "Paul Colomiets " "Colin Kiegel " ]; + sha256 = "0pc1b8zbmim3qhlb0wfpxbvjhpq411rs0l9jzxplyr7j0b0wgbg1"; + inherit dependencies buildDependencies features; + }; + error_chain_0_8_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "error-chain"; + version = "0.8.1"; + authors = [ "Brian Anderson " "Paul Colomiets " "Colin Kiegel " "Yamakaky " ]; + sha256 = "0jaipqr2l2v84raynz3bvb0vnzysk7515j3mnb9i7g1qqprg2waq"; + inherit dependencies buildDependencies features; + }; + error_chain_0_11_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "error-chain"; + version = "0.11.0"; + authors = [ "Brian Anderson " "Paul Colomiets " "Colin Kiegel " "Yamakaky " ]; + sha256 = "19nz17q6dzp0mx2jhh9qbj45gkvvgcl7zq9z2ai5a8ihbisfj6d7"; + inherit dependencies buildDependencies features; + }; + failure_0_1_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "failure"; + version = "0.1.1"; + authors = [ "Without Boats " ]; + sha256 = "0gf9cmkm9kc163sszgjksqp5pcgj689lnf2104nn4h4is18nhigk"; + inherit dependencies buildDependencies features; + }; + failure_derive_0_1_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "failure_derive"; + version = "0.1.1"; + authors = [ "Without Boats " ]; + sha256 = "1w895q4pbyx3rwnhgjwfcayk9ghbi166wc1c3553qh8zkbz52k8i"; + procMacro = true; + inherit dependencies buildDependencies features; + }; + flate2_1_0_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "flate2"; + version = "1.0.1"; + authors = [ "Alex Crichton " ]; + sha256 = "0hi1r0sz8ca750hq9ym6d3n99g6rmmm8m8hadz2v49pfh6jd6svc"; + inherit dependencies buildDependencies features; + }; + fnv_1_0_6_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "fnv"; + version = "1.0.6"; + authors = [ "Alex Crichton " ]; + sha256 = "128mlh23y3gg6ag5h8iiqlcbl59smisdzraqy88ldrf75kbw27ip"; + libPath = "lib.rs"; + inherit dependencies buildDependencies features; + }; + foreign_types_0_3_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "foreign-types"; + version = "0.3.2"; + authors = [ "Steven Fackler " ]; + sha256 = "105n8sp2djb1s5lzrw04p7ss3dchr5qa3canmynx396nh3vwm2p8"; + inherit dependencies buildDependencies features; + }; + foreign_types_shared_0_1_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "foreign-types-shared"; + version = "0.1.1"; + authors = [ "Steven Fackler " ]; + sha256 = "0b6cnvqbflws8dxywk4589vgbz80049lz4x1g9dfy4s1ppd3g4z5"; + inherit dependencies buildDependencies features; + }; + fuchsia_zircon_0_3_3_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "fuchsia-zircon"; + version = "0.3.3"; + authors = [ "Raph Levien " ]; + sha256 = "0jrf4shb1699r4la8z358vri8318w4mdi6qzfqy30p2ymjlca4gk"; + inherit dependencies buildDependencies features; + }; + fuchsia_zircon_sys_0_3_3_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "fuchsia-zircon-sys"; + version = "0.3.3"; + authors = [ "Raph Levien " ]; + sha256 = "08jp1zxrm9jbrr6l26bjal4dbm8bxfy57ickdgibsqxr1n9j3hf5"; + inherit dependencies buildDependencies features; + }; + futures_0_1_21_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "futures"; + version = "0.1.21"; + authors = [ "Alex Crichton " ]; + sha256 = "0v4xrgkqx189b3b4lad2z5l9ay261p9412bzcdh1z6agxwhldr40"; + inherit dependencies buildDependencies features; + }; + futures_cpupool_0_1_8_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "futures-cpupool"; + version = "0.1.8"; + authors = [ "Alex Crichton " ]; + sha256 = "0ficd31n5ljiixy6x0vjglhq4fp0v1p4qzxm3v6ymsrb3z080l5c"; + inherit dependencies buildDependencies features; + }; + gcc_0_3_54_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "gcc"; + version = "0.3.54"; + authors = [ "Alex Crichton " ]; + sha256 = "07a5i47r8achc6gxsba3ga17h9gnh4b9a2cak8vjg4hx62aajkr4"; + inherit dependencies buildDependencies features; + }; + glob_0_2_11_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "glob"; + version = "0.2.11"; + authors = [ "The Rust Project Developers" ]; + sha256 = "104389jjxs8r2f5cc9p0axhjmndgln60ih5x4f00ccgg9d3zarlf"; + inherit dependencies buildDependencies features; + }; + h2_0_1_5_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "h2"; + version = "0.1.5"; + authors = [ "Carl Lerche " ]; + sha256 = "07h3qviv1rsg2sjv85b7kzvakxg0md2b9azgwpdwkc61jxgrgywd"; + inherit dependencies buildDependencies features; + }; + hostname_0_1_4_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "hostname"; + version = "0.1.4"; + authors = [ "fengcen " ]; + sha256 = "1wfz2afh9xjd5rdxgyrhvhl6z1vvdch5nnd7miw2pi3i90fw4r1h"; + libPath = "src/lib.rs"; + inherit dependencies buildDependencies features; + }; + http_0_1_5_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "http"; + version = "0.1.5"; + authors = [ "Alex Crichton " "Carl Lerche " "Sean McArthur " ]; + sha256 = "07p5q6h45r0hlnd6vg344iy72jk7xphzf6p38gb4fhb9iibnwn08"; + inherit dependencies buildDependencies features; + }; + http_range_0_1_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "http-range"; + version = "0.1.1"; + authors = [ "Luka Zakrajšek " ]; + sha256 = "1zl43iw110ybbl9g24jhwylqbwgwm25vpv9m47sfwy2ajaqb7b3g"; + inherit dependencies buildDependencies features; + }; + httparse_1_2_4_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "httparse"; + version = "1.2.4"; + authors = [ "Sean McArthur " ]; + sha256 = "169grgxpsq0jaa2fk913z692a6qi8c2n1kypsay124b37720d8ll"; + inherit dependencies buildDependencies features; + }; + humansize_1_1_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "humansize"; + version = "1.1.0"; + authors = [ "Leopold Arkham " ]; + sha256 = "1s7jj570vz90b7wsgd24lla1yn9qp3swgv9c7jgkgrw6bxynbv0p"; + inherit dependencies buildDependencies features; + }; + humantime_1_1_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "humantime"; + version = "1.1.1"; + authors = [ "Paul Colomiets " ]; + sha256 = "1lzdfsfzdikcp1qb6wcdvnsdv16pmzr7p7cv171vnbnyz2lrwbgn"; + libPath = "src/lib.rs"; + inherit dependencies buildDependencies features; + }; + hyper_0_11_25_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "hyper"; + version = "0.11.25"; + authors = [ "Sean McArthur " ]; + sha256 = "01sz75yi93x3hnyrr1n782kv5s1bzcr0114ylyw484j9xpsghw7d"; + inherit dependencies buildDependencies features; + }; + hyper_tls_0_1_3_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "hyper-tls"; + version = "0.1.3"; + authors = [ "Sean McArthur " ]; + sha256 = "1dr5arj79pdyz9f2jggqmna1qpc578f9pdgsf2ana5amjpsp0j89"; + inherit dependencies buildDependencies features; + }; + idna_0_1_4_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "idna"; + version = "0.1.4"; + authors = [ "The rust-url developers" ]; + sha256 = "15j44qgjx1skwg9i7f4cm36ni4n99b1ayx23yxx7axxcw8vjf336"; + inherit dependencies buildDependencies features; + }; + indexmap_1_0_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "indexmap"; + version = "1.0.1"; + authors = [ "bluss" "Josh Stone " ]; + sha256 = "10ak26zp3i5iyb03l99312q66jl20qs45cm5jnghm9ymdhspw3r4"; + inherit dependencies buildDependencies features; + }; + iovec_0_1_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "iovec"; + version = "0.1.2"; + authors = [ "Carl Lerche " ]; + sha256 = "0vjymmb7wj4v4kza5jjn48fcdb85j3k37y7msjl3ifz0p9yiyp2r"; + inherit dependencies buildDependencies features; + }; + ipconfig_0_1_6_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "ipconfig"; + version = "0.1.6"; + authors = [ "Liran Ringel " ]; + sha256 = "1jax0paxr9m2qfmc5l386d65m2g2wyzy077wzmbryv14d6dncfp8"; + inherit dependencies buildDependencies features; + }; + itoa_0_3_4_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "itoa"; + version = "0.3.4"; + authors = [ "David Tolnay " ]; + sha256 = "1nfkzz6vrgj0d9l3yzjkkkqzdgs68y294fjdbl7jq118qi8xc9d9"; + inherit dependencies buildDependencies features; + }; + itoa_0_4_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "itoa"; + version = "0.4.1"; + authors = [ "David Tolnay " ]; + sha256 = "1jyrsmrm5q4r2ipmq5hvvkqg0mgnlbk44lm7gr0v9ymvbrh2gbij"; + inherit dependencies buildDependencies features; + }; + kernel32_sys_0_2_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "kernel32-sys"; + version = "0.2.2"; + authors = [ "Peter Atashian " ]; + sha256 = "1lrw1hbinyvr6cp28g60z97w32w8vsk6pahk64pmrv2fmby8srfj"; + libName = "kernel32"; + build = "build.rs"; + inherit dependencies buildDependencies features; + }; + language_tags_0_2_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "language-tags"; + version = "0.2.2"; + authors = [ "Pyfisch " ]; + sha256 = "1zkrdzsqzzc7509kd7nngdwrp461glm2g09kqpzaqksp82frjdvy"; + inherit dependencies buildDependencies features; + }; + lazy_static_0_2_11_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "lazy_static"; + version = "0.2.11"; + authors = [ "Marvin Löbel " ]; + sha256 = "1x6871cvpy5b96yv4c7jvpq316fp5d4609s9py7qk6cd6x9k34vm"; + inherit dependencies buildDependencies features; + }; + lazy_static_1_0_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "lazy_static"; + version = "1.0.0"; + authors = [ "Marvin Löbel " ]; + sha256 = "0wfvqyr2nvx2mbsrscg5y7gfa9skhb8p72ayanl8vl49pw24v4fh"; + inherit dependencies buildDependencies features; + }; + lazycell_0_6_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "lazycell"; + version = "0.6.0"; + authors = [ "Alex Crichton " "Nikita Pekin " ]; + sha256 = "1ax148clinbvp6alxcih8s5i2bg3mc5mi69n3hvzvzbwlm6k532r"; + inherit dependencies buildDependencies features; + }; + libc_0_2_40_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "libc"; + version = "0.2.40"; + authors = [ "The Rust Project Developers" ]; + sha256 = "1xfc39237ldzgr8x8wcflgdr8zssi3wif7g2zxc02d94gzkjsw83"; + inherit dependencies buildDependencies features; + }; + libflate_0_1_14_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "libflate"; + version = "0.1.14"; + authors = [ "Takeru Ohta " ]; + sha256 = "03zq769bfffg3iyp2vkkjsmkskabrxiyh5khzppyyngm8w9xpdsc"; + inherit dependencies buildDependencies features; + }; + linked_hash_map_0_4_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "linked-hash-map"; + version = "0.4.2"; + authors = [ "Stepan Koltsov " "Andrew Paseltiner " ]; + sha256 = "04da208h6jb69f46j37jnvsw2i1wqplglp4d61csqcrhh83avbgl"; + inherit dependencies buildDependencies features; + }; + log_0_3_9_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "log"; + version = "0.3.9"; + authors = [ "The Rust Project Developers" ]; + sha256 = "19i9pwp7lhaqgzangcpw00kc3zsgcqcx84crv07xgz3v7d3kvfa2"; + inherit dependencies buildDependencies features; + }; + log_0_4_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "log"; + version = "0.4.1"; + authors = [ "The Rust Project Developers" ]; + sha256 = "01vm8yy3wngvyj6qp1x3xpcb4xq7v67yn9l7fsma8kz28mliz90d"; + inherit dependencies buildDependencies features; + }; + lru_cache_0_1_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "lru-cache"; + version = "0.1.1"; + authors = [ "Stepan Koltsov " ]; + sha256 = "1hl6kii1g54sq649gnscv858mmw7a02xj081l4vcgvrswdi2z8fw"; + inherit dependencies buildDependencies features; + }; + matches_0_1_6_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "matches"; + version = "0.1.6"; + authors = [ "Simon Sapin " ]; + sha256 = "1zlrqlbvzxdil8z8ial2ihvxjwvlvg3g8dr0lcdpsjclkclasjan"; + libPath = "lib.rs"; + inherit dependencies buildDependencies features; + }; + md5_0_3_7_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "md5"; + version = "0.3.7"; + authors = [ "Ivan Ukhov " "Kamal Ahmad " "Konstantin Stepanov " "Lukas Kalbertodt " "Nathan Musoke " "Tony Arcieri " ]; + sha256 = "1ga55k7asxln553m89ccka2hnp5gkvacxl98r3nmx4d9mzvwn352"; + inherit dependencies buildDependencies features; + }; + memchr_2_0_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "memchr"; + version = "2.0.1"; + authors = [ "Andrew Gallant " "bluss" ]; + sha256 = "0ls2y47rjwapjdax6bp974gdp06ggm1v8d1h69wyydmh1nhgm5gr"; + inherit dependencies buildDependencies features; + }; + memoffset_0_1_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "memoffset"; + version = "0.1.0"; + authors = [ "Gilad Naaman " ]; + sha256 = "1jq5vcfwqwxl709985srmsxs229da2hq3ab11fx3abbx1bpxcgx1"; + inherit dependencies buildDependencies features; + }; + memoffset_0_2_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "memoffset"; + version = "0.2.1"; + authors = [ "Gilad Naaman " ]; + sha256 = "00vym01jk9slibq2nsiilgffp7n6k52a4q3n4dqp0xf5kzxvffcf"; + inherit dependencies buildDependencies features; + }; + mime_0_3_5_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "mime"; + version = "0.3.5"; + authors = [ "Sean McArthur " ]; + sha256 = "032y8q6h7yzmji1cznw04grbi0inbl1m6rcwgsqfwiw8gflcgy0l"; + inherit dependencies buildDependencies features; + }; + mime_guess_2_0_0_alpha_4_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "mime_guess"; + version = "2.0.0-alpha.4"; + authors = [ "Austin Bonander " ]; + sha256 = "1kz8j1hb4azgyzcs6bnrrygv0ykjp170llri0is031q01vi7fgnh"; + inherit dependencies buildDependencies features; + }; + miniz_sys_0_1_10_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "miniz-sys"; + version = "0.1.10"; + authors = [ "Alex Crichton " ]; + sha256 = "11vg6phafxil87nbxgrlhcx5hjr3145wsbwwkfmibvnmzxfdmvln"; + libPath = "lib.rs"; + libName = "miniz_sys"; + build = "build.rs"; + inherit dependencies buildDependencies features; + }; + mio_0_6_14_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "mio"; + version = "0.6.14"; + authors = [ "Carl Lerche " ]; + sha256 = "0zws9p0d734qps4wdv47d32mmpb85caf9l2arwhxc7pslqk4icap"; + inherit dependencies buildDependencies features; + }; + mio_uds_0_6_4_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "mio-uds"; + version = "0.6.4"; + authors = [ "Alex Crichton " ]; + sha256 = "0migvjj2psaln6169rmyci5v6kvx5b7ylj5a6i2dkw98dylf2s1m"; + inherit dependencies buildDependencies features; + }; + miow_0_2_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "miow"; + version = "0.2.1"; + authors = [ "Alex Crichton " ]; + sha256 = "14f8zkc6ix7mkyis1vsqnim8m29b6l55abkba3p2yz7j1ibcvrl0"; + inherit dependencies buildDependencies features; + }; + native_tls_0_1_5_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "native-tls"; + version = "0.1.5"; + authors = [ "Steven Fackler " ]; + sha256 = "11f75qmbny5pnn6zp0vlvadrvc9ph9qsxiyn4n6q02xyd93pxxlf"; + inherit dependencies buildDependencies features; + }; + net2_0_2_32_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "net2"; + version = "0.2.32"; + authors = [ "Alex Crichton " ]; + sha256 = "15q3il71qaqrwz8q1nz0jyw5q4fl0vrkajgaj909zradxsxv1mcq"; + inherit dependencies buildDependencies features; + }; + nodrop_0_1_12_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "nodrop"; + version = "0.1.12"; + authors = [ "bluss" ]; + sha256 = "1b9rxvdg8061gxjc239l9slndf0ds3m6fy2sf3gs8f9kknqgl49d"; + inherit dependencies buildDependencies features; + }; + num_integer_0_1_36_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "num-integer"; + version = "0.1.36"; + authors = [ "The Rust Project Developers" ]; + sha256 = "1fjprz9h8b04zrsnfmkkfhiw4w852bbh16hy8w9ahlcdhg77i66y"; + inherit dependencies buildDependencies features; + }; + num_traits_0_2_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "num-traits"; + version = "0.2.2"; + authors = [ "The Rust Project Developers" ]; + sha256 = "1gcqhcd27gi72al5salxlp3m374qr3xnc3zh249f7dsrxc9rmgh0"; + inherit dependencies buildDependencies features; + }; + num_cpus_1_8_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "num_cpus"; + version = "1.8.0"; + authors = [ "Sean McArthur " ]; + sha256 = "1y6qnd9r8ga6y8mvlabdrr73nc8cshjjlzbvnanzyj9b8zzkfwk2"; + inherit dependencies buildDependencies features; + }; + openssl_0_9_24_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "openssl"; + version = "0.9.24"; + authors = [ "Steven Fackler " ]; + sha256 = "0wzm3c11g3ndaqyzq36mcdcm1q4a8pmsyi33ibybhjz28g2z0f79"; + build = "build.rs"; + inherit dependencies buildDependencies features; + }; + openssl_sys_0_9_28_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "openssl-sys"; + version = "0.9.28"; + authors = [ "Alex Crichton " "Steven Fackler " ]; + sha256 = "0067nk1p9jwipx226gfldyxw6h4wlvvqwgh7iak7d1x8dbw4vyq6"; + inherit dependencies buildDependencies features; + }; + owning_ref_0_3_3_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "owning_ref"; + version = "0.3.3"; + authors = [ "Marvin Löbel " ]; + sha256 = "13ivn0ydc0hf957ix0f5si9nnplzzykbr70hni1qz9m19i9kvmrh"; + inherit dependencies buildDependencies features; + }; + parking_lot_0_4_8_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "parking_lot"; + version = "0.4.8"; + authors = [ "Amanieu d'Antras " ]; + sha256 = "0qrb2f0azglbsx7k3skgnc7mmv9z9spnqgk1m450g91r94nlklqi"; + inherit dependencies buildDependencies features; + }; + parking_lot_core_0_2_13_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "parking_lot_core"; + version = "0.2.13"; + authors = [ "Amanieu d'Antras " ]; + sha256 = "178j9qdrkfm8kw2i57rll1k066x07rjr4ld3hkhk6sfz4dmhzpi8"; + inherit dependencies buildDependencies features; + }; + percent_encoding_1_0_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "percent-encoding"; + version = "1.0.1"; + authors = [ "The rust-url developers" ]; + sha256 = "04ahrp7aw4ip7fmadb0bknybmkfav0kk0gw4ps3ydq5w6hr0ib5i"; + libPath = "lib.rs"; + inherit dependencies buildDependencies features; + }; + pest_1_0_6_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "pest"; + version = "1.0.6"; + authors = [ "Dragoș Tiselice " ]; + sha256 = "07r7aq8fni6ycjn3mlpam95pd4hlwylqqprv62ni488pjbkhcp5d"; + inherit dependencies buildDependencies features; + }; + pest_derive_1_0_7_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "pest_derive"; + version = "1.0.7"; + authors = [ "Dragoș Tiselice " ]; + sha256 = "1jmw7ai3adwrp81ygs2l9i9fqm33b0m87j6rwcn3rvis4gg12kyc"; + procMacro = true; + inherit dependencies buildDependencies features; + }; + phf_0_7_21_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "phf"; + version = "0.7.21"; + authors = [ "Steven Fackler " ]; + sha256 = "11m2rzm2s8s35m0s97gjxxb181xz352kjlhr387xj5c8q3qp5afg"; + libPath = "src/lib.rs"; + inherit dependencies buildDependencies features; + }; + phf_codegen_0_7_21_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "phf_codegen"; + version = "0.7.21"; + authors = [ "Steven Fackler " ]; + sha256 = "0kgy8s2q4zr0iqcm21mgq4ppc45wy6z7b5wn98xyfsrcad6lwmmj"; + inherit dependencies buildDependencies features; + }; + phf_generator_0_7_21_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "phf_generator"; + version = "0.7.21"; + authors = [ "Steven Fackler " ]; + sha256 = "1jxjfzc6d6d4l9nv0r2bb66if5brk9lnncmg4dpjjifn6zhhqd9g"; + inherit dependencies buildDependencies features; + }; + phf_shared_0_7_21_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "phf_shared"; + version = "0.7.21"; + authors = [ "Steven Fackler " ]; + sha256 = "0lxpg3wgxfhzfalmf9ha9my1lsvfjy74ah9f6mfw88xlp545jlln"; + libPath = "src/lib.rs"; + inherit dependencies buildDependencies features; + }; + pkg_config_0_3_9_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "pkg-config"; + version = "0.3.9"; + authors = [ "Alex Crichton " ]; + sha256 = "06k8fxgrsrxj8mjpjcq1n7mn2p1shpxif4zg9y5h09c7vy20s146"; + inherit dependencies buildDependencies features; + }; + pq_sys_0_4_4_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "pq-sys"; + version = "0.4.4"; + authors = [ "Sean Griffin " ]; + sha256 = "1iqgs12mzx711ab1idiq4ryj27f8srwh83syj0ahvmbp5b8szggg"; + libName = "pq_sys"; + build = "build.rs"; + inherit dependencies buildDependencies features; + }; + proc_macro2_0_2_3_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "proc-macro2"; + version = "0.2.3"; + authors = [ "Alex Crichton " ]; + sha256 = "1y47qagi1r1f13b4b66xagr3dn9hjlvba7i6f5mcb77qhkn8yg9c"; + inherit dependencies buildDependencies features; + }; + proc_macro2_0_3_6_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "proc-macro2"; + version = "0.3.6"; + authors = [ "Alex Crichton " ]; + sha256 = "1viqlvsknzvgc2j0bcz53n94zxv7c816py7hv2r27y0bv1dq4iqp"; + inherit dependencies buildDependencies features; + }; + pulldown_cmark_0_1_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "pulldown-cmark"; + version = "0.1.2"; + authors = [ "Raph Levien " ]; + sha256 = "0imc6m2bxk4j8y5qfp9x9sjnbrz7cz4i7irv4dfqjp4cgblmg5l8"; + crateBin = [ { name = "pulldown-cmark"; } ]; + build = "build.rs"; + inherit dependencies buildDependencies features; + }; + quick_error_1_2_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "quick-error"; + version = "1.2.1"; + authors = [ "Paul Colomiets " "Colin Kiegel " ]; + sha256 = "0vq41csw68ynaq2fy5dvldh4lx7pnbw6pr332kv5rvrz4pz0jnq6"; + inherit dependencies buildDependencies features; + }; + quote_0_3_15_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "quote"; + version = "0.3.15"; + authors = [ "David Tolnay " ]; + sha256 = "09il61jv4kd1360spaj46qwyl21fv1qz18fsv2jra8wdnlgl5jsg"; + inherit dependencies buildDependencies features; + }; + quote_0_4_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "quote"; + version = "0.4.2"; + authors = [ "David Tolnay " ]; + sha256 = "0rzka356p113f9hdcdc8ha78qar3qd6jpap9wnf5dza9hfs2k4bc"; + inherit dependencies buildDependencies features; + }; + quote_0_5_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "quote"; + version = "0.5.2"; + authors = [ "David Tolnay " ]; + sha256 = "062cnp12j09x0z0nj4j5pfh26h35zlrks07asxgqhfhcym1ba595"; + inherit dependencies buildDependencies features; + }; + r2d2_0_8_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "r2d2"; + version = "0.8.2"; + authors = [ "Steven Fackler " ]; + sha256 = "1m8cvw9gpc5r922alyha2qq9nl79q3ldsjk1qwax36zrca0akvdi"; + inherit dependencies buildDependencies features; + }; + rand_0_3_22_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "rand"; + version = "0.3.22"; + authors = [ "The Rust Project Developers" ]; + sha256 = "0wrj12acx7l4hr7ag3nz8b50yhp8ancyq988bzmnnsxln67rsys0"; + inherit dependencies buildDependencies features; + }; + rand_0_4_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "rand"; + version = "0.4.2"; + authors = [ "The Rust Project Developers" ]; + sha256 = "0h8pkg23wb67i8904sm76iyr1jlmhklb85vbpz9c9191a24xzkfm"; + inherit dependencies buildDependencies features; + }; + rayon_0_8_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "rayon"; + version = "0.8.2"; + authors = [ "Niko Matsakis " "Josh Stone " ]; + sha256 = "0d0mddg1k75hb9138pn8lysy2095jijrinskqbpgfr73s0jx6dq8"; + inherit dependencies buildDependencies features; + }; + rayon_core_1_4_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "rayon-core"; + version = "1.4.0"; + authors = [ "Niko Matsakis " "Josh Stone " ]; + sha256 = "1gmg5fmgvhzks7b05g3ms7x8h1xxqnfkg28wvhzwpdzjljcbnr23"; + build = "build.rs"; + inherit dependencies buildDependencies features; + }; + redox_syscall_0_1_37_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "redox_syscall"; + version = "0.1.37"; + authors = [ "Jeremy Soller " ]; + sha256 = "0qa0jl9cr3qp80an8vshp2mcn8rzvwiavs1398hq1vsjw7pc3h2v"; + libName = "syscall"; + inherit dependencies buildDependencies features; + }; + redox_termios_0_1_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "redox_termios"; + version = "0.1.1"; + authors = [ "Jeremy Soller " ]; + sha256 = "04s6yyzjca552hdaqlvqhp3vw0zqbc304md5czyd3axh56iry8wh"; + libPath = "src/lib.rs"; + inherit dependencies buildDependencies features; + }; + regex_0_2_10_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "regex"; + version = "0.2.10"; + authors = [ "The Rust Project Developers" ]; + sha256 = "0cwdmcllssm984b5nnpr55rgla1yzw31kmp2imxdpgk6hvlhf1ca"; + inherit dependencies buildDependencies features; + }; + regex_syntax_0_5_5_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "regex-syntax"; + version = "0.5.5"; + authors = [ "The Rust Project Developers" ]; + sha256 = "1m5v66r6xxglgkdl1ci23qq0bl0k2wqplm6li4pmg1k7szvgxcbp"; + inherit dependencies buildDependencies features; + }; + relay_0_1_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "relay"; + version = "0.1.1"; + authors = [ "Sean McArthur " ]; + sha256 = "16csfaslbmj25iaxs88p8wcfh2zfpkh9isg9adid0nxjxvknh07r"; + inherit dependencies buildDependencies features; + }; + remove_dir_all_0_5_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "remove_dir_all"; + version = "0.5.1"; + authors = [ "Aaronepower " ]; + sha256 = "1chx3yvfbj46xjz4bzsvps208l46hfbcy0sm98gpiya454n4rrl7"; + inherit dependencies buildDependencies features; + }; + reqwest_0_8_5_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "reqwest"; + version = "0.8.5"; + authors = [ "Sean McArthur " ]; + sha256 = "1wrrv3kwh0pm5yzajf986z21pyf48vxskvn7pflzhrm9y11kalnf"; + inherit dependencies buildDependencies features; + }; + resolv_conf_0_6_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "resolv-conf"; + version = "0.6.0"; + authors = [ "paul@colomiets.name" ]; + sha256 = "11aslgks1zdwwx5nj6fmrnigyvphgk0chd8isz4zwb3pik1jjvc0"; + libPath = "src/lib.rs"; + libName = "resolv_conf"; + inherit dependencies buildDependencies features; + }; + ring_0_12_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "ring"; + version = "0.12.1"; + authors = [ "Brian Smith " ]; + sha256 = "1i47apwkpa0wz9fwp4iqf0xks95b9nmhhlgvk5fsgbg0aphhw0p7"; + build = "build.rs"; + inherit dependencies buildDependencies features; + }; + rustc_demangle_0_1_7_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "rustc-demangle"; + version = "0.1.7"; + authors = [ "Alex Crichton " ]; + sha256 = "0wrln6jvwmqrhyvqlw5vq9a2s4r04ja8mrybxjj9aaaar1fyvns6"; + inherit dependencies buildDependencies features; + }; + safemem_0_2_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "safemem"; + version = "0.2.0"; + authors = [ "Austin Bonander " ]; + sha256 = "058m251q202n479ip1h6s91yw3plg66vsk5mpaflssn6rs5hijdm"; + inherit dependencies buildDependencies features; + }; + same_file_0_1_3_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "same-file"; + version = "0.1.3"; + authors = [ "Andrew Gallant " ]; + sha256 = "01hdnxblb1hlysr47nwdv7r8vs7p63ia08v5h4lcffmzqvl5zzn9"; + inherit dependencies buildDependencies features; + }; + schannel_0_1_12_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "schannel"; + version = "0.1.12"; + authors = [ "Steven Fackler " "Steffen Butzer " ]; + sha256 = "1lqdzx8d4rql8ah9w760syvrbbyp26s9cgidvrh34h0hjglja42d"; + inherit dependencies buildDependencies features; + }; + scheduled_thread_pool_0_2_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "scheduled-thread-pool"; + version = "0.2.0"; + authors = [ "Steven Fackler " ]; + sha256 = "0x8jxh3l4irj5hm7rwfwmfd0iazcpvcfvnqbsngrrn3dmzpy0ig9"; + inherit dependencies buildDependencies features; + }; + scoped_tls_0_1_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "scoped-tls"; + version = "0.1.1"; + authors = [ "Alex Crichton " ]; + sha256 = "1csp1bp0cc1hvdk0ml293zqjpblh7254cd88q22yx63xmszj1dh4"; + inherit dependencies buildDependencies features; + }; + scopeguard_0_3_3_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "scopeguard"; + version = "0.3.3"; + authors = [ "bluss" ]; + sha256 = "0i1l013csrqzfz6c68pr5pi01hg5v5yahq8fsdmaxy6p8ygsjf3r"; + inherit dependencies buildDependencies features; + }; + security_framework_0_1_16_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "security-framework"; + version = "0.1.16"; + authors = [ "Steven Fackler " ]; + sha256 = "1kxczsaj8gz4922jl5af2gkxh71rasb6khaf3dp7ldlnw9qf2sbm"; + inherit dependencies buildDependencies features; + }; + security_framework_sys_0_1_16_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "security-framework-sys"; + version = "0.1.16"; + authors = [ "Steven Fackler " ]; + sha256 = "0ai2pivdr5fyc7czbkpcrwap0imyy0r8ndarrl3n5kiv0jha1js3"; + build = "build.rs"; + inherit dependencies buildDependencies features; + }; + semver_0_8_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "semver"; + version = "0.8.0"; + authors = [ "Steve Klabnik " "The Rust Project Developers" ]; + sha256 = "0wgg4lmjmqj6sk6q50mw4qbx178a9nd3afb5q8c68ajzj0lfc3cv"; + inherit dependencies buildDependencies features; + }; + semver_parser_0_7_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "semver-parser"; + version = "0.7.0"; + authors = [ "Steve Klabnik " ]; + sha256 = "1da66c8413yakx0y15k8c055yna5lyb6fr0fw9318kdwkrk5k12h"; + inherit dependencies buildDependencies features; + }; + serde_1_0_43_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "serde"; + version = "1.0.43"; + authors = [ "Erick Tryzelaar " "David Tolnay " ]; + sha256 = "05zqbc008pg0q8ds2njxh09lpfi2a99j8n7ihawkrjm2ldwdzb17"; + inherit dependencies buildDependencies features; + }; + serde_derive_1_0_43_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "serde_derive"; + version = "1.0.43"; + authors = [ "Erick Tryzelaar " "David Tolnay " ]; + sha256 = "0a3q4ckirmafb4q9ix7rwmw3crv5q96m1p9m7avf11il6k9hkcrr"; + procMacro = true; + inherit dependencies buildDependencies features; + }; + serde_derive_internals_0_23_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "serde_derive_internals"; + version = "0.23.1"; + authors = [ "Erick Tryzelaar " "David Tolnay " ]; + sha256 = "0bjgcn2irh6sd34q3j3xkbn5ghfgiv3cfdlffb31lh0bikwpk1b4"; + inherit dependencies buildDependencies features; + }; + serde_json_1_0_16_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "serde_json"; + version = "1.0.16"; + authors = [ "Erick Tryzelaar " "David Tolnay " ]; + sha256 = "1715lzswbbc1gj1pq213smvw21iyrsy8pmkbkw503vxdgzkzgc78"; + inherit dependencies buildDependencies features; + }; + serde_urlencoded_0_5_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "serde_urlencoded"; + version = "0.5.1"; + authors = [ "Anthony Ramine " ]; + sha256 = "0zh2wlnapmcwqhxnnq1mdlmg8vily7j54wvj01s7cvapzg5jphdl"; + inherit dependencies buildDependencies features; + }; + sha1_0_6_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "sha1"; + version = "0.6.0"; + authors = [ "Armin Ronacher " ]; + sha256 = "12cp2b8f3hbwhfpnv1j1afl285xxmmbxh9w4npzvwbdh7xfyww8v"; + inherit dependencies buildDependencies features; + }; + siphasher_0_2_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "siphasher"; + version = "0.2.2"; + authors = [ "Frank Denis " ]; + sha256 = "0iyx7nlzfny9ly1634a6zcq0yvrinhxhypwas4p8ry3zqnn76qqr"; + inherit dependencies buildDependencies features; + }; + skeptic_0_13_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "skeptic"; + version = "0.13.2"; + authors = [ "Brian Anderson " "Michał Budzyński " ]; + sha256 = "1wv5ajmaapv9naki7z33mk88z1a547p5dll6hipwpdsc66wrd564"; + libPath = "lib.rs"; + inherit dependencies buildDependencies features; + }; + slab_0_3_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "slab"; + version = "0.3.0"; + authors = [ "Carl Lerche " ]; + sha256 = "0y6lhjggksh57hyfd3l6p9wgv5nhvw9c6djrysq7jnalz8fih21k"; + inherit dependencies buildDependencies features; + }; + slab_0_4_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "slab"; + version = "0.4.0"; + authors = [ "Carl Lerche " ]; + sha256 = "1qy2vkgwqgj5z4ygdkh040n9yh1vz80v5flxb1xrvw3i4wxs7yx0"; + inherit dependencies buildDependencies features; + }; + slug_0_1_3_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "slug"; + version = "0.1.3"; + authors = [ "Steven Allen " ]; + sha256 = "0ry961rwq5d9jf6b9xhlq75caiwrylxz681l3ghan7nf32nmv6zw"; + inherit dependencies buildDependencies features; + }; + smallvec_0_2_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "smallvec"; + version = "0.2.1"; + authors = [ "Simon Sapin " ]; + sha256 = "0rnsll9af52bpjngz0067dpm1ndqmh76i64a58fc118l4lvnjxw2"; + libPath = "lib.rs"; + inherit dependencies buildDependencies features; + }; + smallvec_0_6_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "smallvec"; + version = "0.6.0"; + authors = [ "Simon Sapin " ]; + sha256 = "1k75p20zzdm6r5ka55dmiywpb6wr6p87gr6ha6p2s73mycmjc4ln"; + libPath = "lib.rs"; + inherit dependencies buildDependencies features; + }; + socket2_0_3_5_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "socket2"; + version = "0.3.5"; + authors = [ "Alex Crichton " ]; + sha256 = "0bi6z6qvra16rwm3lk7xz4aakvcmmak6fpdmra1v7ccp40bss0kf"; + inherit dependencies buildDependencies features; + }; + stable_deref_trait_1_0_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "stable_deref_trait"; + version = "1.0.0"; + authors = [ "Robert Grosse " ]; + sha256 = "0ya5fms9qdwkd52d3a111w4vcz18j4rbfx4p88z44116cqd6cczr"; + inherit dependencies buildDependencies features; + }; + string_0_1_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "string"; + version = "0.1.0"; + authors = [ "Carl Lerche " ]; + sha256 = "0pca6c4kf47izwapzz9bzmq7sb6hbzn26xxdfi8ld7mqf0dqg1z7"; + inherit dependencies buildDependencies features; + }; + strsim_0_7_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "strsim"; + version = "0.7.0"; + authors = [ "Danny Guo " ]; + sha256 = "0fy0k5f2705z73mb3x9459bpcvrx4ky8jpr4zikcbiwan4bnm0iv"; + inherit dependencies buildDependencies features; + }; + syn_0_11_11_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "syn"; + version = "0.11.11"; + authors = [ "David Tolnay " ]; + sha256 = "0yw8ng7x1dn5a6ykg0ib49y7r9nhzgpiq2989rqdp7rdz3n85502"; + inherit dependencies buildDependencies features; + }; + syn_0_12_15_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "syn"; + version = "0.12.15"; + authors = [ "David Tolnay " ]; + sha256 = "0kkzav72yy0idzbh9zcg92dam3785xzrbxjjp8vxcis9z2zd6b13"; + inherit dependencies buildDependencies features; + }; + syn_0_13_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "syn"; + version = "0.13.1"; + authors = [ "David Tolnay " ]; + sha256 = "1pimp7fpvillhz06xz0k6450h9nis3ab6h1j2hzrzykrpxs2qnyg"; + inherit dependencies buildDependencies features; + }; + synom_0_11_3_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "synom"; + version = "0.11.3"; + authors = [ "David Tolnay " ]; + sha256 = "1l6d1s9qjfp6ng2s2z8219igvlv7gyk8gby97sdykqc1r93d8rhc"; + inherit dependencies buildDependencies features; + }; + synstructure_0_6_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "synstructure"; + version = "0.6.1"; + authors = [ "Michael Layzell " ]; + sha256 = "1xnyw58va9zcqi4vvpnmpllacdj2a0mvy0cbd698izmr4qs92xlk"; + inherit dependencies buildDependencies features; + }; + take_0_1_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "take"; + version = "0.1.0"; + authors = [ "Carl Lerche " ]; + sha256 = "17rfh39di5n8w9aghpic2r94cndi3dr04l60nkjylmxfxr3iwlhd"; + inherit dependencies buildDependencies features; + }; + tempdir_0_3_7_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "tempdir"; + version = "0.3.7"; + authors = [ "The Rust Project Developers" ]; + sha256 = "0y53sxybyljrr7lh0x0ysrsa7p7cljmwv9v80acy3rc6n97g67vy"; + inherit dependencies buildDependencies features; + }; + tera_0_11_6_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "tera"; + version = "0.11.6"; + authors = [ "Vincent Prouillet " ]; + sha256 = "0j6gkkj2sx5484znmcp5zbjgk4r00wrbdi6mb05i1pjkqwhzrm54"; + inherit dependencies buildDependencies features; + }; + termcolor_0_3_6_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "termcolor"; + version = "0.3.6"; + authors = [ "Andrew Gallant " ]; + sha256 = "0w609sa1apl1kii67ln2g82r4rrycw45zgjq7mxxjrx1fa21v05z"; + inherit dependencies buildDependencies features; + }; + termion_1_5_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "termion"; + version = "1.5.1"; + authors = [ "ticki " "gycos " "IGI-111 " ]; + sha256 = "02gq4vd8iws1f3gjrgrgpajsk2bk43nds5acbbb4s8dvrdvr8nf1"; + inherit dependencies buildDependencies features; + }; + textwrap_0_9_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "textwrap"; + version = "0.9.0"; + authors = [ "Martin Geisler " ]; + sha256 = "18jg79ndjlwndz01mlbh82kkr2arqm658yn5kwp65l5n1hz8w4yb"; + inherit dependencies buildDependencies features; + }; + thread_local_0_3_5_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "thread_local"; + version = "0.3.5"; + authors = [ "Amanieu d'Antras " ]; + sha256 = "0mkp0sp91aqsk7brgygai4igv751r1754rsxn37mig3ag5rx8np6"; + inherit dependencies buildDependencies features; + }; + time_0_1_39_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "time"; + version = "0.1.39"; + authors = [ "The Rust Project Developers" ]; + sha256 = "1ryy3bwhvyzj6fym123il38mk9ranm4vradj2a47l5ij8jd7w5if"; + inherit dependencies buildDependencies features; + }; + tokio_0_1_5_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "tokio"; + version = "0.1.5"; + authors = [ "Carl Lerche " ]; + sha256 = "0dd11vmmq7q65l1nwq85707n87r7b8gh29lq232j8hrimpkwnav9"; + inherit dependencies buildDependencies features; + }; + tokio_core_0_1_17_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "tokio-core"; + version = "0.1.17"; + authors = [ "Carl Lerche " ]; + sha256 = "1j6c5q3aakvb1hjx4r95xwl5ms8rp19k4qsr6v6ngwbvr6f9z6rs"; + inherit dependencies buildDependencies features; + }; + tokio_executor_0_1_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "tokio-executor"; + version = "0.1.2"; + authors = [ "Carl Lerche " ]; + sha256 = "1y4mwqjw438x6jskigz1knvfbpbinxfv6h43s60w6wdb80xmyg48"; + inherit dependencies buildDependencies features; + }; + tokio_io_0_1_6_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "tokio-io"; + version = "0.1.6"; + authors = [ "Carl Lerche " ]; + sha256 = "0awvw1cfylws2lqdls615hcnrz7x7krr7gm57bgj55xai14rmk9k"; + inherit dependencies buildDependencies features; + }; + tokio_proto_0_1_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "tokio-proto"; + version = "0.1.1"; + authors = [ "Carl Lerche " ]; + sha256 = "030q9h8pn1ngm80klff5irglxxki60hf5maw0mppmmr46k773z66"; + inherit dependencies buildDependencies features; + }; + tokio_reactor_0_1_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "tokio-reactor"; + version = "0.1.1"; + authors = [ "Carl Lerche " ]; + sha256 = "0crs57d2k4a69abqhjzs3crs3hfw7qia3phpc3saxpnwh1j51093"; + inherit dependencies buildDependencies features; + }; + tokio_service_0_1_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "tokio-service"; + version = "0.1.0"; + authors = [ "Carl Lerche " ]; + sha256 = "0c85wm5qz9fabg0k6k763j89m43n6max72d3a8sxcs940id6qmih"; + inherit dependencies buildDependencies features; + }; + tokio_signal_0_1_5_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "tokio-signal"; + version = "0.1.5"; + authors = [ "Alex Crichton " ]; + sha256 = "1rqbb1n2kzzy3gqc4ha3rd3km1wdgy1mgbbngn5alpq9xvd4x1kz"; + inherit dependencies buildDependencies features; + }; + tokio_tcp_0_1_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "tokio-tcp"; + version = "0.1.0"; + authors = [ "Carl Lerche " ]; + sha256 = "19cyajkqvvbn3qqnak0qzivdq6amfjymbc30k7bbqhx4y1pcgqvh"; + inherit dependencies buildDependencies features; + }; + tokio_threadpool_0_1_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "tokio-threadpool"; + version = "0.1.2"; + authors = [ "Carl Lerche " ]; + sha256 = "12690m4cyh6v986xdd705mx2ba4r6mvlmfjfhiqcysyrmv2bk9h2"; + inherit dependencies buildDependencies features; + }; + tokio_timer_0_2_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "tokio-timer"; + version = "0.2.1"; + authors = [ "Carl Lerche " ]; + sha256 = "1igk1jmpgwhhy2giccsshs8smwby6kfyz2fw9y4yav8yp5vzd0r9"; + inherit dependencies buildDependencies features; + }; + tokio_tls_0_1_4_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "tokio-tls"; + version = "0.1.4"; + authors = [ "Carl Lerche " "Alex Crichton " ]; + sha256 = "07rwv3q6jbg65ln1ahzb4g648l8lcn4hvc0ax3r12bnsi1py7agp"; + inherit dependencies buildDependencies features; + }; + tokio_udp_0_1_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "tokio-udp"; + version = "0.1.0"; + authors = [ "Carl Lerche " ]; + sha256 = "0c1wjiqri0xlfrqq2hmgppvl9j8pjy8469s67f08dc8lybmrb1q1"; + inherit dependencies buildDependencies features; + }; + trust_dns_proto_0_3_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "trust-dns-proto"; + version = "0.3.2"; + authors = [ "Benjamin Fry " ]; + sha256 = "1fjb1xb6n7bz8iwi6a5k550r5rzj9qmbvqzjm8168plaxsb06afk"; + libPath = "src/lib.rs"; + libName = "trust_dns_proto"; + inherit dependencies buildDependencies features; + }; + trust_dns_resolver_0_8_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "trust-dns-resolver"; + version = "0.8.1"; + authors = [ "Benjamin Fry " ]; + sha256 = "0x4cdzfma5y4i6mnr72iwjxgma18xhkbps5dibf0p7qfsa2sa6hq"; + libPath = "src/lib.rs"; + libName = "trust_dns_resolver"; + inherit dependencies buildDependencies features; + }; + twoway_0_1_8_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "twoway"; + version = "0.1.8"; + authors = [ "bluss" ]; + sha256 = "0svrdcy08h0gm884f220hx37g8fsp5z6abaw6jb6g3f7djw1ir1g"; + inherit dependencies buildDependencies features; + }; + typed_arena_1_3_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "typed-arena"; + version = "1.3.0"; + authors = [ "Simon Sapin " ]; + sha256 = "19yylpxv4mkx5285igiywh57snj6bgk8yw6139cjy7j86nz0mx9s"; + libPath = "src/lib.rs"; + libName = "typed_arena"; + inherit dependencies buildDependencies features; + }; + ucd_util_0_1_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "ucd-util"; + version = "0.1.1"; + authors = [ "Andrew Gallant " ]; + sha256 = "02a8h3siipx52b832xc8m8rwasj6nx9jpiwfldw8hp6k205hgkn0"; + inherit dependencies buildDependencies features; + }; + unicase_1_4_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "unicase"; + version = "1.4.2"; + authors = [ "Sean McArthur " ]; + sha256 = "0rbnhw2mnhcwrij3vczp0sl8zdfmvf2dlh8hly81kj7132kfj0mf"; + build = "build.rs"; + inherit dependencies buildDependencies features; + }; + unicase_2_1_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "unicase"; + version = "2.1.0"; + authors = [ "Sean McArthur " ]; + sha256 = "1zzn16hh8fdx5pnbbnl32q8m2mh4vpd1jm9pdcv969ik83dw4byp"; + build = "build.rs"; + inherit dependencies buildDependencies features; + }; + unicode_bidi_0_3_4_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "unicode-bidi"; + version = "0.3.4"; + authors = [ "The Servo Project Developers" ]; + sha256 = "0lcd6jasrf8p9p0q20qyf10c6xhvw40m2c4rr105hbk6zy26nj1q"; + libName = "unicode_bidi"; + inherit dependencies buildDependencies features; + }; + unicode_normalization_0_1_5_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "unicode-normalization"; + version = "0.1.5"; + authors = [ "kwantam " ]; + sha256 = "0hg29g86fca7b65mwk4sm5s838js6bqrl0gabadbazvbsgjam0j5"; + inherit dependencies buildDependencies features; + }; + unicode_width_0_1_4_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "unicode-width"; + version = "0.1.4"; + authors = [ "kwantam " ]; + sha256 = "1rp7a04icn9y5c0lm74nrd4py0rdl0af8bhdwq7g478n1xifpifl"; + inherit dependencies buildDependencies features; + }; + unicode_xid_0_0_4_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "unicode-xid"; + version = "0.0.4"; + authors = [ "erick.tryzelaar " "kwantam " ]; + sha256 = "1dc8wkkcd3s6534s5aw4lbjn8m67flkkbnajp5bl8408wdg8rh9v"; + inherit dependencies buildDependencies features; + }; + unicode_xid_0_1_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "unicode-xid"; + version = "0.1.0"; + authors = [ "erick.tryzelaar " "kwantam " ]; + sha256 = "05wdmwlfzxhq3nhsxn6wx4q8dhxzzfb9szsz6wiw092m1rjj01zj"; + inherit dependencies buildDependencies features; + }; + unicode_categories_0_1_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "unicode_categories"; + version = "0.1.1"; + authors = [ "Sean Gillespie " ]; + sha256 = "0capsv7dgw45sh7gpdgpfnmrjx2rdmkp5m523h35apq51cf8fpdi"; + inherit dependencies buildDependencies features; + }; + unidecode_0_3_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "unidecode"; + version = "0.3.0"; + authors = [ "Amit Chowdhury " ]; + sha256 = "09jqspji8m4n2959n35h36ik0nb0c7xq5cb3i0z6kiczz65ba0rs"; + inherit dependencies buildDependencies features; + }; + unreachable_1_0_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "unreachable"; + version = "1.0.0"; + authors = [ "Jonathan Reem " ]; + sha256 = "1am8czbk5wwr25gbp2zr007744fxjshhdqjz9liz7wl4pnv3whcf"; + inherit dependencies buildDependencies features; + }; + untrusted_0_5_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "untrusted"; + version = "0.5.1"; + authors = [ "Brian Smith " ]; + sha256 = "10nbd2nd9asx0v2g59i188rbpclh2xjaj10cjmp8h8a7in4i9pvd"; + inherit dependencies buildDependencies features; + }; + url_1_7_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "url"; + version = "1.7.0"; + authors = [ "The rust-url developers" ]; + sha256 = "0333ynhkp47hna88aamz1zpk4lxyzx4ab9n7yhc75g14w27cv8jj"; + inherit dependencies buildDependencies features; + }; + url_serde_0_2_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "url_serde"; + version = "0.2.0"; + authors = [ "The rust-url developers" ]; + sha256 = "07ry87rw0pi1da6b53f7s3f52wx3ihxbcgjd4ldspfv5xh6wipsg"; + inherit dependencies buildDependencies features; + }; + utf8_ranges_1_0_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "utf8-ranges"; + version = "1.0.0"; + authors = [ "Andrew Gallant " ]; + sha256 = "0rzmqprwjv9yp1n0qqgahgm24872x6c0xddfym5pfndy7a36vkn0"; + inherit dependencies buildDependencies features; + }; + uuid_0_5_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "uuid"; + version = "0.5.1"; + authors = [ "The Rust Project Developers" ]; + sha256 = "17d4csjmy7fa3ckrm40d3c3v411rw5d4400w756mcrzyw2pm1i2r"; + inherit dependencies buildDependencies features; + }; + uuid_0_6_3_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "uuid"; + version = "0.6.3"; + authors = [ "Ashley Mannix" "Christopher Armstrong" "Dylan DPC" "Hunar Roop Kahlon" ]; + sha256 = "1kjp5xglhab4saaikn95zn3mr4zja7484pv307cb5bxm2sawb8p6"; + inherit dependencies buildDependencies features; + }; + vcpkg_0_2_3_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "vcpkg"; + version = "0.2.3"; + authors = [ "Jim McGrath " ]; + sha256 = "0achi8sfy0wm4q04gj7nwpq9xfx8ynk6vv4r12a3ijg26hispq0c"; + inherit dependencies buildDependencies features; + }; + vec_map_0_8_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "vec_map"; + version = "0.8.0"; + authors = [ "Alex Crichton " "Jorge Aparicio " "Alexis Beingessner " "Brian Anderson <>" "tbu- <>" "Manish Goregaokar <>" "Aaron Turon " "Adolfo Ochagavía <>" "Niko Matsakis <>" "Steven Fackler <>" "Chase Southwood " "Eduard Burtescu <>" "Florian Wilkens <>" "Félix Raimundo <>" "Tibor Benke <>" "Markus Siemens " "Josh Branchaud " "Huon Wilson " "Corey Farwell " "Aaron Liblong <>" "Nick Cameron " "Patrick Walton " "Felix S Klock II <>" "Andrew Paseltiner " "Sean McArthur " "Vadim Petrochenkov <>" ]; + sha256 = "07sgxp3cf1a4cxm9n3r27fcvqmld32bl2576mrcahnvm34j11xay"; + inherit dependencies buildDependencies features; + }; + version_check_0_1_3_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "version_check"; + version = "0.1.3"; + authors = [ "Sergio Benitez " ]; + sha256 = "0z635wdclv9bvafj11fpgndn7y79ibpsnc364pm61i1m4wwg8msg"; + inherit dependencies buildDependencies features; + }; + void_1_0_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "void"; + version = "1.0.2"; + authors = [ "Jonathan Reem " ]; + sha256 = "0h1dm0dx8dhf56a83k68mijyxigqhizpskwxfdrs1drwv2cdclv3"; + inherit dependencies buildDependencies features; + }; + walkdir_1_0_7_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "walkdir"; + version = "1.0.7"; + authors = [ "Andrew Gallant " ]; + sha256 = "1ygsc59m8mbnlz0psjxdzm1xjndxpywjwalqcd3pwdarzk1gy1vr"; + inherit dependencies buildDependencies features; + }; + widestring_0_2_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "widestring"; + version = "0.2.2"; + authors = [ "Kathryn Long " ]; + sha256 = "07n6cmk47h8v4bvg7cwawipcn6ijqcfwhf9w6x3r2nw3ghsm2h0a"; + inherit dependencies buildDependencies features; + }; + winapi_0_2_8_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "winapi"; + version = "0.2.8"; + authors = [ "Peter Atashian " ]; + sha256 = "0a45b58ywf12vb7gvj6h3j264nydynmzyqz8d8rqxsj6icqv82as"; + inherit dependencies buildDependencies features; + }; + winapi_0_3_4_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "winapi"; + version = "0.3.4"; + authors = [ "Peter Atashian " ]; + sha256 = "1qbrf5dcnd8j36cawby5d9r5vx07r0l4ryf672pfncnp8895k9lx"; + build = "build.rs"; + inherit dependencies buildDependencies features; + }; + winapi_build_0_1_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "winapi-build"; + version = "0.1.1"; + authors = [ "Peter Atashian " ]; + sha256 = "1lxlpi87rkhxcwp2ykf1ldw3p108hwm24nywf3jfrvmff4rjhqga"; + libName = "build"; + inherit dependencies buildDependencies features; + }; + winapi_i686_pc_windows_gnu_0_4_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "winapi-i686-pc-windows-gnu"; + version = "0.4.0"; + authors = [ "Peter Atashian " ]; + sha256 = "05ihkij18r4gamjpxj4gra24514can762imjzlmak5wlzidplzrp"; + build = "build.rs"; + inherit dependencies buildDependencies features; + }; + winapi_x86_64_pc_windows_gnu_0_4_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "winapi-x86_64-pc-windows-gnu"; + version = "0.4.0"; + authors = [ "Peter Atashian " ]; + sha256 = "0n1ylmlsb8yg1v583i4xy0qmqg42275flvbc51hdqjjfjcl9vlbj"; + build = "build.rs"; + inherit dependencies buildDependencies features; + }; + wincolor_0_1_6_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "wincolor"; + version = "0.1.6"; + authors = [ "Andrew Gallant " ]; + sha256 = "0f8m3l86pw6qi31jidqj78pgd15xj914850lyvsxkbln4f1drv47"; + inherit dependencies buildDependencies features; + }; + winreg_0_5_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "winreg"; + version = "0.5.0"; + authors = [ "Igor Shaula " ]; + sha256 = "0smhk0h5kcwzpjlhyvx2p6cjda28cchzjbnwbs658rz641q98rcd"; + inherit dependencies buildDependencies features; + }; + winutil_0_1_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "winutil"; + version = "0.1.1"; + authors = [ "Dave Lancaster " ]; + sha256 = "1wvq440hl1v3a65agjbp031gw5jim3qasfvmz703dlz95pbjv45r"; + inherit dependencies buildDependencies features; + }; + ws2_32_sys_0_2_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "ws2_32-sys"; + version = "0.2.1"; + authors = [ "Peter Atashian " ]; + sha256 = "1zpy9d9wk11sj17fczfngcj28w4xxjs3b4n036yzpy38dxp4f7kc"; + libName = "ws2_32"; + build = "build.rs"; + inherit dependencies buildDependencies features; + }; + actix_0_5_6 = { features?(actix_0_5_6_features {}) }: actix_0_5_6_ { + dependencies = mapFeatures features ([ actix_derive_0_2_0 bitflags_1_0_1 bytes_0_4_6 crossbeam_channel_0_1_2 failure_0_1_1 futures_0_1_21 libc_0_2_40 log_0_4_1 smallvec_0_6_0 tokio_core_0_1_17 tokio_io_0_1_6 tokio_signal_0_1_5 trust_dns_resolver_0_8_1 uuid_0_6_3 ]); + buildDependencies = mapFeatures features ([ skeptic_0_13_2 ]); + }; + actix_0_5_6_features = f: updateFeatures f (rec { + actix_0_5_6.default = (f.actix_0_5_6.default or true); + actix_derive_0_2_0.default = true; + bitflags_1_0_1.default = true; + bytes_0_4_6.default = true; + crossbeam_channel_0_1_2.default = true; + failure_0_1_1.default = true; + futures_0_1_21.default = true; + libc_0_2_40.default = true; + log_0_4_1.default = true; + skeptic_0_13_2.default = true; + smallvec_0_6_0.default = true; + tokio_core_0_1_17.default = true; + tokio_io_0_1_6.default = true; + tokio_signal_0_1_5.default = true; + trust_dns_resolver_0_8_1.default = true; + uuid_0_6_3.default = true; + uuid_0_6_3.v4 = true; + }) [ actix_derive_0_2_0_features bitflags_1_0_1_features bytes_0_4_6_features crossbeam_channel_0_1_2_features failure_0_1_1_features futures_0_1_21_features libc_0_2_40_features log_0_4_1_features smallvec_0_6_0_features tokio_core_0_1_17_features tokio_io_0_1_6_features tokio_signal_0_1_5_features trust_dns_resolver_0_8_1_features uuid_0_6_3_features skeptic_0_13_2_features ]; + actix_web_0_5_4 = { features?(actix_web_0_5_4_features {}) }: actix_web_0_5_4_ { + dependencies = mapFeatures features ([ actix_0_5_6 base64_0_9_1 bitflags_1_0_1 byteorder_1_2_2 bytes_0_4_6 cookie_0_10_1 encoding_0_2_33 failure_0_1_1 flate2_1_0_1 futures_0_1_21 futures_cpupool_0_1_8 h2_0_1_5 http_0_1_5 http_range_0_1_1 httparse_1_2_4 language_tags_0_2_2 lazy_static_1_0_0 libc_0_2_40 log_0_4_1 mime_0_3_5 mime_guess_2_0_0_alpha_4 mio_0_6_14 net2_0_2_32 num_cpus_1_8_0 percent_encoding_1_0_1 rand_0_4_2 regex_0_2_10 serde_1_0_43 serde_json_1_0_16 serde_urlencoded_0_5_1 sha1_0_6_0 smallvec_0_6_0 time_0_1_39 tokio_core_0_1_17 tokio_io_0_1_6 url_1_7_0 ] + ++ (if features.actix_web_0_5_4.brotli2 or false then [ brotli2_0_3_2 ] else [])); + buildDependencies = mapFeatures features ([ version_check_0_1_3 ]); + features = mkFeatures (features.actix_web_0_5_4 or {}); + }; + actix_web_0_5_4_features = f: updateFeatures f (rec { + actix_0_5_6.default = true; + actix_web_0_5_4.brotli = + (f.actix_web_0_5_4.brotli or false) || + (f.actix_web_0_5_4.default or false) || + (actix_web_0_5_4.default or false); + actix_web_0_5_4.brotli2 = + (f.actix_web_0_5_4.brotli2 or false) || + (f.actix_web_0_5_4.brotli or false) || + (actix_web_0_5_4.brotli or false); + actix_web_0_5_4.default = (f.actix_web_0_5_4.default or true); + actix_web_0_5_4.native-tls = + (f.actix_web_0_5_4.native-tls or false) || + (f.actix_web_0_5_4.tls or false) || + (actix_web_0_5_4.tls or false); + actix_web_0_5_4.openssl = + (f.actix_web_0_5_4.openssl or false) || + (f.actix_web_0_5_4.alpn or false) || + (actix_web_0_5_4.alpn or false); + actix_web_0_5_4.session = + (f.actix_web_0_5_4.session or false) || + (f.actix_web_0_5_4.default or false) || + (actix_web_0_5_4.default or false); + actix_web_0_5_4.tokio-openssl = + (f.actix_web_0_5_4.tokio-openssl or false) || + (f.actix_web_0_5_4.alpn or false) || + (actix_web_0_5_4.alpn or false); + actix_web_0_5_4.tokio-tls = + (f.actix_web_0_5_4.tokio-tls or false) || + (f.actix_web_0_5_4.tls or false) || + (actix_web_0_5_4.tls or false); + base64_0_9_1.default = true; + bitflags_1_0_1.default = true; + brotli2_0_3_2.default = true; + byteorder_1_2_2.default = true; + bytes_0_4_6.default = true; + cookie_0_10_1.default = true; + cookie_0_10_1.percent-encode = true; + cookie_0_10_1.secure = + (f.cookie_0_10_1.secure or false) || + (actix_web_0_5_4.session or false) || + (f.actix_web_0_5_4.session or false); + encoding_0_2_33.default = true; + failure_0_1_1.default = true; + flate2_1_0_1.default = true; + futures_0_1_21.default = true; + futures_cpupool_0_1_8.default = true; + h2_0_1_5.default = true; + http_0_1_5.default = true; + http_range_0_1_1.default = true; + httparse_1_2_4.default = true; + language_tags_0_2_2.default = true; + lazy_static_1_0_0.default = true; + libc_0_2_40.default = true; + log_0_4_1.default = true; + mime_0_3_5.default = true; + mime_guess_2_0_0_alpha_4.default = true; + mio_0_6_14.default = true; + net2_0_2_32.default = true; + num_cpus_1_8_0.default = true; + percent_encoding_1_0_1.default = true; + rand_0_4_2.default = true; + regex_0_2_10.default = true; + serde_1_0_43.default = true; + serde_json_1_0_16.default = true; + serde_urlencoded_0_5_1.default = true; + sha1_0_6_0.default = true; + smallvec_0_6_0.default = true; + time_0_1_39.default = true; + tokio_core_0_1_17.default = true; + tokio_io_0_1_6.default = true; + url_1_7_0.default = true; + url_1_7_0.query_encoding = true; + version_check_0_1_3.default = true; + }) [ actix_0_5_6_features base64_0_9_1_features bitflags_1_0_1_features brotli2_0_3_2_features byteorder_1_2_2_features bytes_0_4_6_features cookie_0_10_1_features encoding_0_2_33_features failure_0_1_1_features flate2_1_0_1_features futures_0_1_21_features futures_cpupool_0_1_8_features h2_0_1_5_features http_0_1_5_features http_range_0_1_1_features httparse_1_2_4_features language_tags_0_2_2_features lazy_static_1_0_0_features libc_0_2_40_features log_0_4_1_features mime_0_3_5_features mime_guess_2_0_0_alpha_4_features mio_0_6_14_features net2_0_2_32_features num_cpus_1_8_0_features percent_encoding_1_0_1_features rand_0_4_2_features regex_0_2_10_features serde_1_0_43_features serde_json_1_0_16_features serde_urlencoded_0_5_1_features sha1_0_6_0_features smallvec_0_6_0_features time_0_1_39_features tokio_core_0_1_17_features tokio_io_0_1_6_features url_1_7_0_features version_check_0_1_3_features ]; + actix_derive_0_2_0 = { features?(actix_derive_0_2_0_features {}) }: actix_derive_0_2_0_ { + dependencies = mapFeatures features ([ quote_0_3_15 rand_0_3_22 syn_0_11_11 ]); + buildDependencies = mapFeatures features ([ version_check_0_1_3 ]); + }; + actix_derive_0_2_0_features = f: updateFeatures f (rec { + actix_derive_0_2_0.default = (f.actix_derive_0_2_0.default or true); + quote_0_3_15.default = true; + rand_0_3_22.default = true; + syn_0_11_11.default = true; + syn_0_11_11.full = true; + version_check_0_1_3.default = true; + }) [ quote_0_3_15_features rand_0_3_22_features syn_0_11_11_features version_check_0_1_3_features ]; + adler32_1_0_2 = { features?(adler32_1_0_2_features {}) }: adler32_1_0_2_ {}; + adler32_1_0_2_features = f: updateFeatures f (rec { + adler32_1_0_2.default = (f.adler32_1_0_2.default or true); + }) []; + aho_corasick_0_6_4 = { features?(aho_corasick_0_6_4_features {}) }: aho_corasick_0_6_4_ { + dependencies = mapFeatures features ([ memchr_2_0_1 ]); + }; + aho_corasick_0_6_4_features = f: updateFeatures f (rec { + aho_corasick_0_6_4.default = (f.aho_corasick_0_6_4.default or true); + memchr_2_0_1.default = true; + }) [ memchr_2_0_1_features ]; + ansi_term_0_11_0 = { features?(ansi_term_0_11_0_features {}) }: ansi_term_0_11_0_ { + dependencies = (if kernel == "windows" then mapFeatures features ([ winapi_0_3_4 ]) else []); + }; + ansi_term_0_11_0_features = f: updateFeatures f (rec { + ansi_term_0_11_0.default = (f.ansi_term_0_11_0.default or true); + winapi_0_3_4.consoleapi = true; + winapi_0_3_4.default = true; + winapi_0_3_4.errhandlingapi = true; + winapi_0_3_4.processenv = true; + }) [ winapi_0_3_4_features ]; + antidote_1_0_0 = { features?(antidote_1_0_0_features {}) }: antidote_1_0_0_ {}; + antidote_1_0_0_features = f: updateFeatures f (rec { + antidote_1_0_0.default = (f.antidote_1_0_0.default or true); + }) []; + arrayvec_0_4_7 = { features?(arrayvec_0_4_7_features {}) }: arrayvec_0_4_7_ { + dependencies = mapFeatures features ([ nodrop_0_1_12 ]); + features = mkFeatures (features.arrayvec_0_4_7 or {}); + }; + arrayvec_0_4_7_features = f: updateFeatures f (rec { + arrayvec_0_4_7.default = (f.arrayvec_0_4_7.default or true); + arrayvec_0_4_7.serde = + (f.arrayvec_0_4_7.serde or false) || + (f.arrayvec_0_4_7.serde-1 or false) || + (arrayvec_0_4_7.serde-1 or false); + arrayvec_0_4_7.std = + (f.arrayvec_0_4_7.std or false) || + (f.arrayvec_0_4_7.default or false) || + (arrayvec_0_4_7.default or false); + nodrop_0_1_12.default = (f.nodrop_0_1_12.default or false); + }) [ nodrop_0_1_12_features ]; + atty_0_2_9 = { features?(atty_0_2_9_features {}) }: atty_0_2_9_ { + dependencies = (if kernel == "redox" then mapFeatures features ([ termion_1_5_1 ]) else []) + ++ (if (kernel == "linux" || kernel == "darwin") then mapFeatures features ([ libc_0_2_40 ]) else []) + ++ (if kernel == "windows" then mapFeatures features ([ winapi_0_3_4 ]) else []); + }; + atty_0_2_9_features = f: updateFeatures f (rec { + atty_0_2_9.default = (f.atty_0_2_9.default or true); + libc_0_2_40.default = (f.libc_0_2_40.default or false); + termion_1_5_1.default = true; + winapi_0_3_4.consoleapi = true; + winapi_0_3_4.default = true; + winapi_0_3_4.minwinbase = true; + winapi_0_3_4.minwindef = true; + winapi_0_3_4.processenv = true; + winapi_0_3_4.winbase = true; + }) [ termion_1_5_1_features libc_0_2_40_features winapi_0_3_4_features ]; + backtrace_0_2_3 = { features?(backtrace_0_2_3_features {}) }: backtrace_0_2_3_ { + dependencies = mapFeatures features ([ cfg_if_0_1_2 libc_0_2_40 rustc_demangle_0_1_7 ] + ++ (if features.backtrace_0_2_3.backtrace-sys or false then [ backtrace_sys_0_1_16 ] else []) + ++ (if features.backtrace_0_2_3.dbghelp-sys or false then [ dbghelp_sys_0_2_0 ] else []) + ++ (if features.backtrace_0_2_3.kernel32-sys or false then [ kernel32_sys_0_2_2 ] else []) + ++ (if features.backtrace_0_2_3.winapi or false then [ winapi_0_2_8 ] else [])); + buildDependencies = mapFeatures features ([]); + features = mkFeatures (features.backtrace_0_2_3 or {}); + }; + backtrace_0_2_3_features = f: updateFeatures f (rec { + backtrace_0_2_3.backtrace-sys = + (f.backtrace_0_2_3.backtrace-sys or false) || + (f.backtrace_0_2_3.libbacktrace or false) || + (backtrace_0_2_3.libbacktrace or false); + backtrace_0_2_3.dbghelp = + (f.backtrace_0_2_3.dbghelp or false) || + (f.backtrace_0_2_3.default or false) || + (backtrace_0_2_3.default or false); + backtrace_0_2_3.dbghelp-sys = + (f.backtrace_0_2_3.dbghelp-sys or false) || + (f.backtrace_0_2_3.dbghelp or false) || + (backtrace_0_2_3.dbghelp or false); + backtrace_0_2_3.default = (f.backtrace_0_2_3.default or true); + backtrace_0_2_3.dladdr = + (f.backtrace_0_2_3.dladdr or false) || + (f.backtrace_0_2_3.default or false) || + (backtrace_0_2_3.default or false); + backtrace_0_2_3.kernel32-sys = + (f.backtrace_0_2_3.kernel32-sys or false) || + (f.backtrace_0_2_3.dbghelp or false) || + (backtrace_0_2_3.dbghelp or false); + backtrace_0_2_3.libbacktrace = + (f.backtrace_0_2_3.libbacktrace or false) || + (f.backtrace_0_2_3.default or false) || + (backtrace_0_2_3.default or false); + backtrace_0_2_3.libunwind = + (f.backtrace_0_2_3.libunwind or false) || + (f.backtrace_0_2_3.default or false) || + (backtrace_0_2_3.default or false); + backtrace_0_2_3.rustc-serialize = + (f.backtrace_0_2_3.rustc-serialize or false) || + (f.backtrace_0_2_3.serialize-rustc or false) || + (backtrace_0_2_3.serialize-rustc or false); + backtrace_0_2_3.serde = + (f.backtrace_0_2_3.serde or false) || + (f.backtrace_0_2_3.serialize-serde or false) || + (backtrace_0_2_3.serialize-serde or false); + backtrace_0_2_3.serde_codegen = + (f.backtrace_0_2_3.serde_codegen or false) || + (f.backtrace_0_2_3.serialize-serde or false) || + (backtrace_0_2_3.serialize-serde or false); + backtrace_0_2_3.winapi = + (f.backtrace_0_2_3.winapi or false) || + (f.backtrace_0_2_3.dbghelp or false) || + (backtrace_0_2_3.dbghelp or false); + backtrace_sys_0_1_16.default = true; + cfg_if_0_1_2.default = true; + dbghelp_sys_0_2_0.default = true; + kernel32_sys_0_2_2.default = true; + libc_0_2_40.default = true; + rustc_demangle_0_1_7.default = true; + winapi_0_2_8.default = true; + }) [ backtrace_sys_0_1_16_features cfg_if_0_1_2_features dbghelp_sys_0_2_0_features kernel32_sys_0_2_2_features libc_0_2_40_features rustc_demangle_0_1_7_features winapi_0_2_8_features ]; + backtrace_0_3_6 = { features?(backtrace_0_3_6_features {}) }: backtrace_0_3_6_ { + dependencies = mapFeatures features ([ cfg_if_0_1_2 rustc_demangle_0_1_7 ]) + ++ (if (kernel == "linux" || kernel == "darwin") && !(kernel == "fuchsia") && !(kernel == "emscripten") && !(kernel == "darwin") && !(kernel == "ios") then mapFeatures features ([ ] + ++ (if features.backtrace_0_3_6.backtrace-sys or false then [ backtrace_sys_0_1_16 ] else [])) else []) + ++ (if (kernel == "linux" || kernel == "darwin") then mapFeatures features ([ libc_0_2_40 ]) else []) + ++ (if kernel == "windows" then mapFeatures features ([ ] + ++ (if features.backtrace_0_3_6.winapi or false then [ winapi_0_3_4 ] else [])) else []); + features = mkFeatures (features.backtrace_0_3_6 or {}); + }; + backtrace_0_3_6_features = f: updateFeatures f (rec { + backtrace_0_3_6.addr2line = + (f.backtrace_0_3_6.addr2line or false) || + (f.backtrace_0_3_6.gimli-symbolize or false) || + (backtrace_0_3_6.gimli-symbolize or false); + backtrace_0_3_6.backtrace-sys = + (f.backtrace_0_3_6.backtrace-sys or false) || + (f.backtrace_0_3_6.libbacktrace or false) || + (backtrace_0_3_6.libbacktrace or false); + backtrace_0_3_6.coresymbolication = + (f.backtrace_0_3_6.coresymbolication or false) || + (f.backtrace_0_3_6.default or false) || + (backtrace_0_3_6.default or false); + backtrace_0_3_6.dbghelp = + (f.backtrace_0_3_6.dbghelp or false) || + (f.backtrace_0_3_6.default or false) || + (backtrace_0_3_6.default or false); + backtrace_0_3_6.default = (f.backtrace_0_3_6.default or true); + backtrace_0_3_6.dladdr = + (f.backtrace_0_3_6.dladdr or false) || + (f.backtrace_0_3_6.default or false) || + (backtrace_0_3_6.default or false); + backtrace_0_3_6.findshlibs = + (f.backtrace_0_3_6.findshlibs or false) || + (f.backtrace_0_3_6.gimli-symbolize or false) || + (backtrace_0_3_6.gimli-symbolize or false); + backtrace_0_3_6.gimli = + (f.backtrace_0_3_6.gimli or false) || + (f.backtrace_0_3_6.gimli-symbolize or false) || + (backtrace_0_3_6.gimli-symbolize or false); + backtrace_0_3_6.libbacktrace = + (f.backtrace_0_3_6.libbacktrace or false) || + (f.backtrace_0_3_6.default or false) || + (backtrace_0_3_6.default or false); + backtrace_0_3_6.libunwind = + (f.backtrace_0_3_6.libunwind or false) || + (f.backtrace_0_3_6.default or false) || + (backtrace_0_3_6.default or false); + backtrace_0_3_6.memmap = + (f.backtrace_0_3_6.memmap or false) || + (f.backtrace_0_3_6.gimli-symbolize or false) || + (backtrace_0_3_6.gimli-symbolize or false); + backtrace_0_3_6.object = + (f.backtrace_0_3_6.object or false) || + (f.backtrace_0_3_6.gimli-symbolize or false) || + (backtrace_0_3_6.gimli-symbolize or false); + backtrace_0_3_6.rustc-serialize = + (f.backtrace_0_3_6.rustc-serialize or false) || + (f.backtrace_0_3_6.serialize-rustc or false) || + (backtrace_0_3_6.serialize-rustc or false); + backtrace_0_3_6.serde = + (f.backtrace_0_3_6.serde or false) || + (f.backtrace_0_3_6.serialize-serde or false) || + (backtrace_0_3_6.serialize-serde or false); + backtrace_0_3_6.serde_derive = + (f.backtrace_0_3_6.serde_derive or false) || + (f.backtrace_0_3_6.serialize-serde or false) || + (backtrace_0_3_6.serialize-serde or false); + backtrace_0_3_6.winapi = + (f.backtrace_0_3_6.winapi or false) || + (f.backtrace_0_3_6.dbghelp or false) || + (backtrace_0_3_6.dbghelp or false); + backtrace_sys_0_1_16.default = true; + cfg_if_0_1_2.default = true; + libc_0_2_40.default = true; + rustc_demangle_0_1_7.default = true; + winapi_0_3_4.dbghelp = true; + winapi_0_3_4.default = true; + winapi_0_3_4.minwindef = true; + winapi_0_3_4.processthreadsapi = true; + winapi_0_3_4.std = true; + winapi_0_3_4.winnt = true; + }) [ cfg_if_0_1_2_features rustc_demangle_0_1_7_features backtrace_sys_0_1_16_features libc_0_2_40_features winapi_0_3_4_features ]; + backtrace_sys_0_1_16 = { features?(backtrace_sys_0_1_16_features {}) }: backtrace_sys_0_1_16_ { + dependencies = mapFeatures features ([ libc_0_2_40 ]); + buildDependencies = mapFeatures features ([ cc_1_0_10 ]); + }; + backtrace_sys_0_1_16_features = f: updateFeatures f (rec { + backtrace_sys_0_1_16.default = (f.backtrace_sys_0_1_16.default or true); + cc_1_0_10.default = true; + libc_0_2_40.default = true; + }) [ libc_0_2_40_features cc_1_0_10_features ]; + base64_0_6_0 = { features?(base64_0_6_0_features {}) }: base64_0_6_0_ { + dependencies = mapFeatures features ([ byteorder_1_2_2 safemem_0_2_0 ]); + }; + base64_0_6_0_features = f: updateFeatures f (rec { + base64_0_6_0.default = (f.base64_0_6_0.default or true); + byteorder_1_2_2.default = true; + safemem_0_2_0.default = true; + }) [ byteorder_1_2_2_features safemem_0_2_0_features ]; + base64_0_9_1 = { features?(base64_0_9_1_features {}) }: base64_0_9_1_ { + dependencies = mapFeatures features ([ byteorder_1_2_2 safemem_0_2_0 ]); + }; + base64_0_9_1_features = f: updateFeatures f (rec { + base64_0_9_1.default = (f.base64_0_9_1.default or true); + byteorder_1_2_2.default = true; + safemem_0_2_0.default = true; + }) [ byteorder_1_2_2_features safemem_0_2_0_features ]; + bitflags_0_9_1 = { features?(bitflags_0_9_1_features {}) }: bitflags_0_9_1_ { + features = mkFeatures (features.bitflags_0_9_1 or {}); + }; + bitflags_0_9_1_features = f: updateFeatures f (rec { + bitflags_0_9_1.default = (f.bitflags_0_9_1.default or true); + bitflags_0_9_1.example_generated = + (f.bitflags_0_9_1.example_generated or false) || + (f.bitflags_0_9_1.default or false) || + (bitflags_0_9_1.default or false); + }) []; + bitflags_1_0_1 = { features?(bitflags_1_0_1_features {}) }: bitflags_1_0_1_ { + features = mkFeatures (features.bitflags_1_0_1 or {}); + }; + bitflags_1_0_1_features = f: updateFeatures f (rec { + bitflags_1_0_1.default = (f.bitflags_1_0_1.default or true); + bitflags_1_0_1.example_generated = + (f.bitflags_1_0_1.example_generated or false) || + (f.bitflags_1_0_1.default or false) || + (bitflags_1_0_1.default or false); + }) []; + brotli_sys_0_3_2 = { features?(brotli_sys_0_3_2_features {}) }: brotli_sys_0_3_2_ { + dependencies = mapFeatures features ([ libc_0_2_40 ]); + buildDependencies = mapFeatures features ([ cc_1_0_10 ]); + }; + brotli_sys_0_3_2_features = f: updateFeatures f (rec { + brotli_sys_0_3_2.default = (f.brotli_sys_0_3_2.default or true); + cc_1_0_10.default = true; + libc_0_2_40.default = true; + }) [ libc_0_2_40_features cc_1_0_10_features ]; + brotli2_0_3_2 = { features?(brotli2_0_3_2_features {}) }: brotli2_0_3_2_ { + dependencies = mapFeatures features ([ brotli_sys_0_3_2 libc_0_2_40 ]); + }; + brotli2_0_3_2_features = f: updateFeatures f (rec { + brotli2_0_3_2.default = (f.brotli2_0_3_2.default or true); + brotli_sys_0_3_2.default = true; + libc_0_2_40.default = true; + }) [ brotli_sys_0_3_2_features libc_0_2_40_features ]; + build_const_0_2_1 = { features?(build_const_0_2_1_features {}) }: build_const_0_2_1_ { + features = mkFeatures (features.build_const_0_2_1 or {}); + }; + build_const_0_2_1_features = f: updateFeatures f (rec { + build_const_0_2_1.default = (f.build_const_0_2_1.default or true); + build_const_0_2_1.std = + (f.build_const_0_2_1.std or false) || + (f.build_const_0_2_1.default or false) || + (build_const_0_2_1.default or false); + }) []; + bytecount_0_2_0 = { features?(bytecount_0_2_0_features {}) }: bytecount_0_2_0_ { + dependencies = mapFeatures features ([]); + features = mkFeatures (features.bytecount_0_2_0 or {}); + }; + bytecount_0_2_0_features = f: updateFeatures f (rec { + bytecount_0_2_0.default = (f.bytecount_0_2_0.default or true); + bytecount_0_2_0.simd = + (f.bytecount_0_2_0.simd or false) || + (f.bytecount_0_2_0.simd-accel or false) || + (bytecount_0_2_0.simd-accel or false); + bytecount_0_2_0.simd-accel = + (f.bytecount_0_2_0.simd-accel or false) || + (f.bytecount_0_2_0.avx-accel or false) || + (bytecount_0_2_0.avx-accel or false); + }) []; + byteorder_1_2_2 = { features?(byteorder_1_2_2_features {}) }: byteorder_1_2_2_ { + features = mkFeatures (features.byteorder_1_2_2 or {}); + }; + byteorder_1_2_2_features = f: updateFeatures f (rec { + byteorder_1_2_2.default = (f.byteorder_1_2_2.default or true); + byteorder_1_2_2.std = + (f.byteorder_1_2_2.std or false) || + (f.byteorder_1_2_2.default or false) || + (byteorder_1_2_2.default or false); + }) []; + bytes_0_4_6 = { features?(bytes_0_4_6_features {}) }: bytes_0_4_6_ { + dependencies = mapFeatures features ([ byteorder_1_2_2 iovec_0_1_2 ]); + }; + bytes_0_4_6_features = f: updateFeatures f (rec { + byteorder_1_2_2.default = true; + bytes_0_4_6.default = (f.bytes_0_4_6.default or true); + iovec_0_1_2.default = true; + }) [ byteorder_1_2_2_features iovec_0_1_2_features ]; + cargo_metadata_0_3_3 = { features?(cargo_metadata_0_3_3_features {}) }: cargo_metadata_0_3_3_ { + dependencies = mapFeatures features ([ error_chain_0_11_0 semver_0_8_0 serde_1_0_43 serde_derive_1_0_43 serde_json_1_0_16 ]); + }; + cargo_metadata_0_3_3_features = f: updateFeatures f (rec { + cargo_metadata_0_3_3.default = (f.cargo_metadata_0_3_3.default or true); + error_chain_0_11_0.default = true; + semver_0_8_0.default = true; + semver_0_8_0.serde = true; + serde_1_0_43.default = true; + serde_derive_1_0_43.default = true; + serde_json_1_0_16.default = true; + }) [ error_chain_0_11_0_features semver_0_8_0_features serde_1_0_43_features serde_derive_1_0_43_features serde_json_1_0_16_features ]; + cc_1_0_10 = { features?(cc_1_0_10_features {}) }: cc_1_0_10_ { + dependencies = mapFeatures features ([]); + features = mkFeatures (features.cc_1_0_10 or {}); + }; + cc_1_0_10_features = f: updateFeatures f (rec { + cc_1_0_10.default = (f.cc_1_0_10.default or true); + cc_1_0_10.rayon = + (f.cc_1_0_10.rayon or false) || + (f.cc_1_0_10.parallel or false) || + (cc_1_0_10.parallel or false); + }) []; + cfg_if_0_1_2 = { features?(cfg_if_0_1_2_features {}) }: cfg_if_0_1_2_ {}; + cfg_if_0_1_2_features = f: updateFeatures f (rec { + cfg_if_0_1_2.default = (f.cfg_if_0_1_2.default or true); + }) []; + chrono_0_4_2 = { features?(chrono_0_4_2_features {}) }: chrono_0_4_2_ { + dependencies = mapFeatures features ([ num_integer_0_1_36 num_traits_0_2_2 ] + ++ (if features.chrono_0_4_2.serde or false then [ serde_1_0_43 ] else []) + ++ (if features.chrono_0_4_2.time or false then [ time_0_1_39 ] else [])); + features = mkFeatures (features.chrono_0_4_2 or {}); + }; + chrono_0_4_2_features = f: updateFeatures f (rec { + chrono_0_4_2.clock = + (f.chrono_0_4_2.clock or false) || + (f.chrono_0_4_2.default or false) || + (chrono_0_4_2.default or false); + chrono_0_4_2.default = (f.chrono_0_4_2.default or true); + chrono_0_4_2.time = + (f.chrono_0_4_2.time or false) || + (f.chrono_0_4_2.clock or false) || + (chrono_0_4_2.clock or false); + num_integer_0_1_36.default = (f.num_integer_0_1_36.default or false); + num_traits_0_2_2.default = (f.num_traits_0_2_2.default or false); + serde_1_0_43.default = true; + time_0_1_39.default = true; + }) [ num_integer_0_1_36_features num_traits_0_2_2_features serde_1_0_43_features time_0_1_39_features ]; + clap_2_31_2 = { features?(clap_2_31_2_features {}) }: clap_2_31_2_ { + dependencies = mapFeatures features ([ bitflags_1_0_1 textwrap_0_9_0 unicode_width_0_1_4 ] + ++ (if features.clap_2_31_2.atty or false then [ atty_0_2_9 ] else []) + ++ (if features.clap_2_31_2.strsim or false then [ strsim_0_7_0 ] else []) + ++ (if features.clap_2_31_2.vec_map or false then [ vec_map_0_8_0 ] else [])) + ++ (if !(kernel == "windows") then mapFeatures features ([ ] + ++ (if features.clap_2_31_2.ansi_term or false then [ ansi_term_0_11_0 ] else [])) else []); + features = mkFeatures (features.clap_2_31_2 or {}); + }; + clap_2_31_2_features = f: updateFeatures f (rec { + ansi_term_0_11_0.default = true; + atty_0_2_9.default = true; + bitflags_1_0_1.default = true; + clap_2_31_2.ansi_term = + (f.clap_2_31_2.ansi_term or false) || + (f.clap_2_31_2.color or false) || + (clap_2_31_2.color or false); + clap_2_31_2.atty = + (f.clap_2_31_2.atty or false) || + (f.clap_2_31_2.color or false) || + (clap_2_31_2.color or false); + clap_2_31_2.clippy = + (f.clap_2_31_2.clippy or false) || + (f.clap_2_31_2.lints or false) || + (clap_2_31_2.lints or false); + clap_2_31_2.color = + (f.clap_2_31_2.color or false) || + (f.clap_2_31_2.default or false) || + (clap_2_31_2.default or false); + clap_2_31_2.default = (f.clap_2_31_2.default or true); + clap_2_31_2.strsim = + (f.clap_2_31_2.strsim or false) || + (f.clap_2_31_2.suggestions or false) || + (clap_2_31_2.suggestions or false); + clap_2_31_2.suggestions = + (f.clap_2_31_2.suggestions or false) || + (f.clap_2_31_2.default or false) || + (clap_2_31_2.default or false); + clap_2_31_2.term_size = + (f.clap_2_31_2.term_size or false) || + (f.clap_2_31_2.wrap_help or false) || + (clap_2_31_2.wrap_help or false); + clap_2_31_2.vec_map = + (f.clap_2_31_2.vec_map or false) || + (f.clap_2_31_2.default or false) || + (clap_2_31_2.default or false); + clap_2_31_2.yaml = + (f.clap_2_31_2.yaml or false) || + (f.clap_2_31_2.doc or false) || + (clap_2_31_2.doc or false); + clap_2_31_2.yaml-rust = + (f.clap_2_31_2.yaml-rust or false) || + (f.clap_2_31_2.yaml or false) || + (clap_2_31_2.yaml or false); + strsim_0_7_0.default = true; + textwrap_0_9_0.default = true; + textwrap_0_9_0.term_size = + (f.textwrap_0_9_0.term_size or false) || + (clap_2_31_2.wrap_help or false) || + (f.clap_2_31_2.wrap_help or false); + unicode_width_0_1_4.default = true; + vec_map_0_8_0.default = true; + }) [ atty_0_2_9_features bitflags_1_0_1_features strsim_0_7_0_features textwrap_0_9_0_features unicode_width_0_1_4_features vec_map_0_8_0_features ansi_term_0_11_0_features ]; + comrak_0_2_9 = { features?(comrak_0_2_9_features {}) }: comrak_0_2_9_ { + dependencies = mapFeatures features ([ entities_1_0_1 lazy_static_1_0_0 pest_1_0_6 pest_derive_1_0_7 regex_0_2_10 twoway_0_1_8 typed_arena_1_3_0 unicode_categories_0_1_1 ] + ++ (if features.comrak_0_2_9.clap or false then [ clap_2_31_2 ] else [])); + features = mkFeatures (features.comrak_0_2_9 or {}); + }; + comrak_0_2_9_features = f: updateFeatures f (rec { + clap_2_31_2.default = true; + comrak_0_2_9.clap = + (f.comrak_0_2_9.clap or false) || + (f.comrak_0_2_9.default or false) || + (comrak_0_2_9.default or false); + comrak_0_2_9.default = (f.comrak_0_2_9.default or true); + entities_1_0_1.default = true; + lazy_static_1_0_0.default = true; + pest_1_0_6.default = true; + pest_derive_1_0_7.default = true; + regex_0_2_10.default = true; + twoway_0_1_8.default = true; + typed_arena_1_3_0.default = true; + unicode_categories_0_1_1.default = true; + }) [ clap_2_31_2_features entities_1_0_1_features lazy_static_1_0_0_features pest_1_0_6_features pest_derive_1_0_7_features regex_0_2_10_features twoway_0_1_8_features typed_arena_1_3_0_features unicode_categories_0_1_1_features ]; + converse_0_1_0 = { features?(converse_0_1_0_features {}) }: converse_0_1_0_ { + dependencies = mapFeatures features ([ actix_0_5_6 actix_web_0_5_4 chrono_0_4_2 comrak_0_2_9 diesel_1_2_2 env_logger_0_5_9 failure_0_1_1 futures_0_1_21 hyper_0_11_25 log_0_4_1 md5_0_3_7 r2d2_0_8_2 rand_0_4_2 reqwest_0_8_5 serde_1_0_43 serde_derive_1_0_43 serde_json_1_0_16 tera_0_11_6 tokio_0_1_5 tokio_timer_0_2_1 url_1_7_0 url_serde_0_2_0 ]); + }; + converse_0_1_0_features = f: updateFeatures f (rec { + actix_0_5_6.default = true; + actix_web_0_5_4.default = true; + chrono_0_4_2.default = true; + chrono_0_4_2.serde = true; + comrak_0_2_9.default = true; + converse_0_1_0.default = (f.converse_0_1_0.default or true); + diesel_1_2_2.chrono = true; + diesel_1_2_2.default = true; + diesel_1_2_2.postgres = true; + diesel_1_2_2.r2d2 = true; + env_logger_0_5_9.default = true; + failure_0_1_1.default = true; + futures_0_1_21.default = true; + hyper_0_11_25.default = true; + log_0_4_1.default = true; + md5_0_3_7.default = true; + r2d2_0_8_2.default = true; + rand_0_4_2.default = true; + reqwest_0_8_5.default = true; + serde_1_0_43.default = true; + serde_derive_1_0_43.default = true; + serde_json_1_0_16.default = true; + tera_0_11_6.default = true; + tokio_0_1_5.default = true; + tokio_timer_0_2_1.default = true; + url_1_7_0.default = true; + url_serde_0_2_0.default = true; + }) [ actix_0_5_6_features actix_web_0_5_4_features chrono_0_4_2_features comrak_0_2_9_features diesel_1_2_2_features env_logger_0_5_9_features failure_0_1_1_features futures_0_1_21_features hyper_0_11_25_features log_0_4_1_features md5_0_3_7_features r2d2_0_8_2_features rand_0_4_2_features reqwest_0_8_5_features serde_1_0_43_features serde_derive_1_0_43_features serde_json_1_0_16_features tera_0_11_6_features tokio_0_1_5_features tokio_timer_0_2_1_features url_1_7_0_features url_serde_0_2_0_features ]; + cookie_0_10_1 = { features?(cookie_0_10_1_features {}) }: cookie_0_10_1_ { + dependencies = mapFeatures features ([ time_0_1_39 ] + ++ (if features.cookie_0_10_1.base64 or false then [ base64_0_6_0 ] else []) + ++ (if features.cookie_0_10_1.ring or false then [ ring_0_12_1 ] else []) + ++ (if features.cookie_0_10_1.url or false then [ url_1_7_0 ] else [])); + features = mkFeatures (features.cookie_0_10_1 or {}); + }; + cookie_0_10_1_features = f: updateFeatures f (rec { + base64_0_6_0.default = true; + cookie_0_10_1.base64 = + (f.cookie_0_10_1.base64 or false) || + (f.cookie_0_10_1.secure or false) || + (cookie_0_10_1.secure or false); + cookie_0_10_1.default = (f.cookie_0_10_1.default or true); + cookie_0_10_1.ring = + (f.cookie_0_10_1.ring or false) || + (f.cookie_0_10_1.secure or false) || + (cookie_0_10_1.secure or false); + cookie_0_10_1.url = + (f.cookie_0_10_1.url or false) || + (f.cookie_0_10_1.percent-encode or false) || + (cookie_0_10_1.percent-encode or false); + ring_0_12_1.default = true; + time_0_1_39.default = true; + url_1_7_0.default = true; + }) [ base64_0_6_0_features ring_0_12_1_features time_0_1_39_features url_1_7_0_features ]; + core_foundation_0_2_3 = { features?(core_foundation_0_2_3_features {}) }: core_foundation_0_2_3_ { + dependencies = mapFeatures features ([ core_foundation_sys_0_2_3 libc_0_2_40 ]); + }; + core_foundation_0_2_3_features = f: updateFeatures f (rec { + core_foundation_0_2_3.default = (f.core_foundation_0_2_3.default or true); + core_foundation_sys_0_2_3.default = true; + libc_0_2_40.default = true; + }) [ core_foundation_sys_0_2_3_features libc_0_2_40_features ]; + core_foundation_sys_0_2_3 = { features?(core_foundation_sys_0_2_3_features {}) }: core_foundation_sys_0_2_3_ { + dependencies = mapFeatures features ([ libc_0_2_40 ]); + }; + core_foundation_sys_0_2_3_features = f: updateFeatures f (rec { + core_foundation_sys_0_2_3.default = (f.core_foundation_sys_0_2_3.default or true); + libc_0_2_40.default = true; + }) [ libc_0_2_40_features ]; + crc_1_7_0 = { features?(crc_1_7_0_features {}) }: crc_1_7_0_ { + buildDependencies = mapFeatures features ([ build_const_0_2_1 ]); + features = mkFeatures (features.crc_1_7_0 or {}); + }; + crc_1_7_0_features = f: updateFeatures f (rec { + build_const_0_2_1.default = true; + crc_1_7_0.default = (f.crc_1_7_0.default or true); + crc_1_7_0.std = + (f.crc_1_7_0.std or false) || + (f.crc_1_7_0.default or false) || + (crc_1_7_0.default or false); + }) [ build_const_0_2_1_features ]; + crossbeam_channel_0_1_2 = { features?(crossbeam_channel_0_1_2_features {}) }: crossbeam_channel_0_1_2_ { + dependencies = mapFeatures features ([ crossbeam_epoch_0_2_0 crossbeam_utils_0_2_2 parking_lot_0_4_8 ]); + features = mkFeatures (features.crossbeam_channel_0_1_2 or {}); + }; + crossbeam_channel_0_1_2_features = f: updateFeatures f (rec { + crossbeam_channel_0_1_2.default = (f.crossbeam_channel_0_1_2.default or true); + crossbeam_epoch_0_2_0.default = true; + crossbeam_utils_0_2_2.default = true; + parking_lot_0_4_8.default = true; + }) [ crossbeam_epoch_0_2_0_features crossbeam_utils_0_2_2_features parking_lot_0_4_8_features ]; + crossbeam_deque_0_2_0 = { features?(crossbeam_deque_0_2_0_features {}) }: crossbeam_deque_0_2_0_ { + dependencies = mapFeatures features ([ crossbeam_epoch_0_3_1 crossbeam_utils_0_2_2 ]); + }; + crossbeam_deque_0_2_0_features = f: updateFeatures f (rec { + crossbeam_deque_0_2_0.default = (f.crossbeam_deque_0_2_0.default or true); + crossbeam_epoch_0_3_1.default = true; + crossbeam_utils_0_2_2.default = true; + }) [ crossbeam_epoch_0_3_1_features crossbeam_utils_0_2_2_features ]; + crossbeam_deque_0_3_0 = { features?(crossbeam_deque_0_3_0_features {}) }: crossbeam_deque_0_3_0_ { + dependencies = mapFeatures features ([ crossbeam_epoch_0_4_1 crossbeam_utils_0_2_2 ]); + }; + crossbeam_deque_0_3_0_features = f: updateFeatures f (rec { + crossbeam_deque_0_3_0.default = (f.crossbeam_deque_0_3_0.default or true); + crossbeam_epoch_0_4_1.default = true; + crossbeam_utils_0_2_2.default = true; + }) [ crossbeam_epoch_0_4_1_features crossbeam_utils_0_2_2_features ]; + crossbeam_epoch_0_2_0 = { features?(crossbeam_epoch_0_2_0_features {}) }: crossbeam_epoch_0_2_0_ { + dependencies = mapFeatures features ([ arrayvec_0_4_7 cfg_if_0_1_2 crossbeam_utils_0_2_2 memoffset_0_1_0 scopeguard_0_3_3 ] + ++ (if features.crossbeam_epoch_0_2_0.lazy_static or false then [ lazy_static_0_2_11 ] else [])); + features = mkFeatures (features.crossbeam_epoch_0_2_0 or {}); + }; + crossbeam_epoch_0_2_0_features = f: updateFeatures f (rec { + arrayvec_0_4_7.default = (f.arrayvec_0_4_7.default or false); + arrayvec_0_4_7.use_union = + (f.arrayvec_0_4_7.use_union or false) || + (crossbeam_epoch_0_2_0.nightly or false) || + (f.crossbeam_epoch_0_2_0.nightly or false); + cfg_if_0_1_2.default = true; + crossbeam_epoch_0_2_0.default = (f.crossbeam_epoch_0_2_0.default or true); + crossbeam_epoch_0_2_0.lazy_static = + (f.crossbeam_epoch_0_2_0.lazy_static or false) || + (f.crossbeam_epoch_0_2_0.use_std or false) || + (crossbeam_epoch_0_2_0.use_std or false); + crossbeam_epoch_0_2_0.use_std = + (f.crossbeam_epoch_0_2_0.use_std or false) || + (f.crossbeam_epoch_0_2_0.default or false) || + (crossbeam_epoch_0_2_0.default or false); + crossbeam_utils_0_2_2.default = (f.crossbeam_utils_0_2_2.default or false); + crossbeam_utils_0_2_2.use_std = + (f.crossbeam_utils_0_2_2.use_std or false) || + (crossbeam_epoch_0_2_0.use_std or false) || + (f.crossbeam_epoch_0_2_0.use_std or false); + lazy_static_0_2_11.default = true; + memoffset_0_1_0.default = (f.memoffset_0_1_0.default or false); + scopeguard_0_3_3.default = (f.scopeguard_0_3_3.default or false); + }) [ arrayvec_0_4_7_features cfg_if_0_1_2_features crossbeam_utils_0_2_2_features lazy_static_0_2_11_features memoffset_0_1_0_features scopeguard_0_3_3_features ]; + crossbeam_epoch_0_3_1 = { features?(crossbeam_epoch_0_3_1_features {}) }: crossbeam_epoch_0_3_1_ { + dependencies = mapFeatures features ([ arrayvec_0_4_7 cfg_if_0_1_2 crossbeam_utils_0_2_2 memoffset_0_2_1 nodrop_0_1_12 scopeguard_0_3_3 ] + ++ (if features.crossbeam_epoch_0_3_1.lazy_static or false then [ lazy_static_1_0_0 ] else [])); + features = mkFeatures (features.crossbeam_epoch_0_3_1 or {}); + }; + crossbeam_epoch_0_3_1_features = f: updateFeatures f (rec { + arrayvec_0_4_7.default = (f.arrayvec_0_4_7.default or false); + arrayvec_0_4_7.use_union = + (f.arrayvec_0_4_7.use_union or false) || + (crossbeam_epoch_0_3_1.nightly or false) || + (f.crossbeam_epoch_0_3_1.nightly or false); + cfg_if_0_1_2.default = true; + crossbeam_epoch_0_3_1.default = (f.crossbeam_epoch_0_3_1.default or true); + crossbeam_epoch_0_3_1.lazy_static = + (f.crossbeam_epoch_0_3_1.lazy_static or false) || + (f.crossbeam_epoch_0_3_1.use_std or false) || + (crossbeam_epoch_0_3_1.use_std or false); + crossbeam_epoch_0_3_1.use_std = + (f.crossbeam_epoch_0_3_1.use_std or false) || + (f.crossbeam_epoch_0_3_1.default or false) || + (crossbeam_epoch_0_3_1.default or false); + crossbeam_utils_0_2_2.default = (f.crossbeam_utils_0_2_2.default or false); + crossbeam_utils_0_2_2.use_std = + (f.crossbeam_utils_0_2_2.use_std or false) || + (crossbeam_epoch_0_3_1.use_std or false) || + (f.crossbeam_epoch_0_3_1.use_std or false); + lazy_static_1_0_0.default = true; + memoffset_0_2_1.default = true; + nodrop_0_1_12.default = (f.nodrop_0_1_12.default or false); + scopeguard_0_3_3.default = (f.scopeguard_0_3_3.default or false); + }) [ arrayvec_0_4_7_features cfg_if_0_1_2_features crossbeam_utils_0_2_2_features lazy_static_1_0_0_features memoffset_0_2_1_features nodrop_0_1_12_features scopeguard_0_3_3_features ]; + crossbeam_epoch_0_4_1 = { features?(crossbeam_epoch_0_4_1_features {}) }: crossbeam_epoch_0_4_1_ { + dependencies = mapFeatures features ([ arrayvec_0_4_7 cfg_if_0_1_2 crossbeam_utils_0_3_2 memoffset_0_2_1 scopeguard_0_3_3 ] + ++ (if features.crossbeam_epoch_0_4_1.lazy_static or false then [ lazy_static_1_0_0 ] else [])); + features = mkFeatures (features.crossbeam_epoch_0_4_1 or {}); + }; + crossbeam_epoch_0_4_1_features = f: updateFeatures f (rec { + arrayvec_0_4_7.default = (f.arrayvec_0_4_7.default or false); + arrayvec_0_4_7.use_union = + (f.arrayvec_0_4_7.use_union or false) || + (crossbeam_epoch_0_4_1.nightly or false) || + (f.crossbeam_epoch_0_4_1.nightly or false); + cfg_if_0_1_2.default = true; + crossbeam_epoch_0_4_1.default = (f.crossbeam_epoch_0_4_1.default or true); + crossbeam_epoch_0_4_1.lazy_static = + (f.crossbeam_epoch_0_4_1.lazy_static or false) || + (f.crossbeam_epoch_0_4_1.use_std or false) || + (crossbeam_epoch_0_4_1.use_std or false); + crossbeam_epoch_0_4_1.use_std = + (f.crossbeam_epoch_0_4_1.use_std or false) || + (f.crossbeam_epoch_0_4_1.default or false) || + (crossbeam_epoch_0_4_1.default or false); + crossbeam_utils_0_3_2.default = (f.crossbeam_utils_0_3_2.default or false); + crossbeam_utils_0_3_2.use_std = + (f.crossbeam_utils_0_3_2.use_std or false) || + (crossbeam_epoch_0_4_1.use_std or false) || + (f.crossbeam_epoch_0_4_1.use_std or false); + lazy_static_1_0_0.default = true; + memoffset_0_2_1.default = true; + scopeguard_0_3_3.default = (f.scopeguard_0_3_3.default or false); + }) [ arrayvec_0_4_7_features cfg_if_0_1_2_features crossbeam_utils_0_3_2_features lazy_static_1_0_0_features memoffset_0_2_1_features scopeguard_0_3_3_features ]; + crossbeam_utils_0_2_2 = { features?(crossbeam_utils_0_2_2_features {}) }: crossbeam_utils_0_2_2_ { + dependencies = mapFeatures features ([ cfg_if_0_1_2 ]); + features = mkFeatures (features.crossbeam_utils_0_2_2 or {}); + }; + crossbeam_utils_0_2_2_features = f: updateFeatures f (rec { + cfg_if_0_1_2.default = true; + crossbeam_utils_0_2_2.default = (f.crossbeam_utils_0_2_2.default or true); + crossbeam_utils_0_2_2.use_std = + (f.crossbeam_utils_0_2_2.use_std or false) || + (f.crossbeam_utils_0_2_2.default or false) || + (crossbeam_utils_0_2_2.default or false); + }) [ cfg_if_0_1_2_features ]; + crossbeam_utils_0_3_2 = { features?(crossbeam_utils_0_3_2_features {}) }: crossbeam_utils_0_3_2_ { + dependencies = mapFeatures features ([ cfg_if_0_1_2 ]); + features = mkFeatures (features.crossbeam_utils_0_3_2 or {}); + }; + crossbeam_utils_0_3_2_features = f: updateFeatures f (rec { + cfg_if_0_1_2.default = true; + crossbeam_utils_0_3_2.default = (f.crossbeam_utils_0_3_2.default or true); + crossbeam_utils_0_3_2.use_std = + (f.crossbeam_utils_0_3_2.use_std or false) || + (f.crossbeam_utils_0_3_2.default or false) || + (crossbeam_utils_0_3_2.default or false); + }) [ cfg_if_0_1_2_features ]; + dbghelp_sys_0_2_0 = { features?(dbghelp_sys_0_2_0_features {}) }: dbghelp_sys_0_2_0_ { + dependencies = mapFeatures features ([ winapi_0_2_8 ]); + buildDependencies = mapFeatures features ([ winapi_build_0_1_1 ]); + }; + dbghelp_sys_0_2_0_features = f: updateFeatures f (rec { + dbghelp_sys_0_2_0.default = (f.dbghelp_sys_0_2_0.default or true); + winapi_0_2_8.default = true; + winapi_build_0_1_1.default = true; + }) [ winapi_0_2_8_features winapi_build_0_1_1_features ]; + diesel_1_2_2 = { features?(diesel_1_2_2_features {}) }: diesel_1_2_2_ { + dependencies = mapFeatures features ([ byteorder_1_2_2 diesel_derives_1_2_0 ] + ++ (if features.diesel_1_2_2.bitflags or false then [ bitflags_1_0_1 ] else []) + ++ (if features.diesel_1_2_2.chrono or false then [ chrono_0_4_2 ] else []) + ++ (if features.diesel_1_2_2.pq-sys or false then [ pq_sys_0_4_4 ] else []) + ++ (if features.diesel_1_2_2.r2d2 or false then [ r2d2_0_8_2 ] else [])); + features = mkFeatures (features.diesel_1_2_2 or {}); + }; + diesel_1_2_2_features = f: updateFeatures f (rec { + bitflags_1_0_1.default = true; + byteorder_1_2_2.default = true; + chrono_0_4_2.default = true; + diesel_1_2_2."128-column-tables" = + (f.diesel_1_2_2."128-column-tables" or false) || + (f.diesel_1_2_2.x128-column-tables or false) || + (diesel_1_2_2.x128-column-tables or false); + diesel_1_2_2."32-column-tables" = + (f.diesel_1_2_2."32-column-tables" or false) || + (f.diesel_1_2_2."64-column-tables" or false) || + (diesel_1_2_2."64-column-tables" or false) || + (f.diesel_1_2_2.default or false) || + (diesel_1_2_2.default or false) || + (f.diesel_1_2_2.large-tables or false) || + (diesel_1_2_2.large-tables or false) || + (f.diesel_1_2_2.x32-column-tables or false) || + (diesel_1_2_2.x32-column-tables or false); + diesel_1_2_2."64-column-tables" = + (f.diesel_1_2_2."64-column-tables" or false) || + (f.diesel_1_2_2."128-column-tables" or false) || + (diesel_1_2_2."128-column-tables" or false) || + (f.diesel_1_2_2.huge-tables or false) || + (diesel_1_2_2.huge-tables or false) || + (f.diesel_1_2_2.x64-column-tables or false) || + (diesel_1_2_2.x64-column-tables or false); + diesel_1_2_2.bigdecimal = + (f.diesel_1_2_2.bigdecimal or false) || + (f.diesel_1_2_2.numeric or false) || + (diesel_1_2_2.numeric or false); + diesel_1_2_2.bitflags = + (f.diesel_1_2_2.bitflags or false) || + (f.diesel_1_2_2.postgres or false) || + (diesel_1_2_2.postgres or false); + diesel_1_2_2.chrono = + (f.diesel_1_2_2.chrono or false) || + (f.diesel_1_2_2.extras or false) || + (diesel_1_2_2.extras or false); + diesel_1_2_2.clippy = + (f.diesel_1_2_2.clippy or false) || + (f.diesel_1_2_2.lint or false) || + (diesel_1_2_2.lint or false); + diesel_1_2_2.default = (f.diesel_1_2_2.default or true); + diesel_1_2_2.deprecated-time = + (f.diesel_1_2_2.deprecated-time or false) || + (f.diesel_1_2_2.extras or false) || + (diesel_1_2_2.extras or false); + diesel_1_2_2.ipnetwork = + (f.diesel_1_2_2.ipnetwork or false) || + (f.diesel_1_2_2.network-address or false) || + (diesel_1_2_2.network-address or false); + diesel_1_2_2.libc = + (f.diesel_1_2_2.libc or false) || + (f.diesel_1_2_2.network-address or false) || + (diesel_1_2_2.network-address or false); + diesel_1_2_2.libsqlite3-sys = + (f.diesel_1_2_2.libsqlite3-sys or false) || + (f.diesel_1_2_2.sqlite or false) || + (diesel_1_2_2.sqlite or false); + diesel_1_2_2.mysqlclient-sys = + (f.diesel_1_2_2.mysqlclient-sys or false) || + (f.diesel_1_2_2.mysql or false) || + (diesel_1_2_2.mysql or false); + diesel_1_2_2.network-address = + (f.diesel_1_2_2.network-address or false) || + (f.diesel_1_2_2.extras or false) || + (diesel_1_2_2.extras or false); + diesel_1_2_2.num-bigint = + (f.diesel_1_2_2.num-bigint or false) || + (f.diesel_1_2_2.numeric or false) || + (diesel_1_2_2.numeric or false); + diesel_1_2_2.num-integer = + (f.diesel_1_2_2.num-integer or false) || + (f.diesel_1_2_2.numeric or false) || + (diesel_1_2_2.numeric or false); + diesel_1_2_2.num-traits = + (f.diesel_1_2_2.num-traits or false) || + (f.diesel_1_2_2.numeric or false) || + (diesel_1_2_2.numeric or false); + diesel_1_2_2.numeric = + (f.diesel_1_2_2.numeric or false) || + (f.diesel_1_2_2.extras or false) || + (diesel_1_2_2.extras or false); + diesel_1_2_2.pq-sys = + (f.diesel_1_2_2.pq-sys or false) || + (f.diesel_1_2_2.postgres or false) || + (diesel_1_2_2.postgres or false); + diesel_1_2_2.r2d2 = + (f.diesel_1_2_2.r2d2 or false) || + (f.diesel_1_2_2.extras or false) || + (diesel_1_2_2.extras or false); + diesel_1_2_2.serde_json = + (f.diesel_1_2_2.serde_json or false) || + (f.diesel_1_2_2.extras or false) || + (diesel_1_2_2.extras or false); + diesel_1_2_2.time = + (f.diesel_1_2_2.time or false) || + (f.diesel_1_2_2.deprecated-time or false) || + (diesel_1_2_2.deprecated-time or false); + diesel_1_2_2.url = + (f.diesel_1_2_2.url or false) || + (f.diesel_1_2_2.mysql or false) || + (diesel_1_2_2.mysql or false); + diesel_1_2_2.uuid = + (f.diesel_1_2_2.uuid or false) || + (f.diesel_1_2_2.extras or false) || + (diesel_1_2_2.extras or false); + diesel_1_2_2.with-deprecated = + (f.diesel_1_2_2.with-deprecated or false) || + (f.diesel_1_2_2.default or false) || + (diesel_1_2_2.default or false); + diesel_derives_1_2_0.default = true; + diesel_derives_1_2_0.mysql = + (f.diesel_derives_1_2_0.mysql or false) || + (diesel_1_2_2.mysql or false) || + (f.diesel_1_2_2.mysql or false); + diesel_derives_1_2_0.nightly = + (f.diesel_derives_1_2_0.nightly or false) || + (diesel_1_2_2.unstable or false) || + (f.diesel_1_2_2.unstable or false); + diesel_derives_1_2_0.postgres = + (f.diesel_derives_1_2_0.postgres or false) || + (diesel_1_2_2.postgres or false) || + (f.diesel_1_2_2.postgres or false); + diesel_derives_1_2_0.sqlite = + (f.diesel_derives_1_2_0.sqlite or false) || + (diesel_1_2_2.sqlite or false) || + (f.diesel_1_2_2.sqlite or false); + pq_sys_0_4_4.default = true; + r2d2_0_8_2.default = true; + }) [ bitflags_1_0_1_features byteorder_1_2_2_features chrono_0_4_2_features diesel_derives_1_2_0_features pq_sys_0_4_4_features r2d2_0_8_2_features ]; + diesel_derives_1_2_0 = { features?(diesel_derives_1_2_0_features {}) }: diesel_derives_1_2_0_ { + dependencies = mapFeatures features ([ proc_macro2_0_2_3 quote_0_4_2 syn_0_12_15 ]); + features = mkFeatures (features.diesel_derives_1_2_0 or {}); + }; + diesel_derives_1_2_0_features = f: updateFeatures f (rec { + diesel_derives_1_2_0.clippy = + (f.diesel_derives_1_2_0.clippy or false) || + (f.diesel_derives_1_2_0.lint or false) || + (diesel_derives_1_2_0.lint or false); + diesel_derives_1_2_0.default = (f.diesel_derives_1_2_0.default or true); + proc_macro2_0_2_3.default = true; + proc_macro2_0_2_3.nightly = + (f.proc_macro2_0_2_3.nightly or false) || + (diesel_derives_1_2_0.nightly or false) || + (f.diesel_derives_1_2_0.nightly or false); + quote_0_4_2.default = true; + syn_0_12_15.default = true; + syn_0_12_15.fold = true; + syn_0_12_15.full = true; + }) [ proc_macro2_0_2_3_features quote_0_4_2_features syn_0_12_15_features ]; + dtoa_0_4_2 = { features?(dtoa_0_4_2_features {}) }: dtoa_0_4_2_ {}; + dtoa_0_4_2_features = f: updateFeatures f (rec { + dtoa_0_4_2.default = (f.dtoa_0_4_2.default or true); + }) []; + encoding_0_2_33 = { features?(encoding_0_2_33_features {}) }: encoding_0_2_33_ { + dependencies = mapFeatures features ([ encoding_index_japanese_1_20141219_5 encoding_index_korean_1_20141219_5 encoding_index_simpchinese_1_20141219_5 encoding_index_singlebyte_1_20141219_5 encoding_index_tradchinese_1_20141219_5 ]); + }; + encoding_0_2_33_features = f: updateFeatures f (rec { + encoding_0_2_33.default = (f.encoding_0_2_33.default or true); + encoding_index_japanese_1_20141219_5.default = true; + encoding_index_korean_1_20141219_5.default = true; + encoding_index_simpchinese_1_20141219_5.default = true; + encoding_index_singlebyte_1_20141219_5.default = true; + encoding_index_tradchinese_1_20141219_5.default = true; + }) [ encoding_index_japanese_1_20141219_5_features encoding_index_korean_1_20141219_5_features encoding_index_simpchinese_1_20141219_5_features encoding_index_singlebyte_1_20141219_5_features encoding_index_tradchinese_1_20141219_5_features ]; + encoding_index_japanese_1_20141219_5 = { features?(encoding_index_japanese_1_20141219_5_features {}) }: encoding_index_japanese_1_20141219_5_ { + dependencies = mapFeatures features ([ encoding_index_tests_0_1_4 ]); + }; + encoding_index_japanese_1_20141219_5_features = f: updateFeatures f (rec { + encoding_index_japanese_1_20141219_5.default = (f.encoding_index_japanese_1_20141219_5.default or true); + encoding_index_tests_0_1_4.default = true; + }) [ encoding_index_tests_0_1_4_features ]; + encoding_index_korean_1_20141219_5 = { features?(encoding_index_korean_1_20141219_5_features {}) }: encoding_index_korean_1_20141219_5_ { + dependencies = mapFeatures features ([ encoding_index_tests_0_1_4 ]); + }; + encoding_index_korean_1_20141219_5_features = f: updateFeatures f (rec { + encoding_index_korean_1_20141219_5.default = (f.encoding_index_korean_1_20141219_5.default or true); + encoding_index_tests_0_1_4.default = true; + }) [ encoding_index_tests_0_1_4_features ]; + encoding_index_simpchinese_1_20141219_5 = { features?(encoding_index_simpchinese_1_20141219_5_features {}) }: encoding_index_simpchinese_1_20141219_5_ { + dependencies = mapFeatures features ([ encoding_index_tests_0_1_4 ]); + }; + encoding_index_simpchinese_1_20141219_5_features = f: updateFeatures f (rec { + encoding_index_simpchinese_1_20141219_5.default = (f.encoding_index_simpchinese_1_20141219_5.default or true); + encoding_index_tests_0_1_4.default = true; + }) [ encoding_index_tests_0_1_4_features ]; + encoding_index_singlebyte_1_20141219_5 = { features?(encoding_index_singlebyte_1_20141219_5_features {}) }: encoding_index_singlebyte_1_20141219_5_ { + dependencies = mapFeatures features ([ encoding_index_tests_0_1_4 ]); + }; + encoding_index_singlebyte_1_20141219_5_features = f: updateFeatures f (rec { + encoding_index_singlebyte_1_20141219_5.default = (f.encoding_index_singlebyte_1_20141219_5.default or true); + encoding_index_tests_0_1_4.default = true; + }) [ encoding_index_tests_0_1_4_features ]; + encoding_index_tradchinese_1_20141219_5 = { features?(encoding_index_tradchinese_1_20141219_5_features {}) }: encoding_index_tradchinese_1_20141219_5_ { + dependencies = mapFeatures features ([ encoding_index_tests_0_1_4 ]); + }; + encoding_index_tradchinese_1_20141219_5_features = f: updateFeatures f (rec { + encoding_index_tests_0_1_4.default = true; + encoding_index_tradchinese_1_20141219_5.default = (f.encoding_index_tradchinese_1_20141219_5.default or true); + }) [ encoding_index_tests_0_1_4_features ]; + encoding_index_tests_0_1_4 = { features?(encoding_index_tests_0_1_4_features {}) }: encoding_index_tests_0_1_4_ {}; + encoding_index_tests_0_1_4_features = f: updateFeatures f (rec { + encoding_index_tests_0_1_4.default = (f.encoding_index_tests_0_1_4.default or true); + }) []; + encoding_rs_0_7_2 = { features?(encoding_rs_0_7_2_features {}) }: encoding_rs_0_7_2_ { + dependencies = mapFeatures features ([ cfg_if_0_1_2 ]); + features = mkFeatures (features.encoding_rs_0_7_2 or {}); + }; + encoding_rs_0_7_2_features = f: updateFeatures f (rec { + cfg_if_0_1_2.default = true; + encoding_rs_0_7_2.default = (f.encoding_rs_0_7_2.default or true); + encoding_rs_0_7_2.simd = + (f.encoding_rs_0_7_2.simd or false) || + (f.encoding_rs_0_7_2.simd-accel or false) || + (encoding_rs_0_7_2.simd-accel or false); + }) [ cfg_if_0_1_2_features ]; + entities_1_0_1 = { features?(entities_1_0_1_features {}) }: entities_1_0_1_ {}; + entities_1_0_1_features = f: updateFeatures f (rec { + entities_1_0_1.default = (f.entities_1_0_1.default or true); + }) []; + env_logger_0_5_9 = { features?(env_logger_0_5_9_features {}) }: env_logger_0_5_9_ { + dependencies = mapFeatures features ([ atty_0_2_9 humantime_1_1_1 log_0_4_1 termcolor_0_3_6 ] + ++ (if features.env_logger_0_5_9.regex or false then [ regex_0_2_10 ] else [])); + features = mkFeatures (features.env_logger_0_5_9 or {}); + }; + env_logger_0_5_9_features = f: updateFeatures f (rec { + atty_0_2_9.default = true; + env_logger_0_5_9.default = (f.env_logger_0_5_9.default or true); + env_logger_0_5_9.regex = + (f.env_logger_0_5_9.regex or false) || + (f.env_logger_0_5_9.default or false) || + (env_logger_0_5_9.default or false); + humantime_1_1_1.default = true; + log_0_4_1.default = true; + log_0_4_1.std = true; + regex_0_2_10.default = true; + termcolor_0_3_6.default = true; + }) [ atty_0_2_9_features humantime_1_1_1_features log_0_4_1_features regex_0_2_10_features termcolor_0_3_6_features ]; + error_chain_0_1_12 = { features?(error_chain_0_1_12_features {}) }: error_chain_0_1_12_ { + dependencies = mapFeatures features ([ backtrace_0_2_3 ]); + }; + error_chain_0_1_12_features = f: updateFeatures f (rec { + backtrace_0_2_3.default = true; + error_chain_0_1_12.default = (f.error_chain_0_1_12.default or true); + }) [ backtrace_0_2_3_features ]; + error_chain_0_8_1 = { features?(error_chain_0_8_1_features {}) }: error_chain_0_8_1_ { + dependencies = mapFeatures features ([ ] + ++ (if features.error_chain_0_8_1.backtrace or false then [ backtrace_0_3_6 ] else [])); + features = mkFeatures (features.error_chain_0_8_1 or {}); + }; + error_chain_0_8_1_features = f: updateFeatures f (rec { + backtrace_0_3_6.default = true; + error_chain_0_8_1.backtrace = + (f.error_chain_0_8_1.backtrace or false) || + (f.error_chain_0_8_1.default or false) || + (error_chain_0_8_1.default or false); + error_chain_0_8_1.default = (f.error_chain_0_8_1.default or true); + error_chain_0_8_1.example_generated = + (f.error_chain_0_8_1.example_generated or false) || + (f.error_chain_0_8_1.default or false) || + (error_chain_0_8_1.default or false); + }) [ backtrace_0_3_6_features ]; + error_chain_0_11_0 = { features?(error_chain_0_11_0_features {}) }: error_chain_0_11_0_ { + dependencies = mapFeatures features ([ ] + ++ (if features.error_chain_0_11_0.backtrace or false then [ backtrace_0_3_6 ] else [])); + features = mkFeatures (features.error_chain_0_11_0 or {}); + }; + error_chain_0_11_0_features = f: updateFeatures f (rec { + backtrace_0_3_6.default = true; + error_chain_0_11_0.backtrace = + (f.error_chain_0_11_0.backtrace or false) || + (f.error_chain_0_11_0.default or false) || + (error_chain_0_11_0.default or false); + error_chain_0_11_0.default = (f.error_chain_0_11_0.default or true); + error_chain_0_11_0.example_generated = + (f.error_chain_0_11_0.example_generated or false) || + (f.error_chain_0_11_0.default or false) || + (error_chain_0_11_0.default or false); + }) [ backtrace_0_3_6_features ]; + failure_0_1_1 = { features?(failure_0_1_1_features {}) }: failure_0_1_1_ { + dependencies = mapFeatures features ([ ] + ++ (if features.failure_0_1_1.backtrace or false then [ backtrace_0_3_6 ] else []) + ++ (if features.failure_0_1_1.failure_derive or false then [ failure_derive_0_1_1 ] else [])); + features = mkFeatures (features.failure_0_1_1 or {}); + }; + failure_0_1_1_features = f: updateFeatures f (rec { + backtrace_0_3_6.default = true; + failure_0_1_1.backtrace = + (f.failure_0_1_1.backtrace or false) || + (f.failure_0_1_1.std or false) || + (failure_0_1_1.std or false); + failure_0_1_1.default = (f.failure_0_1_1.default or true); + failure_0_1_1.derive = + (f.failure_0_1_1.derive or false) || + (f.failure_0_1_1.default or false) || + (failure_0_1_1.default or false); + failure_0_1_1.failure_derive = + (f.failure_0_1_1.failure_derive or false) || + (f.failure_0_1_1.derive or false) || + (failure_0_1_1.derive or false); + failure_0_1_1.std = + (f.failure_0_1_1.std or false) || + (f.failure_0_1_1.default or false) || + (failure_0_1_1.default or false); + failure_derive_0_1_1.default = true; + }) [ backtrace_0_3_6_features failure_derive_0_1_1_features ]; + failure_derive_0_1_1 = { features?(failure_derive_0_1_1_features {}) }: failure_derive_0_1_1_ { + dependencies = mapFeatures features ([ quote_0_3_15 syn_0_11_11 synstructure_0_6_1 ]); + features = mkFeatures (features.failure_derive_0_1_1 or {}); + }; + failure_derive_0_1_1_features = f: updateFeatures f (rec { + failure_derive_0_1_1.default = (f.failure_derive_0_1_1.default or true); + failure_derive_0_1_1.std = + (f.failure_derive_0_1_1.std or false) || + (f.failure_derive_0_1_1.default or false) || + (failure_derive_0_1_1.default or false); + quote_0_3_15.default = true; + syn_0_11_11.default = true; + synstructure_0_6_1.default = true; + }) [ quote_0_3_15_features syn_0_11_11_features synstructure_0_6_1_features ]; + flate2_1_0_1 = { features?(flate2_1_0_1_features {}) }: flate2_1_0_1_ { + dependencies = mapFeatures features ([ libc_0_2_40 ] + ++ (if features.flate2_1_0_1.miniz-sys or false then [ miniz_sys_0_1_10 ] else [])); + features = mkFeatures (features.flate2_1_0_1 or {}); + }; + flate2_1_0_1_features = f: updateFeatures f (rec { + flate2_1_0_1.default = (f.flate2_1_0_1.default or true); + flate2_1_0_1.futures = + (f.flate2_1_0_1.futures or false) || + (f.flate2_1_0_1.tokio or false) || + (flate2_1_0_1.tokio or false); + flate2_1_0_1.libz-sys = + (f.flate2_1_0_1.libz-sys or false) || + (f.flate2_1_0_1.zlib or false) || + (flate2_1_0_1.zlib or false); + flate2_1_0_1.miniz-sys = + (f.flate2_1_0_1.miniz-sys or false) || + (f.flate2_1_0_1.default or false) || + (flate2_1_0_1.default or false); + flate2_1_0_1.miniz_oxide_c_api = + (f.flate2_1_0_1.miniz_oxide_c_api or false) || + (f.flate2_1_0_1.rust_backend or false) || + (flate2_1_0_1.rust_backend or false); + flate2_1_0_1.tokio-io = + (f.flate2_1_0_1.tokio-io or false) || + (f.flate2_1_0_1.tokio or false) || + (flate2_1_0_1.tokio or false); + libc_0_2_40.default = true; + miniz_sys_0_1_10.default = true; + }) [ libc_0_2_40_features miniz_sys_0_1_10_features ]; + fnv_1_0_6 = { features?(fnv_1_0_6_features {}) }: fnv_1_0_6_ {}; + fnv_1_0_6_features = f: updateFeatures f (rec { + fnv_1_0_6.default = (f.fnv_1_0_6.default or true); + }) []; + foreign_types_0_3_2 = { features?(foreign_types_0_3_2_features {}) }: foreign_types_0_3_2_ { + dependencies = mapFeatures features ([ foreign_types_shared_0_1_1 ]); + }; + foreign_types_0_3_2_features = f: updateFeatures f (rec { + foreign_types_0_3_2.default = (f.foreign_types_0_3_2.default or true); + foreign_types_shared_0_1_1.default = true; + }) [ foreign_types_shared_0_1_1_features ]; + foreign_types_shared_0_1_1 = { features?(foreign_types_shared_0_1_1_features {}) }: foreign_types_shared_0_1_1_ {}; + foreign_types_shared_0_1_1_features = f: updateFeatures f (rec { + foreign_types_shared_0_1_1.default = (f.foreign_types_shared_0_1_1.default or true); + }) []; + fuchsia_zircon_0_3_3 = { features?(fuchsia_zircon_0_3_3_features {}) }: fuchsia_zircon_0_3_3_ { + dependencies = mapFeatures features ([ bitflags_1_0_1 fuchsia_zircon_sys_0_3_3 ]); + }; + fuchsia_zircon_0_3_3_features = f: updateFeatures f (rec { + bitflags_1_0_1.default = true; + fuchsia_zircon_0_3_3.default = (f.fuchsia_zircon_0_3_3.default or true); + fuchsia_zircon_sys_0_3_3.default = true; + }) [ bitflags_1_0_1_features fuchsia_zircon_sys_0_3_3_features ]; + fuchsia_zircon_sys_0_3_3 = { features?(fuchsia_zircon_sys_0_3_3_features {}) }: fuchsia_zircon_sys_0_3_3_ {}; + fuchsia_zircon_sys_0_3_3_features = f: updateFeatures f (rec { + fuchsia_zircon_sys_0_3_3.default = (f.fuchsia_zircon_sys_0_3_3.default or true); + }) []; + futures_0_1_21 = { features?(futures_0_1_21_features {}) }: futures_0_1_21_ { + features = mkFeatures (features.futures_0_1_21 or {}); + }; + futures_0_1_21_features = f: updateFeatures f (rec { + futures_0_1_21.default = (f.futures_0_1_21.default or true); + futures_0_1_21.use_std = + (f.futures_0_1_21.use_std or false) || + (f.futures_0_1_21.default or false) || + (futures_0_1_21.default or false); + futures_0_1_21.with-deprecated = + (f.futures_0_1_21.with-deprecated or false) || + (f.futures_0_1_21.default or false) || + (futures_0_1_21.default or false); + }) []; + futures_cpupool_0_1_8 = { features?(futures_cpupool_0_1_8_features {}) }: futures_cpupool_0_1_8_ { + dependencies = mapFeatures features ([ futures_0_1_21 num_cpus_1_8_0 ]); + features = mkFeatures (features.futures_cpupool_0_1_8 or {}); + }; + futures_cpupool_0_1_8_features = f: updateFeatures f (rec { + futures_0_1_21.default = (f.futures_0_1_21.default or false); + futures_0_1_21.use_std = true; + futures_0_1_21.with-deprecated = + (f.futures_0_1_21.with-deprecated or false) || + (futures_cpupool_0_1_8.with-deprecated or false) || + (f.futures_cpupool_0_1_8.with-deprecated or false); + futures_cpupool_0_1_8.default = (f.futures_cpupool_0_1_8.default or true); + futures_cpupool_0_1_8.with-deprecated = + (f.futures_cpupool_0_1_8.with-deprecated or false) || + (f.futures_cpupool_0_1_8.default or false) || + (futures_cpupool_0_1_8.default or false); + num_cpus_1_8_0.default = true; + }) [ futures_0_1_21_features num_cpus_1_8_0_features ]; + gcc_0_3_54 = { features?(gcc_0_3_54_features {}) }: gcc_0_3_54_ { + dependencies = mapFeatures features ([]); + features = mkFeatures (features.gcc_0_3_54 or {}); + }; + gcc_0_3_54_features = f: updateFeatures f (rec { + gcc_0_3_54.default = (f.gcc_0_3_54.default or true); + gcc_0_3_54.rayon = + (f.gcc_0_3_54.rayon or false) || + (f.gcc_0_3_54.parallel or false) || + (gcc_0_3_54.parallel or false); + }) []; + glob_0_2_11 = { features?(glob_0_2_11_features {}) }: glob_0_2_11_ {}; + glob_0_2_11_features = f: updateFeatures f (rec { + glob_0_2_11.default = (f.glob_0_2_11.default or true); + }) []; + h2_0_1_5 = { features?(h2_0_1_5_features {}) }: h2_0_1_5_ { + dependencies = mapFeatures features ([ byteorder_1_2_2 bytes_0_4_6 fnv_1_0_6 futures_0_1_21 http_0_1_5 indexmap_1_0_1 log_0_4_1 slab_0_4_0 string_0_1_0 tokio_io_0_1_6 ]); + features = mkFeatures (features.h2_0_1_5 or {}); + }; + h2_0_1_5_features = f: updateFeatures f (rec { + byteorder_1_2_2.default = true; + bytes_0_4_6.default = true; + fnv_1_0_6.default = true; + futures_0_1_21.default = true; + h2_0_1_5.default = (f.h2_0_1_5.default or true); + http_0_1_5.default = true; + indexmap_1_0_1.default = true; + log_0_4_1.default = true; + slab_0_4_0.default = true; + string_0_1_0.default = true; + tokio_io_0_1_6.default = true; + }) [ byteorder_1_2_2_features bytes_0_4_6_features fnv_1_0_6_features futures_0_1_21_features http_0_1_5_features indexmap_1_0_1_features log_0_4_1_features slab_0_4_0_features string_0_1_0_features tokio_io_0_1_6_features ]; + hostname_0_1_4 = { features?(hostname_0_1_4_features {}) }: hostname_0_1_4_ { + dependencies = (if (kernel == "linux" || kernel == "darwin") then mapFeatures features ([ libc_0_2_40 ]) else []) + ++ (if kernel == "windows" then mapFeatures features ([ winutil_0_1_1 ]) else []); + features = mkFeatures (features.hostname_0_1_4 or {}); + }; + hostname_0_1_4_features = f: updateFeatures f (rec { + hostname_0_1_4.default = (f.hostname_0_1_4.default or true); + libc_0_2_40.default = true; + winutil_0_1_1.default = true; + }) [ libc_0_2_40_features winutil_0_1_1_features ]; + http_0_1_5 = { features?(http_0_1_5_features {}) }: http_0_1_5_ { + dependencies = mapFeatures features ([ bytes_0_4_6 fnv_1_0_6 ]); + }; + http_0_1_5_features = f: updateFeatures f (rec { + bytes_0_4_6.default = true; + fnv_1_0_6.default = true; + http_0_1_5.default = (f.http_0_1_5.default or true); + }) [ bytes_0_4_6_features fnv_1_0_6_features ]; + http_range_0_1_1 = { features?(http_range_0_1_1_features {}) }: http_range_0_1_1_ {}; + http_range_0_1_1_features = f: updateFeatures f (rec { + http_range_0_1_1.default = (f.http_range_0_1_1.default or true); + }) []; + httparse_1_2_4 = { features?(httparse_1_2_4_features {}) }: httparse_1_2_4_ { + features = mkFeatures (features.httparse_1_2_4 or {}); + }; + httparse_1_2_4_features = f: updateFeatures f (rec { + httparse_1_2_4.default = (f.httparse_1_2_4.default or true); + httparse_1_2_4.std = + (f.httparse_1_2_4.std or false) || + (f.httparse_1_2_4.default or false) || + (httparse_1_2_4.default or false); + }) []; + humansize_1_1_0 = { features?(humansize_1_1_0_features {}) }: humansize_1_1_0_ {}; + humansize_1_1_0_features = f: updateFeatures f (rec { + humansize_1_1_0.default = (f.humansize_1_1_0.default or true); + }) []; + humantime_1_1_1 = { features?(humantime_1_1_1_features {}) }: humantime_1_1_1_ { + dependencies = mapFeatures features ([ quick_error_1_2_1 ]); + }; + humantime_1_1_1_features = f: updateFeatures f (rec { + humantime_1_1_1.default = (f.humantime_1_1_1.default or true); + quick_error_1_2_1.default = true; + }) [ quick_error_1_2_1_features ]; + hyper_0_11_25 = { features?(hyper_0_11_25_features {}) }: hyper_0_11_25_ { + dependencies = mapFeatures features ([ base64_0_9_1 bytes_0_4_6 futures_0_1_21 futures_cpupool_0_1_8 httparse_1_2_4 iovec_0_1_2 language_tags_0_2_2 log_0_4_1 mime_0_3_5 percent_encoding_1_0_1 relay_0_1_1 time_0_1_39 tokio_core_0_1_17 tokio_io_0_1_6 tokio_service_0_1_0 unicase_2_1_0 ] + ++ (if features.hyper_0_11_25.tokio-proto or false then [ tokio_proto_0_1_1 ] else [])); + features = mkFeatures (features.hyper_0_11_25 or {}); + }; + hyper_0_11_25_features = f: updateFeatures f (rec { + base64_0_9_1.default = true; + bytes_0_4_6.default = true; + futures_0_1_21.default = true; + futures_cpupool_0_1_8.default = true; + httparse_1_2_4.default = true; + hyper_0_11_25.default = (f.hyper_0_11_25.default or true); + hyper_0_11_25.http = + (f.hyper_0_11_25.http or false) || + (f.hyper_0_11_25.compat or false) || + (hyper_0_11_25.compat or false); + hyper_0_11_25.server-proto = + (f.hyper_0_11_25.server-proto or false) || + (f.hyper_0_11_25.default or false) || + (hyper_0_11_25.default or false); + hyper_0_11_25.tokio-proto = + (f.hyper_0_11_25.tokio-proto or false) || + (f.hyper_0_11_25.server-proto or false) || + (hyper_0_11_25.server-proto or false); + iovec_0_1_2.default = true; + language_tags_0_2_2.default = true; + log_0_4_1.default = true; + mime_0_3_5.default = true; + percent_encoding_1_0_1.default = true; + relay_0_1_1.default = true; + time_0_1_39.default = true; + tokio_core_0_1_17.default = true; + tokio_io_0_1_6.default = true; + tokio_proto_0_1_1.default = true; + tokio_service_0_1_0.default = true; + unicase_2_1_0.default = true; + }) [ base64_0_9_1_features bytes_0_4_6_features futures_0_1_21_features futures_cpupool_0_1_8_features httparse_1_2_4_features iovec_0_1_2_features language_tags_0_2_2_features log_0_4_1_features mime_0_3_5_features percent_encoding_1_0_1_features relay_0_1_1_features time_0_1_39_features tokio_core_0_1_17_features tokio_io_0_1_6_features tokio_proto_0_1_1_features tokio_service_0_1_0_features unicase_2_1_0_features ]; + hyper_tls_0_1_3 = { features?(hyper_tls_0_1_3_features {}) }: hyper_tls_0_1_3_ { + dependencies = mapFeatures features ([ futures_0_1_21 hyper_0_11_25 native_tls_0_1_5 tokio_core_0_1_17 tokio_io_0_1_6 tokio_service_0_1_0 tokio_tls_0_1_4 ]); + }; + hyper_tls_0_1_3_features = f: updateFeatures f (rec { + futures_0_1_21.default = true; + hyper_0_11_25.default = true; + hyper_tls_0_1_3.default = (f.hyper_tls_0_1_3.default or true); + native_tls_0_1_5.default = true; + tokio_core_0_1_17.default = true; + tokio_io_0_1_6.default = true; + tokio_service_0_1_0.default = true; + tokio_tls_0_1_4.default = true; + }) [ futures_0_1_21_features hyper_0_11_25_features native_tls_0_1_5_features tokio_core_0_1_17_features tokio_io_0_1_6_features tokio_service_0_1_0_features tokio_tls_0_1_4_features ]; + idna_0_1_4 = { features?(idna_0_1_4_features {}) }: idna_0_1_4_ { + dependencies = mapFeatures features ([ matches_0_1_6 unicode_bidi_0_3_4 unicode_normalization_0_1_5 ]); + }; + idna_0_1_4_features = f: updateFeatures f (rec { + idna_0_1_4.default = (f.idna_0_1_4.default or true); + matches_0_1_6.default = true; + unicode_bidi_0_3_4.default = true; + unicode_normalization_0_1_5.default = true; + }) [ matches_0_1_6_features unicode_bidi_0_3_4_features unicode_normalization_0_1_5_features ]; + indexmap_1_0_1 = { features?(indexmap_1_0_1_features {}) }: indexmap_1_0_1_ { + dependencies = mapFeatures features ([]); + features = mkFeatures (features.indexmap_1_0_1 or {}); + }; + indexmap_1_0_1_features = f: updateFeatures f (rec { + indexmap_1_0_1.default = (f.indexmap_1_0_1.default or true); + indexmap_1_0_1.serde = + (f.indexmap_1_0_1.serde or false) || + (f.indexmap_1_0_1.serde-1 or false) || + (indexmap_1_0_1.serde-1 or false); + }) []; + iovec_0_1_2 = { features?(iovec_0_1_2_features {}) }: iovec_0_1_2_ { + dependencies = (if (kernel == "linux" || kernel == "darwin") then mapFeatures features ([ libc_0_2_40 ]) else []) + ++ (if kernel == "windows" then mapFeatures features ([ winapi_0_2_8 ]) else []); + }; + iovec_0_1_2_features = f: updateFeatures f (rec { + iovec_0_1_2.default = (f.iovec_0_1_2.default or true); + libc_0_2_40.default = true; + winapi_0_2_8.default = true; + }) [ libc_0_2_40_features winapi_0_2_8_features ]; + ipconfig_0_1_6 = { features?(ipconfig_0_1_6_features {}) }: ipconfig_0_1_6_ { + dependencies = (if kernel == "windows" then mapFeatures features ([ error_chain_0_8_1 socket2_0_3_5 widestring_0_2_2 winapi_0_3_4 winreg_0_5_0 ]) else []); + }; + ipconfig_0_1_6_features = f: updateFeatures f (rec { + error_chain_0_8_1.default = true; + ipconfig_0_1_6.default = (f.ipconfig_0_1_6.default or true); + socket2_0_3_5.default = true; + widestring_0_2_2.default = true; + winapi_0_3_4.default = true; + winreg_0_5_0.default = true; + }) [ error_chain_0_8_1_features socket2_0_3_5_features widestring_0_2_2_features winapi_0_3_4_features winreg_0_5_0_features ]; + itoa_0_3_4 = { features?(itoa_0_3_4_features {}) }: itoa_0_3_4_ { + features = mkFeatures (features.itoa_0_3_4 or {}); + }; + itoa_0_3_4_features = f: updateFeatures f (rec { + itoa_0_3_4.default = (f.itoa_0_3_4.default or true); + }) []; + itoa_0_4_1 = { features?(itoa_0_4_1_features {}) }: itoa_0_4_1_ { + features = mkFeatures (features.itoa_0_4_1 or {}); + }; + itoa_0_4_1_features = f: updateFeatures f (rec { + itoa_0_4_1.default = (f.itoa_0_4_1.default or true); + itoa_0_4_1.std = + (f.itoa_0_4_1.std or false) || + (f.itoa_0_4_1.default or false) || + (itoa_0_4_1.default or false); + }) []; + kernel32_sys_0_2_2 = { features?(kernel32_sys_0_2_2_features {}) }: kernel32_sys_0_2_2_ { + dependencies = mapFeatures features ([ winapi_0_2_8 ]); + buildDependencies = mapFeatures features ([ winapi_build_0_1_1 ]); + }; + kernel32_sys_0_2_2_features = f: updateFeatures f (rec { + kernel32_sys_0_2_2.default = (f.kernel32_sys_0_2_2.default or true); + winapi_0_2_8.default = true; + winapi_build_0_1_1.default = true; + }) [ winapi_0_2_8_features winapi_build_0_1_1_features ]; + language_tags_0_2_2 = { features?(language_tags_0_2_2_features {}) }: language_tags_0_2_2_ { + dependencies = mapFeatures features ([]); + features = mkFeatures (features.language_tags_0_2_2 or {}); + }; + language_tags_0_2_2_features = f: updateFeatures f (rec { + language_tags_0_2_2.default = (f.language_tags_0_2_2.default or true); + language_tags_0_2_2.heapsize = + (f.language_tags_0_2_2.heapsize or false) || + (f.language_tags_0_2_2.heap_size or false) || + (language_tags_0_2_2.heap_size or false); + language_tags_0_2_2.heapsize_plugin = + (f.language_tags_0_2_2.heapsize_plugin or false) || + (f.language_tags_0_2_2.heap_size or false) || + (language_tags_0_2_2.heap_size or false); + }) []; + lazy_static_0_2_11 = { features?(lazy_static_0_2_11_features {}) }: lazy_static_0_2_11_ { + dependencies = mapFeatures features ([]); + features = mkFeatures (features.lazy_static_0_2_11 or {}); + }; + lazy_static_0_2_11_features = f: updateFeatures f (rec { + lazy_static_0_2_11.compiletest_rs = + (f.lazy_static_0_2_11.compiletest_rs or false) || + (f.lazy_static_0_2_11.compiletest or false) || + (lazy_static_0_2_11.compiletest or false); + lazy_static_0_2_11.default = (f.lazy_static_0_2_11.default or true); + lazy_static_0_2_11.nightly = + (f.lazy_static_0_2_11.nightly or false) || + (f.lazy_static_0_2_11.spin_no_std or false) || + (lazy_static_0_2_11.spin_no_std or false); + lazy_static_0_2_11.spin = + (f.lazy_static_0_2_11.spin or false) || + (f.lazy_static_0_2_11.spin_no_std or false) || + (lazy_static_0_2_11.spin_no_std or false); + }) []; + lazy_static_1_0_0 = { features?(lazy_static_1_0_0_features {}) }: lazy_static_1_0_0_ { + dependencies = mapFeatures features ([]); + features = mkFeatures (features.lazy_static_1_0_0 or {}); + }; + lazy_static_1_0_0_features = f: updateFeatures f (rec { + lazy_static_1_0_0.compiletest_rs = + (f.lazy_static_1_0_0.compiletest_rs or false) || + (f.lazy_static_1_0_0.compiletest or false) || + (lazy_static_1_0_0.compiletest or false); + lazy_static_1_0_0.default = (f.lazy_static_1_0_0.default or true); + lazy_static_1_0_0.nightly = + (f.lazy_static_1_0_0.nightly or false) || + (f.lazy_static_1_0_0.spin_no_std or false) || + (lazy_static_1_0_0.spin_no_std or false); + lazy_static_1_0_0.spin = + (f.lazy_static_1_0_0.spin or false) || + (f.lazy_static_1_0_0.spin_no_std or false) || + (lazy_static_1_0_0.spin_no_std or false); + }) []; + lazycell_0_6_0 = { features?(lazycell_0_6_0_features {}) }: lazycell_0_6_0_ { + dependencies = mapFeatures features ([]); + features = mkFeatures (features.lazycell_0_6_0 or {}); + }; + lazycell_0_6_0_features = f: updateFeatures f (rec { + lazycell_0_6_0.clippy = + (f.lazycell_0_6_0.clippy or false) || + (f.lazycell_0_6_0.nightly-testing or false) || + (lazycell_0_6_0.nightly-testing or false); + lazycell_0_6_0.default = (f.lazycell_0_6_0.default or true); + lazycell_0_6_0.nightly = + (f.lazycell_0_6_0.nightly or false) || + (f.lazycell_0_6_0.nightly-testing or false) || + (lazycell_0_6_0.nightly-testing or false); + }) []; + libc_0_2_40 = { features?(libc_0_2_40_features {}) }: libc_0_2_40_ { + features = mkFeatures (features.libc_0_2_40 or {}); + }; + libc_0_2_40_features = f: updateFeatures f (rec { + libc_0_2_40.default = (f.libc_0_2_40.default or true); + libc_0_2_40.use_std = + (f.libc_0_2_40.use_std or false) || + (f.libc_0_2_40.default or false) || + (libc_0_2_40.default or false); + }) []; + libflate_0_1_14 = { features?(libflate_0_1_14_features {}) }: libflate_0_1_14_ { + dependencies = mapFeatures features ([ adler32_1_0_2 byteorder_1_2_2 crc_1_7_0 ]); + }; + libflate_0_1_14_features = f: updateFeatures f (rec { + adler32_1_0_2.default = true; + byteorder_1_2_2.default = true; + crc_1_7_0.default = true; + libflate_0_1_14.default = (f.libflate_0_1_14.default or true); + }) [ adler32_1_0_2_features byteorder_1_2_2_features crc_1_7_0_features ]; + linked_hash_map_0_4_2 = { features?(linked_hash_map_0_4_2_features {}) }: linked_hash_map_0_4_2_ { + dependencies = mapFeatures features ([]); + features = mkFeatures (features.linked_hash_map_0_4_2 or {}); + }; + linked_hash_map_0_4_2_features = f: updateFeatures f (rec { + linked_hash_map_0_4_2.default = (f.linked_hash_map_0_4_2.default or true); + linked_hash_map_0_4_2.heapsize = + (f.linked_hash_map_0_4_2.heapsize or false) || + (f.linked_hash_map_0_4_2.heapsize_impl or false) || + (linked_hash_map_0_4_2.heapsize_impl or false); + linked_hash_map_0_4_2.serde = + (f.linked_hash_map_0_4_2.serde or false) || + (f.linked_hash_map_0_4_2.serde_impl or false) || + (linked_hash_map_0_4_2.serde_impl or false); + linked_hash_map_0_4_2.serde_test = + (f.linked_hash_map_0_4_2.serde_test or false) || + (f.linked_hash_map_0_4_2.serde_impl or false) || + (linked_hash_map_0_4_2.serde_impl or false); + }) []; + log_0_3_9 = { features?(log_0_3_9_features {}) }: log_0_3_9_ { + dependencies = mapFeatures features ([ log_0_4_1 ]); + features = mkFeatures (features.log_0_3_9 or {}); + }; + log_0_3_9_features = f: updateFeatures f (rec { + log_0_3_9.default = (f.log_0_3_9.default or true); + log_0_3_9.use_std = + (f.log_0_3_9.use_std or false) || + (f.log_0_3_9.default or false) || + (log_0_3_9.default or false); + log_0_4_1.default = true; + log_0_4_1.max_level_debug = + (f.log_0_4_1.max_level_debug or false) || + (log_0_3_9.max_level_debug or false) || + (f.log_0_3_9.max_level_debug or false); + log_0_4_1.max_level_error = + (f.log_0_4_1.max_level_error or false) || + (log_0_3_9.max_level_error or false) || + (f.log_0_3_9.max_level_error or false); + log_0_4_1.max_level_info = + (f.log_0_4_1.max_level_info or false) || + (log_0_3_9.max_level_info or false) || + (f.log_0_3_9.max_level_info or false); + log_0_4_1.max_level_off = + (f.log_0_4_1.max_level_off or false) || + (log_0_3_9.max_level_off or false) || + (f.log_0_3_9.max_level_off or false); + log_0_4_1.max_level_trace = + (f.log_0_4_1.max_level_trace or false) || + (log_0_3_9.max_level_trace or false) || + (f.log_0_3_9.max_level_trace or false); + log_0_4_1.max_level_warn = + (f.log_0_4_1.max_level_warn or false) || + (log_0_3_9.max_level_warn or false) || + (f.log_0_3_9.max_level_warn or false); + log_0_4_1.release_max_level_debug = + (f.log_0_4_1.release_max_level_debug or false) || + (log_0_3_9.release_max_level_debug or false) || + (f.log_0_3_9.release_max_level_debug or false); + log_0_4_1.release_max_level_error = + (f.log_0_4_1.release_max_level_error or false) || + (log_0_3_9.release_max_level_error or false) || + (f.log_0_3_9.release_max_level_error or false); + log_0_4_1.release_max_level_info = + (f.log_0_4_1.release_max_level_info or false) || + (log_0_3_9.release_max_level_info or false) || + (f.log_0_3_9.release_max_level_info or false); + log_0_4_1.release_max_level_off = + (f.log_0_4_1.release_max_level_off or false) || + (log_0_3_9.release_max_level_off or false) || + (f.log_0_3_9.release_max_level_off or false); + log_0_4_1.release_max_level_trace = + (f.log_0_4_1.release_max_level_trace or false) || + (log_0_3_9.release_max_level_trace or false) || + (f.log_0_3_9.release_max_level_trace or false); + log_0_4_1.release_max_level_warn = + (f.log_0_4_1.release_max_level_warn or false) || + (log_0_3_9.release_max_level_warn or false) || + (f.log_0_3_9.release_max_level_warn or false); + log_0_4_1.std = + (f.log_0_4_1.std or false) || + (log_0_3_9.use_std or false) || + (f.log_0_3_9.use_std or false); + }) [ log_0_4_1_features ]; + log_0_4_1 = { features?(log_0_4_1_features {}) }: log_0_4_1_ { + dependencies = mapFeatures features ([ cfg_if_0_1_2 ]); + features = mkFeatures (features.log_0_4_1 or {}); + }; + log_0_4_1_features = f: updateFeatures f (rec { + cfg_if_0_1_2.default = true; + log_0_4_1.default = (f.log_0_4_1.default or true); + }) [ cfg_if_0_1_2_features ]; + lru_cache_0_1_1 = { features?(lru_cache_0_1_1_features {}) }: lru_cache_0_1_1_ { + dependencies = mapFeatures features ([ linked_hash_map_0_4_2 ]); + features = mkFeatures (features.lru_cache_0_1_1 or {}); + }; + lru_cache_0_1_1_features = f: updateFeatures f (rec { + linked_hash_map_0_4_2.default = true; + linked_hash_map_0_4_2.heapsize_impl = + (f.linked_hash_map_0_4_2.heapsize_impl or false) || + (lru_cache_0_1_1.heapsize_impl or false) || + (f.lru_cache_0_1_1.heapsize_impl or false); + lru_cache_0_1_1.default = (f.lru_cache_0_1_1.default or true); + lru_cache_0_1_1.heapsize = + (f.lru_cache_0_1_1.heapsize or false) || + (f.lru_cache_0_1_1.heapsize_impl or false) || + (lru_cache_0_1_1.heapsize_impl or false); + }) [ linked_hash_map_0_4_2_features ]; + matches_0_1_6 = { features?(matches_0_1_6_features {}) }: matches_0_1_6_ {}; + matches_0_1_6_features = f: updateFeatures f (rec { + matches_0_1_6.default = (f.matches_0_1_6.default or true); + }) []; + md5_0_3_7 = { features?(md5_0_3_7_features {}) }: md5_0_3_7_ {}; + md5_0_3_7_features = f: updateFeatures f (rec { + md5_0_3_7.default = (f.md5_0_3_7.default or true); + }) []; + memchr_2_0_1 = { features?(memchr_2_0_1_features {}) }: memchr_2_0_1_ { + dependencies = mapFeatures features ([ ] + ++ (if features.memchr_2_0_1.libc or false then [ libc_0_2_40 ] else [])); + features = mkFeatures (features.memchr_2_0_1 or {}); + }; + memchr_2_0_1_features = f: updateFeatures f (rec { + libc_0_2_40.default = (f.libc_0_2_40.default or false); + libc_0_2_40.use_std = + (f.libc_0_2_40.use_std or false) || + (memchr_2_0_1.use_std or false) || + (f.memchr_2_0_1.use_std or false); + memchr_2_0_1.default = (f.memchr_2_0_1.default or true); + memchr_2_0_1.libc = + (f.memchr_2_0_1.libc or false) || + (f.memchr_2_0_1.default or false) || + (memchr_2_0_1.default or false) || + (f.memchr_2_0_1.use_std or false) || + (memchr_2_0_1.use_std or false); + memchr_2_0_1.use_std = + (f.memchr_2_0_1.use_std or false) || + (f.memchr_2_0_1.default or false) || + (memchr_2_0_1.default or false); + }) [ libc_0_2_40_features ]; + memoffset_0_1_0 = { features?(memoffset_0_1_0_features {}) }: memoffset_0_1_0_ { + features = mkFeatures (features.memoffset_0_1_0 or {}); + }; + memoffset_0_1_0_features = f: updateFeatures f (rec { + memoffset_0_1_0.default = (f.memoffset_0_1_0.default or true); + memoffset_0_1_0.std = + (f.memoffset_0_1_0.std or false) || + (f.memoffset_0_1_0.default or false) || + (memoffset_0_1_0.default or false); + }) []; + memoffset_0_2_1 = { features?(memoffset_0_2_1_features {}) }: memoffset_0_2_1_ {}; + memoffset_0_2_1_features = f: updateFeatures f (rec { + memoffset_0_2_1.default = (f.memoffset_0_2_1.default or true); + }) []; + mime_0_3_5 = { features?(mime_0_3_5_features {}) }: mime_0_3_5_ { + dependencies = mapFeatures features ([ unicase_2_1_0 ]); + }; + mime_0_3_5_features = f: updateFeatures f (rec { + mime_0_3_5.default = (f.mime_0_3_5.default or true); + unicase_2_1_0.default = true; + }) [ unicase_2_1_0_features ]; + mime_guess_2_0_0_alpha_4 = { features?(mime_guess_2_0_0_alpha_4_features {}) }: mime_guess_2_0_0_alpha_4_ { + dependencies = mapFeatures features ([ mime_0_3_5 phf_0_7_21 unicase_1_4_2 ]); + buildDependencies = mapFeatures features ([ phf_codegen_0_7_21 unicase_1_4_2 ]); + features = mkFeatures (features.mime_guess_2_0_0_alpha_4 or {}); + }; + mime_guess_2_0_0_alpha_4_features = f: updateFeatures f (rec { + mime_0_3_5.default = true; + mime_guess_2_0_0_alpha_4.default = (f.mime_guess_2_0_0_alpha_4.default or true); + phf_0_7_21.default = true; + phf_0_7_21.unicase = true; + phf_codegen_0_7_21.default = true; + unicase_1_4_2.default = true; + }) [ mime_0_3_5_features phf_0_7_21_features unicase_1_4_2_features phf_codegen_0_7_21_features unicase_1_4_2_features ]; + miniz_sys_0_1_10 = { features?(miniz_sys_0_1_10_features {}) }: miniz_sys_0_1_10_ { + dependencies = mapFeatures features ([ libc_0_2_40 ]); + buildDependencies = mapFeatures features ([ cc_1_0_10 ]); + }; + miniz_sys_0_1_10_features = f: updateFeatures f (rec { + cc_1_0_10.default = true; + libc_0_2_40.default = true; + miniz_sys_0_1_10.default = (f.miniz_sys_0_1_10.default or true); + }) [ libc_0_2_40_features cc_1_0_10_features ]; + mio_0_6_14 = { features?(mio_0_6_14_features {}) }: mio_0_6_14_ { + dependencies = mapFeatures features ([ iovec_0_1_2 lazycell_0_6_0 log_0_4_1 net2_0_2_32 slab_0_4_0 ]) + ++ (if kernel == "fuchsia" then mapFeatures features ([ fuchsia_zircon_0_3_3 fuchsia_zircon_sys_0_3_3 ]) else []) + ++ (if (kernel == "linux" || kernel == "darwin") then mapFeatures features ([ libc_0_2_40 ]) else []) + ++ (if kernel == "windows" then mapFeatures features ([ kernel32_sys_0_2_2 miow_0_2_1 winapi_0_2_8 ]) else []); + features = mkFeatures (features.mio_0_6_14 or {}); + }; + mio_0_6_14_features = f: updateFeatures f (rec { + fuchsia_zircon_0_3_3.default = true; + fuchsia_zircon_sys_0_3_3.default = true; + iovec_0_1_2.default = true; + kernel32_sys_0_2_2.default = true; + lazycell_0_6_0.default = true; + libc_0_2_40.default = true; + log_0_4_1.default = true; + mio_0_6_14.default = (f.mio_0_6_14.default or true); + mio_0_6_14.with-deprecated = + (f.mio_0_6_14.with-deprecated or false) || + (f.mio_0_6_14.default or false) || + (mio_0_6_14.default or false); + miow_0_2_1.default = true; + net2_0_2_32.default = true; + slab_0_4_0.default = true; + winapi_0_2_8.default = true; + }) [ iovec_0_1_2_features lazycell_0_6_0_features log_0_4_1_features net2_0_2_32_features slab_0_4_0_features fuchsia_zircon_0_3_3_features fuchsia_zircon_sys_0_3_3_features libc_0_2_40_features kernel32_sys_0_2_2_features miow_0_2_1_features winapi_0_2_8_features ]; + mio_uds_0_6_4 = { features?(mio_uds_0_6_4_features {}) }: mio_uds_0_6_4_ { + dependencies = (if (kernel == "linux" || kernel == "darwin") then mapFeatures features ([ libc_0_2_40 mio_0_6_14 ]) else []); + }; + mio_uds_0_6_4_features = f: updateFeatures f (rec { + libc_0_2_40.default = true; + mio_0_6_14.default = true; + mio_uds_0_6_4.default = (f.mio_uds_0_6_4.default or true); + }) [ libc_0_2_40_features mio_0_6_14_features ]; + miow_0_2_1 = { features?(miow_0_2_1_features {}) }: miow_0_2_1_ { + dependencies = mapFeatures features ([ kernel32_sys_0_2_2 net2_0_2_32 winapi_0_2_8 ws2_32_sys_0_2_1 ]); + }; + miow_0_2_1_features = f: updateFeatures f (rec { + kernel32_sys_0_2_2.default = true; + miow_0_2_1.default = (f.miow_0_2_1.default or true); + net2_0_2_32.default = (f.net2_0_2_32.default or false); + winapi_0_2_8.default = true; + ws2_32_sys_0_2_1.default = true; + }) [ kernel32_sys_0_2_2_features net2_0_2_32_features winapi_0_2_8_features ws2_32_sys_0_2_1_features ]; + native_tls_0_1_5 = { features?(native_tls_0_1_5_features {}) }: native_tls_0_1_5_ { + dependencies = mapFeatures features ([ lazy_static_0_2_11 ]) + ++ (if kernel == "darwin" || kernel == "ios" then mapFeatures features ([ libc_0_2_40 security_framework_0_1_16 security_framework_sys_0_1_16 tempdir_0_3_7 ]) else []) + ++ (if !(kernel == "windows" || kernel == "darwin" || kernel == "ios") then mapFeatures features ([ openssl_0_9_24 ]) else []) + ++ (if kernel == "windows" then mapFeatures features ([ schannel_0_1_12 ]) else []); + }; + native_tls_0_1_5_features = f: updateFeatures f (rec { + lazy_static_0_2_11.default = true; + libc_0_2_40.default = true; + native_tls_0_1_5.default = (f.native_tls_0_1_5.default or true); + openssl_0_9_24.default = true; + schannel_0_1_12.default = true; + security_framework_0_1_16.OSX_10_8 = true; + security_framework_0_1_16.default = true; + security_framework_sys_0_1_16.default = true; + tempdir_0_3_7.default = true; + }) [ lazy_static_0_2_11_features libc_0_2_40_features security_framework_0_1_16_features security_framework_sys_0_1_16_features tempdir_0_3_7_features openssl_0_9_24_features schannel_0_1_12_features ]; + net2_0_2_32 = { features?(net2_0_2_32_features {}) }: net2_0_2_32_ { + dependencies = mapFeatures features ([ cfg_if_0_1_2 ]) + ++ (if (kernel == "linux" || kernel == "darwin") then mapFeatures features ([ libc_0_2_40 ]) else []) + ++ (if kernel == "windows" then mapFeatures features ([ winapi_0_3_4 ]) else []) + ++ (if kernel == "i686-apple-darwin" then mapFeatures features ([ libc_0_2_40 ]) else []) + ++ (if kernel == "i686-unknown-linux-gnu" then mapFeatures features ([ libc_0_2_40 ]) else []) + ++ (if kernel == "x86_64-apple-darwin" then mapFeatures features ([ libc_0_2_40 ]) else []) + ++ (if kernel == "x86_64-unknown-linux-gnu" then mapFeatures features ([ libc_0_2_40 ]) else []); + features = mkFeatures (features.net2_0_2_32 or {}); + }; + net2_0_2_32_features = f: updateFeatures f (rec { + cfg_if_0_1_2.default = true; + libc_0_2_40.default = true; + net2_0_2_32.default = (f.net2_0_2_32.default or true); + net2_0_2_32.duration = + (f.net2_0_2_32.duration or false) || + (f.net2_0_2_32.default or false) || + (net2_0_2_32.default or false); + winapi_0_3_4.default = true; + winapi_0_3_4.handleapi = true; + winapi_0_3_4.winsock2 = true; + winapi_0_3_4.ws2def = true; + winapi_0_3_4.ws2ipdef = true; + winapi_0_3_4.ws2tcpip = true; + }) [ cfg_if_0_1_2_features libc_0_2_40_features winapi_0_3_4_features libc_0_2_40_features libc_0_2_40_features libc_0_2_40_features libc_0_2_40_features ]; + nodrop_0_1_12 = { features?(nodrop_0_1_12_features {}) }: nodrop_0_1_12_ { + dependencies = mapFeatures features ([]); + features = mkFeatures (features.nodrop_0_1_12 or {}); + }; + nodrop_0_1_12_features = f: updateFeatures f (rec { + nodrop_0_1_12.default = (f.nodrop_0_1_12.default or true); + nodrop_0_1_12.nodrop-union = + (f.nodrop_0_1_12.nodrop-union or false) || + (f.nodrop_0_1_12.use_union or false) || + (nodrop_0_1_12.use_union or false); + nodrop_0_1_12.std = + (f.nodrop_0_1_12.std or false) || + (f.nodrop_0_1_12.default or false) || + (nodrop_0_1_12.default or false); + }) []; + num_integer_0_1_36 = { features?(num_integer_0_1_36_features {}) }: num_integer_0_1_36_ { + dependencies = mapFeatures features ([ num_traits_0_2_2 ]); + features = mkFeatures (features.num_integer_0_1_36 or {}); + }; + num_integer_0_1_36_features = f: updateFeatures f (rec { + num_integer_0_1_36.default = (f.num_integer_0_1_36.default or true); + num_integer_0_1_36.std = + (f.num_integer_0_1_36.std or false) || + (f.num_integer_0_1_36.default or false) || + (num_integer_0_1_36.default or false); + num_traits_0_2_2.default = (f.num_traits_0_2_2.default or false); + }) [ num_traits_0_2_2_features ]; + num_traits_0_2_2 = { features?(num_traits_0_2_2_features {}) }: num_traits_0_2_2_ { + features = mkFeatures (features.num_traits_0_2_2 or {}); + }; + num_traits_0_2_2_features = f: updateFeatures f (rec { + num_traits_0_2_2.default = (f.num_traits_0_2_2.default or true); + num_traits_0_2_2.std = + (f.num_traits_0_2_2.std or false) || + (f.num_traits_0_2_2.default or false) || + (num_traits_0_2_2.default or false); + }) []; + num_cpus_1_8_0 = { features?(num_cpus_1_8_0_features {}) }: num_cpus_1_8_0_ { + dependencies = mapFeatures features ([ libc_0_2_40 ]); + }; + num_cpus_1_8_0_features = f: updateFeatures f (rec { + libc_0_2_40.default = true; + num_cpus_1_8_0.default = (f.num_cpus_1_8_0.default or true); + }) [ libc_0_2_40_features ]; + openssl_0_9_24 = { features?(openssl_0_9_24_features {}) }: openssl_0_9_24_ { + dependencies = mapFeatures features ([ bitflags_0_9_1 foreign_types_0_3_2 lazy_static_1_0_0 libc_0_2_40 openssl_sys_0_9_28 ]); + features = mkFeatures (features.openssl_0_9_24 or {}); + }; + openssl_0_9_24_features = f: updateFeatures f (rec { + bitflags_0_9_1.default = true; + foreign_types_0_3_2.default = true; + lazy_static_1_0_0.default = true; + libc_0_2_40.default = true; + openssl_0_9_24.default = (f.openssl_0_9_24.default or true); + openssl_sys_0_9_28.default = true; + }) [ bitflags_0_9_1_features foreign_types_0_3_2_features lazy_static_1_0_0_features libc_0_2_40_features openssl_sys_0_9_28_features ]; + openssl_sys_0_9_28 = { features?(openssl_sys_0_9_28_features {}) }: openssl_sys_0_9_28_ { + dependencies = mapFeatures features ([ libc_0_2_40 ]) + ++ (if abi == "msvc" then mapFeatures features ([]) else []); + buildDependencies = mapFeatures features ([ cc_1_0_10 pkg_config_0_3_9 ]); + }; + openssl_sys_0_9_28_features = f: updateFeatures f (rec { + cc_1_0_10.default = true; + libc_0_2_40.default = true; + openssl_sys_0_9_28.default = (f.openssl_sys_0_9_28.default or true); + pkg_config_0_3_9.default = true; + }) [ libc_0_2_40_features cc_1_0_10_features pkg_config_0_3_9_features ]; + owning_ref_0_3_3 = { features?(owning_ref_0_3_3_features {}) }: owning_ref_0_3_3_ { + dependencies = mapFeatures features ([ stable_deref_trait_1_0_0 ]); + }; + owning_ref_0_3_3_features = f: updateFeatures f (rec { + owning_ref_0_3_3.default = (f.owning_ref_0_3_3.default or true); + stable_deref_trait_1_0_0.default = true; + }) [ stable_deref_trait_1_0_0_features ]; + parking_lot_0_4_8 = { features?(parking_lot_0_4_8_features {}) }: parking_lot_0_4_8_ { + dependencies = mapFeatures features ([ parking_lot_core_0_2_13 ] + ++ (if features.parking_lot_0_4_8.owning_ref or false then [ owning_ref_0_3_3 ] else [])); + features = mkFeatures (features.parking_lot_0_4_8 or {}); + }; + parking_lot_0_4_8_features = f: updateFeatures f (rec { + owning_ref_0_3_3.default = true; + parking_lot_0_4_8.default = (f.parking_lot_0_4_8.default or true); + parking_lot_0_4_8.owning_ref = + (f.parking_lot_0_4_8.owning_ref or false) || + (f.parking_lot_0_4_8.default or false) || + (parking_lot_0_4_8.default or false); + parking_lot_core_0_2_13.deadlock_detection = + (f.parking_lot_core_0_2_13.deadlock_detection or false) || + (parking_lot_0_4_8.deadlock_detection or false) || + (f.parking_lot_0_4_8.deadlock_detection or false); + parking_lot_core_0_2_13.default = true; + parking_lot_core_0_2_13.nightly = + (f.parking_lot_core_0_2_13.nightly or false) || + (parking_lot_0_4_8.nightly or false) || + (f.parking_lot_0_4_8.nightly or false); + }) [ owning_ref_0_3_3_features parking_lot_core_0_2_13_features ]; + parking_lot_core_0_2_13 = { features?(parking_lot_core_0_2_13_features {}) }: parking_lot_core_0_2_13_ { + dependencies = mapFeatures features ([ rand_0_4_2 smallvec_0_6_0 ]) + ++ (if (kernel == "linux" || kernel == "darwin") then mapFeatures features ([ libc_0_2_40 ]) else []) + ++ (if kernel == "windows" then mapFeatures features ([ winapi_0_3_4 ]) else []); + features = mkFeatures (features.parking_lot_core_0_2_13 or {}); + }; + parking_lot_core_0_2_13_features = f: updateFeatures f (rec { + libc_0_2_40.default = true; + parking_lot_core_0_2_13.backtrace = + (f.parking_lot_core_0_2_13.backtrace or false) || + (f.parking_lot_core_0_2_13.deadlock_detection or false) || + (parking_lot_core_0_2_13.deadlock_detection or false); + parking_lot_core_0_2_13.default = (f.parking_lot_core_0_2_13.default or true); + parking_lot_core_0_2_13.petgraph = + (f.parking_lot_core_0_2_13.petgraph or false) || + (f.parking_lot_core_0_2_13.deadlock_detection or false) || + (parking_lot_core_0_2_13.deadlock_detection or false); + parking_lot_core_0_2_13.thread-id = + (f.parking_lot_core_0_2_13.thread-id or false) || + (f.parking_lot_core_0_2_13.deadlock_detection or false) || + (parking_lot_core_0_2_13.deadlock_detection or false); + rand_0_4_2.default = true; + smallvec_0_6_0.default = true; + winapi_0_3_4.default = true; + winapi_0_3_4.errhandlingapi = true; + winapi_0_3_4.handleapi = true; + winapi_0_3_4.minwindef = true; + winapi_0_3_4.ntstatus = true; + winapi_0_3_4.synchapi = true; + winapi_0_3_4.winbase = true; + winapi_0_3_4.winerror = true; + winapi_0_3_4.winnt = true; + }) [ rand_0_4_2_features smallvec_0_6_0_features libc_0_2_40_features winapi_0_3_4_features ]; + percent_encoding_1_0_1 = { features?(percent_encoding_1_0_1_features {}) }: percent_encoding_1_0_1_ {}; + percent_encoding_1_0_1_features = f: updateFeatures f (rec { + percent_encoding_1_0_1.default = (f.percent_encoding_1_0_1.default or true); + }) []; + pest_1_0_6 = { features?(pest_1_0_6_features {}) }: pest_1_0_6_ {}; + pest_1_0_6_features = f: updateFeatures f (rec { + pest_1_0_6.default = (f.pest_1_0_6.default or true); + }) []; + pest_derive_1_0_7 = { features?(pest_derive_1_0_7_features {}) }: pest_derive_1_0_7_ { + dependencies = mapFeatures features ([ pest_1_0_6 quote_0_3_15 syn_0_11_11 ]); + }; + pest_derive_1_0_7_features = f: updateFeatures f (rec { + pest_1_0_6.default = true; + pest_derive_1_0_7.default = (f.pest_derive_1_0_7.default or true); + quote_0_3_15.default = true; + syn_0_11_11.default = true; + }) [ pest_1_0_6_features quote_0_3_15_features syn_0_11_11_features ]; + phf_0_7_21 = { features?(phf_0_7_21_features {}) }: phf_0_7_21_ { + dependencies = mapFeatures features ([ phf_shared_0_7_21 ]); + features = mkFeatures (features.phf_0_7_21 or {}); + }; + phf_0_7_21_features = f: updateFeatures f (rec { + phf_0_7_21.default = (f.phf_0_7_21.default or true); + phf_shared_0_7_21.core = + (f.phf_shared_0_7_21.core or false) || + (phf_0_7_21.core or false) || + (f.phf_0_7_21.core or false); + phf_shared_0_7_21.default = true; + phf_shared_0_7_21.unicase = + (f.phf_shared_0_7_21.unicase or false) || + (phf_0_7_21.unicase or false) || + (f.phf_0_7_21.unicase or false); + }) [ phf_shared_0_7_21_features ]; + phf_codegen_0_7_21 = { features?(phf_codegen_0_7_21_features {}) }: phf_codegen_0_7_21_ { + dependencies = mapFeatures features ([ phf_generator_0_7_21 phf_shared_0_7_21 ]); + }; + phf_codegen_0_7_21_features = f: updateFeatures f (rec { + phf_codegen_0_7_21.default = (f.phf_codegen_0_7_21.default or true); + phf_generator_0_7_21.default = true; + phf_shared_0_7_21.default = true; + }) [ phf_generator_0_7_21_features phf_shared_0_7_21_features ]; + phf_generator_0_7_21 = { features?(phf_generator_0_7_21_features {}) }: phf_generator_0_7_21_ { + dependencies = mapFeatures features ([ phf_shared_0_7_21 rand_0_3_22 ]); + }; + phf_generator_0_7_21_features = f: updateFeatures f (rec { + phf_generator_0_7_21.default = (f.phf_generator_0_7_21.default or true); + phf_shared_0_7_21.default = true; + rand_0_3_22.default = true; + }) [ phf_shared_0_7_21_features rand_0_3_22_features ]; + phf_shared_0_7_21 = { features?(phf_shared_0_7_21_features {}) }: phf_shared_0_7_21_ { + dependencies = mapFeatures features ([ siphasher_0_2_2 ] + ++ (if features.phf_shared_0_7_21.unicase or false then [ unicase_1_4_2 ] else [])); + features = mkFeatures (features.phf_shared_0_7_21 or {}); + }; + phf_shared_0_7_21_features = f: updateFeatures f (rec { + phf_shared_0_7_21.default = (f.phf_shared_0_7_21.default or true); + siphasher_0_2_2.default = true; + unicase_1_4_2.default = true; + }) [ siphasher_0_2_2_features unicase_1_4_2_features ]; + pkg_config_0_3_9 = { features?(pkg_config_0_3_9_features {}) }: pkg_config_0_3_9_ {}; + pkg_config_0_3_9_features = f: updateFeatures f (rec { + pkg_config_0_3_9.default = (f.pkg_config_0_3_9.default or true); + }) []; + pq_sys_0_4_4 = { features?(pq_sys_0_4_4_features {}) }: pq_sys_0_4_4_ { + dependencies = (if abi == "msvc" then mapFeatures features ([]) else []); + buildDependencies = mapFeatures features ([]); + }; + pq_sys_0_4_4_features = f: updateFeatures f (rec { + pq_sys_0_4_4.default = (f.pq_sys_0_4_4.default or true); + }) []; + proc_macro2_0_2_3 = { features?(proc_macro2_0_2_3_features {}) }: proc_macro2_0_2_3_ { + dependencies = mapFeatures features ([ unicode_xid_0_1_0 ]); + features = mkFeatures (features.proc_macro2_0_2_3 or {}); + }; + proc_macro2_0_2_3_features = f: updateFeatures f (rec { + proc_macro2_0_2_3.default = (f.proc_macro2_0_2_3.default or true); + proc_macro2_0_2_3.proc-macro = + (f.proc_macro2_0_2_3.proc-macro or false) || + (f.proc_macro2_0_2_3.default or false) || + (proc_macro2_0_2_3.default or false) || + (f.proc_macro2_0_2_3.nightly or false) || + (proc_macro2_0_2_3.nightly or false); + unicode_xid_0_1_0.default = true; + }) [ unicode_xid_0_1_0_features ]; + proc_macro2_0_3_6 = { features?(proc_macro2_0_3_6_features {}) }: proc_macro2_0_3_6_ { + dependencies = mapFeatures features ([ unicode_xid_0_1_0 ]); + features = mkFeatures (features.proc_macro2_0_3_6 or {}); + }; + proc_macro2_0_3_6_features = f: updateFeatures f (rec { + proc_macro2_0_3_6.default = (f.proc_macro2_0_3_6.default or true); + proc_macro2_0_3_6.proc-macro = + (f.proc_macro2_0_3_6.proc-macro or false) || + (f.proc_macro2_0_3_6.default or false) || + (proc_macro2_0_3_6.default or false) || + (f.proc_macro2_0_3_6.nightly or false) || + (proc_macro2_0_3_6.nightly or false); + unicode_xid_0_1_0.default = true; + }) [ unicode_xid_0_1_0_features ]; + pulldown_cmark_0_1_2 = { features?(pulldown_cmark_0_1_2_features {}) }: pulldown_cmark_0_1_2_ { + dependencies = mapFeatures features ([ bitflags_0_9_1 ]); + features = mkFeatures (features.pulldown_cmark_0_1_2 or {}); + }; + pulldown_cmark_0_1_2_features = f: updateFeatures f (rec { + bitflags_0_9_1.default = true; + pulldown_cmark_0_1_2.default = (f.pulldown_cmark_0_1_2.default or true); + pulldown_cmark_0_1_2.getopts = + (f.pulldown_cmark_0_1_2.getopts or false) || + (f.pulldown_cmark_0_1_2.default or false) || + (pulldown_cmark_0_1_2.default or false); + }) [ bitflags_0_9_1_features ]; + quick_error_1_2_1 = { features?(quick_error_1_2_1_features {}) }: quick_error_1_2_1_ {}; + quick_error_1_2_1_features = f: updateFeatures f (rec { + quick_error_1_2_1.default = (f.quick_error_1_2_1.default or true); + }) []; + quote_0_3_15 = { features?(quote_0_3_15_features {}) }: quote_0_3_15_ {}; + quote_0_3_15_features = f: updateFeatures f (rec { + quote_0_3_15.default = (f.quote_0_3_15.default or true); + }) []; + quote_0_4_2 = { features?(quote_0_4_2_features {}) }: quote_0_4_2_ { + dependencies = mapFeatures features ([ proc_macro2_0_2_3 ]); + }; + quote_0_4_2_features = f: updateFeatures f (rec { + proc_macro2_0_2_3.default = true; + quote_0_4_2.default = (f.quote_0_4_2.default or true); + }) [ proc_macro2_0_2_3_features ]; + quote_0_5_2 = { features?(quote_0_5_2_features {}) }: quote_0_5_2_ { + dependencies = mapFeatures features ([ proc_macro2_0_3_6 ]); + features = mkFeatures (features.quote_0_5_2 or {}); + }; + quote_0_5_2_features = f: updateFeatures f (rec { + proc_macro2_0_3_6.default = (f.proc_macro2_0_3_6.default or false); + proc_macro2_0_3_6.proc-macro = + (f.proc_macro2_0_3_6.proc-macro or false) || + (quote_0_5_2.proc-macro or false) || + (f.quote_0_5_2.proc-macro or false); + quote_0_5_2.default = (f.quote_0_5_2.default or true); + quote_0_5_2.proc-macro = + (f.quote_0_5_2.proc-macro or false) || + (f.quote_0_5_2.default or false) || + (quote_0_5_2.default or false); + }) [ proc_macro2_0_3_6_features ]; + r2d2_0_8_2 = { features?(r2d2_0_8_2_features {}) }: r2d2_0_8_2_ { + dependencies = mapFeatures features ([ antidote_1_0_0 log_0_4_1 scheduled_thread_pool_0_2_0 ]); + }; + r2d2_0_8_2_features = f: updateFeatures f (rec { + antidote_1_0_0.default = true; + log_0_4_1.default = true; + r2d2_0_8_2.default = (f.r2d2_0_8_2.default or true); + scheduled_thread_pool_0_2_0.default = true; + }) [ antidote_1_0_0_features log_0_4_1_features scheduled_thread_pool_0_2_0_features ]; + rand_0_3_22 = { features?(rand_0_3_22_features {}) }: rand_0_3_22_ { + dependencies = mapFeatures features ([ libc_0_2_40 rand_0_4_2 ]) + ++ (if kernel == "fuchsia" then mapFeatures features ([ fuchsia_zircon_0_3_3 ]) else []); + features = mkFeatures (features.rand_0_3_22 or {}); + }; + rand_0_3_22_features = f: updateFeatures f (rec { + fuchsia_zircon_0_3_3.default = true; + libc_0_2_40.default = true; + rand_0_3_22.default = (f.rand_0_3_22.default or true); + rand_0_3_22.i128_support = + (f.rand_0_3_22.i128_support or false) || + (f.rand_0_3_22.nightly or false) || + (rand_0_3_22.nightly or false); + rand_0_4_2.default = true; + }) [ libc_0_2_40_features rand_0_4_2_features fuchsia_zircon_0_3_3_features ]; + rand_0_4_2 = { features?(rand_0_4_2_features {}) }: rand_0_4_2_ { + dependencies = (if kernel == "fuchsia" then mapFeatures features ([ fuchsia_zircon_0_3_3 ]) else []) + ++ (if (kernel == "linux" || kernel == "darwin") then mapFeatures features ([ ] + ++ (if features.rand_0_4_2.libc or false then [ libc_0_2_40 ] else [])) else []) + ++ (if kernel == "windows" then mapFeatures features ([ winapi_0_3_4 ]) else []); + features = mkFeatures (features.rand_0_4_2 or {}); + }; + rand_0_4_2_features = f: updateFeatures f (rec { + fuchsia_zircon_0_3_3.default = true; + libc_0_2_40.default = true; + rand_0_4_2.default = (f.rand_0_4_2.default or true); + rand_0_4_2.i128_support = + (f.rand_0_4_2.i128_support or false) || + (f.rand_0_4_2.nightly or false) || + (rand_0_4_2.nightly or false); + rand_0_4_2.libc = + (f.rand_0_4_2.libc or false) || + (f.rand_0_4_2.std or false) || + (rand_0_4_2.std or false); + rand_0_4_2.std = + (f.rand_0_4_2.std or false) || + (f.rand_0_4_2.default or false) || + (rand_0_4_2.default or false); + winapi_0_3_4.default = true; + winapi_0_3_4.minwindef = true; + winapi_0_3_4.ntsecapi = true; + winapi_0_3_4.profileapi = true; + winapi_0_3_4.winnt = true; + }) [ fuchsia_zircon_0_3_3_features libc_0_2_40_features winapi_0_3_4_features ]; + rayon_0_8_2 = { features?(rayon_0_8_2_features {}) }: rayon_0_8_2_ { + dependencies = mapFeatures features ([ rayon_core_1_4_0 ]); + }; + rayon_0_8_2_features = f: updateFeatures f (rec { + rayon_0_8_2.default = (f.rayon_0_8_2.default or true); + rayon_core_1_4_0.default = true; + }) [ rayon_core_1_4_0_features ]; + rayon_core_1_4_0 = { features?(rayon_core_1_4_0_features {}) }: rayon_core_1_4_0_ { + dependencies = mapFeatures features ([ crossbeam_deque_0_2_0 lazy_static_1_0_0 libc_0_2_40 num_cpus_1_8_0 rand_0_4_2 ]); + }; + rayon_core_1_4_0_features = f: updateFeatures f (rec { + crossbeam_deque_0_2_0.default = true; + lazy_static_1_0_0.default = true; + libc_0_2_40.default = true; + num_cpus_1_8_0.default = true; + rand_0_4_2.default = true; + rayon_core_1_4_0.default = (f.rayon_core_1_4_0.default or true); + }) [ crossbeam_deque_0_2_0_features lazy_static_1_0_0_features libc_0_2_40_features num_cpus_1_8_0_features rand_0_4_2_features ]; + redox_syscall_0_1_37 = { features?(redox_syscall_0_1_37_features {}) }: redox_syscall_0_1_37_ {}; + redox_syscall_0_1_37_features = f: updateFeatures f (rec { + redox_syscall_0_1_37.default = (f.redox_syscall_0_1_37.default or true); + }) []; + redox_termios_0_1_1 = { features?(redox_termios_0_1_1_features {}) }: redox_termios_0_1_1_ { + dependencies = mapFeatures features ([ redox_syscall_0_1_37 ]); + }; + redox_termios_0_1_1_features = f: updateFeatures f (rec { + redox_syscall_0_1_37.default = true; + redox_termios_0_1_1.default = (f.redox_termios_0_1_1.default or true); + }) [ redox_syscall_0_1_37_features ]; + regex_0_2_10 = { features?(regex_0_2_10_features {}) }: regex_0_2_10_ { + dependencies = mapFeatures features ([ aho_corasick_0_6_4 memchr_2_0_1 regex_syntax_0_5_5 thread_local_0_3_5 utf8_ranges_1_0_0 ]); + features = mkFeatures (features.regex_0_2_10 or {}); + }; + regex_0_2_10_features = f: updateFeatures f (rec { + aho_corasick_0_6_4.default = true; + memchr_2_0_1.default = true; + regex_0_2_10.default = (f.regex_0_2_10.default or true); + regex_0_2_10.pattern = + (f.regex_0_2_10.pattern or false) || + (f.regex_0_2_10.unstable or false) || + (regex_0_2_10.unstable or false); + regex_syntax_0_5_5.default = true; + thread_local_0_3_5.default = true; + utf8_ranges_1_0_0.default = true; + }) [ aho_corasick_0_6_4_features memchr_2_0_1_features regex_syntax_0_5_5_features thread_local_0_3_5_features utf8_ranges_1_0_0_features ]; + regex_syntax_0_5_5 = { features?(regex_syntax_0_5_5_features {}) }: regex_syntax_0_5_5_ { + dependencies = mapFeatures features ([ ucd_util_0_1_1 ]); + }; + regex_syntax_0_5_5_features = f: updateFeatures f (rec { + regex_syntax_0_5_5.default = (f.regex_syntax_0_5_5.default or true); + ucd_util_0_1_1.default = true; + }) [ ucd_util_0_1_1_features ]; + relay_0_1_1 = { features?(relay_0_1_1_features {}) }: relay_0_1_1_ { + dependencies = mapFeatures features ([ futures_0_1_21 ]); + }; + relay_0_1_1_features = f: updateFeatures f (rec { + futures_0_1_21.default = true; + relay_0_1_1.default = (f.relay_0_1_1.default or true); + }) [ futures_0_1_21_features ]; + remove_dir_all_0_5_1 = { features?(remove_dir_all_0_5_1_features {}) }: remove_dir_all_0_5_1_ { + dependencies = (if kernel == "windows" then mapFeatures features ([ winapi_0_3_4 ]) else []); + }; + remove_dir_all_0_5_1_features = f: updateFeatures f (rec { + remove_dir_all_0_5_1.default = (f.remove_dir_all_0_5_1.default or true); + winapi_0_3_4.default = true; + winapi_0_3_4.errhandlingapi = true; + winapi_0_3_4.fileapi = true; + winapi_0_3_4.std = true; + winapi_0_3_4.winbase = true; + winapi_0_3_4.winerror = true; + }) [ winapi_0_3_4_features ]; + reqwest_0_8_5 = { features?(reqwest_0_8_5_features {}) }: reqwest_0_8_5_ { + dependencies = mapFeatures features ([ bytes_0_4_6 encoding_rs_0_7_2 futures_0_1_21 hyper_0_11_25 hyper_tls_0_1_3 libflate_0_1_14 log_0_4_1 mime_guess_2_0_0_alpha_4 native_tls_0_1_5 serde_1_0_43 serde_json_1_0_16 serde_urlencoded_0_5_1 tokio_core_0_1_17 tokio_io_0_1_6 tokio_tls_0_1_4 url_1_7_0 uuid_0_5_1 ]); + features = mkFeatures (features.reqwest_0_8_5 or {}); + }; + reqwest_0_8_5_features = f: updateFeatures f (rec { + bytes_0_4_6.default = true; + encoding_rs_0_7_2.default = true; + futures_0_1_21.default = true; + hyper_0_11_25.default = true; + hyper_tls_0_1_3.default = true; + libflate_0_1_14.default = true; + log_0_4_1.default = true; + mime_guess_2_0_0_alpha_4.default = true; + native_tls_0_1_5.default = true; + reqwest_0_8_5.default = (f.reqwest_0_8_5.default or true); + serde_1_0_43.default = true; + serde_json_1_0_16.default = true; + serde_urlencoded_0_5_1.default = true; + tokio_core_0_1_17.default = true; + tokio_io_0_1_6.default = true; + tokio_tls_0_1_4.default = true; + url_1_7_0.default = true; + uuid_0_5_1.default = true; + uuid_0_5_1.v4 = true; + }) [ bytes_0_4_6_features encoding_rs_0_7_2_features futures_0_1_21_features hyper_0_11_25_features hyper_tls_0_1_3_features libflate_0_1_14_features log_0_4_1_features mime_guess_2_0_0_alpha_4_features native_tls_0_1_5_features serde_1_0_43_features serde_json_1_0_16_features serde_urlencoded_0_5_1_features tokio_core_0_1_17_features tokio_io_0_1_6_features tokio_tls_0_1_4_features url_1_7_0_features uuid_0_5_1_features ]; + resolv_conf_0_6_0 = { features?(resolv_conf_0_6_0_features {}) }: resolv_conf_0_6_0_ { + dependencies = mapFeatures features ([ quick_error_1_2_1 ] + ++ (if features.resolv_conf_0_6_0.hostname or false then [ hostname_0_1_4 ] else [])); + features = mkFeatures (features.resolv_conf_0_6_0 or {}); + }; + resolv_conf_0_6_0_features = f: updateFeatures f (rec { + hostname_0_1_4.default = true; + quick_error_1_2_1.default = true; + resolv_conf_0_6_0.default = (f.resolv_conf_0_6_0.default or true); + resolv_conf_0_6_0.hostname = + (f.resolv_conf_0_6_0.hostname or false) || + (f.resolv_conf_0_6_0.system or false) || + (resolv_conf_0_6_0.system or false); + }) [ hostname_0_1_4_features quick_error_1_2_1_features ]; + ring_0_12_1 = { features?(ring_0_12_1_features {}) }: ring_0_12_1_ { + dependencies = mapFeatures features ([ libc_0_2_40 untrusted_0_5_1 ]) + ++ (if kernel == "redox" || (kernel == "linux" || kernel == "darwin") && !(kernel == "darwin" || kernel == "ios") then mapFeatures features ([ lazy_static_0_2_11 ]) else []); + buildDependencies = mapFeatures features ([ gcc_0_3_54 rayon_0_8_2 ]); + features = mkFeatures (features.ring_0_12_1 or {}); + }; + ring_0_12_1_features = f: updateFeatures f (rec { + gcc_0_3_54.default = true; + lazy_static_0_2_11.default = true; + libc_0_2_40.default = true; + rayon_0_8_2.default = true; + ring_0_12_1.default = (f.ring_0_12_1.default or true); + ring_0_12_1.dev_urandom_fallback = + (f.ring_0_12_1.dev_urandom_fallback or false) || + (f.ring_0_12_1.default or false) || + (ring_0_12_1.default or false); + ring_0_12_1.use_heap = + (f.ring_0_12_1.use_heap or false) || + (f.ring_0_12_1.default or false) || + (ring_0_12_1.default or false) || + (f.ring_0_12_1.rsa_signing or false) || + (ring_0_12_1.rsa_signing or false); + untrusted_0_5_1.default = true; + }) [ libc_0_2_40_features untrusted_0_5_1_features gcc_0_3_54_features rayon_0_8_2_features lazy_static_0_2_11_features ]; + rustc_demangle_0_1_7 = { features?(rustc_demangle_0_1_7_features {}) }: rustc_demangle_0_1_7_ {}; + rustc_demangle_0_1_7_features = f: updateFeatures f (rec { + rustc_demangle_0_1_7.default = (f.rustc_demangle_0_1_7.default or true); + }) []; + safemem_0_2_0 = { features?(safemem_0_2_0_features {}) }: safemem_0_2_0_ {}; + safemem_0_2_0_features = f: updateFeatures f (rec { + safemem_0_2_0.default = (f.safemem_0_2_0.default or true); + }) []; + same_file_0_1_3 = { features?(same_file_0_1_3_features {}) }: same_file_0_1_3_ { + dependencies = (if kernel == "windows" then mapFeatures features ([ kernel32_sys_0_2_2 winapi_0_2_8 ]) else []); + }; + same_file_0_1_3_features = f: updateFeatures f (rec { + kernel32_sys_0_2_2.default = true; + same_file_0_1_3.default = (f.same_file_0_1_3.default or true); + winapi_0_2_8.default = true; + }) [ kernel32_sys_0_2_2_features winapi_0_2_8_features ]; + schannel_0_1_12 = { features?(schannel_0_1_12_features {}) }: schannel_0_1_12_ { + dependencies = mapFeatures features ([ lazy_static_1_0_0 winapi_0_3_4 ]); + }; + schannel_0_1_12_features = f: updateFeatures f (rec { + lazy_static_1_0_0.default = true; + schannel_0_1_12.default = (f.schannel_0_1_12.default or true); + winapi_0_3_4.default = true; + winapi_0_3_4.lmcons = true; + winapi_0_3_4.minschannel = true; + winapi_0_3_4.schannel = true; + winapi_0_3_4.securitybaseapi = true; + winapi_0_3_4.sysinfoapi = true; + winapi_0_3_4.timezoneapi = true; + winapi_0_3_4.winbase = true; + winapi_0_3_4.wincrypt = true; + winapi_0_3_4.winerror = true; + }) [ lazy_static_1_0_0_features winapi_0_3_4_features ]; + scheduled_thread_pool_0_2_0 = { features?(scheduled_thread_pool_0_2_0_features {}) }: scheduled_thread_pool_0_2_0_ { + dependencies = mapFeatures features ([ antidote_1_0_0 ]); + }; + scheduled_thread_pool_0_2_0_features = f: updateFeatures f (rec { + antidote_1_0_0.default = true; + scheduled_thread_pool_0_2_0.default = (f.scheduled_thread_pool_0_2_0.default or true); + }) [ antidote_1_0_0_features ]; + scoped_tls_0_1_1 = { features?(scoped_tls_0_1_1_features {}) }: scoped_tls_0_1_1_ { + features = mkFeatures (features.scoped_tls_0_1_1 or {}); + }; + scoped_tls_0_1_1_features = f: updateFeatures f (rec { + scoped_tls_0_1_1.default = (f.scoped_tls_0_1_1.default or true); + }) []; + scopeguard_0_3_3 = { features?(scopeguard_0_3_3_features {}) }: scopeguard_0_3_3_ { + features = mkFeatures (features.scopeguard_0_3_3 or {}); + }; + scopeguard_0_3_3_features = f: updateFeatures f (rec { + scopeguard_0_3_3.default = (f.scopeguard_0_3_3.default or true); + scopeguard_0_3_3.use_std = + (f.scopeguard_0_3_3.use_std or false) || + (f.scopeguard_0_3_3.default or false) || + (scopeguard_0_3_3.default or false); + }) []; + security_framework_0_1_16 = { features?(security_framework_0_1_16_features {}) }: security_framework_0_1_16_ { + dependencies = mapFeatures features ([ core_foundation_0_2_3 core_foundation_sys_0_2_3 libc_0_2_40 security_framework_sys_0_1_16 ]); + features = mkFeatures (features.security_framework_0_1_16 or {}); + }; + security_framework_0_1_16_features = f: updateFeatures f (rec { + core_foundation_0_2_3.default = true; + core_foundation_sys_0_2_3.default = true; + libc_0_2_40.default = true; + security_framework_0_1_16.OSX_10_10 = + (f.security_framework_0_1_16.OSX_10_10 or false) || + (f.security_framework_0_1_16.OSX_10_11 or false) || + (security_framework_0_1_16.OSX_10_11 or false); + security_framework_0_1_16.OSX_10_11 = + (f.security_framework_0_1_16.OSX_10_11 or false) || + (f.security_framework_0_1_16.OSX_10_12 or false) || + (security_framework_0_1_16.OSX_10_12 or false); + security_framework_0_1_16.OSX_10_8 = + (f.security_framework_0_1_16.OSX_10_8 or false) || + (f.security_framework_0_1_16.OSX_10_9 or false) || + (security_framework_0_1_16.OSX_10_9 or false); + security_framework_0_1_16.OSX_10_9 = + (f.security_framework_0_1_16.OSX_10_9 or false) || + (f.security_framework_0_1_16.OSX_10_10 or false) || + (security_framework_0_1_16.OSX_10_10 or false); + security_framework_0_1_16.default = (f.security_framework_0_1_16.default or true); + security_framework_sys_0_1_16.OSX_10_10 = + (f.security_framework_sys_0_1_16.OSX_10_10 or false) || + (security_framework_0_1_16.OSX_10_10 or false) || + (f.security_framework_0_1_16.OSX_10_10 or false); + security_framework_sys_0_1_16.OSX_10_11 = + (f.security_framework_sys_0_1_16.OSX_10_11 or false) || + (security_framework_0_1_16.OSX_10_11 or false) || + (f.security_framework_0_1_16.OSX_10_11 or false) || + (security_framework_0_1_16.OSX_10_12 or false) || + (f.security_framework_0_1_16.OSX_10_12 or false); + security_framework_sys_0_1_16.OSX_10_8 = + (f.security_framework_sys_0_1_16.OSX_10_8 or false) || + (security_framework_0_1_16.OSX_10_8 or false) || + (f.security_framework_0_1_16.OSX_10_8 or false); + security_framework_sys_0_1_16.OSX_10_9 = + (f.security_framework_sys_0_1_16.OSX_10_9 or false) || + (security_framework_0_1_16.OSX_10_9 or false) || + (f.security_framework_0_1_16.OSX_10_9 or false); + security_framework_sys_0_1_16.default = true; + }) [ core_foundation_0_2_3_features core_foundation_sys_0_2_3_features libc_0_2_40_features security_framework_sys_0_1_16_features ]; + security_framework_sys_0_1_16 = { features?(security_framework_sys_0_1_16_features {}) }: security_framework_sys_0_1_16_ { + dependencies = mapFeatures features ([ core_foundation_sys_0_2_3 libc_0_2_40 ]); + features = mkFeatures (features.security_framework_sys_0_1_16 or {}); + }; + security_framework_sys_0_1_16_features = f: updateFeatures f (rec { + core_foundation_sys_0_2_3.default = true; + libc_0_2_40.default = true; + security_framework_sys_0_1_16.OSX_10_10 = + (f.security_framework_sys_0_1_16.OSX_10_10 or false) || + (f.security_framework_sys_0_1_16.OSX_10_11 or false) || + (security_framework_sys_0_1_16.OSX_10_11 or false); + security_framework_sys_0_1_16.OSX_10_11 = + (f.security_framework_sys_0_1_16.OSX_10_11 or false) || + (f.security_framework_sys_0_1_16.OSX_10_12 or false) || + (security_framework_sys_0_1_16.OSX_10_12 or false); + security_framework_sys_0_1_16.OSX_10_8 = + (f.security_framework_sys_0_1_16.OSX_10_8 or false) || + (f.security_framework_sys_0_1_16.OSX_10_9 or false) || + (security_framework_sys_0_1_16.OSX_10_9 or false); + security_framework_sys_0_1_16.OSX_10_9 = + (f.security_framework_sys_0_1_16.OSX_10_9 or false) || + (f.security_framework_sys_0_1_16.OSX_10_10 or false) || + (security_framework_sys_0_1_16.OSX_10_10 or false); + security_framework_sys_0_1_16.default = (f.security_framework_sys_0_1_16.default or true); + }) [ core_foundation_sys_0_2_3_features libc_0_2_40_features ]; + semver_0_8_0 = { features?(semver_0_8_0_features {}) }: semver_0_8_0_ { + dependencies = mapFeatures features ([ semver_parser_0_7_0 ] + ++ (if features.semver_0_8_0.serde or false then [ serde_1_0_43 ] else [])); + features = mkFeatures (features.semver_0_8_0 or {}); + }; + semver_0_8_0_features = f: updateFeatures f (rec { + semver_0_8_0.default = (f.semver_0_8_0.default or true); + semver_0_8_0.serde = + (f.semver_0_8_0.serde or false) || + (f.semver_0_8_0.ci or false) || + (semver_0_8_0.ci or false); + semver_parser_0_7_0.default = true; + serde_1_0_43.default = true; + }) [ semver_parser_0_7_0_features serde_1_0_43_features ]; + semver_parser_0_7_0 = { features?(semver_parser_0_7_0_features {}) }: semver_parser_0_7_0_ {}; + semver_parser_0_7_0_features = f: updateFeatures f (rec { + semver_parser_0_7_0.default = (f.semver_parser_0_7_0.default or true); + }) []; + serde_1_0_43 = { features?(serde_1_0_43_features {}) }: serde_1_0_43_ { + dependencies = mapFeatures features ([]); + features = mkFeatures (features.serde_1_0_43 or {}); + }; + serde_1_0_43_features = f: updateFeatures f (rec { + serde_1_0_43.default = (f.serde_1_0_43.default or true); + serde_1_0_43.serde_derive = + (f.serde_1_0_43.serde_derive or false) || + (f.serde_1_0_43.derive or false) || + (serde_1_0_43.derive or false) || + (f.serde_1_0_43.playground or false) || + (serde_1_0_43.playground or false); + serde_1_0_43.std = + (f.serde_1_0_43.std or false) || + (f.serde_1_0_43.default or false) || + (serde_1_0_43.default or false); + serde_1_0_43.unstable = + (f.serde_1_0_43.unstable or false) || + (f.serde_1_0_43.alloc or false) || + (serde_1_0_43.alloc or false); + }) []; + serde_derive_1_0_43 = { features?(serde_derive_1_0_43_features {}) }: serde_derive_1_0_43_ { + dependencies = mapFeatures features ([ proc_macro2_0_3_6 quote_0_5_2 serde_derive_internals_0_23_1 syn_0_13_1 ]); + features = mkFeatures (features.serde_derive_1_0_43 or {}); + }; + serde_derive_1_0_43_features = f: updateFeatures f (rec { + proc_macro2_0_3_6.default = true; + quote_0_5_2.default = true; + serde_derive_1_0_43.default = (f.serde_derive_1_0_43.default or true); + serde_derive_internals_0_23_1.default = (f.serde_derive_internals_0_23_1.default or false); + syn_0_13_1.default = true; + syn_0_13_1.visit = true; + }) [ proc_macro2_0_3_6_features quote_0_5_2_features serde_derive_internals_0_23_1_features syn_0_13_1_features ]; + serde_derive_internals_0_23_1 = { features?(serde_derive_internals_0_23_1_features {}) }: serde_derive_internals_0_23_1_ { + dependencies = mapFeatures features ([ proc_macro2_0_3_6 syn_0_13_1 ]); + }; + serde_derive_internals_0_23_1_features = f: updateFeatures f (rec { + proc_macro2_0_3_6.default = true; + serde_derive_internals_0_23_1.default = (f.serde_derive_internals_0_23_1.default or true); + syn_0_13_1.clone-impls = true; + syn_0_13_1.default = (f.syn_0_13_1.default or false); + syn_0_13_1.derive = true; + syn_0_13_1.parsing = true; + }) [ proc_macro2_0_3_6_features syn_0_13_1_features ]; + serde_json_1_0_16 = { features?(serde_json_1_0_16_features {}) }: serde_json_1_0_16_ { + dependencies = mapFeatures features ([ dtoa_0_4_2 itoa_0_4_1 serde_1_0_43 ]); + features = mkFeatures (features.serde_json_1_0_16 or {}); + }; + serde_json_1_0_16_features = f: updateFeatures f (rec { + dtoa_0_4_2.default = true; + itoa_0_4_1.default = true; + serde_1_0_43.default = true; + serde_json_1_0_16.default = (f.serde_json_1_0_16.default or true); + serde_json_1_0_16.linked-hash-map = + (f.serde_json_1_0_16.linked-hash-map or false) || + (f.serde_json_1_0_16.preserve_order or false) || + (serde_json_1_0_16.preserve_order or false); + }) [ dtoa_0_4_2_features itoa_0_4_1_features serde_1_0_43_features ]; + serde_urlencoded_0_5_1 = { features?(serde_urlencoded_0_5_1_features {}) }: serde_urlencoded_0_5_1_ { + dependencies = mapFeatures features ([ dtoa_0_4_2 itoa_0_3_4 serde_1_0_43 url_1_7_0 ]); + }; + serde_urlencoded_0_5_1_features = f: updateFeatures f (rec { + dtoa_0_4_2.default = true; + itoa_0_3_4.default = true; + serde_1_0_43.default = true; + serde_urlencoded_0_5_1.default = (f.serde_urlencoded_0_5_1.default or true); + url_1_7_0.default = true; + }) [ dtoa_0_4_2_features itoa_0_3_4_features serde_1_0_43_features url_1_7_0_features ]; + sha1_0_6_0 = { features?(sha1_0_6_0_features {}) }: sha1_0_6_0_ { + dependencies = mapFeatures features ([]); + features = mkFeatures (features.sha1_0_6_0 or {}); + }; + sha1_0_6_0_features = f: updateFeatures f (rec { + sha1_0_6_0.default = (f.sha1_0_6_0.default or true); + }) []; + siphasher_0_2_2 = { features?(siphasher_0_2_2_features {}) }: siphasher_0_2_2_ { + dependencies = mapFeatures features ([]); + }; + siphasher_0_2_2_features = f: updateFeatures f (rec { + siphasher_0_2_2.default = (f.siphasher_0_2_2.default or true); + }) []; + skeptic_0_13_2 = { features?(skeptic_0_13_2_features {}) }: skeptic_0_13_2_ { + dependencies = mapFeatures features ([ bytecount_0_2_0 cargo_metadata_0_3_3 error_chain_0_11_0 glob_0_2_11 pulldown_cmark_0_1_2 serde_json_1_0_16 tempdir_0_3_7 walkdir_1_0_7 ]); + }; + skeptic_0_13_2_features = f: updateFeatures f (rec { + bytecount_0_2_0.default = true; + cargo_metadata_0_3_3.default = true; + error_chain_0_11_0.default = (f.error_chain_0_11_0.default or false); + glob_0_2_11.default = true; + pulldown_cmark_0_1_2.default = (f.pulldown_cmark_0_1_2.default or false); + serde_json_1_0_16.default = true; + skeptic_0_13_2.default = (f.skeptic_0_13_2.default or true); + tempdir_0_3_7.default = true; + walkdir_1_0_7.default = true; + }) [ bytecount_0_2_0_features cargo_metadata_0_3_3_features error_chain_0_11_0_features glob_0_2_11_features pulldown_cmark_0_1_2_features serde_json_1_0_16_features tempdir_0_3_7_features walkdir_1_0_7_features ]; + slab_0_3_0 = { features?(slab_0_3_0_features {}) }: slab_0_3_0_ {}; + slab_0_3_0_features = f: updateFeatures f (rec { + slab_0_3_0.default = (f.slab_0_3_0.default or true); + }) []; + slab_0_4_0 = { features?(slab_0_4_0_features {}) }: slab_0_4_0_ {}; + slab_0_4_0_features = f: updateFeatures f (rec { + slab_0_4_0.default = (f.slab_0_4_0.default or true); + }) []; + slug_0_1_3 = { features?(slug_0_1_3_features {}) }: slug_0_1_3_ { + dependencies = mapFeatures features ([ unidecode_0_3_0 ]); + }; + slug_0_1_3_features = f: updateFeatures f (rec { + slug_0_1_3.default = (f.slug_0_1_3.default or true); + unidecode_0_3_0.default = true; + }) [ unidecode_0_3_0_features ]; + smallvec_0_2_1 = { features?(smallvec_0_2_1_features {}) }: smallvec_0_2_1_ {}; + smallvec_0_2_1_features = f: updateFeatures f (rec { + smallvec_0_2_1.default = (f.smallvec_0_2_1.default or true); + }) []; + smallvec_0_6_0 = { features?(smallvec_0_6_0_features {}) }: smallvec_0_6_0_ { + dependencies = mapFeatures features ([]); + features = mkFeatures (features.smallvec_0_6_0 or {}); + }; + smallvec_0_6_0_features = f: updateFeatures f (rec { + smallvec_0_6_0.default = (f.smallvec_0_6_0.default or true); + smallvec_0_6_0.std = + (f.smallvec_0_6_0.std or false) || + (f.smallvec_0_6_0.default or false) || + (smallvec_0_6_0.default or false); + }) []; + socket2_0_3_5 = { features?(socket2_0_3_5_features {}) }: socket2_0_3_5_ { + dependencies = (if (kernel == "linux" || kernel == "darwin") then mapFeatures features ([ cfg_if_0_1_2 libc_0_2_40 ]) else []) + ++ (if kernel == "windows" then mapFeatures features ([ winapi_0_3_4 ]) else []); + features = mkFeatures (features.socket2_0_3_5 or {}); + }; + socket2_0_3_5_features = f: updateFeatures f (rec { + cfg_if_0_1_2.default = true; + libc_0_2_40.default = true; + socket2_0_3_5.default = (f.socket2_0_3_5.default or true); + winapi_0_3_4.default = true; + winapi_0_3_4.handleapi = true; + winapi_0_3_4.minwindef = true; + winapi_0_3_4.ws2def = true; + winapi_0_3_4.ws2ipdef = true; + winapi_0_3_4.ws2tcpip = true; + }) [ cfg_if_0_1_2_features libc_0_2_40_features winapi_0_3_4_features ]; + stable_deref_trait_1_0_0 = { features?(stable_deref_trait_1_0_0_features {}) }: stable_deref_trait_1_0_0_ { + features = mkFeatures (features.stable_deref_trait_1_0_0 or {}); + }; + stable_deref_trait_1_0_0_features = f: updateFeatures f (rec { + stable_deref_trait_1_0_0.default = (f.stable_deref_trait_1_0_0.default or true); + stable_deref_trait_1_0_0.std = + (f.stable_deref_trait_1_0_0.std or false) || + (f.stable_deref_trait_1_0_0.default or false) || + (stable_deref_trait_1_0_0.default or false); + }) []; + string_0_1_0 = { features?(string_0_1_0_features {}) }: string_0_1_0_ {}; + string_0_1_0_features = f: updateFeatures f (rec { + string_0_1_0.default = (f.string_0_1_0.default or true); + }) []; + strsim_0_7_0 = { features?(strsim_0_7_0_features {}) }: strsim_0_7_0_ {}; + strsim_0_7_0_features = f: updateFeatures f (rec { + strsim_0_7_0.default = (f.strsim_0_7_0.default or true); + }) []; + syn_0_11_11 = { features?(syn_0_11_11_features {}) }: syn_0_11_11_ { + dependencies = mapFeatures features ([ ] + ++ (if features.syn_0_11_11.quote or false then [ quote_0_3_15 ] else []) + ++ (if features.syn_0_11_11.synom or false then [ synom_0_11_3 ] else []) + ++ (if features.syn_0_11_11.unicode-xid or false then [ unicode_xid_0_0_4 ] else [])); + features = mkFeatures (features.syn_0_11_11 or {}); + }; + syn_0_11_11_features = f: updateFeatures f (rec { + quote_0_3_15.default = true; + syn_0_11_11.default = (f.syn_0_11_11.default or true); + syn_0_11_11.parsing = + (f.syn_0_11_11.parsing or false) || + (f.syn_0_11_11.default or false) || + (syn_0_11_11.default or false); + syn_0_11_11.printing = + (f.syn_0_11_11.printing or false) || + (f.syn_0_11_11.default or false) || + (syn_0_11_11.default or false); + syn_0_11_11.quote = + (f.syn_0_11_11.quote or false) || + (f.syn_0_11_11.printing or false) || + (syn_0_11_11.printing or false); + syn_0_11_11.synom = + (f.syn_0_11_11.synom or false) || + (f.syn_0_11_11.parsing or false) || + (syn_0_11_11.parsing or false); + syn_0_11_11.unicode-xid = + (f.syn_0_11_11.unicode-xid or false) || + (f.syn_0_11_11.parsing or false) || + (syn_0_11_11.parsing or false); + synom_0_11_3.default = true; + unicode_xid_0_0_4.default = true; + }) [ quote_0_3_15_features synom_0_11_3_features unicode_xid_0_0_4_features ]; + syn_0_12_15 = { features?(syn_0_12_15_features {}) }: syn_0_12_15_ { + dependencies = mapFeatures features ([ proc_macro2_0_2_3 unicode_xid_0_1_0 ] + ++ (if features.syn_0_12_15.quote or false then [ quote_0_4_2 ] else [])); + features = mkFeatures (features.syn_0_12_15 or {}); + }; + syn_0_12_15_features = f: updateFeatures f (rec { + proc_macro2_0_2_3.default = true; + quote_0_4_2.default = true; + syn_0_12_15.clone-impls = + (f.syn_0_12_15.clone-impls or false) || + (f.syn_0_12_15.default or false) || + (syn_0_12_15.default or false); + syn_0_12_15.default = (f.syn_0_12_15.default or true); + syn_0_12_15.derive = + (f.syn_0_12_15.derive or false) || + (f.syn_0_12_15.default or false) || + (syn_0_12_15.default or false); + syn_0_12_15.parsing = + (f.syn_0_12_15.parsing or false) || + (f.syn_0_12_15.default or false) || + (syn_0_12_15.default or false); + syn_0_12_15.printing = + (f.syn_0_12_15.printing or false) || + (f.syn_0_12_15.default or false) || + (syn_0_12_15.default or false); + syn_0_12_15.quote = + (f.syn_0_12_15.quote or false) || + (f.syn_0_12_15.printing or false) || + (syn_0_12_15.printing or false); + unicode_xid_0_1_0.default = true; + }) [ proc_macro2_0_2_3_features quote_0_4_2_features unicode_xid_0_1_0_features ]; + syn_0_13_1 = { features?(syn_0_13_1_features {}) }: syn_0_13_1_ { + dependencies = mapFeatures features ([ proc_macro2_0_3_6 unicode_xid_0_1_0 ] + ++ (if features.syn_0_13_1.quote or false then [ quote_0_5_2 ] else [])); + features = mkFeatures (features.syn_0_13_1 or {}); + }; + syn_0_13_1_features = f: updateFeatures f (rec { + proc_macro2_0_3_6.default = (f.proc_macro2_0_3_6.default or false); + proc_macro2_0_3_6.proc-macro = + (f.proc_macro2_0_3_6.proc-macro or false) || + (syn_0_13_1.proc-macro or false) || + (f.syn_0_13_1.proc-macro or false); + quote_0_5_2.default = (f.quote_0_5_2.default or false); + quote_0_5_2.proc-macro = + (f.quote_0_5_2.proc-macro or false) || + (syn_0_13_1.proc-macro or false) || + (f.syn_0_13_1.proc-macro or false); + syn_0_13_1.clone-impls = + (f.syn_0_13_1.clone-impls or false) || + (f.syn_0_13_1.default or false) || + (syn_0_13_1.default or false); + syn_0_13_1.default = (f.syn_0_13_1.default or true); + syn_0_13_1.derive = + (f.syn_0_13_1.derive or false) || + (f.syn_0_13_1.default or false) || + (syn_0_13_1.default or false); + syn_0_13_1.parsing = + (f.syn_0_13_1.parsing or false) || + (f.syn_0_13_1.default or false) || + (syn_0_13_1.default or false); + syn_0_13_1.printing = + (f.syn_0_13_1.printing or false) || + (f.syn_0_13_1.default or false) || + (syn_0_13_1.default or false); + syn_0_13_1.proc-macro = + (f.syn_0_13_1.proc-macro or false) || + (f.syn_0_13_1.default or false) || + (syn_0_13_1.default or false); + syn_0_13_1.quote = + (f.syn_0_13_1.quote or false) || + (f.syn_0_13_1.printing or false) || + (syn_0_13_1.printing or false); + unicode_xid_0_1_0.default = true; + }) [ proc_macro2_0_3_6_features quote_0_5_2_features unicode_xid_0_1_0_features ]; + synom_0_11_3 = { features?(synom_0_11_3_features {}) }: synom_0_11_3_ { + dependencies = mapFeatures features ([ unicode_xid_0_0_4 ]); + }; + synom_0_11_3_features = f: updateFeatures f (rec { + synom_0_11_3.default = (f.synom_0_11_3.default or true); + unicode_xid_0_0_4.default = true; + }) [ unicode_xid_0_0_4_features ]; + synstructure_0_6_1 = { features?(synstructure_0_6_1_features {}) }: synstructure_0_6_1_ { + dependencies = mapFeatures features ([ quote_0_3_15 syn_0_11_11 ]); + features = mkFeatures (features.synstructure_0_6_1 or {}); + }; + synstructure_0_6_1_features = f: updateFeatures f (rec { + quote_0_3_15.default = true; + syn_0_11_11.default = true; + syn_0_11_11.visit = true; + synstructure_0_6_1.default = (f.synstructure_0_6_1.default or true); + }) [ quote_0_3_15_features syn_0_11_11_features ]; + take_0_1_0 = { features?(take_0_1_0_features {}) }: take_0_1_0_ {}; + take_0_1_0_features = f: updateFeatures f (rec { + take_0_1_0.default = (f.take_0_1_0.default or true); + }) []; + tempdir_0_3_7 = { features?(tempdir_0_3_7_features {}) }: tempdir_0_3_7_ { + dependencies = mapFeatures features ([ rand_0_4_2 remove_dir_all_0_5_1 ]); + }; + tempdir_0_3_7_features = f: updateFeatures f (rec { + rand_0_4_2.default = true; + remove_dir_all_0_5_1.default = true; + tempdir_0_3_7.default = (f.tempdir_0_3_7.default or true); + }) [ rand_0_4_2_features remove_dir_all_0_5_1_features ]; + tera_0_11_6 = { features?(tera_0_11_6_features {}) }: tera_0_11_6_ { + dependencies = mapFeatures features ([ chrono_0_4_2 error_chain_0_11_0 glob_0_2_11 humansize_1_1_0 lazy_static_1_0_0 pest_1_0_6 pest_derive_1_0_7 regex_0_2_10 serde_1_0_43 serde_json_1_0_16 slug_0_1_3 url_1_7_0 ]); + }; + tera_0_11_6_features = f: updateFeatures f (rec { + chrono_0_4_2.default = true; + error_chain_0_11_0.default = true; + glob_0_2_11.default = true; + humansize_1_1_0.default = true; + lazy_static_1_0_0.default = true; + pest_1_0_6.default = true; + pest_derive_1_0_7.default = true; + regex_0_2_10.default = true; + serde_1_0_43.default = true; + serde_json_1_0_16.default = true; + slug_0_1_3.default = true; + tera_0_11_6.default = (f.tera_0_11_6.default or true); + url_1_7_0.default = true; + }) [ chrono_0_4_2_features error_chain_0_11_0_features glob_0_2_11_features humansize_1_1_0_features lazy_static_1_0_0_features pest_1_0_6_features pest_derive_1_0_7_features regex_0_2_10_features serde_1_0_43_features serde_json_1_0_16_features slug_0_1_3_features url_1_7_0_features ]; + termcolor_0_3_6 = { features?(termcolor_0_3_6_features {}) }: termcolor_0_3_6_ { + dependencies = (if kernel == "windows" then mapFeatures features ([ wincolor_0_1_6 ]) else []); + }; + termcolor_0_3_6_features = f: updateFeatures f (rec { + termcolor_0_3_6.default = (f.termcolor_0_3_6.default or true); + wincolor_0_1_6.default = true; + }) [ wincolor_0_1_6_features ]; + termion_1_5_1 = { features?(termion_1_5_1_features {}) }: termion_1_5_1_ { + dependencies = (if !(kernel == "redox") then mapFeatures features ([ libc_0_2_40 ]) else []) + ++ (if kernel == "redox" then mapFeatures features ([ redox_syscall_0_1_37 redox_termios_0_1_1 ]) else []); + }; + termion_1_5_1_features = f: updateFeatures f (rec { + libc_0_2_40.default = true; + redox_syscall_0_1_37.default = true; + redox_termios_0_1_1.default = true; + termion_1_5_1.default = (f.termion_1_5_1.default or true); + }) [ libc_0_2_40_features redox_syscall_0_1_37_features redox_termios_0_1_1_features ]; + textwrap_0_9_0 = { features?(textwrap_0_9_0_features {}) }: textwrap_0_9_0_ { + dependencies = mapFeatures features ([ unicode_width_0_1_4 ]); + }; + textwrap_0_9_0_features = f: updateFeatures f (rec { + textwrap_0_9_0.default = (f.textwrap_0_9_0.default or true); + unicode_width_0_1_4.default = true; + }) [ unicode_width_0_1_4_features ]; + thread_local_0_3_5 = { features?(thread_local_0_3_5_features {}) }: thread_local_0_3_5_ { + dependencies = mapFeatures features ([ lazy_static_1_0_0 unreachable_1_0_0 ]); + }; + thread_local_0_3_5_features = f: updateFeatures f (rec { + lazy_static_1_0_0.default = true; + thread_local_0_3_5.default = (f.thread_local_0_3_5.default or true); + unreachable_1_0_0.default = true; + }) [ lazy_static_1_0_0_features unreachable_1_0_0_features ]; + time_0_1_39 = { features?(time_0_1_39_features {}) }: time_0_1_39_ { + dependencies = mapFeatures features ([ libc_0_2_40 ]) + ++ (if kernel == "redox" then mapFeatures features ([ redox_syscall_0_1_37 ]) else []) + ++ (if kernel == "windows" then mapFeatures features ([ winapi_0_3_4 ]) else []); + }; + time_0_1_39_features = f: updateFeatures f (rec { + libc_0_2_40.default = true; + redox_syscall_0_1_37.default = true; + time_0_1_39.default = (f.time_0_1_39.default or true); + winapi_0_3_4.default = true; + winapi_0_3_4.minwinbase = true; + winapi_0_3_4.minwindef = true; + winapi_0_3_4.ntdef = true; + winapi_0_3_4.profileapi = true; + winapi_0_3_4.std = true; + winapi_0_3_4.sysinfoapi = true; + winapi_0_3_4.timezoneapi = true; + }) [ libc_0_2_40_features redox_syscall_0_1_37_features winapi_0_3_4_features ]; + tokio_0_1_5 = { features?(tokio_0_1_5_features {}) }: tokio_0_1_5_ { + dependencies = mapFeatures features ([ futures_0_1_21 mio_0_6_14 tokio_executor_0_1_2 tokio_io_0_1_6 tokio_reactor_0_1_1 tokio_tcp_0_1_0 tokio_threadpool_0_1_2 tokio_timer_0_2_1 tokio_udp_0_1_0 ]); + features = mkFeatures (features.tokio_0_1_5 or {}); + }; + tokio_0_1_5_features = f: updateFeatures f (rec { + futures_0_1_21.default = true; + mio_0_6_14.default = true; + tokio_0_1_5.default = (f.tokio_0_1_5.default or true); + tokio_0_1_5.futures2 = + (f.tokio_0_1_5.futures2 or false) || + (f.tokio_0_1_5.unstable-futures or false) || + (tokio_0_1_5.unstable-futures or false); + tokio_executor_0_1_2.default = true; + tokio_executor_0_1_2.unstable-futures = + (f.tokio_executor_0_1_2.unstable-futures or false) || + (tokio_0_1_5.unstable-futures or false) || + (f.tokio_0_1_5.unstable-futures or false); + tokio_io_0_1_6.default = true; + tokio_reactor_0_1_1.default = true; + tokio_reactor_0_1_1.unstable-futures = + (f.tokio_reactor_0_1_1.unstable-futures or false) || + (tokio_0_1_5.unstable-futures or false) || + (f.tokio_0_1_5.unstable-futures or false); + tokio_tcp_0_1_0.default = true; + tokio_tcp_0_1_0.unstable-futures = + (f.tokio_tcp_0_1_0.unstable-futures or false) || + (tokio_0_1_5.unstable-futures or false) || + (f.tokio_0_1_5.unstable-futures or false); + tokio_threadpool_0_1_2.default = true; + tokio_threadpool_0_1_2.unstable-futures = + (f.tokio_threadpool_0_1_2.unstable-futures or false) || + (tokio_0_1_5.unstable-futures or false) || + (f.tokio_0_1_5.unstable-futures or false); + tokio_timer_0_2_1.default = true; + tokio_udp_0_1_0.default = true; + tokio_udp_0_1_0.unstable-futures = + (f.tokio_udp_0_1_0.unstable-futures or false) || + (tokio_0_1_5.unstable-futures or false) || + (f.tokio_0_1_5.unstable-futures or false); + }) [ futures_0_1_21_features mio_0_6_14_features tokio_executor_0_1_2_features tokio_io_0_1_6_features tokio_reactor_0_1_1_features tokio_tcp_0_1_0_features tokio_threadpool_0_1_2_features tokio_timer_0_2_1_features tokio_udp_0_1_0_features ]; + tokio_core_0_1_17 = { features?(tokio_core_0_1_17_features {}) }: tokio_core_0_1_17_ { + dependencies = mapFeatures features ([ bytes_0_4_6 futures_0_1_21 iovec_0_1_2 log_0_4_1 mio_0_6_14 scoped_tls_0_1_1 tokio_0_1_5 tokio_executor_0_1_2 tokio_io_0_1_6 tokio_reactor_0_1_1 tokio_timer_0_2_1 ]); + }; + tokio_core_0_1_17_features = f: updateFeatures f (rec { + bytes_0_4_6.default = true; + futures_0_1_21.default = true; + iovec_0_1_2.default = true; + log_0_4_1.default = true; + mio_0_6_14.default = true; + scoped_tls_0_1_1.default = true; + tokio_0_1_5.default = true; + tokio_core_0_1_17.default = (f.tokio_core_0_1_17.default or true); + tokio_executor_0_1_2.default = true; + tokio_io_0_1_6.default = true; + tokio_reactor_0_1_1.default = true; + tokio_timer_0_2_1.default = true; + }) [ bytes_0_4_6_features futures_0_1_21_features iovec_0_1_2_features log_0_4_1_features mio_0_6_14_features scoped_tls_0_1_1_features tokio_0_1_5_features tokio_executor_0_1_2_features tokio_io_0_1_6_features tokio_reactor_0_1_1_features tokio_timer_0_2_1_features ]; + tokio_executor_0_1_2 = { features?(tokio_executor_0_1_2_features {}) }: tokio_executor_0_1_2_ { + dependencies = mapFeatures features ([ futures_0_1_21 ]); + features = mkFeatures (features.tokio_executor_0_1_2 or {}); + }; + tokio_executor_0_1_2_features = f: updateFeatures f (rec { + futures_0_1_21.default = true; + tokio_executor_0_1_2.default = (f.tokio_executor_0_1_2.default or true); + tokio_executor_0_1_2.futures2 = + (f.tokio_executor_0_1_2.futures2 or false) || + (f.tokio_executor_0_1_2.unstable-futures or false) || + (tokio_executor_0_1_2.unstable-futures or false); + }) [ futures_0_1_21_features ]; + tokio_io_0_1_6 = { features?(tokio_io_0_1_6_features {}) }: tokio_io_0_1_6_ { + dependencies = mapFeatures features ([ bytes_0_4_6 futures_0_1_21 log_0_4_1 ]); + }; + tokio_io_0_1_6_features = f: updateFeatures f (rec { + bytes_0_4_6.default = true; + futures_0_1_21.default = true; + log_0_4_1.default = true; + tokio_io_0_1_6.default = (f.tokio_io_0_1_6.default or true); + }) [ bytes_0_4_6_features futures_0_1_21_features log_0_4_1_features ]; + tokio_proto_0_1_1 = { features?(tokio_proto_0_1_1_features {}) }: tokio_proto_0_1_1_ { + dependencies = mapFeatures features ([ futures_0_1_21 log_0_3_9 net2_0_2_32 rand_0_3_22 slab_0_3_0 smallvec_0_2_1 take_0_1_0 tokio_core_0_1_17 tokio_io_0_1_6 tokio_service_0_1_0 ]); + }; + tokio_proto_0_1_1_features = f: updateFeatures f (rec { + futures_0_1_21.default = true; + log_0_3_9.default = true; + net2_0_2_32.default = true; + rand_0_3_22.default = true; + slab_0_3_0.default = true; + smallvec_0_2_1.default = true; + take_0_1_0.default = true; + tokio_core_0_1_17.default = true; + tokio_io_0_1_6.default = true; + tokio_proto_0_1_1.default = (f.tokio_proto_0_1_1.default or true); + tokio_service_0_1_0.default = true; + }) [ futures_0_1_21_features log_0_3_9_features net2_0_2_32_features rand_0_3_22_features slab_0_3_0_features smallvec_0_2_1_features take_0_1_0_features tokio_core_0_1_17_features tokio_io_0_1_6_features tokio_service_0_1_0_features ]; + tokio_reactor_0_1_1 = { features?(tokio_reactor_0_1_1_features {}) }: tokio_reactor_0_1_1_ { + dependencies = mapFeatures features ([ futures_0_1_21 log_0_4_1 mio_0_6_14 slab_0_4_0 tokio_executor_0_1_2 tokio_io_0_1_6 ]); + features = mkFeatures (features.tokio_reactor_0_1_1 or {}); + }; + tokio_reactor_0_1_1_features = f: updateFeatures f (rec { + futures_0_1_21.default = true; + log_0_4_1.default = true; + mio_0_6_14.default = true; + slab_0_4_0.default = true; + tokio_executor_0_1_2.default = true; + tokio_io_0_1_6.default = true; + tokio_reactor_0_1_1.default = (f.tokio_reactor_0_1_1.default or true); + tokio_reactor_0_1_1.futures2 = + (f.tokio_reactor_0_1_1.futures2 or false) || + (f.tokio_reactor_0_1_1.unstable-futures or false) || + (tokio_reactor_0_1_1.unstable-futures or false); + }) [ futures_0_1_21_features log_0_4_1_features mio_0_6_14_features slab_0_4_0_features tokio_executor_0_1_2_features tokio_io_0_1_6_features ]; + tokio_service_0_1_0 = { features?(tokio_service_0_1_0_features {}) }: tokio_service_0_1_0_ { + dependencies = mapFeatures features ([ futures_0_1_21 ]); + }; + tokio_service_0_1_0_features = f: updateFeatures f (rec { + futures_0_1_21.default = true; + tokio_service_0_1_0.default = (f.tokio_service_0_1_0.default or true); + }) [ futures_0_1_21_features ]; + tokio_signal_0_1_5 = { features?(tokio_signal_0_1_5_features {}) }: tokio_signal_0_1_5_ { + dependencies = mapFeatures features ([ futures_0_1_21 mio_0_6_14 tokio_core_0_1_17 tokio_io_0_1_6 ]) + ++ (if (kernel == "linux" || kernel == "darwin") then mapFeatures features ([ libc_0_2_40 mio_uds_0_6_4 ]) else []) + ++ (if kernel == "windows" then mapFeatures features ([ winapi_0_3_4 ]) else []); + }; + tokio_signal_0_1_5_features = f: updateFeatures f (rec { + futures_0_1_21.default = true; + libc_0_2_40.default = true; + mio_0_6_14.default = true; + mio_uds_0_6_4.default = true; + tokio_core_0_1_17.default = true; + tokio_io_0_1_6.default = true; + tokio_signal_0_1_5.default = (f.tokio_signal_0_1_5.default or true); + winapi_0_3_4.default = true; + winapi_0_3_4.minwindef = true; + winapi_0_3_4.wincon = true; + }) [ futures_0_1_21_features mio_0_6_14_features tokio_core_0_1_17_features tokio_io_0_1_6_features libc_0_2_40_features mio_uds_0_6_4_features winapi_0_3_4_features ]; + tokio_tcp_0_1_0 = { features?(tokio_tcp_0_1_0_features {}) }: tokio_tcp_0_1_0_ { + dependencies = mapFeatures features ([ bytes_0_4_6 futures_0_1_21 iovec_0_1_2 mio_0_6_14 tokio_io_0_1_6 tokio_reactor_0_1_1 ]); + features = mkFeatures (features.tokio_tcp_0_1_0 or {}); + }; + tokio_tcp_0_1_0_features = f: updateFeatures f (rec { + bytes_0_4_6.default = true; + futures_0_1_21.default = true; + iovec_0_1_2.default = true; + mio_0_6_14.default = true; + tokio_io_0_1_6.default = true; + tokio_reactor_0_1_1.default = true; + tokio_tcp_0_1_0.default = (f.tokio_tcp_0_1_0.default or true); + tokio_tcp_0_1_0.futures2 = + (f.tokio_tcp_0_1_0.futures2 or false) || + (f.tokio_tcp_0_1_0.unstable-futures or false) || + (tokio_tcp_0_1_0.unstable-futures or false); + }) [ bytes_0_4_6_features futures_0_1_21_features iovec_0_1_2_features mio_0_6_14_features tokio_io_0_1_6_features tokio_reactor_0_1_1_features ]; + tokio_threadpool_0_1_2 = { features?(tokio_threadpool_0_1_2_features {}) }: tokio_threadpool_0_1_2_ { + dependencies = mapFeatures features ([ crossbeam_deque_0_3_0 futures_0_1_21 log_0_4_1 num_cpus_1_8_0 rand_0_4_2 tokio_executor_0_1_2 ]); + features = mkFeatures (features.tokio_threadpool_0_1_2 or {}); + }; + tokio_threadpool_0_1_2_features = f: updateFeatures f (rec { + crossbeam_deque_0_3_0.default = true; + futures_0_1_21.default = true; + log_0_4_1.default = true; + num_cpus_1_8_0.default = true; + rand_0_4_2.default = true; + tokio_executor_0_1_2.default = true; + tokio_executor_0_1_2.unstable-futures = + (f.tokio_executor_0_1_2.unstable-futures or false) || + (tokio_threadpool_0_1_2.unstable-futures or false) || + (f.tokio_threadpool_0_1_2.unstable-futures or false); + tokio_threadpool_0_1_2.default = (f.tokio_threadpool_0_1_2.default or true); + tokio_threadpool_0_1_2.futures2 = + (f.tokio_threadpool_0_1_2.futures2 or false) || + (f.tokio_threadpool_0_1_2.unstable-futures or false) || + (tokio_threadpool_0_1_2.unstable-futures or false); + }) [ crossbeam_deque_0_3_0_features futures_0_1_21_features log_0_4_1_features num_cpus_1_8_0_features rand_0_4_2_features tokio_executor_0_1_2_features ]; + tokio_timer_0_2_1 = { features?(tokio_timer_0_2_1_features {}) }: tokio_timer_0_2_1_ { + dependencies = mapFeatures features ([ futures_0_1_21 tokio_executor_0_1_2 ]); + }; + tokio_timer_0_2_1_features = f: updateFeatures f (rec { + futures_0_1_21.default = true; + tokio_executor_0_1_2.default = true; + tokio_timer_0_2_1.default = (f.tokio_timer_0_2_1.default or true); + }) [ futures_0_1_21_features tokio_executor_0_1_2_features ]; + tokio_tls_0_1_4 = { features?(tokio_tls_0_1_4_features {}) }: tokio_tls_0_1_4_ { + dependencies = mapFeatures features ([ futures_0_1_21 native_tls_0_1_5 tokio_core_0_1_17 tokio_io_0_1_6 ]) + ++ (if !(kernel == "darwin") && !(kernel == "windows") && !(kernel == "ios") then mapFeatures features ([]) else []) + ++ (if kernel == "darwin" || kernel == "ios" then mapFeatures features ([]) else []) + ++ (if kernel == "windows" then mapFeatures features ([]) else []); + }; + tokio_tls_0_1_4_features = f: updateFeatures f (rec { + futures_0_1_21.default = true; + native_tls_0_1_5.default = true; + tokio_core_0_1_17.default = true; + tokio_io_0_1_6.default = true; + tokio_tls_0_1_4.default = (f.tokio_tls_0_1_4.default or true); + }) [ futures_0_1_21_features native_tls_0_1_5_features tokio_core_0_1_17_features tokio_io_0_1_6_features ]; + tokio_udp_0_1_0 = { features?(tokio_udp_0_1_0_features {}) }: tokio_udp_0_1_0_ { + dependencies = mapFeatures features ([ bytes_0_4_6 futures_0_1_21 log_0_4_1 mio_0_6_14 tokio_io_0_1_6 tokio_reactor_0_1_1 ]); + features = mkFeatures (features.tokio_udp_0_1_0 or {}); + }; + tokio_udp_0_1_0_features = f: updateFeatures f (rec { + bytes_0_4_6.default = true; + futures_0_1_21.default = true; + log_0_4_1.default = true; + mio_0_6_14.default = true; + tokio_io_0_1_6.default = true; + tokio_reactor_0_1_1.default = true; + tokio_udp_0_1_0.default = (f.tokio_udp_0_1_0.default or true); + tokio_udp_0_1_0.futures2 = + (f.tokio_udp_0_1_0.futures2 or false) || + (f.tokio_udp_0_1_0.unstable-futures or false) || + (tokio_udp_0_1_0.unstable-futures or false); + }) [ bytes_0_4_6_features futures_0_1_21_features log_0_4_1_features mio_0_6_14_features tokio_io_0_1_6_features tokio_reactor_0_1_1_features ]; + trust_dns_proto_0_3_2 = { features?(trust_dns_proto_0_3_2_features {}) }: trust_dns_proto_0_3_2_ { + dependencies = mapFeatures features ([ byteorder_1_2_2 error_chain_0_1_12 futures_0_1_21 idna_0_1_4 lazy_static_1_0_0 log_0_4_1 rand_0_4_2 tokio_core_0_1_17 tokio_io_0_1_6 url_1_7_0 ]); + features = mkFeatures (features.trust_dns_proto_0_3_2 or {}); + }; + trust_dns_proto_0_3_2_features = f: updateFeatures f (rec { + byteorder_1_2_2.default = true; + error_chain_0_1_12.default = true; + futures_0_1_21.default = true; + idna_0_1_4.default = true; + lazy_static_1_0_0.default = true; + log_0_4_1.default = true; + rand_0_4_2.default = true; + tokio_core_0_1_17.default = true; + tokio_io_0_1_6.default = true; + trust_dns_proto_0_3_2.data-encoding = + (f.trust_dns_proto_0_3_2.data-encoding or false) || + (f.trust_dns_proto_0_3_2.dnssec or false) || + (trust_dns_proto_0_3_2.dnssec or false); + trust_dns_proto_0_3_2.default = (f.trust_dns_proto_0_3_2.default or true); + trust_dns_proto_0_3_2.dnssec = + (f.trust_dns_proto_0_3_2.dnssec or false) || + (f.trust_dns_proto_0_3_2.dnssec-openssl or false) || + (trust_dns_proto_0_3_2.dnssec-openssl or false) || + (f.trust_dns_proto_0_3_2.dnssec-ring or false) || + (trust_dns_proto_0_3_2.dnssec-ring or false); + trust_dns_proto_0_3_2.openssl = + (f.trust_dns_proto_0_3_2.openssl or false) || + (f.trust_dns_proto_0_3_2.dnssec-openssl or false) || + (trust_dns_proto_0_3_2.dnssec-openssl or false); + trust_dns_proto_0_3_2.ring = + (f.trust_dns_proto_0_3_2.ring or false) || + (f.trust_dns_proto_0_3_2.dnssec-ring or false) || + (trust_dns_proto_0_3_2.dnssec-ring or false); + trust_dns_proto_0_3_2.untrusted = + (f.trust_dns_proto_0_3_2.untrusted or false) || + (f.trust_dns_proto_0_3_2.dnssec-ring or false) || + (trust_dns_proto_0_3_2.dnssec-ring or false); + url_1_7_0.default = true; + }) [ byteorder_1_2_2_features error_chain_0_1_12_features futures_0_1_21_features idna_0_1_4_features lazy_static_1_0_0_features log_0_4_1_features rand_0_4_2_features tokio_core_0_1_17_features tokio_io_0_1_6_features url_1_7_0_features ]; + trust_dns_resolver_0_8_1 = { features?(trust_dns_resolver_0_8_1_features {}) }: trust_dns_resolver_0_8_1_ { + dependencies = mapFeatures features ([ error_chain_0_1_12 futures_0_1_21 lazy_static_1_0_0 log_0_4_1 lru_cache_0_1_1 resolv_conf_0_6_0 tokio_core_0_1_17 trust_dns_proto_0_3_2 ]) + ++ (if kernel == "windows" then mapFeatures features ([ ipconfig_0_1_6 ]) else []); + features = mkFeatures (features.trust_dns_resolver_0_8_1 or {}); + }; + trust_dns_resolver_0_8_1_features = f: updateFeatures f (rec { + error_chain_0_1_12.default = true; + futures_0_1_21.default = true; + ipconfig_0_1_6.default = true; + lazy_static_1_0_0.default = true; + log_0_4_1.default = true; + lru_cache_0_1_1.default = true; + resolv_conf_0_6_0.default = true; + resolv_conf_0_6_0.system = true; + tokio_core_0_1_17.default = true; + trust_dns_proto_0_3_2.default = true; + trust_dns_proto_0_3_2.dnssec-openssl = + (f.trust_dns_proto_0_3_2.dnssec-openssl or false) || + (trust_dns_resolver_0_8_1.dnssec-openssl or false) || + (f.trust_dns_resolver_0_8_1.dnssec-openssl or false); + trust_dns_proto_0_3_2.dnssec-ring = + (f.trust_dns_proto_0_3_2.dnssec-ring or false) || + (trust_dns_resolver_0_8_1.dnssec-ring or false) || + (f.trust_dns_resolver_0_8_1.dnssec-ring or false); + trust_dns_resolver_0_8_1.default = (f.trust_dns_resolver_0_8_1.default or true); + trust_dns_resolver_0_8_1.dnssec = + (f.trust_dns_resolver_0_8_1.dnssec or false) || + (f.trust_dns_resolver_0_8_1.dnssec-openssl or false) || + (trust_dns_resolver_0_8_1.dnssec-openssl or false) || + (f.trust_dns_resolver_0_8_1.dnssec-ring or false) || + (trust_dns_resolver_0_8_1.dnssec-ring or false); + }) [ error_chain_0_1_12_features futures_0_1_21_features lazy_static_1_0_0_features log_0_4_1_features lru_cache_0_1_1_features resolv_conf_0_6_0_features tokio_core_0_1_17_features trust_dns_proto_0_3_2_features ipconfig_0_1_6_features ]; + twoway_0_1_8 = { features?(twoway_0_1_8_features {}) }: twoway_0_1_8_ { + dependencies = mapFeatures features ([ memchr_2_0_1 ]); + features = mkFeatures (features.twoway_0_1_8 or {}); + }; + twoway_0_1_8_features = f: updateFeatures f (rec { + memchr_2_0_1.default = (f.memchr_2_0_1.default or false); + memchr_2_0_1.use_std = + (f.memchr_2_0_1.use_std or false) || + (twoway_0_1_8.use_std or false) || + (f.twoway_0_1_8.use_std or false); + twoway_0_1_8.default = (f.twoway_0_1_8.default or true); + twoway_0_1_8.galil-seiferas = + (f.twoway_0_1_8.galil-seiferas or false) || + (f.twoway_0_1_8.benchmarks or false) || + (twoway_0_1_8.benchmarks or false); + twoway_0_1_8.jetscii = + (f.twoway_0_1_8.jetscii or false) || + (f.twoway_0_1_8.all or false) || + (twoway_0_1_8.all or false); + twoway_0_1_8.pattern = + (f.twoway_0_1_8.pattern or false) || + (f.twoway_0_1_8.all or false) || + (twoway_0_1_8.all or false) || + (f.twoway_0_1_8.benchmarks or false) || + (twoway_0_1_8.benchmarks or false); + twoway_0_1_8.pcmp = + (f.twoway_0_1_8.pcmp or false) || + (f.twoway_0_1_8.all or false) || + (twoway_0_1_8.all or false); + twoway_0_1_8.test-set = + (f.twoway_0_1_8.test-set or false) || + (f.twoway_0_1_8.all or false) || + (twoway_0_1_8.all or false); + twoway_0_1_8.unchecked-index = + (f.twoway_0_1_8.unchecked-index or false) || + (f.twoway_0_1_8.benchmarks or false) || + (twoway_0_1_8.benchmarks or false) || + (f.twoway_0_1_8.pcmp or false) || + (twoway_0_1_8.pcmp or false); + twoway_0_1_8.use_std = + (f.twoway_0_1_8.use_std or false) || + (f.twoway_0_1_8.default or false) || + (twoway_0_1_8.default or false); + }) [ memchr_2_0_1_features ]; + typed_arena_1_3_0 = { features?(typed_arena_1_3_0_features {}) }: typed_arena_1_3_0_ {}; + typed_arena_1_3_0_features = f: updateFeatures f (rec { + typed_arena_1_3_0.default = (f.typed_arena_1_3_0.default or true); + }) []; + ucd_util_0_1_1 = { features?(ucd_util_0_1_1_features {}) }: ucd_util_0_1_1_ {}; + ucd_util_0_1_1_features = f: updateFeatures f (rec { + ucd_util_0_1_1.default = (f.ucd_util_0_1_1.default or true); + }) []; + unicase_1_4_2 = { features?(unicase_1_4_2_features {}) }: unicase_1_4_2_ { + dependencies = mapFeatures features ([]); + buildDependencies = mapFeatures features ([ version_check_0_1_3 ]); + features = mkFeatures (features.unicase_1_4_2 or {}); + }; + unicase_1_4_2_features = f: updateFeatures f (rec { + unicase_1_4_2.default = (f.unicase_1_4_2.default or true); + unicase_1_4_2.heapsize = + (f.unicase_1_4_2.heapsize or false) || + (f.unicase_1_4_2.heap_size or false) || + (unicase_1_4_2.heap_size or false); + unicase_1_4_2.heapsize_plugin = + (f.unicase_1_4_2.heapsize_plugin or false) || + (f.unicase_1_4_2.heap_size or false) || + (unicase_1_4_2.heap_size or false); + version_check_0_1_3.default = true; + }) [ version_check_0_1_3_features ]; + unicase_2_1_0 = { features?(unicase_2_1_0_features {}) }: unicase_2_1_0_ { + buildDependencies = mapFeatures features ([ version_check_0_1_3 ]); + features = mkFeatures (features.unicase_2_1_0 or {}); + }; + unicase_2_1_0_features = f: updateFeatures f (rec { + unicase_2_1_0.default = (f.unicase_2_1_0.default or true); + version_check_0_1_3.default = true; + }) [ version_check_0_1_3_features ]; + unicode_bidi_0_3_4 = { features?(unicode_bidi_0_3_4_features {}) }: unicode_bidi_0_3_4_ { + dependencies = mapFeatures features ([ matches_0_1_6 ]); + features = mkFeatures (features.unicode_bidi_0_3_4 or {}); + }; + unicode_bidi_0_3_4_features = f: updateFeatures f (rec { + matches_0_1_6.default = true; + unicode_bidi_0_3_4.default = (f.unicode_bidi_0_3_4.default or true); + unicode_bidi_0_3_4.flame = + (f.unicode_bidi_0_3_4.flame or false) || + (f.unicode_bidi_0_3_4.flame_it or false) || + (unicode_bidi_0_3_4.flame_it or false); + unicode_bidi_0_3_4.flamer = + (f.unicode_bidi_0_3_4.flamer or false) || + (f.unicode_bidi_0_3_4.flame_it or false) || + (unicode_bidi_0_3_4.flame_it or false); + unicode_bidi_0_3_4.serde = + (f.unicode_bidi_0_3_4.serde or false) || + (f.unicode_bidi_0_3_4.with_serde or false) || + (unicode_bidi_0_3_4.with_serde or false); + }) [ matches_0_1_6_features ]; + unicode_normalization_0_1_5 = { features?(unicode_normalization_0_1_5_features {}) }: unicode_normalization_0_1_5_ {}; + unicode_normalization_0_1_5_features = f: updateFeatures f (rec { + unicode_normalization_0_1_5.default = (f.unicode_normalization_0_1_5.default or true); + }) []; + unicode_width_0_1_4 = { features?(unicode_width_0_1_4_features {}) }: unicode_width_0_1_4_ { + features = mkFeatures (features.unicode_width_0_1_4 or {}); + }; + unicode_width_0_1_4_features = f: updateFeatures f (rec { + unicode_width_0_1_4.default = (f.unicode_width_0_1_4.default or true); + }) []; + unicode_xid_0_0_4 = { features?(unicode_xid_0_0_4_features {}) }: unicode_xid_0_0_4_ { + features = mkFeatures (features.unicode_xid_0_0_4 or {}); + }; + unicode_xid_0_0_4_features = f: updateFeatures f (rec { + unicode_xid_0_0_4.default = (f.unicode_xid_0_0_4.default or true); + }) []; + unicode_xid_0_1_0 = { features?(unicode_xid_0_1_0_features {}) }: unicode_xid_0_1_0_ { + features = mkFeatures (features.unicode_xid_0_1_0 or {}); + }; + unicode_xid_0_1_0_features = f: updateFeatures f (rec { + unicode_xid_0_1_0.default = (f.unicode_xid_0_1_0.default or true); + }) []; + unicode_categories_0_1_1 = { features?(unicode_categories_0_1_1_features {}) }: unicode_categories_0_1_1_ {}; + unicode_categories_0_1_1_features = f: updateFeatures f (rec { + unicode_categories_0_1_1.default = (f.unicode_categories_0_1_1.default or true); + }) []; + unidecode_0_3_0 = { features?(unidecode_0_3_0_features {}) }: unidecode_0_3_0_ {}; + unidecode_0_3_0_features = f: updateFeatures f (rec { + unidecode_0_3_0.default = (f.unidecode_0_3_0.default or true); + }) []; + unreachable_1_0_0 = { features?(unreachable_1_0_0_features {}) }: unreachable_1_0_0_ { + dependencies = mapFeatures features ([ void_1_0_2 ]); + }; + unreachable_1_0_0_features = f: updateFeatures f (rec { + unreachable_1_0_0.default = (f.unreachable_1_0_0.default or true); + void_1_0_2.default = (f.void_1_0_2.default or false); + }) [ void_1_0_2_features ]; + untrusted_0_5_1 = { features?(untrusted_0_5_1_features {}) }: untrusted_0_5_1_ {}; + untrusted_0_5_1_features = f: updateFeatures f (rec { + untrusted_0_5_1.default = (f.untrusted_0_5_1.default or true); + }) []; + url_1_7_0 = { features?(url_1_7_0_features {}) }: url_1_7_0_ { + dependencies = mapFeatures features ([ idna_0_1_4 matches_0_1_6 percent_encoding_1_0_1 ] + ++ (if features.url_1_7_0.encoding or false then [ encoding_0_2_33 ] else [])); + features = mkFeatures (features.url_1_7_0 or {}); + }; + url_1_7_0_features = f: updateFeatures f (rec { + encoding_0_2_33.default = true; + idna_0_1_4.default = true; + matches_0_1_6.default = true; + percent_encoding_1_0_1.default = true; + url_1_7_0.default = (f.url_1_7_0.default or true); + url_1_7_0.encoding = + (f.url_1_7_0.encoding or false) || + (f.url_1_7_0.query_encoding or false) || + (url_1_7_0.query_encoding or false); + url_1_7_0.heapsize = + (f.url_1_7_0.heapsize or false) || + (f.url_1_7_0.heap_size or false) || + (url_1_7_0.heap_size or false); + }) [ encoding_0_2_33_features idna_0_1_4_features matches_0_1_6_features percent_encoding_1_0_1_features ]; + url_serde_0_2_0 = { features?(url_serde_0_2_0_features {}) }: url_serde_0_2_0_ { + dependencies = mapFeatures features ([ serde_1_0_43 url_1_7_0 ]); + }; + url_serde_0_2_0_features = f: updateFeatures f (rec { + serde_1_0_43.default = true; + url_1_7_0.default = true; + url_serde_0_2_0.default = (f.url_serde_0_2_0.default or true); + }) [ serde_1_0_43_features url_1_7_0_features ]; + utf8_ranges_1_0_0 = { features?(utf8_ranges_1_0_0_features {}) }: utf8_ranges_1_0_0_ {}; + utf8_ranges_1_0_0_features = f: updateFeatures f (rec { + utf8_ranges_1_0_0.default = (f.utf8_ranges_1_0_0.default or true); + }) []; + uuid_0_5_1 = { features?(uuid_0_5_1_features {}) }: uuid_0_5_1_ { + dependencies = mapFeatures features ([ ] + ++ (if features.uuid_0_5_1.rand or false then [ rand_0_3_22 ] else [])); + features = mkFeatures (features.uuid_0_5_1 or {}); + }; + uuid_0_5_1_features = f: updateFeatures f (rec { + rand_0_3_22.default = true; + uuid_0_5_1.default = (f.uuid_0_5_1.default or true); + uuid_0_5_1.md5 = + (f.uuid_0_5_1.md5 or false) || + (f.uuid_0_5_1.v3 or false) || + (uuid_0_5_1.v3 or false); + uuid_0_5_1.rand = + (f.uuid_0_5_1.rand or false) || + (f.uuid_0_5_1.v1 or false) || + (uuid_0_5_1.v1 or false) || + (f.uuid_0_5_1.v4 or false) || + (uuid_0_5_1.v4 or false); + uuid_0_5_1.sha1 = + (f.uuid_0_5_1.sha1 or false) || + (f.uuid_0_5_1.v5 or false) || + (uuid_0_5_1.v5 or false); + }) [ rand_0_3_22_features ]; + uuid_0_6_3 = { features?(uuid_0_6_3_features {}) }: uuid_0_6_3_ { + dependencies = mapFeatures features ([ cfg_if_0_1_2 ] + ++ (if features.uuid_0_6_3.rand or false then [ rand_0_4_2 ] else [])); + features = mkFeatures (features.uuid_0_6_3 or {}); + }; + uuid_0_6_3_features = f: updateFeatures f (rec { + cfg_if_0_1_2.default = true; + rand_0_4_2.default = true; + uuid_0_6_3.default = (f.uuid_0_6_3.default or true); + uuid_0_6_3.md5 = + (f.uuid_0_6_3.md5 or false) || + (f.uuid_0_6_3.v3 or false) || + (uuid_0_6_3.v3 or false); + uuid_0_6_3.rand = + (f.uuid_0_6_3.rand or false) || + (f.uuid_0_6_3.v3 or false) || + (uuid_0_6_3.v3 or false) || + (f.uuid_0_6_3.v4 or false) || + (uuid_0_6_3.v4 or false) || + (f.uuid_0_6_3.v5 or false) || + (uuid_0_6_3.v5 or false); + uuid_0_6_3.serde = + (f.uuid_0_6_3.serde or false) || + (f.uuid_0_6_3.playground or false) || + (uuid_0_6_3.playground or false); + uuid_0_6_3.sha1 = + (f.uuid_0_6_3.sha1 or false) || + (f.uuid_0_6_3.v5 or false) || + (uuid_0_6_3.v5 or false); + uuid_0_6_3.std = + (f.uuid_0_6_3.std or false) || + (f.uuid_0_6_3.default or false) || + (uuid_0_6_3.default or false) || + (f.uuid_0_6_3.use_std or false) || + (uuid_0_6_3.use_std or false); + uuid_0_6_3.v1 = + (f.uuid_0_6_3.v1 or false) || + (f.uuid_0_6_3.playground or false) || + (uuid_0_6_3.playground or false); + uuid_0_6_3.v3 = + (f.uuid_0_6_3.v3 or false) || + (f.uuid_0_6_3.playground or false) || + (uuid_0_6_3.playground or false); + uuid_0_6_3.v4 = + (f.uuid_0_6_3.v4 or false) || + (f.uuid_0_6_3.playground or false) || + (uuid_0_6_3.playground or false); + uuid_0_6_3.v5 = + (f.uuid_0_6_3.v5 or false) || + (f.uuid_0_6_3.playground or false) || + (uuid_0_6_3.playground or false); + }) [ cfg_if_0_1_2_features rand_0_4_2_features ]; + vcpkg_0_2_3 = { features?(vcpkg_0_2_3_features {}) }: vcpkg_0_2_3_ {}; + vcpkg_0_2_3_features = f: updateFeatures f (rec { + vcpkg_0_2_3.default = (f.vcpkg_0_2_3.default or true); + }) []; + vec_map_0_8_0 = { features?(vec_map_0_8_0_features {}) }: vec_map_0_8_0_ { + dependencies = mapFeatures features ([]); + features = mkFeatures (features.vec_map_0_8_0 or {}); + }; + vec_map_0_8_0_features = f: updateFeatures f (rec { + vec_map_0_8_0.default = (f.vec_map_0_8_0.default or true); + vec_map_0_8_0.serde = + (f.vec_map_0_8_0.serde or false) || + (f.vec_map_0_8_0.eders or false) || + (vec_map_0_8_0.eders or false); + vec_map_0_8_0.serde_derive = + (f.vec_map_0_8_0.serde_derive or false) || + (f.vec_map_0_8_0.eders or false) || + (vec_map_0_8_0.eders or false); + }) []; + version_check_0_1_3 = { features?(version_check_0_1_3_features {}) }: version_check_0_1_3_ {}; + version_check_0_1_3_features = f: updateFeatures f (rec { + version_check_0_1_3.default = (f.version_check_0_1_3.default or true); + }) []; + void_1_0_2 = { features?(void_1_0_2_features {}) }: void_1_0_2_ { + features = mkFeatures (features.void_1_0_2 or {}); + }; + void_1_0_2_features = f: updateFeatures f (rec { + void_1_0_2.default = (f.void_1_0_2.default or true); + void_1_0_2.std = + (f.void_1_0_2.std or false) || + (f.void_1_0_2.default or false) || + (void_1_0_2.default or false); + }) []; + walkdir_1_0_7 = { features?(walkdir_1_0_7_features {}) }: walkdir_1_0_7_ { + dependencies = mapFeatures features ([ same_file_0_1_3 ]) + ++ (if kernel == "windows" then mapFeatures features ([ kernel32_sys_0_2_2 winapi_0_2_8 ]) else []); + }; + walkdir_1_0_7_features = f: updateFeatures f (rec { + kernel32_sys_0_2_2.default = true; + same_file_0_1_3.default = true; + walkdir_1_0_7.default = (f.walkdir_1_0_7.default or true); + winapi_0_2_8.default = true; + }) [ same_file_0_1_3_features kernel32_sys_0_2_2_features winapi_0_2_8_features ]; + widestring_0_2_2 = { features?(widestring_0_2_2_features {}) }: widestring_0_2_2_ {}; + widestring_0_2_2_features = f: updateFeatures f (rec { + widestring_0_2_2.default = (f.widestring_0_2_2.default or true); + }) []; + winapi_0_2_8 = { features?(winapi_0_2_8_features {}) }: winapi_0_2_8_ {}; + winapi_0_2_8_features = f: updateFeatures f (rec { + winapi_0_2_8.default = (f.winapi_0_2_8.default or true); + }) []; + winapi_0_3_4 = { features?(winapi_0_3_4_features {}) }: winapi_0_3_4_ { + dependencies = (if kernel == "i686-pc-windows-gnu" then mapFeatures features ([ winapi_i686_pc_windows_gnu_0_4_0 ]) else []) + ++ (if kernel == "x86_64-pc-windows-gnu" then mapFeatures features ([ winapi_x86_64_pc_windows_gnu_0_4_0 ]) else []); + features = mkFeatures (features.winapi_0_3_4 or {}); + }; + winapi_0_3_4_features = f: updateFeatures f (rec { + winapi_0_3_4.default = (f.winapi_0_3_4.default or true); + winapi_i686_pc_windows_gnu_0_4_0.default = true; + winapi_x86_64_pc_windows_gnu_0_4_0.default = true; + }) [ winapi_i686_pc_windows_gnu_0_4_0_features winapi_x86_64_pc_windows_gnu_0_4_0_features ]; + winapi_build_0_1_1 = { features?(winapi_build_0_1_1_features {}) }: winapi_build_0_1_1_ {}; + winapi_build_0_1_1_features = f: updateFeatures f (rec { + winapi_build_0_1_1.default = (f.winapi_build_0_1_1.default or true); + }) []; + winapi_i686_pc_windows_gnu_0_4_0 = { features?(winapi_i686_pc_windows_gnu_0_4_0_features {}) }: winapi_i686_pc_windows_gnu_0_4_0_ {}; + winapi_i686_pc_windows_gnu_0_4_0_features = f: updateFeatures f (rec { + winapi_i686_pc_windows_gnu_0_4_0.default = (f.winapi_i686_pc_windows_gnu_0_4_0.default or true); + }) []; + winapi_x86_64_pc_windows_gnu_0_4_0 = { features?(winapi_x86_64_pc_windows_gnu_0_4_0_features {}) }: winapi_x86_64_pc_windows_gnu_0_4_0_ {}; + winapi_x86_64_pc_windows_gnu_0_4_0_features = f: updateFeatures f (rec { + winapi_x86_64_pc_windows_gnu_0_4_0.default = (f.winapi_x86_64_pc_windows_gnu_0_4_0.default or true); + }) []; + wincolor_0_1_6 = { features?(wincolor_0_1_6_features {}) }: wincolor_0_1_6_ { + dependencies = mapFeatures features ([ winapi_0_3_4 ]); + }; + wincolor_0_1_6_features = f: updateFeatures f (rec { + winapi_0_3_4.consoleapi = true; + winapi_0_3_4.default = true; + winapi_0_3_4.minwindef = true; + winapi_0_3_4.processenv = true; + winapi_0_3_4.winbase = true; + winapi_0_3_4.wincon = true; + wincolor_0_1_6.default = (f.wincolor_0_1_6.default or true); + }) [ winapi_0_3_4_features ]; + winreg_0_5_0 = { features?(winreg_0_5_0_features {}) }: winreg_0_5_0_ { + dependencies = mapFeatures features ([ winapi_0_3_4 ]); + features = mkFeatures (features.winreg_0_5_0 or {}); + }; + winreg_0_5_0_features = f: updateFeatures f (rec { + winapi_0_3_4.default = true; + winapi_0_3_4.handleapi = true; + winapi_0_3_4.ktmw32 = + (f.winapi_0_3_4.ktmw32 or false) || + (winreg_0_5_0.transactions or false) || + (f.winreg_0_5_0.transactions or false); + winapi_0_3_4.minwindef = true; + winapi_0_3_4.winerror = true; + winapi_0_3_4.winnt = true; + winapi_0_3_4.winreg = true; + winreg_0_5_0.default = (f.winreg_0_5_0.default or true); + winreg_0_5_0.serde = + (f.winreg_0_5_0.serde or false) || + (f.winreg_0_5_0.serialization-serde or false) || + (winreg_0_5_0.serialization-serde or false); + winreg_0_5_0.transactions = + (f.winreg_0_5_0.transactions or false) || + (f.winreg_0_5_0.serialization-serde or false) || + (winreg_0_5_0.serialization-serde or false); + }) [ winapi_0_3_4_features ]; + winutil_0_1_1 = { features?(winutil_0_1_1_features {}) }: winutil_0_1_1_ { + dependencies = (if kernel == "windows" then mapFeatures features ([ winapi_0_3_4 ]) else []); + }; + winutil_0_1_1_features = f: updateFeatures f (rec { + winapi_0_3_4.default = true; + winapi_0_3_4.processthreadsapi = true; + winapi_0_3_4.winbase = true; + winapi_0_3_4.wow64apiset = true; + winutil_0_1_1.default = (f.winutil_0_1_1.default or true); + }) [ winapi_0_3_4_features ]; + ws2_32_sys_0_2_1 = { features?(ws2_32_sys_0_2_1_features {}) }: ws2_32_sys_0_2_1_ { + dependencies = mapFeatures features ([ winapi_0_2_8 ]); + buildDependencies = mapFeatures features ([ winapi_build_0_1_1 ]); + }; + ws2_32_sys_0_2_1_features = f: updateFeatures f (rec { + winapi_0_2_8.default = true; + winapi_build_0_1_1.default = true; + ws2_32_sys_0_2_1.default = (f.ws2_32_sys_0_2_1.default or true); + }) [ winapi_0_2_8_features winapi_build_0_1_1_features ]; +}.converse_0_1_0 {} From 9adacf86969c0642a6448c275a785445d44b9b0a Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Mon, 23 Apr 2018 21:52:17 +0200 Subject: [PATCH 116/163] fix(build): Add explicit pulldown-cmark dependency There is some weird dependency interaction between pulldown-cmark and getopts which causes builds to fail with a message about unstable features if getopts is not explicitly depended on as a dependency of a dependency (yeah, huh?) --- Cargo.lock | 8 ++++++++ Cargo.toml | 3 +++ default.nix | 30 +++++++++++++++++++++++------- 3 files changed, 34 insertions(+), 7 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 4c8f6159b..f0cbad458 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -303,6 +303,7 @@ dependencies = [ "hyper 0.11.25 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", "md5 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)", + "pulldown-cmark 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", "r2d2 0.8.2 (registry+https://github.com/rust-lang/crates.io-index)", "rand 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", "reqwest 0.8.5 (registry+https://github.com/rust-lang/crates.io-index)", @@ -658,6 +659,11 @@ name = "gcc" version = "0.3.54" source = "registry+https://github.com/rust-lang/crates.io-index" +[[package]] +name = "getopts" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" + [[package]] name = "glob" version = "0.2.11" @@ -1163,6 +1169,7 @@ version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "bitflags 0.9.1 (registry+https://github.com/rust-lang/crates.io-index)", + "getopts 0.2.17 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -2153,6 +2160,7 @@ dependencies = [ "checksum futures 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)" = "1a70b146671de62ec8c8ed572219ca5d594d9b06c0b364d5e67b722fc559b48c" "checksum futures-cpupool 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)" = "ab90cde24b3319636588d0c35fe03b1333857621051837ed769faefb4c2162e4" "checksum gcc 0.3.54 (registry+https://github.com/rust-lang/crates.io-index)" = "5e33ec290da0d127825013597dbdfc28bee4964690c7ce1166cbc2a7bd08b1bb" +"checksum getopts 0.2.17 (registry+https://github.com/rust-lang/crates.io-index)" = "b900c08c1939860ce8b54dc6a89e26e00c04c380fd0e09796799bd7f12861e05" "checksum glob 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)" = "8be18de09a56b60ed0edf84bc9df007e30040691af7acd1c41874faac5895bfb" "checksum h2 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "065fb096fc65bbfb9c765d48c9f3f1a21cdb25ba0d3f82105b38f30ddffa2f7e" "checksum hostname 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)" = "58fab6e177434b0bb4cd344a4dabaa5bd6d7a8d792b1885aebcae7af1091d1cb" diff --git a/Cargo.toml b/Cargo.toml index e46808e5f..de71231ca 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -27,3 +27,6 @@ comrak = "0.2" md5 = "0.3.7" tokio = "0.1" tokio-timer = "0.2" + +[build-dependencies] +pulldown-cmark = "0.1" diff --git a/default.nix b/default.nix index 33794d1d5..903ddb523 100644 --- a/default.nix +++ b/default.nix @@ -1,6 +1,7 @@ -# Generated by carnix 0.6.7: carnix --standalone -o carnix.nix Cargo.lock -with import {}; -let kernel = buildPlatform.parsed.kernel.name; +# Generated by carnix 0.6.7: carnix --standalone -o default.nix Cargo.lock +{ pkgs ? import {} }: + +with pkgs; let kernel = buildPlatform.parsed.kernel.name; abi = buildPlatform.parsed.abi.name; include = includedFiles: src: # The comments assume the `include` field of the Cargo.toml like: @@ -559,6 +560,13 @@ rec { sha256 = "07a5i47r8achc6gxsba3ga17h9gnh4b9a2cak8vjg4hx62aajkr4"; inherit dependencies buildDependencies features; }; + getopts_0_2_17_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "getopts"; + version = "0.2.17"; + authors = [ "The Rust Project Developers" ]; + sha256 = "1rifkxn7njr2w1dsa29hrm26ywgcg8gv1ms00g3vs5mjiabxk0jv"; + inherit dependencies buildDependencies features; + }; glob_0_2_11_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { crateName = "glob"; version = "0.2.11"; @@ -2342,6 +2350,7 @@ rec { }) [ clap_2_31_2_features entities_1_0_1_features lazy_static_1_0_0_features pest_1_0_6_features pest_derive_1_0_7_features regex_0_2_10_features twoway_0_1_8_features typed_arena_1_3_0_features unicode_categories_0_1_1_features ]; converse_0_1_0 = { features?(converse_0_1_0_features {}) }: converse_0_1_0_ { dependencies = mapFeatures features ([ actix_0_5_6 actix_web_0_5_4 chrono_0_4_2 comrak_0_2_9 diesel_1_2_2 env_logger_0_5_9 failure_0_1_1 futures_0_1_21 hyper_0_11_25 log_0_4_1 md5_0_3_7 r2d2_0_8_2 rand_0_4_2 reqwest_0_8_5 serde_1_0_43 serde_derive_1_0_43 serde_json_1_0_16 tera_0_11_6 tokio_0_1_5 tokio_timer_0_2_1 url_1_7_0 url_serde_0_2_0 ]); + buildDependencies = mapFeatures features ([ pulldown_cmark_0_1_2 ]); }; converse_0_1_0_features = f: updateFeatures f (rec { actix_0_5_6.default = true; @@ -2360,6 +2369,7 @@ rec { hyper_0_11_25.default = true; log_0_4_1.default = true; md5_0_3_7.default = true; + pulldown_cmark_0_1_2.default = true; r2d2_0_8_2.default = true; rand_0_4_2.default = true; reqwest_0_8_5.default = true; @@ -2371,7 +2381,7 @@ rec { tokio_timer_0_2_1.default = true; url_1_7_0.default = true; url_serde_0_2_0.default = true; - }) [ actix_0_5_6_features actix_web_0_5_4_features chrono_0_4_2_features comrak_0_2_9_features diesel_1_2_2_features env_logger_0_5_9_features failure_0_1_1_features futures_0_1_21_features hyper_0_11_25_features log_0_4_1_features md5_0_3_7_features r2d2_0_8_2_features rand_0_4_2_features reqwest_0_8_5_features serde_1_0_43_features serde_derive_1_0_43_features serde_json_1_0_16_features tera_0_11_6_features tokio_0_1_5_features tokio_timer_0_2_1_features url_1_7_0_features url_serde_0_2_0_features ]; + }) [ actix_0_5_6_features actix_web_0_5_4_features chrono_0_4_2_features comrak_0_2_9_features diesel_1_2_2_features env_logger_0_5_9_features failure_0_1_1_features futures_0_1_21_features hyper_0_11_25_features log_0_4_1_features md5_0_3_7_features r2d2_0_8_2_features rand_0_4_2_features reqwest_0_8_5_features serde_1_0_43_features serde_derive_1_0_43_features serde_json_1_0_16_features tera_0_11_6_features tokio_0_1_5_features tokio_timer_0_2_1_features url_1_7_0_features url_serde_0_2_0_features pulldown_cmark_0_1_2_features ]; cookie_0_10_1 = { features?(cookie_0_10_1_features {}) }: cookie_0_10_1_ { dependencies = mapFeatures features ([ time_0_1_39 ] ++ (if features.cookie_0_10_1.base64 or false then [ base64_0_6_0 ] else []) @@ -3004,6 +3014,10 @@ rec { (f.gcc_0_3_54.parallel or false) || (gcc_0_3_54.parallel or false); }) []; + getopts_0_2_17 = { features?(getopts_0_2_17_features {}) }: getopts_0_2_17_ {}; + getopts_0_2_17_features = f: updateFeatures f (rec { + getopts_0_2_17.default = (f.getopts_0_2_17.default or true); + }) []; glob_0_2_11 = { features?(glob_0_2_11_features {}) }: glob_0_2_11_ {}; glob_0_2_11_features = f: updateFeatures f (rec { glob_0_2_11.default = (f.glob_0_2_11.default or true); @@ -3764,17 +3778,19 @@ rec { unicode_xid_0_1_0.default = true; }) [ unicode_xid_0_1_0_features ]; pulldown_cmark_0_1_2 = { features?(pulldown_cmark_0_1_2_features {}) }: pulldown_cmark_0_1_2_ { - dependencies = mapFeatures features ([ bitflags_0_9_1 ]); + dependencies = mapFeatures features ([ bitflags_0_9_1 ] + ++ (if features.pulldown_cmark_0_1_2.getopts or false then [ getopts_0_2_17 ] else [])); features = mkFeatures (features.pulldown_cmark_0_1_2 or {}); }; pulldown_cmark_0_1_2_features = f: updateFeatures f (rec { bitflags_0_9_1.default = true; + getopts_0_2_17.default = true; pulldown_cmark_0_1_2.default = (f.pulldown_cmark_0_1_2.default or true); pulldown_cmark_0_1_2.getopts = (f.pulldown_cmark_0_1_2.getopts or false) || (f.pulldown_cmark_0_1_2.default or false) || (pulldown_cmark_0_1_2.default or false); - }) [ bitflags_0_9_1_features ]; + }) [ bitflags_0_9_1_features getopts_0_2_17_features ]; quick_error_1_2_1 = { features?(quick_error_1_2_1_features {}) }: quick_error_1_2_1_ {}; quick_error_1_2_1_features = f: updateFeatures f (rec { quick_error_1_2_1.default = (f.quick_error_1_2_1.default or true); @@ -5156,4 +5172,4 @@ rec { winapi_build_0_1_1.default = true; ws2_32_sys_0_2_1.default = (f.ws2_32_sys_0_2_1.default or true); }) [ winapi_0_2_8_features winapi_build_0_1_1_features ]; -}.converse_0_1_0 {} +} From 0d23a04dafcb3a13978307dc49924368c33475b3 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Tue, 24 Apr 2018 16:02:37 +0200 Subject: [PATCH 117/163] chore(gitattributes): Tell Github Linguist to ignore default.nix The `default.nix` in this repository contains generated code and skews Github's language statistics. While I'm a big fan of Nix, Converse is certainly not 80% written in Nix ;-) --- .gitattributes | 1 + 1 file changed, 1 insertion(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 000000000..7e0ef055d --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +default.nix linguist-generated=true From 2159c76ca70df8e2aed7a7b9d7bce5b16a2485f0 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Tue, 1 May 2018 19:49:47 +0200 Subject: [PATCH 118/163] feat(migrations): Adds a migration to create a users table As a first step of getting the concept of users into the database, this creates a (somewhat involved) migration that moves all existing "users" into a new users table and updates the post table to reference it. This migration is not yet finalised and still needs to be updated with something to handle the concept of anonymous users (which I want to keep around). --- .../2018-05-01-141548_add-users/down.sql | 61 +++++++++++++++ migrations/2018-05-01-141548_add-users/up.sql | 75 +++++++++++++++++++ 2 files changed, 136 insertions(+) create mode 100644 migrations/2018-05-01-141548_add-users/down.sql create mode 100644 migrations/2018-05-01-141548_add-users/up.sql diff --git a/migrations/2018-05-01-141548_add-users/down.sql b/migrations/2018-05-01-141548_add-users/down.sql new file mode 100644 index 000000000..a29ee47dd --- /dev/null +++ b/migrations/2018-05-01-141548_add-users/down.sql @@ -0,0 +1,61 @@ +-- First restore the old columns: +ALTER TABLE threads ADD COLUMN author_name VARCHAR; +ALTER TABLE threads ADD COLUMN author_email VARCHAR; +ALTER TABLE posts ADD COLUMN author_name VARCHAR; +ALTER TABLE posts ADD COLUMN author_email VARCHAR; + +-- Then select the data back into them: +UPDATE threads SET author_name = users.name, + author_email = users.email + FROM users + WHERE threads.author = users.id; + +UPDATE posts SET author_name = users.name, + author_email = users.email + FROM users + WHERE posts.author = users.id; + +-- add the constraints back: +ALTER TABLE threads ALTER COLUMN author_name SET NOT NULL; +ALTER TABLE threads ALTER COLUMN author_email SET NOT NULL; +ALTER TABLE posts ALTER COLUMN author_name SET NOT NULL; +ALTER TABLE posts ALTER COLUMN author_email SET NOT NULL; + +-- reset the index view: +CREATE OR REPLACE VIEW thread_index AS + SELECT t.id AS thread_id, + t.title AS title, + t.author_name AS thread_author, + t.posted AS created, + t.sticky AS sticky, + p.id AS post_id, + p.author_name AS post_author, + p.posted AS posted + FROM threads t + JOIN (SELECT DISTINCT ON (thread_id) + id, thread_id, author_name, posted + FROM posts + ORDER BY thread_id, id DESC) AS p + ON t.id = p.thread_id + ORDER BY t.sticky DESC, p.id DESC; + +-- reset the search view: +DROP MATERIALIZED VIEW search_index; +CREATE MATERIALIZED VIEW search_index AS + SELECT p.id AS post_id, + p.author_name AS author, + t.id AS thread_id, + t.title AS title, + p.body AS body, + setweight(to_tsvector('english', t.title), 'B') || + setweight(to_tsvector('english', p.body), 'A') || + setweight(to_tsvector('simple', t.author_name), 'C') || + setweight(to_tsvector('simple', p.author_name), 'C') AS document + FROM posts p + JOIN threads t + ON t.id = p.thread_id; + +-- and drop the users table and columns: +ALTER TABLE posts DROP COLUMN author; +ALTER TABLE threads DROP COLUMN author; +DROP TABLE users; diff --git a/migrations/2018-05-01-141548_add-users/up.sql b/migrations/2018-05-01-141548_add-users/up.sql new file mode 100644 index 000000000..bb358f47b --- /dev/null +++ b/migrations/2018-05-01-141548_add-users/up.sql @@ -0,0 +1,75 @@ +-- This query creates a users table and migrates the existing user +-- information (from the posts table) into it. + +CREATE TABLE users ( + id SERIAL PRIMARY KEY, + email VARCHAR NOT NULL UNIQUE, + name VARCHAR NOT NULL, + admin BOOLEAN NOT NULL DEFAULT false +); + +INSERT INTO users (email, name) +SELECT author_email AS email, + author_name AS name +FROM posts +GROUP BY name, email; + +-- Create the 'author' column in the relevant tables (initially +-- without a not-null constraint) and populate it with the data +-- selected above: +ALTER TABLE posts ADD COLUMN author INTEGER REFERENCES users (id); +UPDATE posts SET author = users.id + FROM users + WHERE users.email = posts.author_email; + +ALTER TABLE threads ADD COLUMN author INTEGER REFERENCES users (id); +UPDATE threads SET author = users.id + FROM users + WHERE users.email = threads.author_email; + +-- Add the constraints: +ALTER TABLE posts ALTER COLUMN author SET NOT NULL; +ALTER TABLE threads ALTER COLUMN author SET NOT NULL; + +-- Update the index view: +CREATE OR REPLACE VIEW thread_index AS + SELECT t.id AS thread_id, + t.title AS title, + ta.name AS thread_author, + t.posted AS created, + t.sticky AS sticky, + p.id AS post_id, + pa.name AS post_author, + p.posted AS posted + FROM threads t + JOIN (SELECT DISTINCT ON (thread_id) + id, thread_id, author, posted + FROM posts + ORDER BY thread_id, id DESC) AS p + ON t.id = p.thread_id + JOIN users ta ON ta.id = t.author + JOIN users pa ON pa.id = p.author + ORDER BY t.sticky DESC, p.id DESC; + +-- Update the search view: +DROP MATERIALIZED VIEW search_index; +CREATE MATERIALIZED VIEW search_index AS + SELECT p.id AS post_id, + pa.name AS author, + t.id AS thread_id, + t.title AS title, + p.body AS body, + setweight(to_tsvector('english', t.title), 'B') || + setweight(to_tsvector('english', p.body), 'A') || + setweight(to_tsvector('simple', ta.name), 'C') || + setweight(to_tsvector('simple', pa.name), 'C') AS document + FROM posts p + JOIN threads t ON t.id = p.thread_id + JOIN users ta ON ta.id = t.author + JOIN users pa ON pa.id = p.author; + +-- And drop the old fields: +ALTER TABLE posts DROP COLUMN author_name; +ALTER TABLE posts DROP COLUMN author_email; +ALTER TABLE threads DROP COLUMN author_name; +ALTER TABLE threads DROP COLUMN author_email; From 02c15f06d6f7864431d22a07bda8a36d8bc30474 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Tue, 1 May 2018 20:00:32 +0200 Subject: [PATCH 119/163] fix(migrations): Fix search index creation in user migration --- migrations/2018-05-01-141548_add-users/down.sql | 2 ++ migrations/2018-05-01-141548_add-users/up.sql | 2 ++ 2 files changed, 4 insertions(+) diff --git a/migrations/2018-05-01-141548_add-users/down.sql b/migrations/2018-05-01-141548_add-users/down.sql index a29ee47dd..2f903171d 100644 --- a/migrations/2018-05-01-141548_add-users/down.sql +++ b/migrations/2018-05-01-141548_add-users/down.sql @@ -55,6 +55,8 @@ CREATE MATERIALIZED VIEW search_index AS JOIN threads t ON t.id = p.thread_id; +CREATE INDEX idx_fts_search ON search_index USING gin(document); + -- and drop the users table and columns: ALTER TABLE posts DROP COLUMN author; ALTER TABLE threads DROP COLUMN author; diff --git a/migrations/2018-05-01-141548_add-users/up.sql b/migrations/2018-05-01-141548_add-users/up.sql index bb358f47b..222afc485 100644 --- a/migrations/2018-05-01-141548_add-users/up.sql +++ b/migrations/2018-05-01-141548_add-users/up.sql @@ -68,6 +68,8 @@ CREATE MATERIALIZED VIEW search_index AS JOIN users ta ON ta.id = t.author JOIN users pa ON pa.id = p.author; +CREATE INDEX idx_fts_search ON search_index USING gin(document); + -- And drop the old fields: ALTER TABLE posts DROP COLUMN author_name; ALTER TABLE posts DROP COLUMN author_email; From 1d9ff8b4c89b507d33ebdbc35f5e939add67833c Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Tue, 1 May 2018 20:00:43 +0200 Subject: [PATCH 120/163] fix(migrations): Explicitly insert anonymous user This guarantees that the anonymous user will always exist and have ID=1. --- migrations/2018-05-01-141548_add-users/up.sql | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/migrations/2018-05-01-141548_add-users/up.sql b/migrations/2018-05-01-141548_add-users/up.sql index 222afc485..5fadeeb23 100644 --- a/migrations/2018-05-01-141548_add-users/up.sql +++ b/migrations/2018-05-01-141548_add-users/up.sql @@ -8,11 +8,17 @@ CREATE TABLE users ( admin BOOLEAN NOT NULL DEFAULT false ); -INSERT INTO users (email, name) -SELECT author_email AS email, - author_name AS name -FROM posts -GROUP BY name, email; +-- Insert the 'anonymous' user explicitly: +INSERT INTO users (name, email) + VALUES ('Anonymous', 'anonymous@nothing.org'); + +INSERT INTO users (id, email, name) + SELECT nextval('users_id_seq'), + author_email AS email, + author_name AS name + FROM posts + WHERE author_email != 'anonymous@nothing.org' + GROUP BY name, email; -- Create the 'author' column in the relevant tables (initially -- without a not-null constraint) and populate it with the data From a324a89fd089ca489e6120ed6ee6b394750cacb6 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Tue, 1 May 2018 20:03:52 +0200 Subject: [PATCH 121/163] chore(schema): Update generated Diesel schema Updates the generated schema with the new users table. This commit will break the build. --- src/schema.rs | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/src/schema.rs b/src/schema.rs index b5a8fab7f..af9976dd4 100644 --- a/src/schema.rs +++ b/src/schema.rs @@ -22,8 +22,7 @@ table! { thread_id -> Int4, body -> Text, posted -> Timestamptz, - author_name -> Varchar, - author_email -> Varchar, + author -> Int4, } } @@ -32,9 +31,17 @@ table! { id -> Int4, title -> Varchar, posted -> Timestamptz, - author_name -> Varchar, - author_email -> Varchar, sticky -> Bool, + author -> Int4, + } +} + +table! { + users (id) { + id -> Int4, + email -> Varchar, + name -> Varchar, + admin -> Bool, } } @@ -53,8 +60,11 @@ table! { } joinable!(posts -> threads (thread_id)); +joinable!(posts -> users (author)); +joinable!(threads -> users (author)); allow_tables_to_appear_in_same_query!( posts, threads, + users, ); From a45da31abc09b5199d2aaefc038b8c59e0c50975 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Tue, 1 May 2018 20:23:51 +0200 Subject: [PATCH 122/163] refactor(migrations): Rename 'author' column to 'user_id' This makes it easier to integrate with Diesel, for which this is the expected column name. --- .../2018-05-01-141548_add-users/down.sql | 8 +++---- migrations/2018-05-01-141548_add-users/up.sql | 24 +++++++++---------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/migrations/2018-05-01-141548_add-users/down.sql b/migrations/2018-05-01-141548_add-users/down.sql index 2f903171d..61fd222e1 100644 --- a/migrations/2018-05-01-141548_add-users/down.sql +++ b/migrations/2018-05-01-141548_add-users/down.sql @@ -8,12 +8,12 @@ ALTER TABLE posts ADD COLUMN author_email VARCHAR; UPDATE threads SET author_name = users.name, author_email = users.email FROM users - WHERE threads.author = users.id; + WHERE threads.user_id = users.id; UPDATE posts SET author_name = users.name, author_email = users.email FROM users - WHERE posts.author = users.id; + WHERE posts.user_id = users.id; -- add the constraints back: ALTER TABLE threads ALTER COLUMN author_name SET NOT NULL; @@ -58,6 +58,6 @@ CREATE MATERIALIZED VIEW search_index AS CREATE INDEX idx_fts_search ON search_index USING gin(document); -- and drop the users table and columns: -ALTER TABLE posts DROP COLUMN author; -ALTER TABLE threads DROP COLUMN author; +ALTER TABLE posts DROP COLUMN user_id; +ALTER TABLE threads DROP COLUMN user_id; DROP TABLE users; diff --git a/migrations/2018-05-01-141548_add-users/up.sql b/migrations/2018-05-01-141548_add-users/up.sql index 5fadeeb23..fcb7133e8 100644 --- a/migrations/2018-05-01-141548_add-users/up.sql +++ b/migrations/2018-05-01-141548_add-users/up.sql @@ -20,22 +20,22 @@ INSERT INTO users (id, email, name) WHERE author_email != 'anonymous@nothing.org' GROUP BY name, email; --- Create the 'author' column in the relevant tables (initially +-- Create the 'user_id' column in the relevant tables (initially -- without a not-null constraint) and populate it with the data -- selected above: -ALTER TABLE posts ADD COLUMN author INTEGER REFERENCES users (id); -UPDATE posts SET author = users.id +ALTER TABLE posts ADD COLUMN user_id INTEGER REFERENCES users (id); +UPDATE posts SET user_id = users.id FROM users WHERE users.email = posts.author_email; -ALTER TABLE threads ADD COLUMN author INTEGER REFERENCES users (id); -UPDATE threads SET author = users.id +ALTER TABLE threads ADD COLUMN user_id INTEGER REFERENCES users (id); +UPDATE threads SET user_id = users.id FROM users WHERE users.email = threads.author_email; -- Add the constraints: -ALTER TABLE posts ALTER COLUMN author SET NOT NULL; -ALTER TABLE threads ALTER COLUMN author SET NOT NULL; +ALTER TABLE posts ALTER COLUMN user_id SET NOT NULL; +ALTER TABLE threads ALTER COLUMN user_id SET NOT NULL; -- Update the index view: CREATE OR REPLACE VIEW thread_index AS @@ -49,12 +49,12 @@ CREATE OR REPLACE VIEW thread_index AS p.posted AS posted FROM threads t JOIN (SELECT DISTINCT ON (thread_id) - id, thread_id, author, posted + id, thread_id, user_id, posted FROM posts ORDER BY thread_id, id DESC) AS p ON t.id = p.thread_id - JOIN users ta ON ta.id = t.author - JOIN users pa ON pa.id = p.author + JOIN users ta ON ta.id = t.user_id + JOIN users pa ON pa.id = p.user_id ORDER BY t.sticky DESC, p.id DESC; -- Update the search view: @@ -71,8 +71,8 @@ CREATE MATERIALIZED VIEW search_index AS setweight(to_tsvector('simple', pa.name), 'C') AS document FROM posts p JOIN threads t ON t.id = p.thread_id - JOIN users ta ON ta.id = t.author - JOIN users pa ON pa.id = p.author; + JOIN users ta ON ta.id = t.user_id + JOIN users pa ON pa.id = p.user_id; CREATE INDEX idx_fts_search ON search_index USING gin(document); From 7a17d532c4ff256b4e8ef4c712135c0e5dd44a4f Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Tue, 1 May 2018 20:24:43 +0200 Subject: [PATCH 123/163] fix(schema): Update for author->user_id column rename --- src/schema.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/schema.rs b/src/schema.rs index af9976dd4..c9ca615e6 100644 --- a/src/schema.rs +++ b/src/schema.rs @@ -22,7 +22,7 @@ table! { thread_id -> Int4, body -> Text, posted -> Timestamptz, - author -> Int4, + user_id -> Int4, } } @@ -32,7 +32,7 @@ table! { title -> Varchar, posted -> Timestamptz, sticky -> Bool, - author -> Int4, + user_id -> Int4, } } @@ -60,8 +60,8 @@ table! { } joinable!(posts -> threads (thread_id)); -joinable!(posts -> users (author)); -joinable!(threads -> users (author)); +joinable!(posts -> users (user_id)); +joinable!(threads -> users (user_id)); allow_tables_to_appear_in_same_query!( posts, From 9d5830e9a724d04b2f6fd410c7ae2b56ceea576f Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Tue, 1 May 2018 20:48:35 +0200 Subject: [PATCH 124/163] feat(migrations): Add a view for simplified post querying Adds a view to avoid having to query and join the users & posts table inside of the application (which isn't particularly convenient in Diesel). --- .../2018-05-01-183232_simplified-post-view/down.sql | 1 + .../2018-05-01-183232_simplified-post-view/up.sql | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 migrations/2018-05-01-183232_simplified-post-view/down.sql create mode 100644 migrations/2018-05-01-183232_simplified-post-view/up.sql diff --git a/migrations/2018-05-01-183232_simplified-post-view/down.sql b/migrations/2018-05-01-183232_simplified-post-view/down.sql new file mode 100644 index 000000000..0f14732f3 --- /dev/null +++ b/migrations/2018-05-01-183232_simplified-post-view/down.sql @@ -0,0 +1 @@ +DROP VIEW simple_posts; diff --git a/migrations/2018-05-01-183232_simplified-post-view/up.sql b/migrations/2018-05-01-183232_simplified-post-view/up.sql new file mode 100644 index 000000000..280fef870 --- /dev/null +++ b/migrations/2018-05-01-183232_simplified-post-view/up.sql @@ -0,0 +1,11 @@ +-- Creates a view for listing posts akin to the post table before +-- splitting out users. This exists to avoid having to do joining +-- logic and such inside of the application. + +CREATE VIEW simple_posts AS + SELECT p.id AS id, + thread_id, body, posted, user_id, + users.name AS author_name, + users.email AS author_email + FROM posts p + JOIN users ON users.id = p.user_id; From 9b1f6d3628884059753169f4dd6e018bab74c40f Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Tue, 1 May 2018 20:49:19 +0200 Subject: [PATCH 125/163] refactor(db/render/schema): Use SimplePost type for thread views This uses the simplified view for querying posts instead of the post table directly to display posts. --- src/db.rs | 17 +++++++------- src/models.rs | 65 ++++++++++++++++++++++++++++++++++----------------- src/render.rs | 2 +- src/schema.rs | 17 +++++++++++++- 4 files changed, 69 insertions(+), 32 deletions(-) diff --git a/src/db.rs b/src/db.rs index cde4642d4..a04b33824 100644 --- a/src/db.rs +++ b/src/db.rs @@ -55,22 +55,22 @@ impl Handler for DbExecutor { /// Message used to fetch a specific thread. Returns the thread and /// its posts. pub struct GetThread(pub i32); -message!(GetThread, Result<(Thread, Vec)>); +message!(GetThread, Result<(Thread, Vec)>); impl Handler for DbExecutor { type Result = ::Result; fn handle(&mut self, msg: GetThread, _: &mut Self::Context) -> Self::Result { use schema::threads::dsl::*; - use schema::posts::dsl::id; + use schema::simple_posts::dsl::id; let conn = self.0.get()?; let thread_result: Thread = threads .find(msg.0).first(&conn)?; - let post_list = Post::belonging_to(&thread_result) + let post_list = SimplePost::belonging_to(&thread_result) .order_by(id.asc()) - .load::(&conn)?; + .load::(&conn)?; Ok((thread_result, post_list)) } @@ -80,15 +80,15 @@ impl Handler for DbExecutor { #[derive(Deserialize, Debug)] pub struct GetPost { pub id: i32 } -message!(GetPost, Result); +message!(GetPost, Result); impl Handler for DbExecutor { type Result = ::Result; fn handle(&mut self, msg: GetPost, _: &mut Self::Context) -> Self::Result { - use schema::posts::dsl::*; + use schema::simple_posts::dsl::*; let conn = self.0.get()?; - Ok(posts.find(msg.id).first(&conn)?) + Ok(simple_posts.find(msg.id).first(&conn)?) } } @@ -141,8 +141,7 @@ impl Handler for DbExecutor { let new_post = NewPost { thread_id: thread.id, body: msg.post, - author_name: msg.new_thread.author_name.clone(), - author_email: msg.new_thread.author_email.clone(), + user_id: msg.new_thread.user_id, }; diesel::insert_into(posts::table) diff --git a/src/models.rs b/src/models.rs index 26985394c..5c7bbb12d 100644 --- a/src/models.rs +++ b/src/models.rs @@ -17,22 +17,58 @@ // . use chrono::prelude::{DateTime, Utc}; -use schema::{threads, posts}; +use schema::{users, threads, posts, simple_posts}; use diesel::sql_types::{Text, Integer}; +/// Represents a single user in the Converse database. Converse does +/// not handle logins itself, but rather looks them up based on the +/// email address received from an OIDC provider. #[derive(Identifiable, Queryable, Serialize)] +pub struct User { + pub id: i32, + pub name: String, + pub email: String, + pub admin: bool, +} + +#[derive(Identifiable, Queryable, Serialize, Associations)] +#[belongs_to(User)] pub struct Thread { pub id: i32, pub title: String, pub posted: DateTime, - pub author_name: String, - pub author_email: String, pub sticky: bool, + pub user_id: i32, } -/// This struct is used as the query type for the thread index view, -/// which lists the index of threads ordered by the last post in each -/// thread. +#[derive(Identifiable, Queryable, Serialize, Associations)] +#[belongs_to(Thread)] +#[belongs_to(User)] +pub struct Post { + pub id: i32, + pub thread_id: i32, + pub body: String, + pub posted: DateTime, + pub user_id: i32, +} + +/// This struct is used as the query result type for the simplified +/// post view, which already joins user information in the database. +#[derive(Identifiable, Queryable, Serialize, Associations)] +#[belongs_to(Thread)] +pub struct SimplePost { + pub id: i32, + pub thread_id: i32, + pub body: String, + pub posted: DateTime, + pub user_id: i32, + pub author_name: String, + pub author_email: String, +} + +/// This struct is used as the query result type for the thread index +/// view, which lists the index of threads ordered by the last post in +/// each thread. #[derive(Queryable, Serialize)] pub struct ThreadIndex { pub thread_id: i32, @@ -45,23 +81,11 @@ pub struct ThreadIndex { pub posted: DateTime, } -#[derive(Identifiable, Queryable, Serialize, Associations)] -#[belongs_to(Thread)] -pub struct Post { - pub id: i32, - pub thread_id: i32, - pub body: String, - pub posted: DateTime, - pub author_name: String, - pub author_email: String, -} - #[derive(Deserialize, Insertable)] #[table_name="threads"] pub struct NewThread { pub title: String, - pub author_name: String, - pub author_email: String, + pub user_id: i32, } #[derive(Deserialize, Insertable)] @@ -69,8 +93,7 @@ pub struct NewThread { pub struct NewPost { pub thread_id: i32, pub body: String, - pub author_name: String, - pub author_email: String, + pub user_id: i32, } /// This struct models the response of a full-text search query. It diff --git a/src/render.rs b/src/render.rs index 9a81d2c4c..bc1197bc1 100644 --- a/src/render.rs +++ b/src/render.rs @@ -89,7 +89,7 @@ impl Handler for Renderer { pub struct ThreadPage { pub current_user: Option, pub thread: Thread, - pub posts: Vec, + pub posts: Vec, } message!(ThreadPage, Result); diff --git a/src/schema.rs b/src/schema.rs index c9ca615e6..a824c658c 100644 --- a/src/schema.rs +++ b/src/schema.rs @@ -47,7 +47,20 @@ table! { // Note: Manually inserted as print-schema does not add views. table! { - thread_index (thread_id){ + simple_posts (id) { + id -> Int4, + thread_id -> Int4, + body -> Text, + posted -> Timestamptz, + user_id -> Int4, + author_name -> Text, + author_email -> Text, + } +} + +// Note: Manually inserted as print-schema does not add views. +table! { + thread_index (thread_id) { thread_id -> Int4, title -> Text, thread_author -> Text, @@ -62,9 +75,11 @@ table! { joinable!(posts -> threads (thread_id)); joinable!(posts -> users (user_id)); joinable!(threads -> users (user_id)); +joinable!(simple_posts -> threads (thread_id)); allow_tables_to_appear_in_same_query!( posts, threads, users, + simple_posts, ); From 1e57b879fbb1e76ba108846bd4fcb34472900f4f Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Tue, 1 May 2018 21:00:07 +0200 Subject: [PATCH 126/163] chore(cargo): Update dependency minor versions --- Cargo.lock | 190 ++++++------ default.nix | 870 ++++++++++++++++++++++++++-------------------------- 2 files changed, 534 insertions(+), 526 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index f0cbad458..3d8fde26d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4,40 +4,40 @@ version = "0.5.6" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "actix_derive 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", - "bitflags 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", - "bytes 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", + "bitflags 1.0.3 (registry+https://github.com/rust-lang/crates.io-index)", + "bytes 0.4.7 (registry+https://github.com/rust-lang/crates.io-index)", "crossbeam-channel 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", "failure 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", "futures 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", "skeptic 0.13.2 (registry+https://github.com/rust-lang/crates.io-index)", - "smallvec 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)", + "smallvec 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)", "tokio-core 0.1.17 (registry+https://github.com/rust-lang/crates.io-index)", "tokio-io 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", "tokio-signal 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", - "trust-dns-resolver 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)", + "trust-dns-resolver 0.8.2 (registry+https://github.com/rust-lang/crates.io-index)", "uuid 0.6.3 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] name = "actix-web" -version = "0.5.4" +version = "0.5.6" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "actix 0.5.6 (registry+https://github.com/rust-lang/crates.io-index)", "base64 0.9.1 (registry+https://github.com/rust-lang/crates.io-index)", - "bitflags 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", + "bitflags 1.0.3 (registry+https://github.com/rust-lang/crates.io-index)", "brotli2 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)", "byteorder 1.2.2 (registry+https://github.com/rust-lang/crates.io-index)", - "bytes 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", + "bytes 0.4.7 (registry+https://github.com/rust-lang/crates.io-index)", "cookie 0.10.1 (registry+https://github.com/rust-lang/crates.io-index)", "encoding 0.2.33 (registry+https://github.com/rust-lang/crates.io-index)", "failure 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", "flate2 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", "futures 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", "futures-cpupool 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)", - "h2 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", + "h2 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", "http 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", "http-range 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", "httparse 1.2.4 (registry+https://github.com/rust-lang/crates.io-index)", @@ -52,12 +52,12 @@ dependencies = [ "num_cpus 1.8.0 (registry+https://github.com/rust-lang/crates.io-index)", "percent-encoding 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", "rand 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", - "regex 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)", + "regex 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", "serde 1.0.43 (registry+https://github.com/rust-lang/crates.io-index)", "serde_json 1.0.16 (registry+https://github.com/rust-lang/crates.io-index)", "serde_urlencoded 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)", "sha1 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)", - "smallvec 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)", + "smallvec 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)", "time 0.1.39 (registry+https://github.com/rust-lang/crates.io-index)", "tokio-core 0.1.17 (registry+https://github.com/rust-lang/crates.io-index)", "tokio-io 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", @@ -112,7 +112,7 @@ dependencies = [ [[package]] name = "atty" -version = "0.2.9" +version = "0.2.10" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", @@ -151,7 +151,7 @@ name = "backtrace-sys" version = "0.1.16" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "cc 1.0.10 (registry+https://github.com/rust-lang/crates.io-index)", + "cc 1.0.15 (registry+https://github.com/rust-lang/crates.io-index)", "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -180,7 +180,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "bitflags" -version = "1.0.1" +version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] @@ -188,7 +188,7 @@ name = "brotli-sys" version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "cc 1.0.10 (registry+https://github.com/rust-lang/crates.io-index)", + "cc 1.0.15 (registry+https://github.com/rust-lang/crates.io-index)", "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -218,7 +218,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "bytes" -version = "0.4.6" +version = "0.4.7" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "byteorder 1.2.2 (registry+https://github.com/rust-lang/crates.io-index)", @@ -239,7 +239,7 @@ dependencies = [ [[package]] name = "cc" -version = "1.0.10" +version = "1.0.15" source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] @@ -264,8 +264,8 @@ version = "2.31.2" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "ansi_term 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)", - "atty 0.2.9 (registry+https://github.com/rust-lang/crates.io-index)", - "bitflags 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", + "atty 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)", + "bitflags 1.0.3 (registry+https://github.com/rust-lang/crates.io-index)", "strsim 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", "textwrap 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", "unicode-width 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", @@ -282,7 +282,7 @@ dependencies = [ "lazy_static 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", "pest 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", "pest_derive 1.0.7 (registry+https://github.com/rust-lang/crates.io-index)", - "regex 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)", + "regex 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", "twoway 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)", "typed-arena 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)", "unicode_categories 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", @@ -293,7 +293,7 @@ name = "converse" version = "0.1.0" dependencies = [ "actix 0.5.6 (registry+https://github.com/rust-lang/crates.io-index)", - "actix-web 0.5.4 (registry+https://github.com/rust-lang/crates.io-index)", + "actix-web 0.5.6 (registry+https://github.com/rust-lang/crates.io-index)", "chrono 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", "comrak 0.2.9 (registry+https://github.com/rust-lang/crates.io-index)", "diesel 1.2.2 (registry+https://github.com/rust-lang/crates.io-index)", @@ -310,7 +310,7 @@ dependencies = [ "serde 1.0.43 (registry+https://github.com/rust-lang/crates.io-index)", "serde_derive 1.0.43 (registry+https://github.com/rust-lang/crates.io-index)", "serde_json 1.0.16 (registry+https://github.com/rust-lang/crates.io-index)", - "tera 0.11.6 (registry+https://github.com/rust-lang/crates.io-index)", + "tera 0.11.7 (registry+https://github.com/rust-lang/crates.io-index)", "tokio 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", "tokio-timer 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", "url 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -347,7 +347,7 @@ dependencies = [ [[package]] name = "crc" -version = "1.7.0" +version = "1.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "build_const 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", @@ -451,7 +451,7 @@ name = "diesel" version = "1.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "bitflags 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", + "bitflags 1.0.3 (registry+https://github.com/rust-lang/crates.io-index)", "byteorder 1.2.2 (registry+https://github.com/rust-lang/crates.io-index)", "chrono 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", "diesel_derives 1.2.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -549,10 +549,10 @@ name = "env_logger" version = "0.5.9" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "atty 0.2.9 (registry+https://github.com/rust-lang/crates.io-index)", + "atty 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)", "humantime 1.1.1 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", - "regex 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)", + "regex 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", "termcolor 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -631,7 +631,7 @@ name = "fuchsia-zircon" version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "bitflags 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", + "bitflags 1.0.3 (registry+https://github.com/rust-lang/crates.io-index)", "fuchsia-zircon-sys 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -671,11 +671,11 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "h2" -version = "0.1.5" +version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "byteorder 1.2.2 (registry+https://github.com/rust-lang/crates.io-index)", - "bytes 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", + "bytes 0.4.7 (registry+https://github.com/rust-lang/crates.io-index)", "fnv 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", "futures 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", "http 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", @@ -700,7 +700,7 @@ name = "http" version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "bytes 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", + "bytes 0.4.7 (registry+https://github.com/rust-lang/crates.io-index)", "fnv 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -733,7 +733,7 @@ version = "0.11.25" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "base64 0.9.1 (registry+https://github.com/rust-lang/crates.io-index)", - "bytes 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", + "bytes 0.4.7 (registry+https://github.com/rust-lang/crates.io-index)", "futures 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", "futures-cpupool 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)", "httparse 1.2.4 (registry+https://github.com/rust-lang/crates.io-index)", @@ -852,7 +852,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "adler32 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", "byteorder 1.2.2 (registry+https://github.com/rust-lang/crates.io-index)", - "crc 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)", + "crc 1.8.1 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -926,8 +926,8 @@ version = "2.0.0-alpha.4" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "mime 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", - "phf 0.7.21 (registry+https://github.com/rust-lang/crates.io-index)", - "phf_codegen 0.7.21 (registry+https://github.com/rust-lang/crates.io-index)", + "phf 0.7.22 (registry+https://github.com/rust-lang/crates.io-index)", + "phf_codegen 0.7.22 (registry+https://github.com/rust-lang/crates.io-index)", "unicase 1.4.2 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -936,7 +936,7 @@ name = "miniz-sys" version = "0.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "cc 1.0.10 (registry+https://github.com/rust-lang/crates.io-index)", + "cc 1.0.15 (registry+https://github.com/rust-lang/crates.io-index)", "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -1037,17 +1037,17 @@ dependencies = [ "foreign-types 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)", "lazy_static 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", - "openssl-sys 0.9.28 (registry+https://github.com/rust-lang/crates.io-index)", + "openssl-sys 0.9.30 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] name = "openssl-sys" -version = "0.9.28" +version = "0.9.30" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "cc 1.0.10 (registry+https://github.com/rust-lang/crates.io-index)", + "cc 1.0.15 (registry+https://github.com/rust-lang/crates.io-index)", "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", - "pkg-config 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)", + "pkg-config 0.3.11 (registry+https://github.com/rust-lang/crates.io-index)", "vcpkg 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -1065,17 +1065,17 @@ version = "0.4.8" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "owning_ref 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", - "parking_lot_core 0.2.13 (registry+https://github.com/rust-lang/crates.io-index)", + "parking_lot_core 0.2.14 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] name = "parking_lot_core" -version = "0.2.13" +version = "0.2.14" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", "rand 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", - "smallvec 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)", + "smallvec 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)", "winapi 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -1101,33 +1101,33 @@ dependencies = [ [[package]] name = "phf" -version = "0.7.21" +version = "0.7.22" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "phf_shared 0.7.21 (registry+https://github.com/rust-lang/crates.io-index)", + "phf_shared 0.7.22 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] name = "phf_codegen" -version = "0.7.21" +version = "0.7.22" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "phf_generator 0.7.21 (registry+https://github.com/rust-lang/crates.io-index)", - "phf_shared 0.7.21 (registry+https://github.com/rust-lang/crates.io-index)", + "phf_generator 0.7.22 (registry+https://github.com/rust-lang/crates.io-index)", + "phf_shared 0.7.22 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] name = "phf_generator" -version = "0.7.21" +version = "0.7.22" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "phf_shared 0.7.21 (registry+https://github.com/rust-lang/crates.io-index)", - "rand 0.3.22 (registry+https://github.com/rust-lang/crates.io-index)", + "phf_shared 0.7.22 (registry+https://github.com/rust-lang/crates.io-index)", + "rand 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] name = "phf_shared" -version = "0.7.21" +version = "0.7.22" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "siphasher 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1136,7 +1136,7 @@ dependencies = [ [[package]] name = "pkg-config" -version = "0.3.9" +version = "0.3.11" source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] @@ -1157,7 +1157,7 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "0.3.6" +version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "unicode-xid 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1195,7 +1195,7 @@ name = "quote" version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "proc-macro2 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", + "proc-macro2 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -1263,19 +1263,19 @@ dependencies = [ [[package]] name = "regex" -version = "0.2.10" +version = "0.2.11" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "aho-corasick 0.6.4 (registry+https://github.com/rust-lang/crates.io-index)", "memchr 2.0.1 (registry+https://github.com/rust-lang/crates.io-index)", - "regex-syntax 0.5.5 (registry+https://github.com/rust-lang/crates.io-index)", + "regex-syntax 0.5.6 (registry+https://github.com/rust-lang/crates.io-index)", "thread_local 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", "utf8-ranges 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] name = "regex-syntax" -version = "0.5.5" +version = "0.5.6" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "ucd-util 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1302,7 +1302,7 @@ name = "reqwest" version = "0.8.5" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "bytes 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", + "bytes 0.4.7 (registry+https://github.com/rust-lang/crates.io-index)", "encoding_rs 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)", "futures 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", "hyper 0.11.25 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1432,10 +1432,10 @@ name = "serde_derive" version = "1.0.43" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "proc-macro2 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", + "proc-macro2 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", "quote 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)", "serde_derive_internals 0.23.1 (registry+https://github.com/rust-lang/crates.io-index)", - "syn 0.13.1 (registry+https://github.com/rust-lang/crates.io-index)", + "syn 0.13.4 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -1443,8 +1443,8 @@ name = "serde_derive_internals" version = "0.23.1" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "proc-macro2 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", - "syn 0.13.1 (registry+https://github.com/rust-lang/crates.io-index)", + "proc-macro2 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", + "syn 0.13.4 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -1518,7 +1518,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "smallvec" -version = "0.6.0" +version = "0.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] @@ -1568,10 +1568,10 @@ dependencies = [ [[package]] name = "syn" -version = "0.13.1" +version = "0.13.4" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "proc-macro2 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", + "proc-macro2 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", "quote 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)", "unicode-xid 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -1609,7 +1609,7 @@ dependencies = [ [[package]] name = "tera" -version = "0.11.6" +version = "0.11.7" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "chrono 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1619,7 +1619,7 @@ dependencies = [ "lazy_static 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", "pest 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", "pest_derive 1.0.7 (registry+https://github.com/rust-lang/crates.io-index)", - "regex 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)", + "regex 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", "serde 1.0.43 (registry+https://github.com/rust-lang/crates.io-index)", "serde_json 1.0.16 (registry+https://github.com/rust-lang/crates.io-index)", "slug 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1692,7 +1692,7 @@ name = "tokio-core" version = "0.1.17" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "bytes 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", + "bytes 0.4.7 (registry+https://github.com/rust-lang/crates.io-index)", "futures 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", "iovec 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1718,7 +1718,7 @@ name = "tokio-io" version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "bytes 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", + "bytes 0.4.7 (registry+https://github.com/rust-lang/crates.io-index)", "futures 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -1780,7 +1780,7 @@ name = "tokio-tcp" version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "bytes 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", + "bytes 0.4.7 (registry+https://github.com/rust-lang/crates.io-index)", "futures 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", "iovec 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", "mio 0.6.14 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1826,7 +1826,7 @@ name = "tokio-udp" version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "bytes 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", + "bytes 0.4.7 (registry+https://github.com/rust-lang/crates.io-index)", "futures 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", "mio 0.6.14 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1836,7 +1836,7 @@ dependencies = [ [[package]] name = "trust-dns-proto" -version = "0.3.2" +version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "byteorder 1.2.2 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1853,7 +1853,7 @@ dependencies = [ [[package]] name = "trust-dns-resolver" -version = "0.8.1" +version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "error-chain 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1864,7 +1864,7 @@ dependencies = [ "lru-cache 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", "resolv-conf 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)", "tokio-core 0.1.17 (registry+https://github.com/rust-lang/crates.io-index)", - "trust-dns-proto 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)", + "trust-dns-proto 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -2093,29 +2093,29 @@ dependencies = [ [metadata] "checksum actix 0.5.6 (registry+https://github.com/rust-lang/crates.io-index)" = "e767e3170dc7cdec50fe1b74d22fd9d2f4b78b97b2052a254b5acb07dae68634" -"checksum actix-web 0.5.4 (registry+https://github.com/rust-lang/crates.io-index)" = "9948406e3d13d44d43987e1e2050809a415f752a8096e5dff3a879c9714a9871" +"checksum actix-web 0.5.6 (registry+https://github.com/rust-lang/crates.io-index)" = "ebda1eae1638d03af2fc27a7d57c5fd035901a949f548d7c72ff5e07f5052d9f" "checksum actix_derive 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "c4b1dc922654b9aca7a8a31eab875fde804fa9fbd67f220f2e457787b23590f2" "checksum adler32 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = "6cbd0b9af8587c72beadc9f72d35b9fbb070982c9e6203e46e93f10df25f8f45" "checksum aho-corasick 0.6.4 (registry+https://github.com/rust-lang/crates.io-index)" = "d6531d44de723825aa81398a6415283229725a00fa30713812ab9323faa82fc4" "checksum ansi_term 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ee49baf6cb617b853aa8d93bf420db2383fab46d314482ca2803b40d5fde979b" "checksum antidote 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "34fde25430d87a9388dadbe6e34d7f72a462c8b43ac8d309b42b0a8505d7e2a5" "checksum arrayvec 0.4.7 (registry+https://github.com/rust-lang/crates.io-index)" = "a1e964f9e24d588183fcb43503abda40d288c8657dfc27311516ce2f05675aef" -"checksum atty 0.2.9 (registry+https://github.com/rust-lang/crates.io-index)" = "6609a866dd1a1b2d0ee1362195bf3e4f6438abb2d80120b83b1e1f4fb6476dd0" +"checksum atty 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)" = "2fc4a1aa4c24c0718a250f0681885c1af91419d242f29eb8f2ab28502d80dbd1" "checksum backtrace 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "346d7644f0b5f9bc73082d3b2236b69a05fd35cce0cfa3724e184e6a5c9e2a2f" "checksum backtrace 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)" = "ebbe525f66f42d207968308ee86bc2dd60aa5fab535b22e616323a173d097d8e" "checksum backtrace-sys 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)" = "44585761d6161b0f57afc49482ab6bd067e4edef48c12a152c237eb0203f7661" "checksum base64 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)" = "96434f987501f0ed4eb336a411e0631ecd1afa11574fe148587adc4ff96143c9" "checksum base64 0.9.1 (registry+https://github.com/rust-lang/crates.io-index)" = "9263aa6a38da271eec5c91a83ce1e800f093c8535788d403d626d8d5c3f8f007" "checksum bitflags 0.9.1 (registry+https://github.com/rust-lang/crates.io-index)" = "4efd02e230a02e18f92fc2735f44597385ed02ad8f831e7c1c1156ee5e1ab3a5" -"checksum bitflags 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "b3c30d3802dfb7281680d6285f2ccdaa8c2d8fee41f93805dba5c4cf50dc23cf" +"checksum bitflags 1.0.3 (registry+https://github.com/rust-lang/crates.io-index)" = "d0c54bb8f454c567f21197eefcdbf5679d0bd99f2ddbe52e84c77061952e6789" "checksum brotli-sys 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)" = "4445dea95f4c2b41cde57cc9fee236ae4dbae88d8fcbdb4750fc1bb5d86aaecd" "checksum brotli2 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)" = "0cb036c3eade309815c15ddbacec5b22c4d1f3983a774ab2eac2e3e9ea85568e" "checksum build_const 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "39092a32794787acd8525ee150305ff051b0aa6cc2abaf193924f5ab05425f39" "checksum bytecount 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "af27422163679dea46a1a7239dffff64d3dcdc3ba5fe9c49c789fbfe0eb949de" "checksum byteorder 1.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "73b5bdfe7ee3ad0b99c9801d58807a9dbc9e09196365b0203853b99889ab3c87" -"checksum bytes 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)" = "1b7db437d718977f6dc9b2e3fd6fc343c02ac6b899b73fdd2179163447bd9ce9" +"checksum bytes 0.4.7 (registry+https://github.com/rust-lang/crates.io-index)" = "2f1d50c876fb7545f5f289cd8b2aee3f359d073ae819eed5d6373638e2c61e59" "checksum cargo_metadata 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "1f56ec3e469bca7c276f2eea015aa05c5e381356febdbb0683c2580189604537" -"checksum cc 1.0.10 (registry+https://github.com/rust-lang/crates.io-index)" = "8b9d2900f78631a5876dc5d6c9033ede027253efcd33dd36b1309fc6cab97ee0" +"checksum cc 1.0.15 (registry+https://github.com/rust-lang/crates.io-index)" = "0ebb87d1116151416c0cf66a0e3fb6430cccd120fd6300794b4dfaa050ac40ba" "checksum cfg-if 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "d4c819a1287eb618df47cc647173c5c4c66ba19d888a6e50d605672aed3140de" "checksum chrono 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)" = "1cce36c92cb605414e9b824f866f5babe0a0368e39ea07393b9b63cf3844c0e6" "checksum clap 2.31.2 (registry+https://github.com/rust-lang/crates.io-index)" = "f0f16b89cbb9ee36d87483dc939fe9f1e13c05898d56d7b230a0d4dff033a536" @@ -2123,7 +2123,7 @@ dependencies = [ "checksum cookie 0.10.1 (registry+https://github.com/rust-lang/crates.io-index)" = "746858cae4eae40fff37e1998320068df317bc247dc91a67c6cfa053afdc2abb" "checksum core-foundation 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "25bfd746d203017f7d5cbd31ee5d8e17f94b6521c7af77ece6c9e4b2d4b16c67" "checksum core-foundation-sys 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "065a5d7ffdcbc8fa145d6f0746f3555025b9097a9e9cda59f7467abae670c78d" -"checksum crc 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "bd5d02c0aac6bd68393ed69e00bbc2457f3e89075c6349db7189618dc4ddc1d7" +"checksum crc 1.8.1 (registry+https://github.com/rust-lang/crates.io-index)" = "d663548de7f5cca343f1e0a48d14dcfb0e9eb4e079ec58883b7251539fa10aeb" "checksum crossbeam-channel 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "9d7b07a3084d8718d95338443d5a46aab38ce16d5f991d4027a0906b369f70a3" "checksum crossbeam-deque 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "f739f8c5363aca78cfb059edf753d8f0d36908c348f3d8d1503f03d8b75d9cf3" "checksum crossbeam-deque 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "c1bdc73742c36f7f35ebcda81dbb33a7e0d33757d03a06d9ddca762712ec5ea2" @@ -2162,7 +2162,7 @@ dependencies = [ "checksum gcc 0.3.54 (registry+https://github.com/rust-lang/crates.io-index)" = "5e33ec290da0d127825013597dbdfc28bee4964690c7ce1166cbc2a7bd08b1bb" "checksum getopts 0.2.17 (registry+https://github.com/rust-lang/crates.io-index)" = "b900c08c1939860ce8b54dc6a89e26e00c04c380fd0e09796799bd7f12861e05" "checksum glob 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)" = "8be18de09a56b60ed0edf84bc9df007e30040691af7acd1c41874faac5895bfb" -"checksum h2 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "065fb096fc65bbfb9c765d48c9f3f1a21cdb25ba0d3f82105b38f30ddffa2f7e" +"checksum h2 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = "c91a0ee01fcf961ae004d88f1a77fc47dc5db6164f7d57605cc9f2c93d535686" "checksum hostname 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)" = "58fab6e177434b0bb4cd344a4dabaa5bd6d7a8d792b1885aebcae7af1091d1cb" "checksum http 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "75df369fd52c60635208a4d3e694777c099569b3dcf4844df8f652dc004644ab" "checksum http-range 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "5f2e4003e6fd05ea9109db00415e670b11f511a42e567ff2d5d771cbdfa24e02" @@ -2206,21 +2206,21 @@ dependencies = [ "checksum num-traits 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "dee092fcdf725aee04dd7da1d21debff559237d49ef1cb3e69bcb8ece44c7364" "checksum num_cpus 1.8.0 (registry+https://github.com/rust-lang/crates.io-index)" = "c51a3322e4bca9d212ad9a158a02abc6934d005490c054a2778df73a70aa0a30" "checksum openssl 0.9.24 (registry+https://github.com/rust-lang/crates.io-index)" = "a3605c298474a3aa69de92d21139fb5e2a81688d308262359d85cdd0d12a7985" -"checksum openssl-sys 0.9.28 (registry+https://github.com/rust-lang/crates.io-index)" = "0bbd90640b148b46305c1691eed6039b5c8509bed16991e3562a01eeb76902a3" +"checksum openssl-sys 0.9.30 (registry+https://github.com/rust-lang/crates.io-index)" = "73ae718c3562989cd3a0a5c26610feca02f8116822f6f195e6cf4887481e57f5" "checksum owning_ref 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "cdf84f41639e037b484f93433aa3897863b561ed65c6e59c7073d7c561710f37" "checksum parking_lot 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)" = "149d8f5b97f3c1133e3cfcd8886449959e856b557ff281e292b733d7c69e005e" -"checksum parking_lot_core 0.2.13 (registry+https://github.com/rust-lang/crates.io-index)" = "538ef00b7317875071d5e00f603f24d16f0b474c1a5fc0ccb8b454ca72eafa79" +"checksum parking_lot_core 0.2.14 (registry+https://github.com/rust-lang/crates.io-index)" = "4db1a8ccf734a7bce794cc19b3df06ed87ab2f3907036b693c68f56b4d4537fa" "checksum percent-encoding 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "31010dd2e1ac33d5b46a5b413495239882813e0369f8ed8a5e266f173602f831" "checksum pest 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)" = "0fce5d8b5cc33983fc74f78ad552b5522ab41442c4ca91606e4236eb4b5ceefc" "checksum pest_derive 1.0.7 (registry+https://github.com/rust-lang/crates.io-index)" = "ab94faafeb93f4c5e3ce81ca0e5a779529a602ad5d09ae6d21996bfb8b6a52bf" -"checksum phf 0.7.21 (registry+https://github.com/rust-lang/crates.io-index)" = "cb325642290f28ee14d8c6201159949a872f220c62af6e110a56ea914fbe42fc" -"checksum phf_codegen 0.7.21 (registry+https://github.com/rust-lang/crates.io-index)" = "d62594c0bb54c464f633175d502038177e90309daf2e0158be42ed5f023ce88f" -"checksum phf_generator 0.7.21 (registry+https://github.com/rust-lang/crates.io-index)" = "6b07ffcc532ccc85e3afc45865469bf5d9e4ef5bfcf9622e3cfe80c2d275ec03" -"checksum phf_shared 0.7.21 (registry+https://github.com/rust-lang/crates.io-index)" = "07e24b0ca9643bdecd0632f2b3da6b1b89bbb0030e0b992afc1113b23a7bc2f2" -"checksum pkg-config 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)" = "3a8b4c6b8165cd1a1cd4b9b120978131389f64bdaf456435caa41e630edba903" +"checksum phf 0.7.22 (registry+https://github.com/rust-lang/crates.io-index)" = "7d37a244c75a9748e049225155f56dbcb98fe71b192fd25fd23cb914b5ad62f2" +"checksum phf_codegen 0.7.22 (registry+https://github.com/rust-lang/crates.io-index)" = "4e4048fe7dd7a06b8127ecd6d3803149126e9b33c7558879846da3a63f734f2b" +"checksum phf_generator 0.7.22 (registry+https://github.com/rust-lang/crates.io-index)" = "05a079dd052e7b674d21cb31cbb6c05efd56a2cd2827db7692e2f1a507ebd998" +"checksum phf_shared 0.7.22 (registry+https://github.com/rust-lang/crates.io-index)" = "c2261d544c2bb6aa3b10022b0be371b9c7c64f762ef28c6f5d4f1ef6d97b5930" +"checksum pkg-config 0.3.11 (registry+https://github.com/rust-lang/crates.io-index)" = "110d5ee3593dbb73f56294327fe5668bcc997897097cbc76b51e7aed3f52452f" "checksum pq-sys 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)" = "4dfb5e575ef93a1b7b2a381d47ba7c5d4e4f73bff37cee932195de769aad9a54" "checksum proc-macro2 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "cd07deb3c6d1d9ff827999c7f9b04cdfd66b1b17ae508e14fe47b620f2282ae0" -"checksum proc-macro2 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)" = "49b6a521dc81b643e9a51e0d1cf05df46d5a2f3c0280ea72bcb68276ba64a118" +"checksum proc-macro2 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)" = "1b06e2f335f48d24442b35a19df506a835fb3547bc3c06ef27340da9acf5cae7" "checksum pulldown-cmark 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "d6fdf85cda6cadfae5428a54661d431330b312bc767ddbc57adbedc24da66e32" "checksum quick-error 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "eda5fe9b71976e62bc81b781206aaa076401769b2143379d3eb2118388babac4" "checksum quote 0.3.15 (registry+https://github.com/rust-lang/crates.io-index)" = "7a6e920b65c65f10b2ae65c831a81a073a89edd28c7cce89475bff467ab4167a" @@ -2233,8 +2233,8 @@ dependencies = [ "checksum rayon-core 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "9d24ad214285a7729b174ed6d3bcfcb80177807f959d95fafd5bfc5c4f201ac8" "checksum redox_syscall 0.1.37 (registry+https://github.com/rust-lang/crates.io-index)" = "0d92eecebad22b767915e4d529f89f28ee96dbbf5a4810d2b844373f136417fd" "checksum redox_termios 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "7e891cfe48e9100a70a3b6eb652fef28920c117d366339687bd5576160db0f76" -"checksum regex 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)" = "aec3f58d903a7d2a9dc2bf0e41a746f4530e0cab6b615494e058f67a3ef947fb" -"checksum regex-syntax 0.5.5 (registry+https://github.com/rust-lang/crates.io-index)" = "bd90079345f4a4c3409214734ae220fd773c6f2e8a543d07370c6c1c369cfbfb" +"checksum regex 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)" = "9329abc99e39129fcceabd24cf5d85b4671ef7c29c50e972bc5afe32438ec384" +"checksum regex-syntax 0.5.6 (registry+https://github.com/rust-lang/crates.io-index)" = "7d707a4fa2637f2dca2ef9fd02225ec7661fe01a53623c1e6515b6916511f7a7" "checksum relay 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "1576e382688d7e9deecea24417e350d3062d97e32e45d70b1cde65994ff1489a" "checksum remove_dir_all 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)" = "3488ba1b9a2084d38645c4c08276a1752dcbf2c7130d74f1569681ad5d2799c5" "checksum reqwest 0.8.5 (registry+https://github.com/rust-lang/crates.io-index)" = "241faa9a8ca28a03cbbb9815a5d085f271d4c0168a19181f106aa93240c22ddb" @@ -2263,19 +2263,19 @@ dependencies = [ "checksum slab 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "fdeff4cd9ecff59ec7e3744cbca73dfe5ac35c2aedb2cfba8a1c715a18912e9d" "checksum slug 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)" = "797bcb4d24e91239a8615415814f4afb2d8ca400c472de3c73f803a5a7689e11" "checksum smallvec 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "4c8cbcd6df1e117c2210e13ab5109635ad68a929fcbb8964dc965b76cb5ee013" -"checksum smallvec 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)" = "44db0ecb22921ef790d17ae13a3f6d15784183ff5f2a01aa32098c7498d2b4b9" +"checksum smallvec 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)" = "03dab98ab5ded3a8b43b2c80751194608d0b2aa0f1d46cf95d1c35e192844aa7" "checksum socket2 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)" = "ff606e0486e88f5fc6cfeb3966e434fb409abbc7a3ab495238f70a1ca97f789d" "checksum stable_deref_trait 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "15132e0e364248108c5e2c02e3ab539be8d6f5d52a01ca9bbf27ed657316f02b" "checksum string 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "31f98b200e7caca9efca50fc0aa69cd58a5ec81d5f6e75b2f3ecaad2e998972a" "checksum strsim 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "bb4f380125926a99e52bc279241539c018323fab05ad6368b56f93d9369ff550" "checksum syn 0.11.11 (registry+https://github.com/rust-lang/crates.io-index)" = "d3b891b9015c88c576343b9b3e41c2c11a51c219ef067b264bd9c8aa9b441dad" "checksum syn 0.12.15 (registry+https://github.com/rust-lang/crates.io-index)" = "c97c05b8ebc34ddd6b967994d5c6e9852fa92f8b82b3858c39451f97346dcce5" -"checksum syn 0.13.1 (registry+https://github.com/rust-lang/crates.io-index)" = "91b52877572087400e83d24b9178488541e3d535259e04ff17a63df1e5ceff59" +"checksum syn 0.13.4 (registry+https://github.com/rust-lang/crates.io-index)" = "90d5efaad92a0f96c629ae16302cc9591915930fd49ff0dcc6b4cde146782397" "checksum synom 0.11.3 (registry+https://github.com/rust-lang/crates.io-index)" = "a393066ed9010ebaed60b9eafa373d4b1baac186dd7e008555b0f702b51945b6" "checksum synstructure 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)" = "3a761d12e6d8dcb4dcf952a7a89b475e3a9d69e4a69307e01a470977642914bd" "checksum take 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "b157868d8ac1f56b64604539990685fa7611d8fa9e5476cf0c02cf34d32917c5" "checksum tempdir 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)" = "15f2b5fb00ccdf689e0149d1b1b3c03fead81c2b37735d812fa8bddbbf41b6d8" -"checksum tera 0.11.6 (registry+https://github.com/rust-lang/crates.io-index)" = "1845350fc31befca6c3976001dc45213b63154a96b58cfbf177d45cbf94538dd" +"checksum tera 0.11.7 (registry+https://github.com/rust-lang/crates.io-index)" = "e815b67d44c26feb06630011fb58b5b243f4e9585aac1ed0592c5795de64cd75" "checksum termcolor 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)" = "adc4587ead41bf016f11af03e55a624c06568b5a19db4e90fde573d805074f83" "checksum termion 1.5.1 (registry+https://github.com/rust-lang/crates.io-index)" = "689a3bdfaab439fd92bc87df5c4c78417d3cbe537487274e9b0b2dce76e92096" "checksum textwrap 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)" = "c0b59b6b4b44d867f1370ef1bd91bfb262bf07bf0ae65c202ea2fbc16153b693" @@ -2294,8 +2294,8 @@ dependencies = [ "checksum tokio-timer 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "29a89e4ad0c8f1e4c9860e605c38c69bfdad3cccd4ea446e58ff588c1c07a397" "checksum tokio-tls 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)" = "772f4b04e560117fe3b0a53e490c16ddc8ba6ec437015d91fa385564996ed913" "checksum tokio-udp 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "137bda266504893ac4774e0ec4c2108f7ccdbcb7ac8dced6305fe9e4e0b5041a" -"checksum trust-dns-proto 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)" = "0266cdf22b1f3904d21252e71079395bc47836513d4f3888ff85b57a6add2227" -"checksum trust-dns-resolver 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)" = "87cff716794d5ab064957bb78fc5575a38337571917ddd86fc2fed52dc48b141" +"checksum trust-dns-proto 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "cbbddb93547eeee847367d8f59b68002294a7b4df31c143fbee4109ce0c61a04" +"checksum trust-dns-resolver 0.8.2 (registry+https://github.com/rust-lang/crates.io-index)" = "9b0a0c9d4f8dd56481209c5ae1a8965ed022461d352c81fb92466ec9d846929e" "checksum twoway 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)" = "59b11b2b5241ba34be09c3cc85a36e56e48f9888862e19cedf23336d35316ed1" "checksum typed-arena 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "5934776c3ac1bea4a9d56620d6bf2d483b20d394e49581db40f187e1118ff667" "checksum ucd-util 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "fd2be2d6639d0f8fe6cdda291ad456e23629558d466e2789d2c3e9892bda285d" diff --git a/default.nix b/default.nix index 903ddb523..6430b87e6 100644 --- a/default.nix +++ b/default.nix @@ -56,11 +56,11 @@ rec { build = "build.rs"; inherit dependencies buildDependencies features; }; - actix_web_0_5_4_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + actix_web_0_5_6_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { crateName = "actix-web"; - version = "0.5.4"; + version = "0.5.6"; authors = [ "Nikolay Kim " ]; - sha256 = "0282zy6knbwlna2yvvzxzy1b98882n71hz0miljh41bfyd3n39wh"; + sha256 = "1xadbnpp7b12xfjzbnzzv3l3lfm836mvhqapz3nl7hwanidgsakf"; libPath = "src/lib.rs"; libName = "actix_web"; build = "build.rs"; @@ -112,11 +112,11 @@ rec { sha256 = "0fzgv7z1x1qnyd7j32vdcadk4k9wfx897y06mr3bw1yi52iqf4z4"; inherit dependencies buildDependencies features; }; - atty_0_2_9_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + atty_0_2_10_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { crateName = "atty"; - version = "0.2.9"; + version = "0.2.10"; authors = [ "softprops " ]; - sha256 = "1qww3g9698kv583kgy7vy1lc2176rgs9g54gcw6iv2grymbpxk75"; + sha256 = "1h26lssj8rwaz0xhwwm5a645r49yly211amfmd243m3m0jl49i2c"; inherit dependencies buildDependencies features; }; backtrace_0_2_3_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { @@ -163,11 +163,11 @@ rec { sha256 = "18h073l5jd88rx4qdr95fjddr9rk79pb1aqnshzdnw16cfmb9rws"; inherit dependencies buildDependencies features; }; - bitflags_1_0_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + bitflags_1_0_3_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { crateName = "bitflags"; - version = "1.0.1"; + version = "1.0.3"; authors = [ "The Rust Project Developers" ]; - sha256 = "0p4b3nr0s5nda2qmm7xdhnvh4lkqk3xd8l9ffmwbvqw137vx7mj1"; + sha256 = "162p4w4h1ad76awq6b5yivmls3d50m9cl27d8g588lsps6g8s5rw"; inherit dependencies buildDependencies features; }; brotli_sys_0_3_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { @@ -206,11 +206,11 @@ rec { sha256 = "03cj21di3hck3w8a09z2b9a4jv0aay7a4bjdd1f86h3a4icl68m1"; inherit dependencies buildDependencies features; }; - bytes_0_4_6_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + bytes_0_4_7_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { crateName = "bytes"; - version = "0.4.6"; + version = "0.4.7"; authors = [ "Carl Lerche " ]; - sha256 = "0q7adalpqd09qhxgszw72rd55whgpchpc4r523qhlmaw4gipjsa2"; + sha256 = "1icr74r099d0c0a2q1pz51182z7911g92h2j60al351kz78dzv3f"; inherit dependencies buildDependencies features; }; cargo_metadata_0_3_3_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { @@ -220,11 +220,11 @@ rec { sha256 = "0vdxzdh6qmqdlcigvkzya5a4d4f9p0awm2kgkjgnxbc50y1xrndz"; inherit dependencies buildDependencies features; }; - cc_1_0_10_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + cc_1_0_15_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { crateName = "cc"; - version = "1.0.10"; + version = "1.0.15"; authors = [ "Alex Crichton " ]; - sha256 = "0fqchrxcrd2j2b9x7cqs49ck7b3ilsap8s9xhs75gzgl6c1ylpdn"; + sha256 = "1zmcv4zf888byhay2qakqlc9b8snhy5ccfs35zb6flywmlj8f2c0"; inherit dependencies buildDependencies features; }; cfg_if_0_1_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { @@ -285,11 +285,11 @@ rec { build = "build.rs"; inherit dependencies buildDependencies features; }; - crc_1_7_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crc_1_8_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { crateName = "crc"; - version = "1.7.0"; + version = "1.8.1"; authors = [ "Rui Hu " ]; - sha256 = "1m4lfnjf5qvgy7is97kyi5jjpk6kw0hp088fi59cl7ms1gc9knv0"; + sha256 = "00m9jjqrddp3bqyanvyxv0hf6s56bx1wy51vcdcxg4n2jdhg109s"; inherit dependencies buildDependencies features; }; crossbeam_channel_0_1_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { @@ -574,11 +574,11 @@ rec { sha256 = "104389jjxs8r2f5cc9p0axhjmndgln60ih5x4f00ccgg9d3zarlf"; inherit dependencies buildDependencies features; }; - h2_0_1_5_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + h2_0_1_6_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { crateName = "h2"; - version = "0.1.5"; + version = "0.1.6"; authors = [ "Carl Lerche " ]; - sha256 = "07h3qviv1rsg2sjv85b7kzvakxg0md2b9azgwpdwkc61jxgrgywd"; + sha256 = "00bkracb1ysifj2sl07gbx8jdajjrmcffk5hxr39lh2nd94nhlhm"; inherit dependencies buildDependencies features; }; hostname_0_1_4_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { @@ -891,11 +891,11 @@ rec { build = "build.rs"; inherit dependencies buildDependencies features; }; - openssl_sys_0_9_28_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + openssl_sys_0_9_30_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { crateName = "openssl-sys"; - version = "0.9.28"; + version = "0.9.30"; authors = [ "Alex Crichton " "Steven Fackler " ]; - sha256 = "0067nk1p9jwipx226gfldyxw6h4wlvvqwgh7iak7d1x8dbw4vyq6"; + sha256 = "1p5y3md4crbmg0lcfkdl8pp3kf9k82vghjy28x7ix5mji3j2p87a"; inherit dependencies buildDependencies features; }; owning_ref_0_3_3_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { @@ -912,11 +912,11 @@ rec { sha256 = "0qrb2f0azglbsx7k3skgnc7mmv9z9spnqgk1m450g91r94nlklqi"; inherit dependencies buildDependencies features; }; - parking_lot_core_0_2_13_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + parking_lot_core_0_2_14_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { crateName = "parking_lot_core"; - version = "0.2.13"; + version = "0.2.14"; authors = [ "Amanieu d'Antras " ]; - sha256 = "178j9qdrkfm8kw2i57rll1k066x07rjr4ld3hkhk6sfz4dmhzpi8"; + sha256 = "0giypb8ckkpi34p14nfk4b19c7przj4jxs95gs7x2v5ncmi0y286"; inherit dependencies buildDependencies features; }; percent_encoding_1_0_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { @@ -942,41 +942,41 @@ rec { procMacro = true; inherit dependencies buildDependencies features; }; - phf_0_7_21_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + phf_0_7_22_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { crateName = "phf"; - version = "0.7.21"; + version = "0.7.22"; authors = [ "Steven Fackler " ]; - sha256 = "11m2rzm2s8s35m0s97gjxxb181xz352kjlhr387xj5c8q3qp5afg"; + sha256 = "0b58l863rhmqyqsfj2d89nmdzc21g9yvvvq1m4c3a615zpcykb3i"; libPath = "src/lib.rs"; inherit dependencies buildDependencies features; }; - phf_codegen_0_7_21_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + phf_codegen_0_7_22_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { crateName = "phf_codegen"; - version = "0.7.21"; + version = "0.7.22"; authors = [ "Steven Fackler " ]; - sha256 = "0kgy8s2q4zr0iqcm21mgq4ppc45wy6z7b5wn98xyfsrcad6lwmmj"; + sha256 = "0k8yx4gr9m6cfrvh21s6bhnh1azz13j4xih88bvm06r6blfl89fs"; inherit dependencies buildDependencies features; }; - phf_generator_0_7_21_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + phf_generator_0_7_22_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { crateName = "phf_generator"; - version = "0.7.21"; + version = "0.7.22"; authors = [ "Steven Fackler " ]; - sha256 = "1jxjfzc6d6d4l9nv0r2bb66if5brk9lnncmg4dpjjifn6zhhqd9g"; + sha256 = "093gla320qb6rbk8z7wqqxl79zrh874sa7sxir31q2p7mrw4b70k"; inherit dependencies buildDependencies features; }; - phf_shared_0_7_21_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + phf_shared_0_7_22_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { crateName = "phf_shared"; - version = "0.7.21"; + version = "0.7.22"; authors = [ "Steven Fackler " ]; - sha256 = "0lxpg3wgxfhzfalmf9ha9my1lsvfjy74ah9f6mfw88xlp545jlln"; + sha256 = "0ij9flicfi0ab5vpzdwbizpdyxhk891qxa8nxsqlv4sg4abqang6"; libPath = "src/lib.rs"; inherit dependencies buildDependencies features; }; - pkg_config_0_3_9_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + pkg_config_0_3_11_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { crateName = "pkg-config"; - version = "0.3.9"; + version = "0.3.11"; authors = [ "Alex Crichton " ]; - sha256 = "06k8fxgrsrxj8mjpjcq1n7mn2p1shpxif4zg9y5h09c7vy20s146"; + sha256 = "177kbs465skvzmb2d9bh7aa5lqm0npfig12awcbd34c6k6nlyr5h"; inherit dependencies buildDependencies features; }; pq_sys_0_4_4_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { @@ -995,11 +995,11 @@ rec { sha256 = "1y47qagi1r1f13b4b66xagr3dn9hjlvba7i6f5mcb77qhkn8yg9c"; inherit dependencies buildDependencies features; }; - proc_macro2_0_3_6_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + proc_macro2_0_3_8_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { crateName = "proc-macro2"; - version = "0.3.6"; + version = "0.3.8"; authors = [ "Alex Crichton " ]; - sha256 = "1viqlvsknzvgc2j0bcz53n94zxv7c816py7hv2r27y0bv1dq4iqp"; + sha256 = "0ixnavxcd6sk1861hjgnfxly7qgq4ch1iplsx0nclvjjkwg39qdc"; inherit dependencies buildDependencies features; }; pulldown_cmark_0_1_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { @@ -1091,18 +1091,18 @@ rec { libPath = "src/lib.rs"; inherit dependencies buildDependencies features; }; - regex_0_2_10_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + regex_0_2_11_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { crateName = "regex"; - version = "0.2.10"; + version = "0.2.11"; authors = [ "The Rust Project Developers" ]; - sha256 = "0cwdmcllssm984b5nnpr55rgla1yzw31kmp2imxdpgk6hvlhf1ca"; + sha256 = "0r50cymxdqp0fv1dxd22mjr6y32q450nwacd279p9s7lh0cafijj"; inherit dependencies buildDependencies features; }; - regex_syntax_0_5_5_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + regex_syntax_0_5_6_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { crateName = "regex-syntax"; - version = "0.5.5"; + version = "0.5.6"; authors = [ "The Rust Project Developers" ]; - sha256 = "1m5v66r6xxglgkdl1ci23qq0bl0k2wqplm6li4pmg1k7szvgxcbp"; + sha256 = "10vf3r34bgjnbrnqd5aszn35bjvm8insw498l1vjy8zx5yms3427"; inherit dependencies buildDependencies features; }; relay_0_1_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { @@ -1308,11 +1308,11 @@ rec { libPath = "lib.rs"; inherit dependencies buildDependencies features; }; - smallvec_0_6_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + smallvec_0_6_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { crateName = "smallvec"; - version = "0.6.0"; + version = "0.6.1"; authors = [ "Simon Sapin " ]; - sha256 = "1k75p20zzdm6r5ka55dmiywpb6wr6p87gr6ha6p2s73mycmjc4ln"; + sha256 = "16m07xh67xcdpwjkbzbv9d7visxmz4fb4a8jfcrsrf333w7vkl1g"; libPath = "lib.rs"; inherit dependencies buildDependencies features; }; @@ -1358,11 +1358,11 @@ rec { sha256 = "0kkzav72yy0idzbh9zcg92dam3785xzrbxjjp8vxcis9z2zd6b13"; inherit dependencies buildDependencies features; }; - syn_0_13_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + syn_0_13_4_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { crateName = "syn"; - version = "0.13.1"; + version = "0.13.4"; authors = [ "David Tolnay " ]; - sha256 = "1pimp7fpvillhz06xz0k6450h9nis3ab6h1j2hzrzykrpxs2qnyg"; + sha256 = "029n8x53hvn00fs3wx8x7qcxxkfaaqjcrisgrz1qszzbr8f9hx1b"; inherit dependencies buildDependencies features; }; synom_0_11_3_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { @@ -1393,11 +1393,11 @@ rec { sha256 = "0y53sxybyljrr7lh0x0ysrsa7p7cljmwv9v80acy3rc6n97g67vy"; inherit dependencies buildDependencies features; }; - tera_0_11_6_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + tera_0_11_7_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { crateName = "tera"; - version = "0.11.6"; + version = "0.11.7"; authors = [ "Vincent Prouillet " ]; - sha256 = "0j6gkkj2sx5484znmcp5zbjgk4r00wrbdi6mb05i1pjkqwhzrm54"; + sha256 = "14s7pbrg804bb45majjxbgdgkj2ckh8i3kfjg1hc7f803yzhykc2"; inherit dependencies buildDependencies features; }; termcolor_0_3_6_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { @@ -1526,20 +1526,20 @@ rec { sha256 = "0c1wjiqri0xlfrqq2hmgppvl9j8pjy8469s67f08dc8lybmrb1q1"; inherit dependencies buildDependencies features; }; - trust_dns_proto_0_3_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + trust_dns_proto_0_3_3_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { crateName = "trust-dns-proto"; - version = "0.3.2"; + version = "0.3.3"; authors = [ "Benjamin Fry " ]; - sha256 = "1fjb1xb6n7bz8iwi6a5k550r5rzj9qmbvqzjm8168plaxsb06afk"; + sha256 = "10cf1999j552fdxnk9cq84n26ybj5b8pk2914akag57g035iq1ql"; libPath = "src/lib.rs"; libName = "trust_dns_proto"; inherit dependencies buildDependencies features; }; - trust_dns_resolver_0_8_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + trust_dns_resolver_0_8_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { crateName = "trust-dns-resolver"; - version = "0.8.1"; + version = "0.8.2"; authors = [ "Benjamin Fry " ]; - sha256 = "0x4cdzfma5y4i6mnr72iwjxgma18xhkbps5dibf0p7qfsa2sa6hq"; + sha256 = "0df4ls6gk97zc1931jwm8w9d1mg34h0j4zhm77aaxwq9cjk71xw1"; libPath = "src/lib.rs"; libName = "trust_dns_resolver"; inherit dependencies buildDependencies features; @@ -1794,82 +1794,95 @@ rec { inherit dependencies buildDependencies features; }; actix_0_5_6 = { features?(actix_0_5_6_features {}) }: actix_0_5_6_ { - dependencies = mapFeatures features ([ actix_derive_0_2_0 bitflags_1_0_1 bytes_0_4_6 crossbeam_channel_0_1_2 failure_0_1_1 futures_0_1_21 libc_0_2_40 log_0_4_1 smallvec_0_6_0 tokio_core_0_1_17 tokio_io_0_1_6 tokio_signal_0_1_5 trust_dns_resolver_0_8_1 uuid_0_6_3 ]); + dependencies = mapFeatures features ([ actix_derive_0_2_0 bitflags_1_0_3 bytes_0_4_7 crossbeam_channel_0_1_2 failure_0_1_1 futures_0_1_21 libc_0_2_40 log_0_4_1 smallvec_0_6_1 tokio_core_0_1_17 tokio_io_0_1_6 tokio_signal_0_1_5 trust_dns_resolver_0_8_2 uuid_0_6_3 ]); buildDependencies = mapFeatures features ([ skeptic_0_13_2 ]); }; actix_0_5_6_features = f: updateFeatures f (rec { actix_0_5_6.default = (f.actix_0_5_6.default or true); actix_derive_0_2_0.default = true; - bitflags_1_0_1.default = true; - bytes_0_4_6.default = true; + bitflags_1_0_3.default = true; + bytes_0_4_7.default = true; crossbeam_channel_0_1_2.default = true; failure_0_1_1.default = true; futures_0_1_21.default = true; libc_0_2_40.default = true; log_0_4_1.default = true; skeptic_0_13_2.default = true; - smallvec_0_6_0.default = true; + smallvec_0_6_1.default = true; tokio_core_0_1_17.default = true; tokio_io_0_1_6.default = true; tokio_signal_0_1_5.default = true; - trust_dns_resolver_0_8_1.default = true; + trust_dns_resolver_0_8_2.default = true; uuid_0_6_3.default = true; uuid_0_6_3.v4 = true; - }) [ actix_derive_0_2_0_features bitflags_1_0_1_features bytes_0_4_6_features crossbeam_channel_0_1_2_features failure_0_1_1_features futures_0_1_21_features libc_0_2_40_features log_0_4_1_features smallvec_0_6_0_features tokio_core_0_1_17_features tokio_io_0_1_6_features tokio_signal_0_1_5_features trust_dns_resolver_0_8_1_features uuid_0_6_3_features skeptic_0_13_2_features ]; - actix_web_0_5_4 = { features?(actix_web_0_5_4_features {}) }: actix_web_0_5_4_ { - dependencies = mapFeatures features ([ actix_0_5_6 base64_0_9_1 bitflags_1_0_1 byteorder_1_2_2 bytes_0_4_6 cookie_0_10_1 encoding_0_2_33 failure_0_1_1 flate2_1_0_1 futures_0_1_21 futures_cpupool_0_1_8 h2_0_1_5 http_0_1_5 http_range_0_1_1 httparse_1_2_4 language_tags_0_2_2 lazy_static_1_0_0 libc_0_2_40 log_0_4_1 mime_0_3_5 mime_guess_2_0_0_alpha_4 mio_0_6_14 net2_0_2_32 num_cpus_1_8_0 percent_encoding_1_0_1 rand_0_4_2 regex_0_2_10 serde_1_0_43 serde_json_1_0_16 serde_urlencoded_0_5_1 sha1_0_6_0 smallvec_0_6_0 time_0_1_39 tokio_core_0_1_17 tokio_io_0_1_6 url_1_7_0 ] - ++ (if features.actix_web_0_5_4.brotli2 or false then [ brotli2_0_3_2 ] else [])); + }) [ actix_derive_0_2_0_features bitflags_1_0_3_features bytes_0_4_7_features crossbeam_channel_0_1_2_features failure_0_1_1_features futures_0_1_21_features libc_0_2_40_features log_0_4_1_features smallvec_0_6_1_features tokio_core_0_1_17_features tokio_io_0_1_6_features tokio_signal_0_1_5_features trust_dns_resolver_0_8_2_features uuid_0_6_3_features skeptic_0_13_2_features ]; + actix_web_0_5_6 = { features?(actix_web_0_5_6_features {}) }: actix_web_0_5_6_ { + dependencies = mapFeatures features ([ actix_0_5_6 base64_0_9_1 bitflags_1_0_3 byteorder_1_2_2 bytes_0_4_7 cookie_0_10_1 encoding_0_2_33 failure_0_1_1 futures_0_1_21 futures_cpupool_0_1_8 h2_0_1_6 http_0_1_5 http_range_0_1_1 httparse_1_2_4 language_tags_0_2_2 lazy_static_1_0_0 libc_0_2_40 log_0_4_1 mime_0_3_5 mime_guess_2_0_0_alpha_4 mio_0_6_14 net2_0_2_32 num_cpus_1_8_0 percent_encoding_1_0_1 rand_0_4_2 regex_0_2_11 serde_1_0_43 serde_json_1_0_16 serde_urlencoded_0_5_1 sha1_0_6_0 smallvec_0_6_1 time_0_1_39 tokio_core_0_1_17 tokio_io_0_1_6 url_1_7_0 ] + ++ (if features.actix_web_0_5_6.brotli2 or false then [ brotli2_0_3_2 ] else []) + ++ (if features.actix_web_0_5_6.flate2 or false then [ flate2_1_0_1 ] else [])); buildDependencies = mapFeatures features ([ version_check_0_1_3 ]); - features = mkFeatures (features.actix_web_0_5_4 or {}); + features = mkFeatures (features.actix_web_0_5_6 or {}); }; - actix_web_0_5_4_features = f: updateFeatures f (rec { + actix_web_0_5_6_features = f: updateFeatures f (rec { actix_0_5_6.default = true; - actix_web_0_5_4.brotli = - (f.actix_web_0_5_4.brotli or false) || - (f.actix_web_0_5_4.default or false) || - (actix_web_0_5_4.default or false); - actix_web_0_5_4.brotli2 = - (f.actix_web_0_5_4.brotli2 or false) || - (f.actix_web_0_5_4.brotli or false) || - (actix_web_0_5_4.brotli or false); - actix_web_0_5_4.default = (f.actix_web_0_5_4.default or true); - actix_web_0_5_4.native-tls = - (f.actix_web_0_5_4.native-tls or false) || - (f.actix_web_0_5_4.tls or false) || - (actix_web_0_5_4.tls or false); - actix_web_0_5_4.openssl = - (f.actix_web_0_5_4.openssl or false) || - (f.actix_web_0_5_4.alpn or false) || - (actix_web_0_5_4.alpn or false); - actix_web_0_5_4.session = - (f.actix_web_0_5_4.session or false) || - (f.actix_web_0_5_4.default or false) || - (actix_web_0_5_4.default or false); - actix_web_0_5_4.tokio-openssl = - (f.actix_web_0_5_4.tokio-openssl or false) || - (f.actix_web_0_5_4.alpn or false) || - (actix_web_0_5_4.alpn or false); - actix_web_0_5_4.tokio-tls = - (f.actix_web_0_5_4.tokio-tls or false) || - (f.actix_web_0_5_4.tls or false) || - (actix_web_0_5_4.tls or false); + actix_web_0_5_6.brotli = + (f.actix_web_0_5_6.brotli or false) || + (f.actix_web_0_5_6.default or false) || + (actix_web_0_5_6.default or false); + actix_web_0_5_6.brotli2 = + (f.actix_web_0_5_6.brotli2 or false) || + (f.actix_web_0_5_6.brotli or false) || + (actix_web_0_5_6.brotli or false); + actix_web_0_5_6.default = (f.actix_web_0_5_6.default or true); + actix_web_0_5_6.flate2-c = + (f.actix_web_0_5_6.flate2-c or false) || + (f.actix_web_0_5_6.default or false) || + (actix_web_0_5_6.default or false); + actix_web_0_5_6.native-tls = + (f.actix_web_0_5_6.native-tls or false) || + (f.actix_web_0_5_6.tls or false) || + (actix_web_0_5_6.tls or false); + actix_web_0_5_6.openssl = + (f.actix_web_0_5_6.openssl or false) || + (f.actix_web_0_5_6.alpn or false) || + (actix_web_0_5_6.alpn or false); + actix_web_0_5_6.session = + (f.actix_web_0_5_6.session or false) || + (f.actix_web_0_5_6.default or false) || + (actix_web_0_5_6.default or false); + actix_web_0_5_6.tokio-openssl = + (f.actix_web_0_5_6.tokio-openssl or false) || + (f.actix_web_0_5_6.alpn or false) || + (actix_web_0_5_6.alpn or false); + actix_web_0_5_6.tokio-tls = + (f.actix_web_0_5_6.tokio-tls or false) || + (f.actix_web_0_5_6.tls or false) || + (actix_web_0_5_6.tls or false); base64_0_9_1.default = true; - bitflags_1_0_1.default = true; + bitflags_1_0_3.default = true; brotli2_0_3_2.default = true; byteorder_1_2_2.default = true; - bytes_0_4_6.default = true; + bytes_0_4_7.default = true; cookie_0_10_1.default = true; cookie_0_10_1.percent-encode = true; cookie_0_10_1.secure = (f.cookie_0_10_1.secure or false) || - (actix_web_0_5_4.session or false) || - (f.actix_web_0_5_4.session or false); + (actix_web_0_5_6.session or false) || + (f.actix_web_0_5_6.session or false); encoding_0_2_33.default = true; failure_0_1_1.default = true; - flate2_1_0_1.default = true; + flate2_1_0_1.default = (f.flate2_1_0_1.default or false); + flate2_1_0_1.miniz-sys = + (f.flate2_1_0_1.miniz-sys or false) || + (actix_web_0_5_6.flate2-c or false) || + (f.actix_web_0_5_6.flate2-c or false); + flate2_1_0_1.rust_backend = + (f.flate2_1_0_1.rust_backend or false) || + (actix_web_0_5_6.flate2-rust or false) || + (f.actix_web_0_5_6.flate2-rust or false); futures_0_1_21.default = true; futures_cpupool_0_1_8.default = true; - h2_0_1_5.default = true; + h2_0_1_6.default = true; http_0_1_5.default = true; http_range_0_1_1.default = true; httparse_1_2_4.default = true; @@ -1884,19 +1897,19 @@ rec { num_cpus_1_8_0.default = true; percent_encoding_1_0_1.default = true; rand_0_4_2.default = true; - regex_0_2_10.default = true; + regex_0_2_11.default = true; serde_1_0_43.default = true; serde_json_1_0_16.default = true; serde_urlencoded_0_5_1.default = true; sha1_0_6_0.default = true; - smallvec_0_6_0.default = true; + smallvec_0_6_1.default = true; time_0_1_39.default = true; tokio_core_0_1_17.default = true; tokio_io_0_1_6.default = true; url_1_7_0.default = true; url_1_7_0.query_encoding = true; version_check_0_1_3.default = true; - }) [ actix_0_5_6_features base64_0_9_1_features bitflags_1_0_1_features brotli2_0_3_2_features byteorder_1_2_2_features bytes_0_4_6_features cookie_0_10_1_features encoding_0_2_33_features failure_0_1_1_features flate2_1_0_1_features futures_0_1_21_features futures_cpupool_0_1_8_features h2_0_1_5_features http_0_1_5_features http_range_0_1_1_features httparse_1_2_4_features language_tags_0_2_2_features lazy_static_1_0_0_features libc_0_2_40_features log_0_4_1_features mime_0_3_5_features mime_guess_2_0_0_alpha_4_features mio_0_6_14_features net2_0_2_32_features num_cpus_1_8_0_features percent_encoding_1_0_1_features rand_0_4_2_features regex_0_2_10_features serde_1_0_43_features serde_json_1_0_16_features serde_urlencoded_0_5_1_features sha1_0_6_0_features smallvec_0_6_0_features time_0_1_39_features tokio_core_0_1_17_features tokio_io_0_1_6_features url_1_7_0_features version_check_0_1_3_features ]; + }) [ actix_0_5_6_features base64_0_9_1_features bitflags_1_0_3_features brotli2_0_3_2_features byteorder_1_2_2_features bytes_0_4_7_features cookie_0_10_1_features encoding_0_2_33_features failure_0_1_1_features flate2_1_0_1_features futures_0_1_21_features futures_cpupool_0_1_8_features h2_0_1_6_features http_0_1_5_features http_range_0_1_1_features httparse_1_2_4_features language_tags_0_2_2_features lazy_static_1_0_0_features libc_0_2_40_features log_0_4_1_features mime_0_3_5_features mime_guess_2_0_0_alpha_4_features mio_0_6_14_features net2_0_2_32_features num_cpus_1_8_0_features percent_encoding_1_0_1_features rand_0_4_2_features regex_0_2_11_features serde_1_0_43_features serde_json_1_0_16_features serde_urlencoded_0_5_1_features sha1_0_6_0_features smallvec_0_6_1_features time_0_1_39_features tokio_core_0_1_17_features tokio_io_0_1_6_features url_1_7_0_features version_check_0_1_3_features ]; actix_derive_0_2_0 = { features?(actix_derive_0_2_0_features {}) }: actix_derive_0_2_0_ { dependencies = mapFeatures features ([ quote_0_3_15 rand_0_3_22 syn_0_11_11 ]); buildDependencies = mapFeatures features ([ version_check_0_1_3 ]); @@ -1950,13 +1963,13 @@ rec { (arrayvec_0_4_7.default or false); nodrop_0_1_12.default = (f.nodrop_0_1_12.default or false); }) [ nodrop_0_1_12_features ]; - atty_0_2_9 = { features?(atty_0_2_9_features {}) }: atty_0_2_9_ { + atty_0_2_10 = { features?(atty_0_2_10_features {}) }: atty_0_2_10_ { dependencies = (if kernel == "redox" then mapFeatures features ([ termion_1_5_1 ]) else []) ++ (if (kernel == "linux" || kernel == "darwin") then mapFeatures features ([ libc_0_2_40 ]) else []) ++ (if kernel == "windows" then mapFeatures features ([ winapi_0_3_4 ]) else []); }; - atty_0_2_9_features = f: updateFeatures f (rec { - atty_0_2_9.default = (f.atty_0_2_9.default or true); + atty_0_2_10_features = f: updateFeatures f (rec { + atty_0_2_10.default = (f.atty_0_2_10.default or true); libc_0_2_40.default = (f.libc_0_2_40.default or false); termion_1_5_1.default = true; winapi_0_3_4.consoleapi = true; @@ -2113,13 +2126,13 @@ rec { }) [ cfg_if_0_1_2_features rustc_demangle_0_1_7_features backtrace_sys_0_1_16_features libc_0_2_40_features winapi_0_3_4_features ]; backtrace_sys_0_1_16 = { features?(backtrace_sys_0_1_16_features {}) }: backtrace_sys_0_1_16_ { dependencies = mapFeatures features ([ libc_0_2_40 ]); - buildDependencies = mapFeatures features ([ cc_1_0_10 ]); + buildDependencies = mapFeatures features ([ cc_1_0_15 ]); }; backtrace_sys_0_1_16_features = f: updateFeatures f (rec { backtrace_sys_0_1_16.default = (f.backtrace_sys_0_1_16.default or true); - cc_1_0_10.default = true; + cc_1_0_15.default = true; libc_0_2_40.default = true; - }) [ libc_0_2_40_features cc_1_0_10_features ]; + }) [ libc_0_2_40_features cc_1_0_15_features ]; base64_0_6_0 = { features?(base64_0_6_0_features {}) }: base64_0_6_0_ { dependencies = mapFeatures features ([ byteorder_1_2_2 safemem_0_2_0 ]); }; @@ -2146,25 +2159,21 @@ rec { (f.bitflags_0_9_1.default or false) || (bitflags_0_9_1.default or false); }) []; - bitflags_1_0_1 = { features?(bitflags_1_0_1_features {}) }: bitflags_1_0_1_ { - features = mkFeatures (features.bitflags_1_0_1 or {}); + bitflags_1_0_3 = { features?(bitflags_1_0_3_features {}) }: bitflags_1_0_3_ { + features = mkFeatures (features.bitflags_1_0_3 or {}); }; - bitflags_1_0_1_features = f: updateFeatures f (rec { - bitflags_1_0_1.default = (f.bitflags_1_0_1.default or true); - bitflags_1_0_1.example_generated = - (f.bitflags_1_0_1.example_generated or false) || - (f.bitflags_1_0_1.default or false) || - (bitflags_1_0_1.default or false); + bitflags_1_0_3_features = f: updateFeatures f (rec { + bitflags_1_0_3.default = (f.bitflags_1_0_3.default or true); }) []; brotli_sys_0_3_2 = { features?(brotli_sys_0_3_2_features {}) }: brotli_sys_0_3_2_ { dependencies = mapFeatures features ([ libc_0_2_40 ]); - buildDependencies = mapFeatures features ([ cc_1_0_10 ]); + buildDependencies = mapFeatures features ([ cc_1_0_15 ]); }; brotli_sys_0_3_2_features = f: updateFeatures f (rec { brotli_sys_0_3_2.default = (f.brotli_sys_0_3_2.default or true); - cc_1_0_10.default = true; + cc_1_0_15.default = true; libc_0_2_40.default = true; - }) [ libc_0_2_40_features cc_1_0_10_features ]; + }) [ libc_0_2_40_features cc_1_0_15_features ]; brotli2_0_3_2 = { features?(brotli2_0_3_2_features {}) }: brotli2_0_3_2_ { dependencies = mapFeatures features ([ brotli_sys_0_3_2 libc_0_2_40 ]); }; @@ -2208,12 +2217,12 @@ rec { (f.byteorder_1_2_2.default or false) || (byteorder_1_2_2.default or false); }) []; - bytes_0_4_6 = { features?(bytes_0_4_6_features {}) }: bytes_0_4_6_ { + bytes_0_4_7 = { features?(bytes_0_4_7_features {}) }: bytes_0_4_7_ { dependencies = mapFeatures features ([ byteorder_1_2_2 iovec_0_1_2 ]); }; - bytes_0_4_6_features = f: updateFeatures f (rec { + bytes_0_4_7_features = f: updateFeatures f (rec { byteorder_1_2_2.default = true; - bytes_0_4_6.default = (f.bytes_0_4_6.default or true); + bytes_0_4_7.default = (f.bytes_0_4_7.default or true); iovec_0_1_2.default = true; }) [ byteorder_1_2_2_features iovec_0_1_2_features ]; cargo_metadata_0_3_3 = { features?(cargo_metadata_0_3_3_features {}) }: cargo_metadata_0_3_3_ { @@ -2228,16 +2237,16 @@ rec { serde_derive_1_0_43.default = true; serde_json_1_0_16.default = true; }) [ error_chain_0_11_0_features semver_0_8_0_features serde_1_0_43_features serde_derive_1_0_43_features serde_json_1_0_16_features ]; - cc_1_0_10 = { features?(cc_1_0_10_features {}) }: cc_1_0_10_ { + cc_1_0_15 = { features?(cc_1_0_15_features {}) }: cc_1_0_15_ { dependencies = mapFeatures features ([]); - features = mkFeatures (features.cc_1_0_10 or {}); + features = mkFeatures (features.cc_1_0_15 or {}); }; - cc_1_0_10_features = f: updateFeatures f (rec { - cc_1_0_10.default = (f.cc_1_0_10.default or true); - cc_1_0_10.rayon = - (f.cc_1_0_10.rayon or false) || - (f.cc_1_0_10.parallel or false) || - (cc_1_0_10.parallel or false); + cc_1_0_15_features = f: updateFeatures f (rec { + cc_1_0_15.default = (f.cc_1_0_15.default or true); + cc_1_0_15.rayon = + (f.cc_1_0_15.rayon or false) || + (f.cc_1_0_15.parallel or false) || + (cc_1_0_15.parallel or false); }) []; cfg_if_0_1_2 = { features?(cfg_if_0_1_2_features {}) }: cfg_if_0_1_2_ {}; cfg_if_0_1_2_features = f: updateFeatures f (rec { @@ -2265,8 +2274,8 @@ rec { time_0_1_39.default = true; }) [ num_integer_0_1_36_features num_traits_0_2_2_features serde_1_0_43_features time_0_1_39_features ]; clap_2_31_2 = { features?(clap_2_31_2_features {}) }: clap_2_31_2_ { - dependencies = mapFeatures features ([ bitflags_1_0_1 textwrap_0_9_0 unicode_width_0_1_4 ] - ++ (if features.clap_2_31_2.atty or false then [ atty_0_2_9 ] else []) + dependencies = mapFeatures features ([ bitflags_1_0_3 textwrap_0_9_0 unicode_width_0_1_4 ] + ++ (if features.clap_2_31_2.atty or false then [ atty_0_2_10 ] else []) ++ (if features.clap_2_31_2.strsim or false then [ strsim_0_7_0 ] else []) ++ (if features.clap_2_31_2.vec_map or false then [ vec_map_0_8_0 ] else [])) ++ (if !(kernel == "windows") then mapFeatures features ([ ] @@ -2275,8 +2284,8 @@ rec { }; clap_2_31_2_features = f: updateFeatures f (rec { ansi_term_0_11_0.default = true; - atty_0_2_9.default = true; - bitflags_1_0_1.default = true; + atty_0_2_10.default = true; + bitflags_1_0_3.default = true; clap_2_31_2.ansi_term = (f.clap_2_31_2.ansi_term or false) || (f.clap_2_31_2.color or false) || @@ -2326,9 +2335,9 @@ rec { (f.clap_2_31_2.wrap_help or false); unicode_width_0_1_4.default = true; vec_map_0_8_0.default = true; - }) [ atty_0_2_9_features bitflags_1_0_1_features strsim_0_7_0_features textwrap_0_9_0_features unicode_width_0_1_4_features vec_map_0_8_0_features ansi_term_0_11_0_features ]; + }) [ atty_0_2_10_features bitflags_1_0_3_features strsim_0_7_0_features textwrap_0_9_0_features unicode_width_0_1_4_features vec_map_0_8_0_features ansi_term_0_11_0_features ]; comrak_0_2_9 = { features?(comrak_0_2_9_features {}) }: comrak_0_2_9_ { - dependencies = mapFeatures features ([ entities_1_0_1 lazy_static_1_0_0 pest_1_0_6 pest_derive_1_0_7 regex_0_2_10 twoway_0_1_8 typed_arena_1_3_0 unicode_categories_0_1_1 ] + dependencies = mapFeatures features ([ entities_1_0_1 lazy_static_1_0_0 pest_1_0_6 pest_derive_1_0_7 regex_0_2_11 twoway_0_1_8 typed_arena_1_3_0 unicode_categories_0_1_1 ] ++ (if features.comrak_0_2_9.clap or false then [ clap_2_31_2 ] else [])); features = mkFeatures (features.comrak_0_2_9 or {}); }; @@ -2343,18 +2352,18 @@ rec { lazy_static_1_0_0.default = true; pest_1_0_6.default = true; pest_derive_1_0_7.default = true; - regex_0_2_10.default = true; + regex_0_2_11.default = true; twoway_0_1_8.default = true; typed_arena_1_3_0.default = true; unicode_categories_0_1_1.default = true; - }) [ clap_2_31_2_features entities_1_0_1_features lazy_static_1_0_0_features pest_1_0_6_features pest_derive_1_0_7_features regex_0_2_10_features twoway_0_1_8_features typed_arena_1_3_0_features unicode_categories_0_1_1_features ]; + }) [ clap_2_31_2_features entities_1_0_1_features lazy_static_1_0_0_features pest_1_0_6_features pest_derive_1_0_7_features regex_0_2_11_features twoway_0_1_8_features typed_arena_1_3_0_features unicode_categories_0_1_1_features ]; converse_0_1_0 = { features?(converse_0_1_0_features {}) }: converse_0_1_0_ { - dependencies = mapFeatures features ([ actix_0_5_6 actix_web_0_5_4 chrono_0_4_2 comrak_0_2_9 diesel_1_2_2 env_logger_0_5_9 failure_0_1_1 futures_0_1_21 hyper_0_11_25 log_0_4_1 md5_0_3_7 r2d2_0_8_2 rand_0_4_2 reqwest_0_8_5 serde_1_0_43 serde_derive_1_0_43 serde_json_1_0_16 tera_0_11_6 tokio_0_1_5 tokio_timer_0_2_1 url_1_7_0 url_serde_0_2_0 ]); + dependencies = mapFeatures features ([ actix_0_5_6 actix_web_0_5_6 chrono_0_4_2 comrak_0_2_9 diesel_1_2_2 env_logger_0_5_9 failure_0_1_1 futures_0_1_21 hyper_0_11_25 log_0_4_1 md5_0_3_7 r2d2_0_8_2 rand_0_4_2 reqwest_0_8_5 serde_1_0_43 serde_derive_1_0_43 serde_json_1_0_16 tera_0_11_7 tokio_0_1_5 tokio_timer_0_2_1 url_1_7_0 url_serde_0_2_0 ]); buildDependencies = mapFeatures features ([ pulldown_cmark_0_1_2 ]); }; converse_0_1_0_features = f: updateFeatures f (rec { actix_0_5_6.default = true; - actix_web_0_5_4.default = true; + actix_web_0_5_6.default = true; chrono_0_4_2.default = true; chrono_0_4_2.serde = true; comrak_0_2_9.default = true; @@ -2376,12 +2385,12 @@ rec { serde_1_0_43.default = true; serde_derive_1_0_43.default = true; serde_json_1_0_16.default = true; - tera_0_11_6.default = true; + tera_0_11_7.default = true; tokio_0_1_5.default = true; tokio_timer_0_2_1.default = true; url_1_7_0.default = true; url_serde_0_2_0.default = true; - }) [ actix_0_5_6_features actix_web_0_5_4_features chrono_0_4_2_features comrak_0_2_9_features diesel_1_2_2_features env_logger_0_5_9_features failure_0_1_1_features futures_0_1_21_features hyper_0_11_25_features log_0_4_1_features md5_0_3_7_features r2d2_0_8_2_features rand_0_4_2_features reqwest_0_8_5_features serde_1_0_43_features serde_derive_1_0_43_features serde_json_1_0_16_features tera_0_11_6_features tokio_0_1_5_features tokio_timer_0_2_1_features url_1_7_0_features url_serde_0_2_0_features pulldown_cmark_0_1_2_features ]; + }) [ actix_0_5_6_features actix_web_0_5_6_features chrono_0_4_2_features comrak_0_2_9_features diesel_1_2_2_features env_logger_0_5_9_features failure_0_1_1_features futures_0_1_21_features hyper_0_11_25_features log_0_4_1_features md5_0_3_7_features r2d2_0_8_2_features rand_0_4_2_features reqwest_0_8_5_features serde_1_0_43_features serde_derive_1_0_43_features serde_json_1_0_16_features tera_0_11_7_features tokio_0_1_5_features tokio_timer_0_2_1_features url_1_7_0_features url_serde_0_2_0_features pulldown_cmark_0_1_2_features ]; cookie_0_10_1 = { features?(cookie_0_10_1_features {}) }: cookie_0_10_1_ { dependencies = mapFeatures features ([ time_0_1_39 ] ++ (if features.cookie_0_10_1.base64 or false then [ base64_0_6_0 ] else []) @@ -2423,17 +2432,17 @@ rec { core_foundation_sys_0_2_3.default = (f.core_foundation_sys_0_2_3.default or true); libc_0_2_40.default = true; }) [ libc_0_2_40_features ]; - crc_1_7_0 = { features?(crc_1_7_0_features {}) }: crc_1_7_0_ { + crc_1_8_1 = { features?(crc_1_8_1_features {}) }: crc_1_8_1_ { buildDependencies = mapFeatures features ([ build_const_0_2_1 ]); - features = mkFeatures (features.crc_1_7_0 or {}); + features = mkFeatures (features.crc_1_8_1 or {}); }; - crc_1_7_0_features = f: updateFeatures f (rec { + crc_1_8_1_features = f: updateFeatures f (rec { build_const_0_2_1.default = true; - crc_1_7_0.default = (f.crc_1_7_0.default or true); - crc_1_7_0.std = - (f.crc_1_7_0.std or false) || - (f.crc_1_7_0.default or false) || - (crc_1_7_0.default or false); + crc_1_8_1.default = (f.crc_1_8_1.default or true); + crc_1_8_1.std = + (f.crc_1_8_1.std or false) || + (f.crc_1_8_1.default or false) || + (crc_1_8_1.default or false); }) [ build_const_0_2_1_features ]; crossbeam_channel_0_1_2 = { features?(crossbeam_channel_0_1_2_features {}) }: crossbeam_channel_0_1_2_ { dependencies = mapFeatures features ([ crossbeam_epoch_0_2_0 crossbeam_utils_0_2_2 parking_lot_0_4_8 ]); @@ -2587,14 +2596,14 @@ rec { }) [ winapi_0_2_8_features winapi_build_0_1_1_features ]; diesel_1_2_2 = { features?(diesel_1_2_2_features {}) }: diesel_1_2_2_ { dependencies = mapFeatures features ([ byteorder_1_2_2 diesel_derives_1_2_0 ] - ++ (if features.diesel_1_2_2.bitflags or false then [ bitflags_1_0_1 ] else []) + ++ (if features.diesel_1_2_2.bitflags or false then [ bitflags_1_0_3 ] else []) ++ (if features.diesel_1_2_2.chrono or false then [ chrono_0_4_2 ] else []) ++ (if features.diesel_1_2_2.pq-sys or false then [ pq_sys_0_4_4 ] else []) ++ (if features.diesel_1_2_2.r2d2 or false then [ r2d2_0_8_2 ] else [])); features = mkFeatures (features.diesel_1_2_2 or {}); }; diesel_1_2_2_features = f: updateFeatures f (rec { - bitflags_1_0_1.default = true; + bitflags_1_0_3.default = true; byteorder_1_2_2.default = true; chrono_0_4_2.default = true; diesel_1_2_2."128-column-tables" = @@ -2723,7 +2732,7 @@ rec { (f.diesel_1_2_2.sqlite or false); pq_sys_0_4_4.default = true; r2d2_0_8_2.default = true; - }) [ bitflags_1_0_1_features byteorder_1_2_2_features chrono_0_4_2_features diesel_derives_1_2_0_features pq_sys_0_4_4_features r2d2_0_8_2_features ]; + }) [ bitflags_1_0_3_features byteorder_1_2_2_features chrono_0_4_2_features diesel_derives_1_2_0_features pq_sys_0_4_4_features r2d2_0_8_2_features ]; diesel_derives_1_2_0 = { features?(diesel_derives_1_2_0_features {}) }: diesel_derives_1_2_0_ { dependencies = mapFeatures features ([ proc_macro2_0_2_3 quote_0_4_2 syn_0_12_15 ]); features = mkFeatures (features.diesel_derives_1_2_0 or {}); @@ -2815,12 +2824,12 @@ rec { entities_1_0_1.default = (f.entities_1_0_1.default or true); }) []; env_logger_0_5_9 = { features?(env_logger_0_5_9_features {}) }: env_logger_0_5_9_ { - dependencies = mapFeatures features ([ atty_0_2_9 humantime_1_1_1 log_0_4_1 termcolor_0_3_6 ] - ++ (if features.env_logger_0_5_9.regex or false then [ regex_0_2_10 ] else [])); + dependencies = mapFeatures features ([ atty_0_2_10 humantime_1_1_1 log_0_4_1 termcolor_0_3_6 ] + ++ (if features.env_logger_0_5_9.regex or false then [ regex_0_2_11 ] else [])); features = mkFeatures (features.env_logger_0_5_9 or {}); }; env_logger_0_5_9_features = f: updateFeatures f (rec { - atty_0_2_9.default = true; + atty_0_2_10.default = true; env_logger_0_5_9.default = (f.env_logger_0_5_9.default or true); env_logger_0_5_9.regex = (f.env_logger_0_5_9.regex or false) || @@ -2829,9 +2838,9 @@ rec { humantime_1_1_1.default = true; log_0_4_1.default = true; log_0_4_1.std = true; - regex_0_2_10.default = true; + regex_0_2_11.default = true; termcolor_0_3_6.default = true; - }) [ atty_0_2_9_features humantime_1_1_1_features log_0_4_1_features regex_0_2_10_features termcolor_0_3_6_features ]; + }) [ atty_0_2_10_features humantime_1_1_1_features log_0_4_1_features regex_0_2_11_features termcolor_0_3_6_features ]; error_chain_0_1_12 = { features?(error_chain_0_1_12_features {}) }: error_chain_0_1_12_ { dependencies = mapFeatures features ([ backtrace_0_2_3 ]); }; @@ -2960,13 +2969,13 @@ rec { foreign_types_shared_0_1_1.default = (f.foreign_types_shared_0_1_1.default or true); }) []; fuchsia_zircon_0_3_3 = { features?(fuchsia_zircon_0_3_3_features {}) }: fuchsia_zircon_0_3_3_ { - dependencies = mapFeatures features ([ bitflags_1_0_1 fuchsia_zircon_sys_0_3_3 ]); + dependencies = mapFeatures features ([ bitflags_1_0_3 fuchsia_zircon_sys_0_3_3 ]); }; fuchsia_zircon_0_3_3_features = f: updateFeatures f (rec { - bitflags_1_0_1.default = true; + bitflags_1_0_3.default = true; fuchsia_zircon_0_3_3.default = (f.fuchsia_zircon_0_3_3.default or true); fuchsia_zircon_sys_0_3_3.default = true; - }) [ bitflags_1_0_1_features fuchsia_zircon_sys_0_3_3_features ]; + }) [ bitflags_1_0_3_features fuchsia_zircon_sys_0_3_3_features ]; fuchsia_zircon_sys_0_3_3 = { features?(fuchsia_zircon_sys_0_3_3_features {}) }: fuchsia_zircon_sys_0_3_3_ {}; fuchsia_zircon_sys_0_3_3_features = f: updateFeatures f (rec { fuchsia_zircon_sys_0_3_3.default = (f.fuchsia_zircon_sys_0_3_3.default or true); @@ -3022,23 +3031,23 @@ rec { glob_0_2_11_features = f: updateFeatures f (rec { glob_0_2_11.default = (f.glob_0_2_11.default or true); }) []; - h2_0_1_5 = { features?(h2_0_1_5_features {}) }: h2_0_1_5_ { - dependencies = mapFeatures features ([ byteorder_1_2_2 bytes_0_4_6 fnv_1_0_6 futures_0_1_21 http_0_1_5 indexmap_1_0_1 log_0_4_1 slab_0_4_0 string_0_1_0 tokio_io_0_1_6 ]); - features = mkFeatures (features.h2_0_1_5 or {}); + h2_0_1_6 = { features?(h2_0_1_6_features {}) }: h2_0_1_6_ { + dependencies = mapFeatures features ([ byteorder_1_2_2 bytes_0_4_7 fnv_1_0_6 futures_0_1_21 http_0_1_5 indexmap_1_0_1 log_0_4_1 slab_0_4_0 string_0_1_0 tokio_io_0_1_6 ]); + features = mkFeatures (features.h2_0_1_6 or {}); }; - h2_0_1_5_features = f: updateFeatures f (rec { + h2_0_1_6_features = f: updateFeatures f (rec { byteorder_1_2_2.default = true; - bytes_0_4_6.default = true; + bytes_0_4_7.default = true; fnv_1_0_6.default = true; futures_0_1_21.default = true; - h2_0_1_5.default = (f.h2_0_1_5.default or true); + h2_0_1_6.default = (f.h2_0_1_6.default or true); http_0_1_5.default = true; indexmap_1_0_1.default = true; log_0_4_1.default = true; slab_0_4_0.default = true; string_0_1_0.default = true; tokio_io_0_1_6.default = true; - }) [ byteorder_1_2_2_features bytes_0_4_6_features fnv_1_0_6_features futures_0_1_21_features http_0_1_5_features indexmap_1_0_1_features log_0_4_1_features slab_0_4_0_features string_0_1_0_features tokio_io_0_1_6_features ]; + }) [ byteorder_1_2_2_features bytes_0_4_7_features fnv_1_0_6_features futures_0_1_21_features http_0_1_5_features indexmap_1_0_1_features log_0_4_1_features slab_0_4_0_features string_0_1_0_features tokio_io_0_1_6_features ]; hostname_0_1_4 = { features?(hostname_0_1_4_features {}) }: hostname_0_1_4_ { dependencies = (if (kernel == "linux" || kernel == "darwin") then mapFeatures features ([ libc_0_2_40 ]) else []) ++ (if kernel == "windows" then mapFeatures features ([ winutil_0_1_1 ]) else []); @@ -3050,13 +3059,13 @@ rec { winutil_0_1_1.default = true; }) [ libc_0_2_40_features winutil_0_1_1_features ]; http_0_1_5 = { features?(http_0_1_5_features {}) }: http_0_1_5_ { - dependencies = mapFeatures features ([ bytes_0_4_6 fnv_1_0_6 ]); + dependencies = mapFeatures features ([ bytes_0_4_7 fnv_1_0_6 ]); }; http_0_1_5_features = f: updateFeatures f (rec { - bytes_0_4_6.default = true; + bytes_0_4_7.default = true; fnv_1_0_6.default = true; http_0_1_5.default = (f.http_0_1_5.default or true); - }) [ bytes_0_4_6_features fnv_1_0_6_features ]; + }) [ bytes_0_4_7_features fnv_1_0_6_features ]; http_range_0_1_1 = { features?(http_range_0_1_1_features {}) }: http_range_0_1_1_ {}; http_range_0_1_1_features = f: updateFeatures f (rec { http_range_0_1_1.default = (f.http_range_0_1_1.default or true); @@ -3083,13 +3092,13 @@ rec { quick_error_1_2_1.default = true; }) [ quick_error_1_2_1_features ]; hyper_0_11_25 = { features?(hyper_0_11_25_features {}) }: hyper_0_11_25_ { - dependencies = mapFeatures features ([ base64_0_9_1 bytes_0_4_6 futures_0_1_21 futures_cpupool_0_1_8 httparse_1_2_4 iovec_0_1_2 language_tags_0_2_2 log_0_4_1 mime_0_3_5 percent_encoding_1_0_1 relay_0_1_1 time_0_1_39 tokio_core_0_1_17 tokio_io_0_1_6 tokio_service_0_1_0 unicase_2_1_0 ] + dependencies = mapFeatures features ([ base64_0_9_1 bytes_0_4_7 futures_0_1_21 futures_cpupool_0_1_8 httparse_1_2_4 iovec_0_1_2 language_tags_0_2_2 log_0_4_1 mime_0_3_5 percent_encoding_1_0_1 relay_0_1_1 time_0_1_39 tokio_core_0_1_17 tokio_io_0_1_6 tokio_service_0_1_0 unicase_2_1_0 ] ++ (if features.hyper_0_11_25.tokio-proto or false then [ tokio_proto_0_1_1 ] else [])); features = mkFeatures (features.hyper_0_11_25 or {}); }; hyper_0_11_25_features = f: updateFeatures f (rec { base64_0_9_1.default = true; - bytes_0_4_6.default = true; + bytes_0_4_7.default = true; futures_0_1_21.default = true; futures_cpupool_0_1_8.default = true; httparse_1_2_4.default = true; @@ -3118,7 +3127,7 @@ rec { tokio_proto_0_1_1.default = true; tokio_service_0_1_0.default = true; unicase_2_1_0.default = true; - }) [ base64_0_9_1_features bytes_0_4_6_features futures_0_1_21_features futures_cpupool_0_1_8_features httparse_1_2_4_features iovec_0_1_2_features language_tags_0_2_2_features log_0_4_1_features mime_0_3_5_features percent_encoding_1_0_1_features relay_0_1_1_features time_0_1_39_features tokio_core_0_1_17_features tokio_io_0_1_6_features tokio_proto_0_1_1_features tokio_service_0_1_0_features unicase_2_1_0_features ]; + }) [ base64_0_9_1_features bytes_0_4_7_features futures_0_1_21_features futures_cpupool_0_1_8_features httparse_1_2_4_features iovec_0_1_2_features language_tags_0_2_2_features log_0_4_1_features mime_0_3_5_features percent_encoding_1_0_1_features relay_0_1_1_features time_0_1_39_features tokio_core_0_1_17_features tokio_io_0_1_6_features tokio_proto_0_1_1_features tokio_service_0_1_0_features unicase_2_1_0_features ]; hyper_tls_0_1_3 = { features?(hyper_tls_0_1_3_features {}) }: hyper_tls_0_1_3_ { dependencies = mapFeatures features ([ futures_0_1_21 hyper_0_11_25 native_tls_0_1_5 tokio_core_0_1_17 tokio_io_0_1_6 tokio_service_0_1_0 tokio_tls_0_1_4 ]); }; @@ -3276,14 +3285,14 @@ rec { (libc_0_2_40.default or false); }) []; libflate_0_1_14 = { features?(libflate_0_1_14_features {}) }: libflate_0_1_14_ { - dependencies = mapFeatures features ([ adler32_1_0_2 byteorder_1_2_2 crc_1_7_0 ]); + dependencies = mapFeatures features ([ adler32_1_0_2 byteorder_1_2_2 crc_1_8_1 ]); }; libflate_0_1_14_features = f: updateFeatures f (rec { adler32_1_0_2.default = true; byteorder_1_2_2.default = true; - crc_1_7_0.default = true; + crc_1_8_1.default = true; libflate_0_1_14.default = (f.libflate_0_1_14.default or true); - }) [ adler32_1_0_2_features byteorder_1_2_2_features crc_1_7_0_features ]; + }) [ adler32_1_0_2_features byteorder_1_2_2_features crc_1_8_1_features ]; linked_hash_map_0_4_2 = { features?(linked_hash_map_0_4_2_features {}) }: linked_hash_map_0_4_2_ { dependencies = mapFeatures features ([]); features = mkFeatures (features.linked_hash_map_0_4_2 or {}); @@ -3444,27 +3453,27 @@ rec { unicase_2_1_0.default = true; }) [ unicase_2_1_0_features ]; mime_guess_2_0_0_alpha_4 = { features?(mime_guess_2_0_0_alpha_4_features {}) }: mime_guess_2_0_0_alpha_4_ { - dependencies = mapFeatures features ([ mime_0_3_5 phf_0_7_21 unicase_1_4_2 ]); - buildDependencies = mapFeatures features ([ phf_codegen_0_7_21 unicase_1_4_2 ]); + dependencies = mapFeatures features ([ mime_0_3_5 phf_0_7_22 unicase_1_4_2 ]); + buildDependencies = mapFeatures features ([ phf_codegen_0_7_22 unicase_1_4_2 ]); features = mkFeatures (features.mime_guess_2_0_0_alpha_4 or {}); }; mime_guess_2_0_0_alpha_4_features = f: updateFeatures f (rec { mime_0_3_5.default = true; mime_guess_2_0_0_alpha_4.default = (f.mime_guess_2_0_0_alpha_4.default or true); - phf_0_7_21.default = true; - phf_0_7_21.unicase = true; - phf_codegen_0_7_21.default = true; + phf_0_7_22.default = true; + phf_0_7_22.unicase = true; + phf_codegen_0_7_22.default = true; unicase_1_4_2.default = true; - }) [ mime_0_3_5_features phf_0_7_21_features unicase_1_4_2_features phf_codegen_0_7_21_features unicase_1_4_2_features ]; + }) [ mime_0_3_5_features phf_0_7_22_features unicase_1_4_2_features phf_codegen_0_7_22_features unicase_1_4_2_features ]; miniz_sys_0_1_10 = { features?(miniz_sys_0_1_10_features {}) }: miniz_sys_0_1_10_ { dependencies = mapFeatures features ([ libc_0_2_40 ]); - buildDependencies = mapFeatures features ([ cc_1_0_10 ]); + buildDependencies = mapFeatures features ([ cc_1_0_15 ]); }; miniz_sys_0_1_10_features = f: updateFeatures f (rec { - cc_1_0_10.default = true; + cc_1_0_15.default = true; libc_0_2_40.default = true; miniz_sys_0_1_10.default = (f.miniz_sys_0_1_10.default or true); - }) [ libc_0_2_40_features cc_1_0_10_features ]; + }) [ libc_0_2_40_features cc_1_0_15_features ]; mio_0_6_14 = { features?(mio_0_6_14_features {}) }: mio_0_6_14_ { dependencies = mapFeatures features ([ iovec_0_1_2 lazycell_0_6_0 log_0_4_1 net2_0_2_32 slab_0_4_0 ]) ++ (if kernel == "fuchsia" then mapFeatures features ([ fuchsia_zircon_0_3_3 fuchsia_zircon_sys_0_3_3 ]) else []) @@ -3595,7 +3604,7 @@ rec { num_cpus_1_8_0.default = (f.num_cpus_1_8_0.default or true); }) [ libc_0_2_40_features ]; openssl_0_9_24 = { features?(openssl_0_9_24_features {}) }: openssl_0_9_24_ { - dependencies = mapFeatures features ([ bitflags_0_9_1 foreign_types_0_3_2 lazy_static_1_0_0 libc_0_2_40 openssl_sys_0_9_28 ]); + dependencies = mapFeatures features ([ bitflags_0_9_1 foreign_types_0_3_2 lazy_static_1_0_0 libc_0_2_40 openssl_sys_0_9_30 ]); features = mkFeatures (features.openssl_0_9_24 or {}); }; openssl_0_9_24_features = f: updateFeatures f (rec { @@ -3604,19 +3613,19 @@ rec { lazy_static_1_0_0.default = true; libc_0_2_40.default = true; openssl_0_9_24.default = (f.openssl_0_9_24.default or true); - openssl_sys_0_9_28.default = true; - }) [ bitflags_0_9_1_features foreign_types_0_3_2_features lazy_static_1_0_0_features libc_0_2_40_features openssl_sys_0_9_28_features ]; - openssl_sys_0_9_28 = { features?(openssl_sys_0_9_28_features {}) }: openssl_sys_0_9_28_ { + openssl_sys_0_9_30.default = true; + }) [ bitflags_0_9_1_features foreign_types_0_3_2_features lazy_static_1_0_0_features libc_0_2_40_features openssl_sys_0_9_30_features ]; + openssl_sys_0_9_30 = { features?(openssl_sys_0_9_30_features {}) }: openssl_sys_0_9_30_ { dependencies = mapFeatures features ([ libc_0_2_40 ]) ++ (if abi == "msvc" then mapFeatures features ([]) else []); - buildDependencies = mapFeatures features ([ cc_1_0_10 pkg_config_0_3_9 ]); + buildDependencies = mapFeatures features ([ cc_1_0_15 pkg_config_0_3_11 ]); }; - openssl_sys_0_9_28_features = f: updateFeatures f (rec { - cc_1_0_10.default = true; + openssl_sys_0_9_30_features = f: updateFeatures f (rec { + cc_1_0_15.default = true; libc_0_2_40.default = true; - openssl_sys_0_9_28.default = (f.openssl_sys_0_9_28.default or true); - pkg_config_0_3_9.default = true; - }) [ libc_0_2_40_features cc_1_0_10_features pkg_config_0_3_9_features ]; + openssl_sys_0_9_30.default = (f.openssl_sys_0_9_30.default or true); + pkg_config_0_3_11.default = true; + }) [ libc_0_2_40_features cc_1_0_15_features pkg_config_0_3_11_features ]; owning_ref_0_3_3 = { features?(owning_ref_0_3_3_features {}) }: owning_ref_0_3_3_ { dependencies = mapFeatures features ([ stable_deref_trait_1_0_0 ]); }; @@ -3625,7 +3634,7 @@ rec { stable_deref_trait_1_0_0.default = true; }) [ stable_deref_trait_1_0_0_features ]; parking_lot_0_4_8 = { features?(parking_lot_0_4_8_features {}) }: parking_lot_0_4_8_ { - dependencies = mapFeatures features ([ parking_lot_core_0_2_13 ] + dependencies = mapFeatures features ([ parking_lot_core_0_2_14 ] ++ (if features.parking_lot_0_4_8.owning_ref or false then [ owning_ref_0_3_3 ] else [])); features = mkFeatures (features.parking_lot_0_4_8 or {}); }; @@ -3636,49 +3645,48 @@ rec { (f.parking_lot_0_4_8.owning_ref or false) || (f.parking_lot_0_4_8.default or false) || (parking_lot_0_4_8.default or false); - parking_lot_core_0_2_13.deadlock_detection = - (f.parking_lot_core_0_2_13.deadlock_detection or false) || + parking_lot_core_0_2_14.deadlock_detection = + (f.parking_lot_core_0_2_14.deadlock_detection or false) || (parking_lot_0_4_8.deadlock_detection or false) || (f.parking_lot_0_4_8.deadlock_detection or false); - parking_lot_core_0_2_13.default = true; - parking_lot_core_0_2_13.nightly = - (f.parking_lot_core_0_2_13.nightly or false) || + parking_lot_core_0_2_14.default = true; + parking_lot_core_0_2_14.nightly = + (f.parking_lot_core_0_2_14.nightly or false) || (parking_lot_0_4_8.nightly or false) || (f.parking_lot_0_4_8.nightly or false); - }) [ owning_ref_0_3_3_features parking_lot_core_0_2_13_features ]; - parking_lot_core_0_2_13 = { features?(parking_lot_core_0_2_13_features {}) }: parking_lot_core_0_2_13_ { - dependencies = mapFeatures features ([ rand_0_4_2 smallvec_0_6_0 ]) + }) [ owning_ref_0_3_3_features parking_lot_core_0_2_14_features ]; + parking_lot_core_0_2_14 = { features?(parking_lot_core_0_2_14_features {}) }: parking_lot_core_0_2_14_ { + dependencies = mapFeatures features ([ rand_0_4_2 smallvec_0_6_1 ]) ++ (if (kernel == "linux" || kernel == "darwin") then mapFeatures features ([ libc_0_2_40 ]) else []) ++ (if kernel == "windows" then mapFeatures features ([ winapi_0_3_4 ]) else []); - features = mkFeatures (features.parking_lot_core_0_2_13 or {}); + features = mkFeatures (features.parking_lot_core_0_2_14 or {}); }; - parking_lot_core_0_2_13_features = f: updateFeatures f (rec { + parking_lot_core_0_2_14_features = f: updateFeatures f (rec { libc_0_2_40.default = true; - parking_lot_core_0_2_13.backtrace = - (f.parking_lot_core_0_2_13.backtrace or false) || - (f.parking_lot_core_0_2_13.deadlock_detection or false) || - (parking_lot_core_0_2_13.deadlock_detection or false); - parking_lot_core_0_2_13.default = (f.parking_lot_core_0_2_13.default or true); - parking_lot_core_0_2_13.petgraph = - (f.parking_lot_core_0_2_13.petgraph or false) || - (f.parking_lot_core_0_2_13.deadlock_detection or false) || - (parking_lot_core_0_2_13.deadlock_detection or false); - parking_lot_core_0_2_13.thread-id = - (f.parking_lot_core_0_2_13.thread-id or false) || - (f.parking_lot_core_0_2_13.deadlock_detection or false) || - (parking_lot_core_0_2_13.deadlock_detection or false); + parking_lot_core_0_2_14.backtrace = + (f.parking_lot_core_0_2_14.backtrace or false) || + (f.parking_lot_core_0_2_14.deadlock_detection or false) || + (parking_lot_core_0_2_14.deadlock_detection or false); + parking_lot_core_0_2_14.default = (f.parking_lot_core_0_2_14.default or true); + parking_lot_core_0_2_14.petgraph = + (f.parking_lot_core_0_2_14.petgraph or false) || + (f.parking_lot_core_0_2_14.deadlock_detection or false) || + (parking_lot_core_0_2_14.deadlock_detection or false); + parking_lot_core_0_2_14.thread-id = + (f.parking_lot_core_0_2_14.thread-id or false) || + (f.parking_lot_core_0_2_14.deadlock_detection or false) || + (parking_lot_core_0_2_14.deadlock_detection or false); rand_0_4_2.default = true; - smallvec_0_6_0.default = true; + smallvec_0_6_1.default = true; winapi_0_3_4.default = true; winapi_0_3_4.errhandlingapi = true; winapi_0_3_4.handleapi = true; winapi_0_3_4.minwindef = true; winapi_0_3_4.ntstatus = true; - winapi_0_3_4.synchapi = true; winapi_0_3_4.winbase = true; winapi_0_3_4.winerror = true; winapi_0_3_4.winnt = true; - }) [ rand_0_4_2_features smallvec_0_6_0_features libc_0_2_40_features winapi_0_3_4_features ]; + }) [ rand_0_4_2_features smallvec_0_6_1_features libc_0_2_40_features winapi_0_3_4_features ]; percent_encoding_1_0_1 = { features?(percent_encoding_1_0_1_features {}) }: percent_encoding_1_0_1_ {}; percent_encoding_1_0_1_features = f: updateFeatures f (rec { percent_encoding_1_0_1.default = (f.percent_encoding_1_0_1.default or true); @@ -3696,51 +3704,51 @@ rec { quote_0_3_15.default = true; syn_0_11_11.default = true; }) [ pest_1_0_6_features quote_0_3_15_features syn_0_11_11_features ]; - phf_0_7_21 = { features?(phf_0_7_21_features {}) }: phf_0_7_21_ { - dependencies = mapFeatures features ([ phf_shared_0_7_21 ]); - features = mkFeatures (features.phf_0_7_21 or {}); + phf_0_7_22 = { features?(phf_0_7_22_features {}) }: phf_0_7_22_ { + dependencies = mapFeatures features ([ phf_shared_0_7_22 ]); + features = mkFeatures (features.phf_0_7_22 or {}); }; - phf_0_7_21_features = f: updateFeatures f (rec { - phf_0_7_21.default = (f.phf_0_7_21.default or true); - phf_shared_0_7_21.core = - (f.phf_shared_0_7_21.core or false) || - (phf_0_7_21.core or false) || - (f.phf_0_7_21.core or false); - phf_shared_0_7_21.default = true; - phf_shared_0_7_21.unicase = - (f.phf_shared_0_7_21.unicase or false) || - (phf_0_7_21.unicase or false) || - (f.phf_0_7_21.unicase or false); - }) [ phf_shared_0_7_21_features ]; - phf_codegen_0_7_21 = { features?(phf_codegen_0_7_21_features {}) }: phf_codegen_0_7_21_ { - dependencies = mapFeatures features ([ phf_generator_0_7_21 phf_shared_0_7_21 ]); + phf_0_7_22_features = f: updateFeatures f (rec { + phf_0_7_22.default = (f.phf_0_7_22.default or true); + phf_shared_0_7_22.core = + (f.phf_shared_0_7_22.core or false) || + (phf_0_7_22.core or false) || + (f.phf_0_7_22.core or false); + phf_shared_0_7_22.default = true; + phf_shared_0_7_22.unicase = + (f.phf_shared_0_7_22.unicase or false) || + (phf_0_7_22.unicase or false) || + (f.phf_0_7_22.unicase or false); + }) [ phf_shared_0_7_22_features ]; + phf_codegen_0_7_22 = { features?(phf_codegen_0_7_22_features {}) }: phf_codegen_0_7_22_ { + dependencies = mapFeatures features ([ phf_generator_0_7_22 phf_shared_0_7_22 ]); }; - phf_codegen_0_7_21_features = f: updateFeatures f (rec { - phf_codegen_0_7_21.default = (f.phf_codegen_0_7_21.default or true); - phf_generator_0_7_21.default = true; - phf_shared_0_7_21.default = true; - }) [ phf_generator_0_7_21_features phf_shared_0_7_21_features ]; - phf_generator_0_7_21 = { features?(phf_generator_0_7_21_features {}) }: phf_generator_0_7_21_ { - dependencies = mapFeatures features ([ phf_shared_0_7_21 rand_0_3_22 ]); + phf_codegen_0_7_22_features = f: updateFeatures f (rec { + phf_codegen_0_7_22.default = (f.phf_codegen_0_7_22.default or true); + phf_generator_0_7_22.default = true; + phf_shared_0_7_22.default = true; + }) [ phf_generator_0_7_22_features phf_shared_0_7_22_features ]; + phf_generator_0_7_22 = { features?(phf_generator_0_7_22_features {}) }: phf_generator_0_7_22_ { + dependencies = mapFeatures features ([ phf_shared_0_7_22 rand_0_4_2 ]); }; - phf_generator_0_7_21_features = f: updateFeatures f (rec { - phf_generator_0_7_21.default = (f.phf_generator_0_7_21.default or true); - phf_shared_0_7_21.default = true; - rand_0_3_22.default = true; - }) [ phf_shared_0_7_21_features rand_0_3_22_features ]; - phf_shared_0_7_21 = { features?(phf_shared_0_7_21_features {}) }: phf_shared_0_7_21_ { + phf_generator_0_7_22_features = f: updateFeatures f (rec { + phf_generator_0_7_22.default = (f.phf_generator_0_7_22.default or true); + phf_shared_0_7_22.default = true; + rand_0_4_2.default = true; + }) [ phf_shared_0_7_22_features rand_0_4_2_features ]; + phf_shared_0_7_22 = { features?(phf_shared_0_7_22_features {}) }: phf_shared_0_7_22_ { dependencies = mapFeatures features ([ siphasher_0_2_2 ] - ++ (if features.phf_shared_0_7_21.unicase or false then [ unicase_1_4_2 ] else [])); - features = mkFeatures (features.phf_shared_0_7_21 or {}); + ++ (if features.phf_shared_0_7_22.unicase or false then [ unicase_1_4_2 ] else [])); + features = mkFeatures (features.phf_shared_0_7_22 or {}); }; - phf_shared_0_7_21_features = f: updateFeatures f (rec { - phf_shared_0_7_21.default = (f.phf_shared_0_7_21.default or true); + phf_shared_0_7_22_features = f: updateFeatures f (rec { + phf_shared_0_7_22.default = (f.phf_shared_0_7_22.default or true); siphasher_0_2_2.default = true; unicase_1_4_2.default = true; }) [ siphasher_0_2_2_features unicase_1_4_2_features ]; - pkg_config_0_3_9 = { features?(pkg_config_0_3_9_features {}) }: pkg_config_0_3_9_ {}; - pkg_config_0_3_9_features = f: updateFeatures f (rec { - pkg_config_0_3_9.default = (f.pkg_config_0_3_9.default or true); + pkg_config_0_3_11 = { features?(pkg_config_0_3_11_features {}) }: pkg_config_0_3_11_ {}; + pkg_config_0_3_11_features = f: updateFeatures f (rec { + pkg_config_0_3_11.default = (f.pkg_config_0_3_11.default or true); }) []; pq_sys_0_4_4 = { features?(pq_sys_0_4_4_features {}) }: pq_sys_0_4_4_ { dependencies = (if abi == "msvc" then mapFeatures features ([]) else []); @@ -3763,18 +3771,18 @@ rec { (proc_macro2_0_2_3.nightly or false); unicode_xid_0_1_0.default = true; }) [ unicode_xid_0_1_0_features ]; - proc_macro2_0_3_6 = { features?(proc_macro2_0_3_6_features {}) }: proc_macro2_0_3_6_ { + proc_macro2_0_3_8 = { features?(proc_macro2_0_3_8_features {}) }: proc_macro2_0_3_8_ { dependencies = mapFeatures features ([ unicode_xid_0_1_0 ]); - features = mkFeatures (features.proc_macro2_0_3_6 or {}); + features = mkFeatures (features.proc_macro2_0_3_8 or {}); }; - proc_macro2_0_3_6_features = f: updateFeatures f (rec { - proc_macro2_0_3_6.default = (f.proc_macro2_0_3_6.default or true); - proc_macro2_0_3_6.proc-macro = - (f.proc_macro2_0_3_6.proc-macro or false) || - (f.proc_macro2_0_3_6.default or false) || - (proc_macro2_0_3_6.default or false) || - (f.proc_macro2_0_3_6.nightly or false) || - (proc_macro2_0_3_6.nightly or false); + proc_macro2_0_3_8_features = f: updateFeatures f (rec { + proc_macro2_0_3_8.default = (f.proc_macro2_0_3_8.default or true); + proc_macro2_0_3_8.proc-macro = + (f.proc_macro2_0_3_8.proc-macro or false) || + (f.proc_macro2_0_3_8.default or false) || + (proc_macro2_0_3_8.default or false) || + (f.proc_macro2_0_3_8.nightly or false) || + (proc_macro2_0_3_8.nightly or false); unicode_xid_0_1_0.default = true; }) [ unicode_xid_0_1_0_features ]; pulldown_cmark_0_1_2 = { features?(pulldown_cmark_0_1_2_features {}) }: pulldown_cmark_0_1_2_ { @@ -3807,13 +3815,13 @@ rec { quote_0_4_2.default = (f.quote_0_4_2.default or true); }) [ proc_macro2_0_2_3_features ]; quote_0_5_2 = { features?(quote_0_5_2_features {}) }: quote_0_5_2_ { - dependencies = mapFeatures features ([ proc_macro2_0_3_6 ]); + dependencies = mapFeatures features ([ proc_macro2_0_3_8 ]); features = mkFeatures (features.quote_0_5_2 or {}); }; quote_0_5_2_features = f: updateFeatures f (rec { - proc_macro2_0_3_6.default = (f.proc_macro2_0_3_6.default or false); - proc_macro2_0_3_6.proc-macro = - (f.proc_macro2_0_3_6.proc-macro or false) || + proc_macro2_0_3_8.default = (f.proc_macro2_0_3_8.default or false); + proc_macro2_0_3_8.proc-macro = + (f.proc_macro2_0_3_8.proc-macro or false) || (quote_0_5_2.proc-macro or false) || (f.quote_0_5_2.proc-macro or false); quote_0_5_2.default = (f.quote_0_5_2.default or true); @@ -3821,7 +3829,7 @@ rec { (f.quote_0_5_2.proc-macro or false) || (f.quote_0_5_2.default or false) || (quote_0_5_2.default or false); - }) [ proc_macro2_0_3_6_features ]; + }) [ proc_macro2_0_3_8_features ]; r2d2_0_8_2 = { features?(r2d2_0_8_2_features {}) }: r2d2_0_8_2_ { dependencies = mapFeatures features ([ antidote_1_0_0 log_0_4_1 scheduled_thread_pool_0_2_0 ]); }; @@ -3904,27 +3912,27 @@ rec { redox_syscall_0_1_37.default = true; redox_termios_0_1_1.default = (f.redox_termios_0_1_1.default or true); }) [ redox_syscall_0_1_37_features ]; - regex_0_2_10 = { features?(regex_0_2_10_features {}) }: regex_0_2_10_ { - dependencies = mapFeatures features ([ aho_corasick_0_6_4 memchr_2_0_1 regex_syntax_0_5_5 thread_local_0_3_5 utf8_ranges_1_0_0 ]); - features = mkFeatures (features.regex_0_2_10 or {}); + regex_0_2_11 = { features?(regex_0_2_11_features {}) }: regex_0_2_11_ { + dependencies = mapFeatures features ([ aho_corasick_0_6_4 memchr_2_0_1 regex_syntax_0_5_6 thread_local_0_3_5 utf8_ranges_1_0_0 ]); + features = mkFeatures (features.regex_0_2_11 or {}); }; - regex_0_2_10_features = f: updateFeatures f (rec { + regex_0_2_11_features = f: updateFeatures f (rec { aho_corasick_0_6_4.default = true; memchr_2_0_1.default = true; - regex_0_2_10.default = (f.regex_0_2_10.default or true); - regex_0_2_10.pattern = - (f.regex_0_2_10.pattern or false) || - (f.regex_0_2_10.unstable or false) || - (regex_0_2_10.unstable or false); - regex_syntax_0_5_5.default = true; + regex_0_2_11.default = (f.regex_0_2_11.default or true); + regex_0_2_11.pattern = + (f.regex_0_2_11.pattern or false) || + (f.regex_0_2_11.unstable or false) || + (regex_0_2_11.unstable or false); + regex_syntax_0_5_6.default = true; thread_local_0_3_5.default = true; utf8_ranges_1_0_0.default = true; - }) [ aho_corasick_0_6_4_features memchr_2_0_1_features regex_syntax_0_5_5_features thread_local_0_3_5_features utf8_ranges_1_0_0_features ]; - regex_syntax_0_5_5 = { features?(regex_syntax_0_5_5_features {}) }: regex_syntax_0_5_5_ { + }) [ aho_corasick_0_6_4_features memchr_2_0_1_features regex_syntax_0_5_6_features thread_local_0_3_5_features utf8_ranges_1_0_0_features ]; + regex_syntax_0_5_6 = { features?(regex_syntax_0_5_6_features {}) }: regex_syntax_0_5_6_ { dependencies = mapFeatures features ([ ucd_util_0_1_1 ]); }; - regex_syntax_0_5_5_features = f: updateFeatures f (rec { - regex_syntax_0_5_5.default = (f.regex_syntax_0_5_5.default or true); + regex_syntax_0_5_6_features = f: updateFeatures f (rec { + regex_syntax_0_5_6.default = (f.regex_syntax_0_5_6.default or true); ucd_util_0_1_1.default = true; }) [ ucd_util_0_1_1_features ]; relay_0_1_1 = { features?(relay_0_1_1_features {}) }: relay_0_1_1_ { @@ -3947,11 +3955,11 @@ rec { winapi_0_3_4.winerror = true; }) [ winapi_0_3_4_features ]; reqwest_0_8_5 = { features?(reqwest_0_8_5_features {}) }: reqwest_0_8_5_ { - dependencies = mapFeatures features ([ bytes_0_4_6 encoding_rs_0_7_2 futures_0_1_21 hyper_0_11_25 hyper_tls_0_1_3 libflate_0_1_14 log_0_4_1 mime_guess_2_0_0_alpha_4 native_tls_0_1_5 serde_1_0_43 serde_json_1_0_16 serde_urlencoded_0_5_1 tokio_core_0_1_17 tokio_io_0_1_6 tokio_tls_0_1_4 url_1_7_0 uuid_0_5_1 ]); + dependencies = mapFeatures features ([ bytes_0_4_7 encoding_rs_0_7_2 futures_0_1_21 hyper_0_11_25 hyper_tls_0_1_3 libflate_0_1_14 log_0_4_1 mime_guess_2_0_0_alpha_4 native_tls_0_1_5 serde_1_0_43 serde_json_1_0_16 serde_urlencoded_0_5_1 tokio_core_0_1_17 tokio_io_0_1_6 tokio_tls_0_1_4 url_1_7_0 uuid_0_5_1 ]); features = mkFeatures (features.reqwest_0_8_5 or {}); }; reqwest_0_8_5_features = f: updateFeatures f (rec { - bytes_0_4_6.default = true; + bytes_0_4_7.default = true; encoding_rs_0_7_2.default = true; futures_0_1_21.default = true; hyper_0_11_25.default = true; @@ -3970,7 +3978,7 @@ rec { url_1_7_0.default = true; uuid_0_5_1.default = true; uuid_0_5_1.v4 = true; - }) [ bytes_0_4_6_features encoding_rs_0_7_2_features futures_0_1_21_features hyper_0_11_25_features hyper_tls_0_1_3_features libflate_0_1_14_features log_0_4_1_features mime_guess_2_0_0_alpha_4_features native_tls_0_1_5_features serde_1_0_43_features serde_json_1_0_16_features serde_urlencoded_0_5_1_features tokio_core_0_1_17_features tokio_io_0_1_6_features tokio_tls_0_1_4_features url_1_7_0_features uuid_0_5_1_features ]; + }) [ bytes_0_4_7_features encoding_rs_0_7_2_features futures_0_1_21_features hyper_0_11_25_features hyper_tls_0_1_3_features libflate_0_1_14_features log_0_4_1_features mime_guess_2_0_0_alpha_4_features native_tls_0_1_5_features serde_1_0_43_features serde_json_1_0_16_features serde_urlencoded_0_5_1_features tokio_core_0_1_17_features tokio_io_0_1_6_features tokio_tls_0_1_4_features url_1_7_0_features uuid_0_5_1_features ]; resolv_conf_0_6_0 = { features?(resolv_conf_0_6_0_features {}) }: resolv_conf_0_6_0_ { dependencies = mapFeatures features ([ quick_error_1_2_1 ] ++ (if features.resolv_conf_0_6_0.hostname or false then [ hostname_0_1_4 ] else [])); @@ -4175,28 +4183,28 @@ rec { (serde_1_0_43.alloc or false); }) []; serde_derive_1_0_43 = { features?(serde_derive_1_0_43_features {}) }: serde_derive_1_0_43_ { - dependencies = mapFeatures features ([ proc_macro2_0_3_6 quote_0_5_2 serde_derive_internals_0_23_1 syn_0_13_1 ]); + dependencies = mapFeatures features ([ proc_macro2_0_3_8 quote_0_5_2 serde_derive_internals_0_23_1 syn_0_13_4 ]); features = mkFeatures (features.serde_derive_1_0_43 or {}); }; serde_derive_1_0_43_features = f: updateFeatures f (rec { - proc_macro2_0_3_6.default = true; + proc_macro2_0_3_8.default = true; quote_0_5_2.default = true; serde_derive_1_0_43.default = (f.serde_derive_1_0_43.default or true); serde_derive_internals_0_23_1.default = (f.serde_derive_internals_0_23_1.default or false); - syn_0_13_1.default = true; - syn_0_13_1.visit = true; - }) [ proc_macro2_0_3_6_features quote_0_5_2_features serde_derive_internals_0_23_1_features syn_0_13_1_features ]; + syn_0_13_4.default = true; + syn_0_13_4.visit = true; + }) [ proc_macro2_0_3_8_features quote_0_5_2_features serde_derive_internals_0_23_1_features syn_0_13_4_features ]; serde_derive_internals_0_23_1 = { features?(serde_derive_internals_0_23_1_features {}) }: serde_derive_internals_0_23_1_ { - dependencies = mapFeatures features ([ proc_macro2_0_3_6 syn_0_13_1 ]); + dependencies = mapFeatures features ([ proc_macro2_0_3_8 syn_0_13_4 ]); }; serde_derive_internals_0_23_1_features = f: updateFeatures f (rec { - proc_macro2_0_3_6.default = true; + proc_macro2_0_3_8.default = true; serde_derive_internals_0_23_1.default = (f.serde_derive_internals_0_23_1.default or true); - syn_0_13_1.clone-impls = true; - syn_0_13_1.default = (f.syn_0_13_1.default or false); - syn_0_13_1.derive = true; - syn_0_13_1.parsing = true; - }) [ proc_macro2_0_3_6_features syn_0_13_1_features ]; + syn_0_13_4.clone-impls = true; + syn_0_13_4.default = (f.syn_0_13_4.default or false); + syn_0_13_4.derive = true; + syn_0_13_4.parsing = true; + }) [ proc_macro2_0_3_8_features syn_0_13_4_features ]; serde_json_1_0_16 = { features?(serde_json_1_0_16_features {}) }: serde_json_1_0_16_ { dependencies = mapFeatures features ([ dtoa_0_4_2 itoa_0_4_1 serde_1_0_43 ]); features = mkFeatures (features.serde_json_1_0_16 or {}); @@ -4267,16 +4275,16 @@ rec { smallvec_0_2_1_features = f: updateFeatures f (rec { smallvec_0_2_1.default = (f.smallvec_0_2_1.default or true); }) []; - smallvec_0_6_0 = { features?(smallvec_0_6_0_features {}) }: smallvec_0_6_0_ { + smallvec_0_6_1 = { features?(smallvec_0_6_1_features {}) }: smallvec_0_6_1_ { dependencies = mapFeatures features ([]); - features = mkFeatures (features.smallvec_0_6_0 or {}); + features = mkFeatures (features.smallvec_0_6_1 or {}); }; - smallvec_0_6_0_features = f: updateFeatures f (rec { - smallvec_0_6_0.default = (f.smallvec_0_6_0.default or true); - smallvec_0_6_0.std = - (f.smallvec_0_6_0.std or false) || - (f.smallvec_0_6_0.default or false) || - (smallvec_0_6_0.default or false); + smallvec_0_6_1_features = f: updateFeatures f (rec { + smallvec_0_6_1.default = (f.smallvec_0_6_1.default or true); + smallvec_0_6_1.std = + (f.smallvec_0_6_1.std or false) || + (f.smallvec_0_6_1.default or false) || + (smallvec_0_6_1.default or false); }) []; socket2_0_3_5 = { features?(socket2_0_3_5_features {}) }: socket2_0_3_5_ { dependencies = (if (kernel == "linux" || kernel == "darwin") then mapFeatures features ([ cfg_if_0_1_2 libc_0_2_40 ]) else []) @@ -4376,49 +4384,49 @@ rec { (syn_0_12_15.printing or false); unicode_xid_0_1_0.default = true; }) [ proc_macro2_0_2_3_features quote_0_4_2_features unicode_xid_0_1_0_features ]; - syn_0_13_1 = { features?(syn_0_13_1_features {}) }: syn_0_13_1_ { - dependencies = mapFeatures features ([ proc_macro2_0_3_6 unicode_xid_0_1_0 ] - ++ (if features.syn_0_13_1.quote or false then [ quote_0_5_2 ] else [])); - features = mkFeatures (features.syn_0_13_1 or {}); + syn_0_13_4 = { features?(syn_0_13_4_features {}) }: syn_0_13_4_ { + dependencies = mapFeatures features ([ proc_macro2_0_3_8 unicode_xid_0_1_0 ] + ++ (if features.syn_0_13_4.quote or false then [ quote_0_5_2 ] else [])); + features = mkFeatures (features.syn_0_13_4 or {}); }; - syn_0_13_1_features = f: updateFeatures f (rec { - proc_macro2_0_3_6.default = (f.proc_macro2_0_3_6.default or false); - proc_macro2_0_3_6.proc-macro = - (f.proc_macro2_0_3_6.proc-macro or false) || - (syn_0_13_1.proc-macro or false) || - (f.syn_0_13_1.proc-macro or false); + syn_0_13_4_features = f: updateFeatures f (rec { + proc_macro2_0_3_8.default = (f.proc_macro2_0_3_8.default or false); + proc_macro2_0_3_8.proc-macro = + (f.proc_macro2_0_3_8.proc-macro or false) || + (syn_0_13_4.proc-macro or false) || + (f.syn_0_13_4.proc-macro or false); quote_0_5_2.default = (f.quote_0_5_2.default or false); quote_0_5_2.proc-macro = (f.quote_0_5_2.proc-macro or false) || - (syn_0_13_1.proc-macro or false) || - (f.syn_0_13_1.proc-macro or false); - syn_0_13_1.clone-impls = - (f.syn_0_13_1.clone-impls or false) || - (f.syn_0_13_1.default or false) || - (syn_0_13_1.default or false); - syn_0_13_1.default = (f.syn_0_13_1.default or true); - syn_0_13_1.derive = - (f.syn_0_13_1.derive or false) || - (f.syn_0_13_1.default or false) || - (syn_0_13_1.default or false); - syn_0_13_1.parsing = - (f.syn_0_13_1.parsing or false) || - (f.syn_0_13_1.default or false) || - (syn_0_13_1.default or false); - syn_0_13_1.printing = - (f.syn_0_13_1.printing or false) || - (f.syn_0_13_1.default or false) || - (syn_0_13_1.default or false); - syn_0_13_1.proc-macro = - (f.syn_0_13_1.proc-macro or false) || - (f.syn_0_13_1.default or false) || - (syn_0_13_1.default or false); - syn_0_13_1.quote = - (f.syn_0_13_1.quote or false) || - (f.syn_0_13_1.printing or false) || - (syn_0_13_1.printing or false); + (syn_0_13_4.proc-macro or false) || + (f.syn_0_13_4.proc-macro or false); + syn_0_13_4.clone-impls = + (f.syn_0_13_4.clone-impls or false) || + (f.syn_0_13_4.default or false) || + (syn_0_13_4.default or false); + syn_0_13_4.default = (f.syn_0_13_4.default or true); + syn_0_13_4.derive = + (f.syn_0_13_4.derive or false) || + (f.syn_0_13_4.default or false) || + (syn_0_13_4.default or false); + syn_0_13_4.parsing = + (f.syn_0_13_4.parsing or false) || + (f.syn_0_13_4.default or false) || + (syn_0_13_4.default or false); + syn_0_13_4.printing = + (f.syn_0_13_4.printing or false) || + (f.syn_0_13_4.default or false) || + (syn_0_13_4.default or false); + syn_0_13_4.proc-macro = + (f.syn_0_13_4.proc-macro or false) || + (f.syn_0_13_4.default or false) || + (syn_0_13_4.default or false); + syn_0_13_4.quote = + (f.syn_0_13_4.quote or false) || + (f.syn_0_13_4.printing or false) || + (syn_0_13_4.printing or false); unicode_xid_0_1_0.default = true; - }) [ proc_macro2_0_3_6_features quote_0_5_2_features unicode_xid_0_1_0_features ]; + }) [ proc_macro2_0_3_8_features quote_0_5_2_features unicode_xid_0_1_0_features ]; synom_0_11_3 = { features?(synom_0_11_3_features {}) }: synom_0_11_3_ { dependencies = mapFeatures features ([ unicode_xid_0_0_4 ]); }; @@ -4448,10 +4456,10 @@ rec { remove_dir_all_0_5_1.default = true; tempdir_0_3_7.default = (f.tempdir_0_3_7.default or true); }) [ rand_0_4_2_features remove_dir_all_0_5_1_features ]; - tera_0_11_6 = { features?(tera_0_11_6_features {}) }: tera_0_11_6_ { - dependencies = mapFeatures features ([ chrono_0_4_2 error_chain_0_11_0 glob_0_2_11 humansize_1_1_0 lazy_static_1_0_0 pest_1_0_6 pest_derive_1_0_7 regex_0_2_10 serde_1_0_43 serde_json_1_0_16 slug_0_1_3 url_1_7_0 ]); + tera_0_11_7 = { features?(tera_0_11_7_features {}) }: tera_0_11_7_ { + dependencies = mapFeatures features ([ chrono_0_4_2 error_chain_0_11_0 glob_0_2_11 humansize_1_1_0 lazy_static_1_0_0 pest_1_0_6 pest_derive_1_0_7 regex_0_2_11 serde_1_0_43 serde_json_1_0_16 slug_0_1_3 url_1_7_0 ]); }; - tera_0_11_6_features = f: updateFeatures f (rec { + tera_0_11_7_features = f: updateFeatures f (rec { chrono_0_4_2.default = true; error_chain_0_11_0.default = true; glob_0_2_11.default = true; @@ -4459,13 +4467,13 @@ rec { lazy_static_1_0_0.default = true; pest_1_0_6.default = true; pest_derive_1_0_7.default = true; - regex_0_2_10.default = true; + regex_0_2_11.default = true; serde_1_0_43.default = true; serde_json_1_0_16.default = true; slug_0_1_3.default = true; - tera_0_11_6.default = (f.tera_0_11_6.default or true); + tera_0_11_7.default = (f.tera_0_11_7.default or true); url_1_7_0.default = true; - }) [ chrono_0_4_2_features error_chain_0_11_0_features glob_0_2_11_features humansize_1_1_0_features lazy_static_1_0_0_features pest_1_0_6_features pest_derive_1_0_7_features regex_0_2_10_features serde_1_0_43_features serde_json_1_0_16_features slug_0_1_3_features url_1_7_0_features ]; + }) [ chrono_0_4_2_features error_chain_0_11_0_features glob_0_2_11_features humansize_1_1_0_features lazy_static_1_0_0_features pest_1_0_6_features pest_derive_1_0_7_features regex_0_2_11_features serde_1_0_43_features serde_json_1_0_16_features slug_0_1_3_features url_1_7_0_features ]; termcolor_0_3_6 = { features?(termcolor_0_3_6_features {}) }: termcolor_0_3_6_ { dependencies = (if kernel == "windows" then mapFeatures features ([ wincolor_0_1_6 ]) else []); }; @@ -4557,10 +4565,10 @@ rec { (f.tokio_0_1_5.unstable-futures or false); }) [ futures_0_1_21_features mio_0_6_14_features tokio_executor_0_1_2_features tokio_io_0_1_6_features tokio_reactor_0_1_1_features tokio_tcp_0_1_0_features tokio_threadpool_0_1_2_features tokio_timer_0_2_1_features tokio_udp_0_1_0_features ]; tokio_core_0_1_17 = { features?(tokio_core_0_1_17_features {}) }: tokio_core_0_1_17_ { - dependencies = mapFeatures features ([ bytes_0_4_6 futures_0_1_21 iovec_0_1_2 log_0_4_1 mio_0_6_14 scoped_tls_0_1_1 tokio_0_1_5 tokio_executor_0_1_2 tokio_io_0_1_6 tokio_reactor_0_1_1 tokio_timer_0_2_1 ]); + dependencies = mapFeatures features ([ bytes_0_4_7 futures_0_1_21 iovec_0_1_2 log_0_4_1 mio_0_6_14 scoped_tls_0_1_1 tokio_0_1_5 tokio_executor_0_1_2 tokio_io_0_1_6 tokio_reactor_0_1_1 tokio_timer_0_2_1 ]); }; tokio_core_0_1_17_features = f: updateFeatures f (rec { - bytes_0_4_6.default = true; + bytes_0_4_7.default = true; futures_0_1_21.default = true; iovec_0_1_2.default = true; log_0_4_1.default = true; @@ -4572,7 +4580,7 @@ rec { tokio_io_0_1_6.default = true; tokio_reactor_0_1_1.default = true; tokio_timer_0_2_1.default = true; - }) [ bytes_0_4_6_features futures_0_1_21_features iovec_0_1_2_features log_0_4_1_features mio_0_6_14_features scoped_tls_0_1_1_features tokio_0_1_5_features tokio_executor_0_1_2_features tokio_io_0_1_6_features tokio_reactor_0_1_1_features tokio_timer_0_2_1_features ]; + }) [ bytes_0_4_7_features futures_0_1_21_features iovec_0_1_2_features log_0_4_1_features mio_0_6_14_features scoped_tls_0_1_1_features tokio_0_1_5_features tokio_executor_0_1_2_features tokio_io_0_1_6_features tokio_reactor_0_1_1_features tokio_timer_0_2_1_features ]; tokio_executor_0_1_2 = { features?(tokio_executor_0_1_2_features {}) }: tokio_executor_0_1_2_ { dependencies = mapFeatures features ([ futures_0_1_21 ]); features = mkFeatures (features.tokio_executor_0_1_2 or {}); @@ -4586,14 +4594,14 @@ rec { (tokio_executor_0_1_2.unstable-futures or false); }) [ futures_0_1_21_features ]; tokio_io_0_1_6 = { features?(tokio_io_0_1_6_features {}) }: tokio_io_0_1_6_ { - dependencies = mapFeatures features ([ bytes_0_4_6 futures_0_1_21 log_0_4_1 ]); + dependencies = mapFeatures features ([ bytes_0_4_7 futures_0_1_21 log_0_4_1 ]); }; tokio_io_0_1_6_features = f: updateFeatures f (rec { - bytes_0_4_6.default = true; + bytes_0_4_7.default = true; futures_0_1_21.default = true; log_0_4_1.default = true; tokio_io_0_1_6.default = (f.tokio_io_0_1_6.default or true); - }) [ bytes_0_4_6_features futures_0_1_21_features log_0_4_1_features ]; + }) [ bytes_0_4_7_features futures_0_1_21_features log_0_4_1_features ]; tokio_proto_0_1_1 = { features?(tokio_proto_0_1_1_features {}) }: tokio_proto_0_1_1_ { dependencies = mapFeatures features ([ futures_0_1_21 log_0_3_9 net2_0_2_32 rand_0_3_22 slab_0_3_0 smallvec_0_2_1 take_0_1_0 tokio_core_0_1_17 tokio_io_0_1_6 tokio_service_0_1_0 ]); }; @@ -4652,11 +4660,11 @@ rec { winapi_0_3_4.wincon = true; }) [ futures_0_1_21_features mio_0_6_14_features tokio_core_0_1_17_features tokio_io_0_1_6_features libc_0_2_40_features mio_uds_0_6_4_features winapi_0_3_4_features ]; tokio_tcp_0_1_0 = { features?(tokio_tcp_0_1_0_features {}) }: tokio_tcp_0_1_0_ { - dependencies = mapFeatures features ([ bytes_0_4_6 futures_0_1_21 iovec_0_1_2 mio_0_6_14 tokio_io_0_1_6 tokio_reactor_0_1_1 ]); + dependencies = mapFeatures features ([ bytes_0_4_7 futures_0_1_21 iovec_0_1_2 mio_0_6_14 tokio_io_0_1_6 tokio_reactor_0_1_1 ]); features = mkFeatures (features.tokio_tcp_0_1_0 or {}); }; tokio_tcp_0_1_0_features = f: updateFeatures f (rec { - bytes_0_4_6.default = true; + bytes_0_4_7.default = true; futures_0_1_21.default = true; iovec_0_1_2.default = true; mio_0_6_14.default = true; @@ -4667,7 +4675,7 @@ rec { (f.tokio_tcp_0_1_0.futures2 or false) || (f.tokio_tcp_0_1_0.unstable-futures or false) || (tokio_tcp_0_1_0.unstable-futures or false); - }) [ bytes_0_4_6_features futures_0_1_21_features iovec_0_1_2_features mio_0_6_14_features tokio_io_0_1_6_features tokio_reactor_0_1_1_features ]; + }) [ bytes_0_4_7_features futures_0_1_21_features iovec_0_1_2_features mio_0_6_14_features tokio_io_0_1_6_features tokio_reactor_0_1_1_features ]; tokio_threadpool_0_1_2 = { features?(tokio_threadpool_0_1_2_features {}) }: tokio_threadpool_0_1_2_ { dependencies = mapFeatures features ([ crossbeam_deque_0_3_0 futures_0_1_21 log_0_4_1 num_cpus_1_8_0 rand_0_4_2 tokio_executor_0_1_2 ]); features = mkFeatures (features.tokio_threadpool_0_1_2 or {}); @@ -4711,11 +4719,11 @@ rec { tokio_tls_0_1_4.default = (f.tokio_tls_0_1_4.default or true); }) [ futures_0_1_21_features native_tls_0_1_5_features tokio_core_0_1_17_features tokio_io_0_1_6_features ]; tokio_udp_0_1_0 = { features?(tokio_udp_0_1_0_features {}) }: tokio_udp_0_1_0_ { - dependencies = mapFeatures features ([ bytes_0_4_6 futures_0_1_21 log_0_4_1 mio_0_6_14 tokio_io_0_1_6 tokio_reactor_0_1_1 ]); + dependencies = mapFeatures features ([ bytes_0_4_7 futures_0_1_21 log_0_4_1 mio_0_6_14 tokio_io_0_1_6 tokio_reactor_0_1_1 ]); features = mkFeatures (features.tokio_udp_0_1_0 or {}); }; tokio_udp_0_1_0_features = f: updateFeatures f (rec { - bytes_0_4_6.default = true; + bytes_0_4_7.default = true; futures_0_1_21.default = true; log_0_4_1.default = true; mio_0_6_14.default = true; @@ -4726,14 +4734,14 @@ rec { (f.tokio_udp_0_1_0.futures2 or false) || (f.tokio_udp_0_1_0.unstable-futures or false) || (tokio_udp_0_1_0.unstable-futures or false); - }) [ bytes_0_4_6_features futures_0_1_21_features log_0_4_1_features mio_0_6_14_features tokio_io_0_1_6_features tokio_reactor_0_1_1_features ]; - trust_dns_proto_0_3_2 = { features?(trust_dns_proto_0_3_2_features {}) }: trust_dns_proto_0_3_2_ { + }) [ bytes_0_4_7_features futures_0_1_21_features log_0_4_1_features mio_0_6_14_features tokio_io_0_1_6_features tokio_reactor_0_1_1_features ]; + trust_dns_proto_0_3_3 = { features?(trust_dns_proto_0_3_3_features {}) }: trust_dns_proto_0_3_3_ { dependencies = mapFeatures features ([ byteorder_1_2_2 error_chain_0_1_12 futures_0_1_21 idna_0_1_4 lazy_static_1_0_0 log_0_4_1 rand_0_4_2 tokio_core_0_1_17 tokio_io_0_1_6 url_1_7_0 ]); - features = mkFeatures (features.trust_dns_proto_0_3_2 or {}); + features = mkFeatures (features.trust_dns_proto_0_3_3 or {}); }; - trust_dns_proto_0_3_2_features = f: updateFeatures f (rec { + trust_dns_proto_0_3_3_features = f: updateFeatures f (rec { byteorder_1_2_2.default = true; - error_chain_0_1_12.default = true; + error_chain_0_1_12.default = (f.error_chain_0_1_12.default or false); futures_0_1_21.default = true; idna_0_1_4.default = true; lazy_static_1_0_0.default = true; @@ -4741,38 +4749,38 @@ rec { rand_0_4_2.default = true; tokio_core_0_1_17.default = true; tokio_io_0_1_6.default = true; - trust_dns_proto_0_3_2.data-encoding = - (f.trust_dns_proto_0_3_2.data-encoding or false) || - (f.trust_dns_proto_0_3_2.dnssec or false) || - (trust_dns_proto_0_3_2.dnssec or false); - trust_dns_proto_0_3_2.default = (f.trust_dns_proto_0_3_2.default or true); - trust_dns_proto_0_3_2.dnssec = - (f.trust_dns_proto_0_3_2.dnssec or false) || - (f.trust_dns_proto_0_3_2.dnssec-openssl or false) || - (trust_dns_proto_0_3_2.dnssec-openssl or false) || - (f.trust_dns_proto_0_3_2.dnssec-ring or false) || - (trust_dns_proto_0_3_2.dnssec-ring or false); - trust_dns_proto_0_3_2.openssl = - (f.trust_dns_proto_0_3_2.openssl or false) || - (f.trust_dns_proto_0_3_2.dnssec-openssl or false) || - (trust_dns_proto_0_3_2.dnssec-openssl or false); - trust_dns_proto_0_3_2.ring = - (f.trust_dns_proto_0_3_2.ring or false) || - (f.trust_dns_proto_0_3_2.dnssec-ring or false) || - (trust_dns_proto_0_3_2.dnssec-ring or false); - trust_dns_proto_0_3_2.untrusted = - (f.trust_dns_proto_0_3_2.untrusted or false) || - (f.trust_dns_proto_0_3_2.dnssec-ring or false) || - (trust_dns_proto_0_3_2.dnssec-ring or false); + trust_dns_proto_0_3_3.data-encoding = + (f.trust_dns_proto_0_3_3.data-encoding or false) || + (f.trust_dns_proto_0_3_3.dnssec or false) || + (trust_dns_proto_0_3_3.dnssec or false); + trust_dns_proto_0_3_3.default = (f.trust_dns_proto_0_3_3.default or true); + trust_dns_proto_0_3_3.dnssec = + (f.trust_dns_proto_0_3_3.dnssec or false) || + (f.trust_dns_proto_0_3_3.dnssec-openssl or false) || + (trust_dns_proto_0_3_3.dnssec-openssl or false) || + (f.trust_dns_proto_0_3_3.dnssec-ring or false) || + (trust_dns_proto_0_3_3.dnssec-ring or false); + trust_dns_proto_0_3_3.openssl = + (f.trust_dns_proto_0_3_3.openssl or false) || + (f.trust_dns_proto_0_3_3.dnssec-openssl or false) || + (trust_dns_proto_0_3_3.dnssec-openssl or false); + trust_dns_proto_0_3_3.ring = + (f.trust_dns_proto_0_3_3.ring or false) || + (f.trust_dns_proto_0_3_3.dnssec-ring or false) || + (trust_dns_proto_0_3_3.dnssec-ring or false); + trust_dns_proto_0_3_3.untrusted = + (f.trust_dns_proto_0_3_3.untrusted or false) || + (f.trust_dns_proto_0_3_3.dnssec-ring or false) || + (trust_dns_proto_0_3_3.dnssec-ring or false); url_1_7_0.default = true; }) [ byteorder_1_2_2_features error_chain_0_1_12_features futures_0_1_21_features idna_0_1_4_features lazy_static_1_0_0_features log_0_4_1_features rand_0_4_2_features tokio_core_0_1_17_features tokio_io_0_1_6_features url_1_7_0_features ]; - trust_dns_resolver_0_8_1 = { features?(trust_dns_resolver_0_8_1_features {}) }: trust_dns_resolver_0_8_1_ { - dependencies = mapFeatures features ([ error_chain_0_1_12 futures_0_1_21 lazy_static_1_0_0 log_0_4_1 lru_cache_0_1_1 resolv_conf_0_6_0 tokio_core_0_1_17 trust_dns_proto_0_3_2 ]) + trust_dns_resolver_0_8_2 = { features?(trust_dns_resolver_0_8_2_features {}) }: trust_dns_resolver_0_8_2_ { + dependencies = mapFeatures features ([ error_chain_0_1_12 futures_0_1_21 lazy_static_1_0_0 log_0_4_1 lru_cache_0_1_1 resolv_conf_0_6_0 tokio_core_0_1_17 trust_dns_proto_0_3_3 ]) ++ (if kernel == "windows" then mapFeatures features ([ ipconfig_0_1_6 ]) else []); - features = mkFeatures (features.trust_dns_resolver_0_8_1 or {}); + features = mkFeatures (features.trust_dns_resolver_0_8_2 or {}); }; - trust_dns_resolver_0_8_1_features = f: updateFeatures f (rec { - error_chain_0_1_12.default = true; + trust_dns_resolver_0_8_2_features = f: updateFeatures f (rec { + error_chain_0_1_12.default = (f.error_chain_0_1_12.default or false); futures_0_1_21.default = true; ipconfig_0_1_6.default = true; lazy_static_1_0_0.default = true; @@ -4781,23 +4789,23 @@ rec { resolv_conf_0_6_0.default = true; resolv_conf_0_6_0.system = true; tokio_core_0_1_17.default = true; - trust_dns_proto_0_3_2.default = true; - trust_dns_proto_0_3_2.dnssec-openssl = - (f.trust_dns_proto_0_3_2.dnssec-openssl or false) || - (trust_dns_resolver_0_8_1.dnssec-openssl or false) || - (f.trust_dns_resolver_0_8_1.dnssec-openssl or false); - trust_dns_proto_0_3_2.dnssec-ring = - (f.trust_dns_proto_0_3_2.dnssec-ring or false) || - (trust_dns_resolver_0_8_1.dnssec-ring or false) || - (f.trust_dns_resolver_0_8_1.dnssec-ring or false); - trust_dns_resolver_0_8_1.default = (f.trust_dns_resolver_0_8_1.default or true); - trust_dns_resolver_0_8_1.dnssec = - (f.trust_dns_resolver_0_8_1.dnssec or false) || - (f.trust_dns_resolver_0_8_1.dnssec-openssl or false) || - (trust_dns_resolver_0_8_1.dnssec-openssl or false) || - (f.trust_dns_resolver_0_8_1.dnssec-ring or false) || - (trust_dns_resolver_0_8_1.dnssec-ring or false); - }) [ error_chain_0_1_12_features futures_0_1_21_features lazy_static_1_0_0_features log_0_4_1_features lru_cache_0_1_1_features resolv_conf_0_6_0_features tokio_core_0_1_17_features trust_dns_proto_0_3_2_features ipconfig_0_1_6_features ]; + trust_dns_proto_0_3_3.default = true; + trust_dns_proto_0_3_3.dnssec-openssl = + (f.trust_dns_proto_0_3_3.dnssec-openssl or false) || + (trust_dns_resolver_0_8_2.dnssec-openssl or false) || + (f.trust_dns_resolver_0_8_2.dnssec-openssl or false); + trust_dns_proto_0_3_3.dnssec-ring = + (f.trust_dns_proto_0_3_3.dnssec-ring or false) || + (trust_dns_resolver_0_8_2.dnssec-ring or false) || + (f.trust_dns_resolver_0_8_2.dnssec-ring or false); + trust_dns_resolver_0_8_2.default = (f.trust_dns_resolver_0_8_2.default or true); + trust_dns_resolver_0_8_2.dnssec = + (f.trust_dns_resolver_0_8_2.dnssec or false) || + (f.trust_dns_resolver_0_8_2.dnssec-openssl or false) || + (trust_dns_resolver_0_8_2.dnssec-openssl or false) || + (f.trust_dns_resolver_0_8_2.dnssec-ring or false) || + (trust_dns_resolver_0_8_2.dnssec-ring or false); + }) [ error_chain_0_1_12_features futures_0_1_21_features lazy_static_1_0_0_features log_0_4_1_features lru_cache_0_1_1_features resolv_conf_0_6_0_features tokio_core_0_1_17_features trust_dns_proto_0_3_3_features ipconfig_0_1_6_features ]; twoway_0_1_8 = { features?(twoway_0_1_8_features {}) }: twoway_0_1_8_ { dependencies = mapFeatures features ([ memchr_2_0_1 ]); features = mkFeatures (features.twoway_0_1_8 or {}); @@ -5172,4 +5180,4 @@ rec { winapi_build_0_1_1.default = true; ws2_32_sys_0_2_1.default = (f.ws2_32_sys_0_2_1.default or true); }) [ winapi_0_2_8_features winapi_build_0_1_1_features ]; -} +}.converse_0_1_0 {} From 095293e8e3fc0e31a97d8c6d9f7a06c9547112a8 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Tue, 1 May 2018 21:37:37 +0200 Subject: [PATCH 127/163] feat(db): Add LookupOrCreateUser message Adds a message to look up a user in the database based on their email address. If the user does not exist, it is created. --- src/db.rs | 43 +++++++++++++++++++++++++++++++++++++++++++ src/models.rs | 7 +++++++ 2 files changed, 50 insertions(+) diff --git a/src/db.rs b/src/db.rs index a04b33824..bfbdd193c 100644 --- a/src/db.rs +++ b/src/db.rs @@ -52,6 +52,49 @@ impl Handler for DbExecutor { } } +/// Message used to look up a user based on their email-address. If +/// the user does not exist, it is created. +pub struct LookupOrCreateUser { + pub email: String, + pub name: String, +} + +message!(LookupOrCreateUser, Result); + +impl Handler for DbExecutor { + type Result = ::Result; + + fn handle(&mut self, + msg: LookupOrCreateUser, + _: &mut Self::Context) -> Self::Result { + use schema::users; + use schema::users::dsl::*; + + let conn = self.0.get()?; + + let opt_user = users + .filter(email.eq(&msg.email)) + .first(&conn).optional()?; + + if let Some(user) = opt_user { + Ok(user) + } else { + let new_user = NewUser { + email: msg.email, + name: msg.name, + }; + + let user: User = diesel::insert_into(users::table) + .values(&new_user) + .get_result(&conn)?; + + info!("Created new user {} with ID {}", new_user.email, user.id); + + Ok(user) + } + } +} + /// Message used to fetch a specific thread. Returns the thread and /// its posts. pub struct GetThread(pub i32); diff --git a/src/models.rs b/src/models.rs index 5c7bbb12d..3ad4a5ed9 100644 --- a/src/models.rs +++ b/src/models.rs @@ -88,6 +88,13 @@ pub struct NewThread { pub user_id: i32, } +#[derive(Deserialize, Insertable)] +#[table_name="users"] +pub struct NewUser { + pub email: String, + pub name: String, +} + #[derive(Deserialize, Insertable)] #[table_name="posts"] pub struct NewPost { From 6d69f5001eb7d4fdd9e791933b2dfd135f5819e7 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Tue, 1 May 2018 23:00:01 +0200 Subject: [PATCH 128/163] refactor(main): Use actix-web's identity middleware for auth --- src/main.rs | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/main.rs b/src/main.rs index bc9fca681..11dcf8481 100644 --- a/src/main.rs +++ b/src/main.rs @@ -68,7 +68,8 @@ pub mod schema; use actix::prelude::*; use actix_web::*; use actix_web::http::Method; -use actix_web::middleware::{Logger, SessionStorage, CookieSessionBackend}; +use actix_web::middleware::Logger; +use actix_web::middleware::identity::{IdentityService, CookieIdentityPolicy}; use db::*; use diesel::pg::PgConnection; use diesel::r2d2::{ConnectionManager, Pool}; @@ -180,13 +181,16 @@ fn start_http_server(base_url: String, renderer: renderer_addr.clone(), }; - let sessions = SessionStorage::new( - CookieSessionBackend::signed(&key) - .secure(base_url.starts_with("https"))); + let identity = IdentityService::new( + CookieIdentityPolicy::new(&key) + .name("converse_auth") + .path("/") + .secure(base_url.starts_with("https")) + ); let app = App::with_state(state) .middleware(Logger::default()) - .middleware(sessions) + .middleware(identity) .resource("/", |r| r.method(Method::GET).with(forum_index)) .resource("/thread/new", |r| r.method(Method::GET).with(new_thread)) .resource("/thread/submit", |r| r.method(Method::POST).with3(submit_thread)) From 40fb4ebbb9c88754bafc9b115841712ad023d099 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Tue, 1 May 2018 23:00:15 +0200 Subject: [PATCH 129/163] refactor(handlers/render): Use users from database for all functions Converse now sets the user ID as the session identity parameter in actix_web's identity middleware after a successful login and uses the ID to determine identity when creating threads & posts and when validating edit permissions. --- src/handlers.rs | 105 ++++++++++++++++++++++++------------------------ src/render.rs | 6 +-- 2 files changed, 54 insertions(+), 57 deletions(-) diff --git a/src/handlers.rs b/src/handlers.rs index fa41ca354..df03940b1 100644 --- a/src/handlers.rs +++ b/src/handlers.rs @@ -26,7 +26,8 @@ use actix::prelude::*; use actix_web; use actix_web::*; -use actix_web::middleware::{Started, Middleware, RequestSession}; +use actix_web::middleware::identity::RequestIdentity; +use actix_web::middleware::{Started, Middleware}; use db::*; use errors::ConverseError; use futures::Future; @@ -37,6 +38,8 @@ use render::*; type ConverseResponse = Box>; const HTML: &'static str = "text/html"; +const ANONYMOUS: i32 = 1; +const NEW_THREAD_LENGTH_ERR: &'static str = "Title and body can not be empty!"; /// Represents the state carried by the web server actors. pub struct AppState { @@ -61,14 +64,25 @@ pub fn forum_index(state: State) -> ConverseResponse { .responder() } +/// Returns the ID of the currently logged in user. If there is no ID +/// present, the ID of the anonymous user will be returned. +pub fn get_user_id(req: &HttpRequest) -> i32 { + if let Some(id) = req.identity() { + // If this .expect() call is triggered, someone is likely + // attempting to mess with their cookies. These requests can + // be allowed to fail without further ado. + id.parse().expect("Session cookie contained invalid data!") + } else { + ANONYMOUS + } +} + /// This handler retrieves and displays a single forum thread. pub fn forum_thread(state: State, - mut req: HttpRequest, + req: HttpRequest, thread_id: Path) -> ConverseResponse { let id = thread_id.into_inner(); - let user = req.session().get(AUTHOR) - .unwrap_or_else(|_| None) - .map(|a: Author| a.email); + let user = get_user_id(&req); state.db.send(GetThread(id)) .flatten() @@ -89,28 +103,17 @@ pub fn new_thread(state: State) -> ConverseResponse { .responder() } -/// This function provides an anonymous "default" author if logins are -/// not required. -fn anonymous() -> Author { - Author { - name: "Anonymous".into(), - email: "anonymous@nothing.org".into(), - } -} - #[derive(Deserialize)] pub struct NewThreadForm { pub title: String, pub post: String, } -const NEW_THREAD_LENGTH_ERR: &'static str = "Title and body can not be empty!"; - /// This handler receives a "New thread"-form and redirects the user /// to the new thread after creation. pub fn submit_thread(state: State, input: Form, - mut req: HttpRequest) -> ConverseResponse { + req: HttpRequest) -> ConverseResponse { // Trim whitespace out of inputs: let input = NewThreadForm { title: input.title.trim().into(), @@ -130,14 +133,11 @@ pub fn submit_thread(state: State, .responder(); } - let author: Author = req.session().get(AUTHOR) - .unwrap_or_else(|_| Some(anonymous())) - .unwrap_or_else(anonymous); + let user_id = get_user_id(&req); let new_thread = NewThread { + user_id, title: input.title, - author_name: author.name, - author_email: author.email, }; let msg = CreateThread { @@ -167,16 +167,13 @@ pub struct NewPostForm { /// new post after creation. pub fn reply_thread(state: State, input: Form, - mut req: HttpRequest) -> ConverseResponse { - let author: Author = req.session().get(AUTHOR) - .unwrap_or_else(|_| Some(anonymous())) - .unwrap_or_else(anonymous); + req: HttpRequest) -> ConverseResponse { + let user_id = get_user_id(&req); let new_post = NewPost { + user_id, thread_id: input.thread_id, body: input.post.trim().into(), - author_name: author.name, - author_email: author.email, }; state.db.send(CreatePost(new_post)) @@ -196,19 +193,16 @@ pub fn reply_thread(state: State, /// they are currently ungracefully redirected back to the post /// itself. pub fn edit_form(state: State, - mut req: HttpRequest, + req: HttpRequest, query: Path) -> ConverseResponse { - let author: Option = req.session().get(AUTHOR) - .unwrap_or_else(|_| None); + let user_id = get_user_id(&req); state.db.send(query.into_inner()) .flatten() .from_err() .and_then(move |post| { - if let Some(author) = author { - if author.email.eq(&post.author_email) { - return Ok(post); - } + if user_id != 1 && post.user_id == user_id { + return Ok(post); } Err(ConverseError::PostEditForbidden { id: post.id }) @@ -229,21 +223,19 @@ pub fn edit_form(state: State, /// This handler "executes" an edit to a post if the current user owns /// the edited post. pub fn edit_post(state: State, - mut req: HttpRequest, + req: HttpRequest, update: Form) -> ConverseResponse { - let author: Option = req.session().get(AUTHOR) - .unwrap_or_else(|_| None); + let user_id = get_user_id(&req); state.db.send(GetPost { id: update.post_id }) .flatten() .from_err() .and_then(move |post| { - if let Some(author) = author { - if author.email.eq(&post.author_email) { - return Ok(()); - } + if user_id != 1 && post.user_id == user_id { + Ok(()) + } else { + Err(ConverseError::PostEditForbidden { id: post.id }) } - Err(ConverseError::PostEditForbidden { id: post.id }) }) .and_then(move |_| state.db.send(update.0).from_err()) .flatten() @@ -280,17 +272,24 @@ pub fn login(state: State) -> ConverseResponse { .responder() } -const AUTHOR: &'static str = "author"; - +/// This handler handles an OIDC callback (i.e. completed login). +/// +/// Upon receiving the callback, a token is retrieved from the OIDC +/// provider and a user lookup is performed. If a user with a matching +/// email-address is found in the database, it is logged in - +/// otherwise a new user is created. pub fn callback(state: State, data: Form, mut req: HttpRequest) -> ConverseResponse { - state.oidc.send(RetrieveToken(data.0)) - .from_err() - .and_then(move |result| { - let author = result?; - info!("Setting cookie for {} after callback", author.name); - req.session().set(AUTHOR, author)?; + state.oidc.send(RetrieveToken(data.0)).flatten() + .map(|author| LookupOrCreateUser { + email: author.email, + name: author.name, + }) + .and_then(move |msg| state.db.send(msg).from_err()).flatten() + .and_then(move |user| { + info!("Completed login for user {} ({})", user.email, user.id); + req.remember(user.id.to_string()); Ok(HttpResponse::SeeOther() .header("Location", "/") .finish())}) @@ -303,10 +302,10 @@ pub struct RequireLogin; impl Middleware for RequireLogin { fn start(&self, req: &mut HttpRequest) -> actix_web::Result { - let has_author = req.session().get::(AUTHOR)?.is_some(); + let logged_in = req.identity().is_some(); let is_oidc_req = req.path().starts_with("/oidc"); - if !is_oidc_req && !has_author { + if !is_oidc_req && !logged_in { Ok(Started::Response( HttpResponse::SeeOther() .header("Location", "/oidc/login") diff --git a/src/render.rs b/src/render.rs index bc1197bc1..63a89d99e 100644 --- a/src/render.rs +++ b/src/render.rs @@ -87,7 +87,7 @@ impl Handler for Renderer { /// Message used to render a thread. pub struct ThreadPage { - pub current_user: Option, + pub current_user: i32, pub thread: Thread, pub posts: Vec, } @@ -122,9 +122,7 @@ fn prepare_thread(comrak: &ComrakOptions, page: ThreadPage) -> RenderableThreadP let user = page.current_user; let posts = page.posts.into_iter().map(|post| { - let editable = user.clone() - .map(|c| post.author_email.eq(&c)) - .unwrap_or_else(|| false); + let editable = user != 1 && post.user_id == user; RenderablePost { id: post.id, From c07b1be3be516454afd77f00ab4c685a4b80349f Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Tue, 1 May 2018 23:34:47 +0200 Subject: [PATCH 130/163] fix(build): Apply a workaround for building Comrak in Nix Carnix can not be configured to not build a dependency's binaries (even if relevant features are disabled), but Comrak's binary can by default not be built in Carnix because it attempts to read a Cargo-provided environment variable at compile time. This works around the issue by "faking" the environment variable, which is less than ideal but works. --- default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/default.nix b/default.nix index 6430b87e6..e907c0596 100644 --- a/default.nix +++ b/default.nix @@ -2336,11 +2336,11 @@ rec { unicode_width_0_1_4.default = true; vec_map_0_8_0.default = true; }) [ atty_0_2_10_features bitflags_1_0_3_features strsim_0_7_0_features textwrap_0_9_0_features unicode_width_0_1_4_features vec_map_0_8_0_features ansi_term_0_11_0_features ]; - comrak_0_2_9 = { features?(comrak_0_2_9_features {}) }: comrak_0_2_9_ { + comrak_0_2_9 = { features?(comrak_0_2_9_features {}) }: (comrak_0_2_9_ { dependencies = mapFeatures features ([ entities_1_0_1 lazy_static_1_0_0 pest_1_0_6 pest_derive_1_0_7 regex_0_2_11 twoway_0_1_8 typed_arena_1_3_0 unicode_categories_0_1_1 ] ++ (if features.comrak_0_2_9.clap or false then [ clap_2_31_2 ] else [])); features = mkFeatures (features.comrak_0_2_9 or {}); - }; + }).overrideAttrs (oldAttrs: rec { CARGO_PKG_DESCRIPTION = "dummy"; }); comrak_0_2_9_features = f: updateFeatures f (rec { clap_2_31_2.default = true; comrak_0_2_9.clap = From 06f21643ddc84fff0b2e75b0ec23351aa1484fed Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Tue, 1 May 2018 23:35:52 +0200 Subject: [PATCH 131/163] docs(build): Document manual changes to Carnix expression --- default.nix | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/default.nix b/default.nix index e907c0596..b9197cbb7 100644 --- a/default.nix +++ b/default.nix @@ -1,4 +1,23 @@ -# Generated by carnix 0.6.7: carnix --standalone -o default.nix Cargo.lock +# Most of this file was generated using `carnix`, however some fixes +# have been applied manually. When upgrading dependencies, care must +# be taken to not break those fixes: +# +# 1. Carnix derivations break if a crate's features start with a +# number, which is the case for several of Diesel's features. Those +# have had quotes added around them to fix the issue. +# +# 2. The last line of the derivation has been modified to return the +# derivation for Converse itself, rather than an attribute set of +# all crate derivations. +# +# 3. To fix an issue building Comrak, the Markdown parser, the +# derivation attributes have been overridden to provide a "dummy" +# environment variable that Comrak's binary attempts to read during +# the build. +# Unfortunately Carnix can not currently be configured to not build +# the binary of a dependency (even if the relevant feature is +# disabled), so this workaround is required. + { pkgs ? import {} }: with pkgs; let kernel = buildPlatform.parsed.kernel.name; From 831f5c5abdfabb3cbdbca7a3b24c106c4e642f92 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Tue, 15 May 2018 10:37:24 +0200 Subject: [PATCH 132/163] docs: Add contribution guidelines document This document is intended to provide some information about how to contribute to the project, from basic sanity checks and code quality to information about how to structure git commits. These are the most common things that I encounter in pull requests sent to my projects. --- CONTRIBUTING.md | 114 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 114 insertions(+) create mode 100644 CONTRIBUTING.md diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 000000000..e600aa22d --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,114 @@ +Contribution Guidelines +======================= + + +**Table of Contents** + +- [Contribution Guidelines](#contribution-guidelines) + - [Before making a change](#before-making-a-change) + - [Commit messages](#commit-messages) + - [Commit content](#commit-content) + - [Code quality](#code-quality) + - [Builds & tests](#builds--tests) + + + +This is a loose set of "guidelines" for contributing to my projects. +Please note that I will not accept any pull requests that don't follow +these guidelines. + +Also consider the [code of conduct](CODE_OF_CONDUCT.md). No really, +you should. + +## Before making a change + +Before making a change, consider your motivation for making the +change. Documentation updates, bug fixes and the like are *always* +welcome. + +When adding a feature you should consider whether it is only useful +for your particular use-case or whether it is generally applicable for +other users of the project. + +When in doubt - just ask me! + +## Commit messages + +All commit messages should follow the style-guide used by the [Angular +project][]. This means for the most part that your commit message +should be structured like this: + +``` +type(scope): Subject line with at most 68 a character length + +Body of the commit message with an empty line between subject and +body. This text should explain what the change does and why it has +been made, *especially* if it introduces a new feature. + +Relevant issues should be mentioned if they exist. +``` + +Where `type` can be one of: + +* `feat`: A new feature has been introduced +* `fix`: An issue of some kind has been fixed +* `docs`: Documentation or comments have been updated +* `style`: Formatting changes only +* `refactor`: Hopefully self-explanatory! +* `test`: Added missing tests / fixed tests +* `chore`: Maintenance work + +And `scope` should refer to some kind of logical grouping inside of +the project. + +Please take a look at the existing commit log for examples. + +## Commit content + +Multiple changes should be divided into multiple git commits whenever +possible. Common sense applies. + +The fix for a single-line whitespace issue is fine to include in a +different commit. Introducing a new feature and refactoring +(unrelated) code in the same commit is not fine. + +`git commit -a` is generally **taboo**. + +In my experience making "sane" commits becomes *significantly* easier +as developer tooling is improved. The interface to `git` that I +recommend is [magit][]. Even if you are not yet an Emacs user, it +makes sense to install Emacs just to be able to use magit - it is +really that good. + +For staging sane chunks on the command line with only git, consider +`git add -p`. + +## Code quality + +This one should go without saying - but please ensure that your code +quality does not fall below the rest of the project. This is of course +very subjective, but as an example if you place code that throws away +errors into a block in which errors are handled properly your change +will be rejected. + +In my experience there is a strong correlation between the visual +appearance of a code block and its quality. This is a simple way to +sanity-check your work while squinting and keeping some distance from +your screen ;-) + +## Builds & tests + +Most of my projects are built using [Nix][] to avoid "build pollution" +via the user's environment. If you have Nix installed and are +contributing to a project that has a `default.nix`, consider using +`nix-build` to verify that builds work correctly. + +If the project has tests, check that they still work before submitting +your change. + +Both of these will usually be covered by Travis CI. + + +[Angular project]: https://gist.github.com/stephenparish/9941e89d80e2bc58a153#format-of-the-commit-message +[magit]: https://magit.vc/ +[Nix]: https://nixos.org/nix/ From 5371e1dcd5baa33b3ede5d98191027c63b58aa91 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Fri, 18 May 2018 21:43:04 +0200 Subject: [PATCH 133/163] chore(build): Bump dependencies & pin pq-sys --- .gitattributes | 2 +- Cargo.lock | 380 ++-- Cargo.toml | 1 + default.nix | 5209 +----------------------------------------------- 4 files changed, 221 insertions(+), 5371 deletions(-) diff --git a/.gitattributes b/.gitattributes index 7e0ef055d..219e4a736 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1 @@ -default.nix linguist-generated=true +Carnix.nix linguist-generated=true diff --git a/Cargo.lock b/Cargo.lock index 3d8fde26d..5259e980e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,6 +1,6 @@ [[package]] name = "actix" -version = "0.5.6" +version = "0.5.7" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "actix_derive 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -11,7 +11,7 @@ dependencies = [ "futures 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", - "skeptic 0.13.2 (registry+https://github.com/rust-lang/crates.io-index)", + "skeptic 0.13.3 (registry+https://github.com/rust-lang/crates.io-index)", "smallvec 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)", "tokio-core 0.1.17 (registry+https://github.com/rust-lang/crates.io-index)", "tokio-io 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", @@ -22,14 +22,14 @@ dependencies = [ [[package]] name = "actix-web" -version = "0.5.6" +version = "0.5.8" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "actix 0.5.6 (registry+https://github.com/rust-lang/crates.io-index)", + "actix 0.5.7 (registry+https://github.com/rust-lang/crates.io-index)", "base64 0.9.1 (registry+https://github.com/rust-lang/crates.io-index)", "bitflags 1.0.3 (registry+https://github.com/rust-lang/crates.io-index)", "brotli2 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)", - "byteorder 1.2.2 (registry+https://github.com/rust-lang/crates.io-index)", + "byteorder 1.2.3 (registry+https://github.com/rust-lang/crates.io-index)", "bytes 0.4.7 (registry+https://github.com/rust-lang/crates.io-index)", "cookie 0.10.1 (registry+https://github.com/rust-lang/crates.io-index)", "encoding 0.2.33 (registry+https://github.com/rust-lang/crates.io-index)", @@ -37,7 +37,7 @@ dependencies = [ "flate2 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", "futures 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", "futures-cpupool 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)", - "h2 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", + "h2 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", "http 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", "http-range 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", "httparse 1.2.4 (registry+https://github.com/rust-lang/crates.io-index)", @@ -45,7 +45,7 @@ dependencies = [ "lazy_static 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", - "mime 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", + "mime 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)", "mime_guess 2.0.0-alpha.4 (registry+https://github.com/rust-lang/crates.io-index)", "mio 0.6.14 (registry+https://github.com/rust-lang/crates.io-index)", "net2 0.2.32 (registry+https://github.com/rust-lang/crates.io-index)", @@ -53,12 +53,12 @@ dependencies = [ "percent-encoding 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", "rand 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", "regex 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", - "serde 1.0.43 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_json 1.0.16 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_urlencoded 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)", + "serde 1.0.55 (registry+https://github.com/rust-lang/crates.io-index)", + "serde_json 1.0.17 (registry+https://github.com/rust-lang/crates.io-index)", + "serde_urlencoded 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)", "sha1 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)", "smallvec 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)", - "time 0.1.39 (registry+https://github.com/rust-lang/crates.io-index)", + "time 0.1.40 (registry+https://github.com/rust-lang/crates.io-index)", "tokio-core 0.1.17 (registry+https://github.com/rust-lang/crates.io-index)", "tokio-io 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", "url 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -126,23 +126,23 @@ version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "backtrace-sys 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)", - "cfg-if 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", + "cfg-if 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", "dbghelp-sys 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", "kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", - "rustc-demangle 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", + "rustc-demangle 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)", "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] name = "backtrace" -version = "0.3.6" +version = "0.3.7" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "backtrace-sys 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)", - "cfg-if 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", + "cfg-if 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", - "rustc-demangle 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", + "rustc-demangle 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)", "winapi 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -160,7 +160,7 @@ name = "base64" version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "byteorder 1.2.2 (registry+https://github.com/rust-lang/crates.io-index)", + "byteorder 1.2.3 (registry+https://github.com/rust-lang/crates.io-index)", "safemem 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -169,7 +169,7 @@ name = "base64" version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "byteorder 1.2.2 (registry+https://github.com/rust-lang/crates.io-index)", + "byteorder 1.2.3 (registry+https://github.com/rust-lang/crates.io-index)", "safemem 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -208,12 +208,12 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "bytecount" -version = "0.2.0" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "byteorder" -version = "1.2.2" +version = "1.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] @@ -221,20 +221,20 @@ name = "bytes" version = "0.4.7" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "byteorder 1.2.2 (registry+https://github.com/rust-lang/crates.io-index)", + "byteorder 1.2.3 (registry+https://github.com/rust-lang/crates.io-index)", "iovec 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] name = "cargo_metadata" -version = "0.3.3" +version = "0.5.4" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "error-chain 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)", - "semver 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)", - "serde 1.0.43 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_derive 1.0.43 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_json 1.0.16 (registry+https://github.com/rust-lang/crates.io-index)", + "semver 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", + "serde 1.0.55 (registry+https://github.com/rust-lang/crates.io-index)", + "serde_derive 1.0.55 (registry+https://github.com/rust-lang/crates.io-index)", + "serde_json 1.0.17 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -244,7 +244,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "cfg-if" -version = "0.1.2" +version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] @@ -252,10 +252,10 @@ name = "chrono" version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "num-integer 0.1.36 (registry+https://github.com/rust-lang/crates.io-index)", - "num-traits 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", - "serde 1.0.43 (registry+https://github.com/rust-lang/crates.io-index)", - "time 0.1.39 (registry+https://github.com/rust-lang/crates.io-index)", + "num-integer 0.1.38 (registry+https://github.com/rust-lang/crates.io-index)", + "num-traits 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)", + "serde 1.0.55 (registry+https://github.com/rust-lang/crates.io-index)", + "time 0.1.40 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -269,12 +269,12 @@ dependencies = [ "strsim 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", "textwrap 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", "unicode-width 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", - "vec_map 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)", + "vec_map 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] name = "comrak" -version = "0.2.9" +version = "0.2.12" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "clap 2.31.2 (registry+https://github.com/rust-lang/crates.io-index)", @@ -292,27 +292,28 @@ dependencies = [ name = "converse" version = "0.1.0" dependencies = [ - "actix 0.5.6 (registry+https://github.com/rust-lang/crates.io-index)", - "actix-web 0.5.6 (registry+https://github.com/rust-lang/crates.io-index)", + "actix 0.5.7 (registry+https://github.com/rust-lang/crates.io-index)", + "actix-web 0.5.8 (registry+https://github.com/rust-lang/crates.io-index)", "chrono 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", - "comrak 0.2.9 (registry+https://github.com/rust-lang/crates.io-index)", + "comrak 0.2.12 (registry+https://github.com/rust-lang/crates.io-index)", "diesel 1.2.2 (registry+https://github.com/rust-lang/crates.io-index)", - "env_logger 0.5.9 (registry+https://github.com/rust-lang/crates.io-index)", + "env_logger 0.5.10 (registry+https://github.com/rust-lang/crates.io-index)", "failure 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", "futures 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", - "hyper 0.11.25 (registry+https://github.com/rust-lang/crates.io-index)", + "hyper 0.11.27 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", "md5 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)", + "pq-sys 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)", "pulldown-cmark 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", "r2d2 0.8.2 (registry+https://github.com/rust-lang/crates.io-index)", "rand 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", "reqwest 0.8.5 (registry+https://github.com/rust-lang/crates.io-index)", - "serde 1.0.43 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_derive 1.0.43 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_json 1.0.16 (registry+https://github.com/rust-lang/crates.io-index)", + "serde 1.0.55 (registry+https://github.com/rust-lang/crates.io-index)", + "serde_derive 1.0.55 (registry+https://github.com/rust-lang/crates.io-index)", + "serde_json 1.0.17 (registry+https://github.com/rust-lang/crates.io-index)", "tera 0.11.7 (registry+https://github.com/rust-lang/crates.io-index)", - "tokio 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", - "tokio-timer 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-timer 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", "url 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)", "url_serde 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -324,7 +325,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "base64 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)", "ring 0.12.1 (registry+https://github.com/rust-lang/crates.io-index)", - "time 0.1.39 (registry+https://github.com/rust-lang/crates.io-index)", + "time 0.1.40 (registry+https://github.com/rust-lang/crates.io-index)", "url 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -374,11 +375,11 @@ dependencies = [ [[package]] name = "crossbeam-deque" -version = "0.3.0" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "crossbeam-epoch 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", - "crossbeam-utils 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", + "crossbeam-utils 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -387,7 +388,7 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "arrayvec 0.4.7 (registry+https://github.com/rust-lang/crates.io-index)", - "cfg-if 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", + "cfg-if 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", "crossbeam-utils 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", "lazy_static 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", "memoffset 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -400,7 +401,7 @@ version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "arrayvec 0.4.7 (registry+https://github.com/rust-lang/crates.io-index)", - "cfg-if 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", + "cfg-if 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", "crossbeam-utils 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", "lazy_static 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", "memoffset 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", @@ -414,7 +415,7 @@ version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "arrayvec 0.4.7 (registry+https://github.com/rust-lang/crates.io-index)", - "cfg-if 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", + "cfg-if 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", "crossbeam-utils 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)", "lazy_static 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", "memoffset 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", @@ -426,7 +427,7 @@ name = "crossbeam-utils" version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "cfg-if 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", + "cfg-if 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -434,7 +435,7 @@ name = "crossbeam-utils" version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "cfg-if 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", + "cfg-if 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -452,7 +453,7 @@ version = "1.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "bitflags 1.0.3 (registry+https://github.com/rust-lang/crates.io-index)", - "byteorder 1.2.2 (registry+https://github.com/rust-lang/crates.io-index)", + "byteorder 1.2.3 (registry+https://github.com/rust-lang/crates.io-index)", "chrono 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", "diesel_derives 1.2.0 (registry+https://github.com/rust-lang/crates.io-index)", "pq-sys 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)", @@ -536,7 +537,7 @@ name = "encoding_rs" version = "0.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "cfg-if 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", + "cfg-if 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -546,13 +547,13 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "env_logger" -version = "0.5.9" +version = "0.5.10" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "atty 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)", "humantime 1.1.1 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", - "regex 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", + "regex 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", "termcolor 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -569,7 +570,7 @@ name = "error-chain" version = "0.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "backtrace 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", + "backtrace 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -577,7 +578,7 @@ name = "error-chain" version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "backtrace 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", + "backtrace 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -585,7 +586,7 @@ name = "failure" version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "backtrace 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", + "backtrace 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)", "failure_derive 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -671,10 +672,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "h2" -version = "0.1.6" +version = "0.1.7" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "byteorder 1.2.2 (registry+https://github.com/rust-lang/crates.io-index)", + "byteorder 1.2.3 (registry+https://github.com/rust-lang/crates.io-index)", "bytes 0.4.7 (registry+https://github.com/rust-lang/crates.io-index)", "fnv 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", "futures 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", @@ -729,7 +730,7 @@ dependencies = [ [[package]] name = "hyper" -version = "0.11.25" +version = "0.11.27" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "base64 0.9.1 (registry+https://github.com/rust-lang/crates.io-index)", @@ -740,15 +741,17 @@ dependencies = [ "iovec 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", "language-tags 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", - "mime 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", + "mime 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)", + "net2 0.2.32 (registry+https://github.com/rust-lang/crates.io-index)", "percent-encoding 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", "relay 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", - "time 0.1.39 (registry+https://github.com/rust-lang/crates.io-index)", + "time 0.1.40 (registry+https://github.com/rust-lang/crates.io-index)", "tokio-core 0.1.17 (registry+https://github.com/rust-lang/crates.io-index)", "tokio-io 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", "tokio-proto 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", "tokio-service 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "unicase 2.1.0 (registry+https://github.com/rust-lang/crates.io-index)", + "want 0.0.4 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -757,7 +760,7 @@ version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "futures 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", - "hyper 0.11.25 (registry+https://github.com/rust-lang/crates.io-index)", + "hyper 0.11.27 (registry+https://github.com/rust-lang/crates.io-index)", "native-tls 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", "tokio-core 0.1.17 (registry+https://github.com/rust-lang/crates.io-index)", "tokio-io 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", @@ -772,7 +775,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "matches 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", "unicode-bidi 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", - "unicode-normalization 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", + "unicode-normalization 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -801,11 +804,6 @@ dependencies = [ "winreg 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)", ] -[[package]] -name = "itoa" -version = "0.3.4" -source = "registry+https://github.com/rust-lang/crates.io-index" - [[package]] name = "itoa" version = "0.4.1" @@ -851,7 +849,7 @@ version = "0.1.14" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "adler32 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", - "byteorder 1.2.2 (registry+https://github.com/rust-lang/crates.io-index)", + "byteorder 1.2.3 (registry+https://github.com/rust-lang/crates.io-index)", "crc 1.8.1 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -873,7 +871,7 @@ name = "log" version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "cfg-if 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", + "cfg-if 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -914,7 +912,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "mime" -version = "0.3.5" +version = "0.3.7" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "unicase 2.1.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -925,7 +923,7 @@ name = "mime_guess" version = "2.0.0-alpha.4" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "mime 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", + "mime 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)", "phf 0.7.22 (registry+https://github.com/rust-lang/crates.io-index)", "phf_codegen 0.7.22 (registry+https://github.com/rust-lang/crates.io-index)", "unicase 1.4.2 (registry+https://github.com/rust-lang/crates.io-index)", @@ -960,9 +958,10 @@ dependencies = [ [[package]] name = "mio-uds" -version = "0.6.4" +version = "0.6.6" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ + "iovec 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", "mio 0.6.14 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -997,7 +996,7 @@ name = "net2" version = "0.2.32" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "cfg-if 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", + "cfg-if 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", "winapi 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -1009,15 +1008,15 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "num-integer" -version = "0.1.36" +version = "0.1.38" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "num-traits 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", + "num-traits 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] name = "num-traits" -version = "0.2.2" +version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] @@ -1273,6 +1272,18 @@ dependencies = [ "utf8-ranges 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", ] +[[package]] +name = "regex" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "aho-corasick 0.6.4 (registry+https://github.com/rust-lang/crates.io-index)", + "memchr 2.0.1 (registry+https://github.com/rust-lang/crates.io-index)", + "regex-syntax 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)", + "thread_local 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", + "utf8-ranges 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", +] + [[package]] name = "regex-syntax" version = "0.5.6" @@ -1281,6 +1292,14 @@ dependencies = [ "ucd-util 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", ] +[[package]] +name = "regex-syntax" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "ucd-util 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", +] + [[package]] name = "relay" version = "0.1.1" @@ -1305,15 +1324,15 @@ dependencies = [ "bytes 0.4.7 (registry+https://github.com/rust-lang/crates.io-index)", "encoding_rs 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)", "futures 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", - "hyper 0.11.25 (registry+https://github.com/rust-lang/crates.io-index)", + "hyper 0.11.27 (registry+https://github.com/rust-lang/crates.io-index)", "hyper-tls 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", "libflate 0.1.14 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", "mime_guess 2.0.0-alpha.4 (registry+https://github.com/rust-lang/crates.io-index)", "native-tls 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", - "serde 1.0.43 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_json 1.0.16 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_urlencoded 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)", + "serde 1.0.55 (registry+https://github.com/rust-lang/crates.io-index)", + "serde_json 1.0.17 (registry+https://github.com/rust-lang/crates.io-index)", + "serde_urlencoded 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)", "tokio-core 0.1.17 (registry+https://github.com/rust-lang/crates.io-index)", "tokio-io 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", "tokio-tls 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1344,7 +1363,7 @@ dependencies = [ [[package]] name = "rustc-demangle" -version = "0.1.7" +version = "0.1.8" source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] @@ -1354,11 +1373,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "same-file" -version = "0.1.3" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", - "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", + "winapi 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -1380,7 +1398,7 @@ dependencies = [ [[package]] name = "scoped-tls" -version = "0.1.1" +version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] @@ -1410,11 +1428,11 @@ dependencies = [ [[package]] name = "semver" -version = "0.8.0" +version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "semver-parser 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", - "serde 1.0.43 (registry+https://github.com/rust-lang/crates.io-index)", + "serde 1.0.55 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -1424,47 +1442,37 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "serde" -version = "1.0.43" +version = "1.0.55" source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "serde_derive" -version = "1.0.43" +version = "1.0.55" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "proc-macro2 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", "quote 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_derive_internals 0.23.1 (registry+https://github.com/rust-lang/crates.io-index)", - "syn 0.13.4 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "serde_derive_internals" -version = "0.23.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "proc-macro2 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", - "syn 0.13.4 (registry+https://github.com/rust-lang/crates.io-index)", + "syn 0.13.10 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] name = "serde_json" -version = "1.0.16" +version = "1.0.17" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "dtoa 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", "itoa 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", - "serde 1.0.43 (registry+https://github.com/rust-lang/crates.io-index)", + "serde 1.0.55 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] name = "serde_urlencoded" -version = "0.5.1" +version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "dtoa 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", - "itoa 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", - "serde 1.0.43 (registry+https://github.com/rust-lang/crates.io-index)", + "itoa 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", + "serde 1.0.55 (registry+https://github.com/rust-lang/crates.io-index)", "url 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -1480,17 +1488,17 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "skeptic" -version = "0.13.2" +version = "0.13.3" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "bytecount 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", - "cargo_metadata 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", + "bytecount 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", + "cargo_metadata 0.5.4 (registry+https://github.com/rust-lang/crates.io-index)", "error-chain 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)", "glob 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", "pulldown-cmark 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_json 1.0.16 (registry+https://github.com/rust-lang/crates.io-index)", + "serde_json 1.0.17 (registry+https://github.com/rust-lang/crates.io-index)", "tempdir 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)", - "walkdir 1.0.7 (registry+https://github.com/rust-lang/crates.io-index)", + "walkdir 2.1.4 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -1526,7 +1534,7 @@ name = "socket2" version = "0.3.5" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "cfg-if 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", + "cfg-if 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", "winapi 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -1568,7 +1576,7 @@ dependencies = [ [[package]] name = "syn" -version = "0.13.4" +version = "0.13.10" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "proc-macro2 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1620,8 +1628,8 @@ dependencies = [ "pest 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", "pest_derive 1.0.7 (registry+https://github.com/rust-lang/crates.io-index)", "regex 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", - "serde 1.0.43 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_json 1.0.16 (registry+https://github.com/rust-lang/crates.io-index)", + "serde 1.0.55 (registry+https://github.com/rust-lang/crates.io-index)", + "serde_json 1.0.17 (registry+https://github.com/rust-lang/crates.io-index)", "slug 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", "url 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -1663,7 +1671,7 @@ dependencies = [ [[package]] name = "time" -version = "0.1.39" +version = "0.1.40" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1673,17 +1681,18 @@ dependencies = [ [[package]] name = "tokio" -version = "0.1.5" +version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "futures 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", "mio 0.6.14 (registry+https://github.com/rust-lang/crates.io-index)", "tokio-executor 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-fs 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "tokio-io 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", "tokio-reactor 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", "tokio-tcp 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", - "tokio-threadpool 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", - "tokio-timer 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-threadpool 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-timer 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", "tokio-udp 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -1697,12 +1706,12 @@ dependencies = [ "iovec 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", "mio 0.6.14 (registry+https://github.com/rust-lang/crates.io-index)", - "scoped-tls 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", - "tokio 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", + "scoped-tls 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", "tokio-executor 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", "tokio-io 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", "tokio-reactor 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", - "tokio-timer 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-timer 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -1713,6 +1722,16 @@ dependencies = [ "futures 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", ] +[[package]] +name = "tokio-fs" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "futures 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-io 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio-threadpool 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", +] + [[package]] name = "tokio-io" version = "0.1.6" @@ -1769,7 +1788,7 @@ dependencies = [ "futures 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", "mio 0.6.14 (registry+https://github.com/rust-lang/crates.io-index)", - "mio-uds 0.6.4 (registry+https://github.com/rust-lang/crates.io-index)", + "mio-uds 0.6.6 (registry+https://github.com/rust-lang/crates.io-index)", "tokio-core 0.1.17 (registry+https://github.com/rust-lang/crates.io-index)", "tokio-io 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", "winapi 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1790,10 +1809,10 @@ dependencies = [ [[package]] name = "tokio-threadpool" -version = "0.1.2" +version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "crossbeam-deque 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", + "crossbeam-deque 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", "futures 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", "num_cpus 1.8.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1803,7 +1822,7 @@ dependencies = [ [[package]] name = "tokio-timer" -version = "0.2.1" +version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "futures 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1839,7 +1858,7 @@ name = "trust-dns-proto" version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "byteorder 1.2.2 (registry+https://github.com/rust-lang/crates.io-index)", + "byteorder 1.2.3 (registry+https://github.com/rust-lang/crates.io-index)", "error-chain 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)", "futures 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", "idna 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1867,6 +1886,11 @@ dependencies = [ "trust-dns-proto 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", ] +[[package]] +name = "try-lock" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" + [[package]] name = "twoway" version = "0.1.8" @@ -1911,7 +1935,7 @@ dependencies = [ [[package]] name = "unicode-normalization" -version = "0.1.5" +version = "0.1.7" source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] @@ -1968,7 +1992,7 @@ name = "url_serde" version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "serde 1.0.43 (registry+https://github.com/rust-lang/crates.io-index)", + "serde 1.0.55 (registry+https://github.com/rust-lang/crates.io-index)", "url 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -1990,7 +2014,7 @@ name = "uuid" version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "cfg-if 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", + "cfg-if 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", "rand 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -2001,7 +2025,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "vec_map" -version = "0.8.0" +version = "0.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] @@ -2016,12 +2040,21 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "walkdir" -version = "1.0.7" +version = "2.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", - "same-file 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", - "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", + "same-file 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", + "winapi 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "want" +version = "0.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "futures 0.1.21 (registry+https://github.com/rust-lang/crates.io-index)", + "log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", + "try-lock 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -2092,8 +2125,8 @@ dependencies = [ ] [metadata] -"checksum actix 0.5.6 (registry+https://github.com/rust-lang/crates.io-index)" = "e767e3170dc7cdec50fe1b74d22fd9d2f4b78b97b2052a254b5acb07dae68634" -"checksum actix-web 0.5.6 (registry+https://github.com/rust-lang/crates.io-index)" = "ebda1eae1638d03af2fc27a7d57c5fd035901a949f548d7c72ff5e07f5052d9f" +"checksum actix 0.5.7 (registry+https://github.com/rust-lang/crates.io-index)" = "7f01f05bfb6e77d47a04752efdac401e0e20b49130ac673cde367cda8eb7c92c" +"checksum actix-web 0.5.8 (registry+https://github.com/rust-lang/crates.io-index)" = "a38d2eba3736d9d58cd3115aae25386cfac43b2482376c14581e0cb30a0d20c1" "checksum actix_derive 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "c4b1dc922654b9aca7a8a31eab875fde804fa9fbd67f220f2e457787b23590f2" "checksum adler32 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = "6cbd0b9af8587c72beadc9f72d35b9fbb070982c9e6203e46e93f10df25f8f45" "checksum aho-corasick 0.6.4 (registry+https://github.com/rust-lang/crates.io-index)" = "d6531d44de723825aa81398a6415283229725a00fa30713812ab9323faa82fc4" @@ -2102,7 +2135,7 @@ dependencies = [ "checksum arrayvec 0.4.7 (registry+https://github.com/rust-lang/crates.io-index)" = "a1e964f9e24d588183fcb43503abda40d288c8657dfc27311516ce2f05675aef" "checksum atty 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)" = "2fc4a1aa4c24c0718a250f0681885c1af91419d242f29eb8f2ab28502d80dbd1" "checksum backtrace 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "346d7644f0b5f9bc73082d3b2236b69a05fd35cce0cfa3724e184e6a5c9e2a2f" -"checksum backtrace 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)" = "ebbe525f66f42d207968308ee86bc2dd60aa5fab535b22e616323a173d097d8e" +"checksum backtrace 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)" = "8ea58cd16fd6c9d120b5bcb01d63883ae4cc7ba2aed35c1841b862a3c7ef6639" "checksum backtrace-sys 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)" = "44585761d6161b0f57afc49482ab6bd067e4edef48c12a152c237eb0203f7661" "checksum base64 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)" = "96434f987501f0ed4eb336a411e0631ecd1afa11574fe148587adc4ff96143c9" "checksum base64 0.9.1 (registry+https://github.com/rust-lang/crates.io-index)" = "9263aa6a38da271eec5c91a83ce1e800f093c8535788d403d626d8d5c3f8f007" @@ -2111,22 +2144,22 @@ dependencies = [ "checksum brotli-sys 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)" = "4445dea95f4c2b41cde57cc9fee236ae4dbae88d8fcbdb4750fc1bb5d86aaecd" "checksum brotli2 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)" = "0cb036c3eade309815c15ddbacec5b22c4d1f3983a774ab2eac2e3e9ea85568e" "checksum build_const 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "39092a32794787acd8525ee150305ff051b0aa6cc2abaf193924f5ab05425f39" -"checksum bytecount 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "af27422163679dea46a1a7239dffff64d3dcdc3ba5fe9c49c789fbfe0eb949de" -"checksum byteorder 1.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "73b5bdfe7ee3ad0b99c9801d58807a9dbc9e09196365b0203853b99889ab3c87" +"checksum bytecount 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "882585cd7ec84e902472df34a5e01891202db3bf62614e1f0afe459c1afcf744" +"checksum byteorder 1.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "74c0b906e9446b0a2e4f760cdb3fa4b2c48cdc6db8766a845c54b6ff063fd2e9" "checksum bytes 0.4.7 (registry+https://github.com/rust-lang/crates.io-index)" = "2f1d50c876fb7545f5f289cd8b2aee3f359d073ae819eed5d6373638e2c61e59" -"checksum cargo_metadata 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "1f56ec3e469bca7c276f2eea015aa05c5e381356febdbb0683c2580189604537" +"checksum cargo_metadata 0.5.4 (registry+https://github.com/rust-lang/crates.io-index)" = "6ebd6272a2ca4fd39dbabbd6611eb03df45c2259b3b80b39a9ff8fbdcf42a4b3" "checksum cc 1.0.15 (registry+https://github.com/rust-lang/crates.io-index)" = "0ebb87d1116151416c0cf66a0e3fb6430cccd120fd6300794b4dfaa050ac40ba" -"checksum cfg-if 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "d4c819a1287eb618df47cc647173c5c4c66ba19d888a6e50d605672aed3140de" +"checksum cfg-if 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)" = "405216fd8fe65f718daa7102ea808a946b6ce40c742998fbfd3463645552de18" "checksum chrono 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)" = "1cce36c92cb605414e9b824f866f5babe0a0368e39ea07393b9b63cf3844c0e6" "checksum clap 2.31.2 (registry+https://github.com/rust-lang/crates.io-index)" = "f0f16b89cbb9ee36d87483dc939fe9f1e13c05898d56d7b230a0d4dff033a536" -"checksum comrak 0.2.9 (registry+https://github.com/rust-lang/crates.io-index)" = "17a5772ca33e3ec805360145413ccb60e0256b504919d3c7d38bfb844cd0dc75" +"checksum comrak 0.2.12 (registry+https://github.com/rust-lang/crates.io-index)" = "053b26c8ce23b4c505a9479beace98f95899e0bf5c5255cf0219e9b0f48cf6ea" "checksum cookie 0.10.1 (registry+https://github.com/rust-lang/crates.io-index)" = "746858cae4eae40fff37e1998320068df317bc247dc91a67c6cfa053afdc2abb" "checksum core-foundation 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "25bfd746d203017f7d5cbd31ee5d8e17f94b6521c7af77ece6c9e4b2d4b16c67" "checksum core-foundation-sys 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "065a5d7ffdcbc8fa145d6f0746f3555025b9097a9e9cda59f7467abae670c78d" "checksum crc 1.8.1 (registry+https://github.com/rust-lang/crates.io-index)" = "d663548de7f5cca343f1e0a48d14dcfb0e9eb4e079ec58883b7251539fa10aeb" "checksum crossbeam-channel 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "9d7b07a3084d8718d95338443d5a46aab38ce16d5f991d4027a0906b369f70a3" "checksum crossbeam-deque 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "f739f8c5363aca78cfb059edf753d8f0d36908c348f3d8d1503f03d8b75d9cf3" -"checksum crossbeam-deque 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "c1bdc73742c36f7f35ebcda81dbb33a7e0d33757d03a06d9ddca762712ec5ea2" +"checksum crossbeam-deque 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "fe8153ef04a7594ded05b427ffad46ddeaf22e63fd48d42b3e1e3bb4db07cae7" "checksum crossbeam-epoch 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "9898f21d6d647793e163c804944941fb19aecd1f4a1a4c254bbb0bee15ccdea5" "checksum crossbeam-epoch 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "927121f5407de9956180ff5e936fe3cf4324279280001cd56b669d28ee7e9150" "checksum crossbeam-epoch 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)" = "9b4e2817eb773f770dcb294127c011e22771899c21d18fce7dd739c0b9832e81" @@ -2145,7 +2178,7 @@ dependencies = [ "checksum encoding_index_tests 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)" = "a246d82be1c9d791c5dfde9a2bd045fc3cbba3fa2b11ad558f27d01712f00569" "checksum encoding_rs 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)" = "98fd0f24d1fb71a4a6b9330c8ca04cbd4e7cc5d846b54ca74ff376bc7c9f798d" "checksum entities 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "b5320ae4c3782150d900b79807611a59a99fc9a1d61d686faafc24b93fc8d7ca" -"checksum env_logger 0.5.9 (registry+https://github.com/rust-lang/crates.io-index)" = "00c45cec4cde3daac5f036c74098b4956151525cdf360cff5ee0092c98823e54" +"checksum env_logger 0.5.10 (registry+https://github.com/rust-lang/crates.io-index)" = "0e6e40ebb0e66918a37b38c7acab4e10d299e0463fe2af5d29b9cc86710cfd2a" "checksum error-chain 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)" = "faa976b4fd2e4c2b2f3f486874b19e61944d3de3de8b61c9fcf835d583871bcc" "checksum error-chain 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ff511d5dc435d703f4971bc399647c9bc38e20cb41452e3b9feb4765419ed3f3" "checksum error-chain 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)" = "6930e04918388a9a2e41d518c25cf679ccafe26733fb4127dbf21993f2575d46" @@ -2162,20 +2195,19 @@ dependencies = [ "checksum gcc 0.3.54 (registry+https://github.com/rust-lang/crates.io-index)" = "5e33ec290da0d127825013597dbdfc28bee4964690c7ce1166cbc2a7bd08b1bb" "checksum getopts 0.2.17 (registry+https://github.com/rust-lang/crates.io-index)" = "b900c08c1939860ce8b54dc6a89e26e00c04c380fd0e09796799bd7f12861e05" "checksum glob 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)" = "8be18de09a56b60ed0edf84bc9df007e30040691af7acd1c41874faac5895bfb" -"checksum h2 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = "c91a0ee01fcf961ae004d88f1a77fc47dc5db6164f7d57605cc9f2c93d535686" +"checksum h2 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)" = "34008a00595502a91f0986873ad29787c2fec1c916f11cd9a412c63305441f55" "checksum hostname 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)" = "58fab6e177434b0bb4cd344a4dabaa5bd6d7a8d792b1885aebcae7af1091d1cb" "checksum http 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "75df369fd52c60635208a4d3e694777c099569b3dcf4844df8f652dc004644ab" "checksum http-range 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "5f2e4003e6fd05ea9109db00415e670b11f511a42e567ff2d5d771cbdfa24e02" "checksum httparse 1.2.4 (registry+https://github.com/rust-lang/crates.io-index)" = "c2f407128745b78abc95c0ffbe4e5d37427fdc0d45470710cfef8c44522a2e37" "checksum humansize 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "b6cab2627acfc432780848602f3f558f7e9dd427352224b0d9324025796d2a5e" "checksum humantime 1.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "0484fda3e7007f2a4a0d9c3a703ca38c71c54c55602ce4660c419fd32e188c9e" -"checksum hyper 0.11.25 (registry+https://github.com/rust-lang/crates.io-index)" = "549dbb86397490ce69d908425b9beebc85bbaad25157d67479d4995bb56fdf9a" +"checksum hyper 0.11.27 (registry+https://github.com/rust-lang/crates.io-index)" = "34a590ca09d341e94cddf8e5af0bbccde205d5fbc2fa3c09dd67c7f85cea59d7" "checksum hyper-tls 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)" = "a5aa51f6ae9842239b0fac14af5f22123b8432b4cc774a44ff059fcba0f675ca" "checksum idna 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)" = "014b298351066f1512874135335d62a789ffe78a9974f94b43ed5621951eaf7d" "checksum indexmap 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "08173ba1e906efb6538785a8844dd496f5d34f0a2d88038e95195172fc667220" "checksum iovec 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "dbe6e417e7d0975db6512b90796e8ce223145ac4e33c377e4a42882a0e88bb08" "checksum ipconfig 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = "9ec4e18c0a0d4340870c14284293632d8421f419008371422dd327892b88877c" -"checksum itoa 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)" = "8324a32baf01e2ae060e9de58ed0bc2320c9a2833491ee36cd3b4c414de4db8c" "checksum itoa 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)" = "c069bbec61e1ca5a596166e55dfe4773ff745c3d16b700013bcaff9a6df2c682" "checksum kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "7507624b29483431c0ba2d82aece8ca6cdba9382bff4ddd0f7490560c056098d" "checksum language-tags 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "a91d884b6667cd606bb5a69aa0c99ba811a115fc68915e7056ec08a46e93199a" @@ -2193,17 +2225,17 @@ dependencies = [ "checksum memchr 2.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "796fba70e76612589ed2ce7f45282f5af869e0fdd7cc6199fa1aa1f1d591ba9d" "checksum memoffset 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "e163e5baece1a039e71e75b074de17a9b4114982aa109921fc20253bdf91a53c" "checksum memoffset 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "0f9dc261e2b62d7a622bf416ea3c5245cdd5d9a7fcc428c0d06804dfce1775b3" -"checksum mime 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)" = "e2e00e17be181010a91dbfefb01660b17311059dc8c7f48b9017677721e732bd" +"checksum mime 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)" = "0b28683d0b09bbc20be1c9b3f6f24854efb1356ffcffee08ea3f6e65596e85fa" "checksum mime_guess 2.0.0-alpha.4 (registry+https://github.com/rust-lang/crates.io-index)" = "130ea3c9c1b65dba905ab5a4d9ac59234a9585c24d135f264e187fe7336febbd" "checksum miniz-sys 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)" = "609ce024854aeb19a0ef7567d348aaa5a746b32fb72e336df7fcc16869d7e2b4" "checksum mio 0.6.14 (registry+https://github.com/rust-lang/crates.io-index)" = "6d771e3ef92d58a8da8df7d6976bfca9371ed1de6619d9d5a5ce5b1f29b85bfe" -"checksum mio-uds 0.6.4 (registry+https://github.com/rust-lang/crates.io-index)" = "1731a873077147b626d89cc6c2a0db6288d607496c5d10c0cfcf3adc697ec673" +"checksum mio-uds 0.6.6 (registry+https://github.com/rust-lang/crates.io-index)" = "84c7b5caa3a118a6e34dbac36504503b1e8dc5835e833306b9d6af0e05929f79" "checksum miow 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "8c1f2f3b1cf331de6896aabf6e9d55dca90356cc9960cca7eaaf408a355ae919" "checksum native-tls 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "f74dbadc8b43df7864539cedb7bc91345e532fdd913cfdc23ad94f4d2d40fbc0" "checksum net2 0.2.32 (registry+https://github.com/rust-lang/crates.io-index)" = "9044faf1413a1057267be51b5afba8eb1090bd2231c693664aa1db716fe1eae0" "checksum nodrop 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)" = "9a2228dca57108069a5262f2ed8bd2e82496d2e074a06d1ccc7ce1687b6ae0a2" -"checksum num-integer 0.1.36 (registry+https://github.com/rust-lang/crates.io-index)" = "f8d26da319fb45674985c78f1d1caf99aa4941f785d384a2ae36d0740bc3e2fe" -"checksum num-traits 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "dee092fcdf725aee04dd7da1d21debff559237d49ef1cb3e69bcb8ece44c7364" +"checksum num-integer 0.1.38 (registry+https://github.com/rust-lang/crates.io-index)" = "6ac0ea58d64a89d9d6b7688031b3be9358d6c919badcf7fbb0527ccfd891ee45" +"checksum num-traits 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)" = "775393e285254d2f5004596d69bb8bc1149754570dcc08cf30cabeba67955e28" "checksum num_cpus 1.8.0 (registry+https://github.com/rust-lang/crates.io-index)" = "c51a3322e4bca9d212ad9a158a02abc6934d005490c054a2778df73a70aa0a30" "checksum openssl 0.9.24 (registry+https://github.com/rust-lang/crates.io-index)" = "a3605c298474a3aa69de92d21139fb5e2a81688d308262359d85cdd0d12a7985" "checksum openssl-sys 0.9.30 (registry+https://github.com/rust-lang/crates.io-index)" = "73ae718c3562989cd3a0a5c26610feca02f8116822f6f195e6cf4887481e57f5" @@ -2234,31 +2266,32 @@ dependencies = [ "checksum redox_syscall 0.1.37 (registry+https://github.com/rust-lang/crates.io-index)" = "0d92eecebad22b767915e4d529f89f28ee96dbbf5a4810d2b844373f136417fd" "checksum redox_termios 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "7e891cfe48e9100a70a3b6eb652fef28920c117d366339687bd5576160db0f76" "checksum regex 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)" = "9329abc99e39129fcceabd24cf5d85b4671ef7c29c50e972bc5afe32438ec384" +"checksum regex 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "75ecf88252dce580404a22444fc7d626c01815debba56a7f4f536772a5ff19d3" "checksum regex-syntax 0.5.6 (registry+https://github.com/rust-lang/crates.io-index)" = "7d707a4fa2637f2dca2ef9fd02225ec7661fe01a53623c1e6515b6916511f7a7" +"checksum regex-syntax 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)" = "8f1ac0f60d675cc6cf13a20ec076568254472551051ad5dd050364d70671bf6b" "checksum relay 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "1576e382688d7e9deecea24417e350d3062d97e32e45d70b1cde65994ff1489a" "checksum remove_dir_all 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)" = "3488ba1b9a2084d38645c4c08276a1752dcbf2c7130d74f1569681ad5d2799c5" "checksum reqwest 0.8.5 (registry+https://github.com/rust-lang/crates.io-index)" = "241faa9a8ca28a03cbbb9815a5d085f271d4c0168a19181f106aa93240c22ddb" "checksum resolv-conf 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)" = "8e1b086bb6a2659d6ba66e4aa21bde8a53ec03587cd5c80b83bdc3a330f35cab" "checksum ring 0.12.1 (registry+https://github.com/rust-lang/crates.io-index)" = "6f7d28b30a72c01b458428e0ae988d4149c20d902346902be881e3edc4bb325c" -"checksum rustc-demangle 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)" = "11fb43a206a04116ffd7cfcf9bcb941f8eb6cc7ff667272246b0a1c74259a3cb" +"checksum rustc-demangle 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)" = "76d7ba1feafada44f2d38eed812bd2489a03c0f5abb975799251518b68848649" "checksum safemem 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "e27a8b19b835f7aea908818e871f5cc3a5a186550c30773be987e155e8163d8f" -"checksum same-file 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)" = "d931a44fdaa43b8637009e7632a02adc4f2b2e0733c08caa4cf00e8da4a117a7" +"checksum same-file 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = "cfb6eded0b06a0b512c8ddbcf04089138c9b4362c2f696f3c3d76039d68f3637" "checksum schannel 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)" = "85fd9df495640643ad2d00443b3d78aae69802ad488debab4f1dd52fc1806ade" "checksum scheduled-thread-pool 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "1a2ff3fc5223829be817806c6441279c676e454cc7da608faf03b0ccc09d3889" -"checksum scoped-tls 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "8674d439c964889e2476f474a3bf198cc9e199e77499960893bac5de7e9218a4" +"checksum scoped-tls 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "332ffa32bf586782a3efaeb58f127980944bbc8c4d6913a86107ac2a5ab24b28" "checksum scopeguard 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "94258f53601af11e6a49f722422f6e3425c52b06245a5cf9bc09908b174f5e27" "checksum security-framework 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)" = "dfa44ee9c54ce5eecc9de7d5acbad112ee58755239381f687e564004ba4a2332" "checksum security-framework-sys 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)" = "5421621e836278a0b139268f36eee0dc7e389b784dc3f79d8f11aabadf41bead" -"checksum semver 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)" = "bee2bc909ab2d8d60dab26e8cad85b25d795b14603a0dcb627b78b9d30b6454b" +"checksum semver 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)" = "1d7eb9ef2c18661902cc47e535f9bc51b78acd254da71d375c2f6720d9a40403" "checksum semver-parser 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3" -"checksum serde 1.0.43 (registry+https://github.com/rust-lang/crates.io-index)" = "0c855d888276f20d140223bd06515e5bf1647fd6d02593cb5792466d9a8ec2d0" -"checksum serde_derive 1.0.43 (registry+https://github.com/rust-lang/crates.io-index)" = "aa113e5fc4b008a626ba2bbd41330b56c9987d667f79f7b243e5a2d03d91ed1c" -"checksum serde_derive_internals 0.23.1 (registry+https://github.com/rust-lang/crates.io-index)" = "9d30c4596450fd7bbda79ef15559683f9a79ac0193ea819db90000d7e1cae794" -"checksum serde_json 1.0.16 (registry+https://github.com/rust-lang/crates.io-index)" = "8c6c4e049dc657a99e394bd85c22acbf97356feeec6dbf44150f2dcf79fb3118" -"checksum serde_urlencoded 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)" = "ce0fd303af908732989354c6f02e05e2e6d597152870f2c6990efb0577137480" +"checksum serde 1.0.55 (registry+https://github.com/rust-lang/crates.io-index)" = "97f6a6c3caba0cf8f883b53331791036404ce3c1bd895961cf8bb2f8cecfd84b" +"checksum serde_derive 1.0.55 (registry+https://github.com/rust-lang/crates.io-index)" = "f51b0ef935cf8a41a77bce553da1f8751a739b7ad82dd73669475a22e6ecedb0" +"checksum serde_json 1.0.17 (registry+https://github.com/rust-lang/crates.io-index)" = "f3ad6d546e765177cf3dded3c2e424a8040f870083a0e64064746b958ece9cb1" +"checksum serde_urlencoded 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)" = "e703cef904312097cfceab9ce131ff6bbe09e8c964a0703345a5f49238757bc1" "checksum sha1 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)" = "2579985fda508104f7587689507983eadd6a6e84dd35d6d115361f530916fa0d" "checksum siphasher 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "0df90a788073e8d0235a67e50441d47db7c8ad9debd91cbf43736a2a92d36537" -"checksum skeptic 0.13.2 (registry+https://github.com/rust-lang/crates.io-index)" = "c8431f8fca168e2db4be547bd8329eac70d095dff1444fee4b0fa0fabc7df75a" +"checksum skeptic 0.13.3 (registry+https://github.com/rust-lang/crates.io-index)" = "c4474d6da9593171bcb086890fc344a3a12783cb24e5b141f8a5d0e43561f4b6" "checksum slab 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "17b4fcaed89ab08ef143da37bc52adbcc04d4a69014f4c1208d6b51f0c47bc23" "checksum slab 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "fdeff4cd9ecff59ec7e3744cbca73dfe5ac35c2aedb2cfba8a1c715a18912e9d" "checksum slug 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)" = "797bcb4d24e91239a8615415814f4afb2d8ca400c472de3c73f803a5a7689e11" @@ -2270,7 +2303,7 @@ dependencies = [ "checksum strsim 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "bb4f380125926a99e52bc279241539c018323fab05ad6368b56f93d9369ff550" "checksum syn 0.11.11 (registry+https://github.com/rust-lang/crates.io-index)" = "d3b891b9015c88c576343b9b3e41c2c11a51c219ef067b264bd9c8aa9b441dad" "checksum syn 0.12.15 (registry+https://github.com/rust-lang/crates.io-index)" = "c97c05b8ebc34ddd6b967994d5c6e9852fa92f8b82b3858c39451f97346dcce5" -"checksum syn 0.13.4 (registry+https://github.com/rust-lang/crates.io-index)" = "90d5efaad92a0f96c629ae16302cc9591915930fd49ff0dcc6b4cde146782397" +"checksum syn 0.13.10 (registry+https://github.com/rust-lang/crates.io-index)" = "77961dcdac942fa8bc033c16f3a790b311c8a27d00811b878ebd8cf9b7ba39d5" "checksum synom 0.11.3 (registry+https://github.com/rust-lang/crates.io-index)" = "a393066ed9010ebaed60b9eafa373d4b1baac186dd7e008555b0f702b51945b6" "checksum synstructure 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)" = "3a761d12e6d8dcb4dcf952a7a89b475e3a9d69e4a69307e01a470977642914bd" "checksum take 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "b157868d8ac1f56b64604539990685fa7611d8fa9e5476cf0c02cf34d32917c5" @@ -2280,29 +2313,31 @@ dependencies = [ "checksum termion 1.5.1 (registry+https://github.com/rust-lang/crates.io-index)" = "689a3bdfaab439fd92bc87df5c4c78417d3cbe537487274e9b0b2dce76e92096" "checksum textwrap 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)" = "c0b59b6b4b44d867f1370ef1bd91bfb262bf07bf0ae65c202ea2fbc16153b693" "checksum thread_local 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)" = "279ef31c19ededf577bfd12dfae728040a21f635b06a24cd670ff510edd38963" -"checksum time 0.1.39 (registry+https://github.com/rust-lang/crates.io-index)" = "a15375f1df02096fb3317256ce2cee6a1f42fc84ea5ad5fc8c421cfe40c73098" -"checksum tokio 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "be15ef40f675c9fe66e354d74c73f3ed012ca1aa14d65846a33ee48f1ae8d922" +"checksum time 0.1.40 (registry+https://github.com/rust-lang/crates.io-index)" = "d825be0eb33fda1a7e68012d51e9c7f451dc1a69391e7fdc197060bb8c56667b" +"checksum tokio 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = "7d00555353b013e170ed8bc4e13f648a317d1fd12157dbcae13f7013f6cf29f5" "checksum tokio-core 0.1.17 (registry+https://github.com/rust-lang/crates.io-index)" = "aeeffbbb94209023feaef3c196a41cbcdafa06b4a6f893f68779bb5e53796f71" "checksum tokio-executor 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "8cac2a7883ff3567e9d66bb09100d09b33d90311feca0206c7ca034bc0c55113" +"checksum tokio-fs 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "76766830bbf9a2d5bfb50c95350d56a2e79e2c80f675967fff448bc615899708" "checksum tokio-io 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = "6af9eb326f64b2d6b68438e1953341e00ab3cf54de7e35d92bfc73af8555313a" "checksum tokio-proto 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "8fbb47ae81353c63c487030659494b295f6cb6576242f907f203473b191b0389" "checksum tokio-reactor 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "b3cedc8e5af5131dc3423ffa4f877cce78ad25259a9a62de0613735a13ebc64b" "checksum tokio-service 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "24da22d077e0f15f55162bdbdc661228c1581892f52074fb242678d015b45162" "checksum tokio-signal 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "e8f46863230f9a05cf52d173721ec391b9c5782a2465f593029922b8782b9ffe" "checksum tokio-tcp 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ec9b094851aadd2caf83ba3ad8e8c4ce65a42104f7b94d9e6550023f0407853f" -"checksum tokio-threadpool 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "bf3d05cdd6a78005e535d2b27c21521bdf91fbb321027a62d8e178929d18966d" -"checksum tokio-timer 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "29a89e4ad0c8f1e4c9860e605c38c69bfdad3cccd4ea446e58ff588c1c07a397" +"checksum tokio-threadpool 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)" = "5783254b10c7c84a56f62c74766ef7e5b83d1f13053218c7cab8d3f2c826fa0e" +"checksum tokio-timer 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "535fed0ccee189f3d48447587697ba3fd234b3dbbb091f0ec4613ddfec0a7c4c" "checksum tokio-tls 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)" = "772f4b04e560117fe3b0a53e490c16ddc8ba6ec437015d91fa385564996ed913" "checksum tokio-udp 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "137bda266504893ac4774e0ec4c2108f7ccdbcb7ac8dced6305fe9e4e0b5041a" "checksum trust-dns-proto 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "cbbddb93547eeee847367d8f59b68002294a7b4df31c143fbee4109ce0c61a04" "checksum trust-dns-resolver 0.8.2 (registry+https://github.com/rust-lang/crates.io-index)" = "9b0a0c9d4f8dd56481209c5ae1a8965ed022461d352c81fb92466ec9d846929e" +"checksum try-lock 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ee2aa4715743892880f70885373966c83d73ef1b0838a664ef0c76fffd35e7c2" "checksum twoway 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)" = "59b11b2b5241ba34be09c3cc85a36e56e48f9888862e19cedf23336d35316ed1" "checksum typed-arena 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "5934776c3ac1bea4a9d56620d6bf2d483b20d394e49581db40f187e1118ff667" "checksum ucd-util 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "fd2be2d6639d0f8fe6cdda291ad456e23629558d466e2789d2c3e9892bda285d" "checksum unicase 1.4.2 (registry+https://github.com/rust-lang/crates.io-index)" = "7f4765f83163b74f957c797ad9253caf97f103fb064d3999aea9568d09fc8a33" "checksum unicase 2.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "284b6d3db520d67fbe88fd778c21510d1b0ba4a551e5d0fbb023d33405f6de8a" "checksum unicode-bidi 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)" = "49f2bd0c6468a8230e1db229cff8029217cf623c767ea5d60bfbd42729ea54d5" -"checksum unicode-normalization 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "51ccda9ef9efa3f7ef5d91e8f9b83bbe6955f9bf86aec89d5cce2c874625920f" +"checksum unicode-normalization 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)" = "6a0180bc61fc5a987082bfa111f4cc95c4caff7f9799f3e46df09163a937aa25" "checksum unicode-width 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)" = "bf3a113775714a22dcb774d8ea3655c53a32debae63a063acc00a91cc586245f" "checksum unicode-xid 0.0.4 (registry+https://github.com/rust-lang/crates.io-index)" = "8c1f860d7d29cf02cb2f3f359fd35991af3d30bac52c57d265a3c461074cb4dc" "checksum unicode-xid 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "fc72304796d0818e357ead4e000d19c9c174ab23dc11093ac919054d20a6a7fc" @@ -2316,10 +2351,11 @@ dependencies = [ "checksum uuid 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)" = "bcc7e3b898aa6f6c08e5295b6c89258d1331e9ac578cc992fb818759951bdc22" "checksum uuid 0.6.3 (registry+https://github.com/rust-lang/crates.io-index)" = "8630752f979f1b6b87c49830a5e3784082545de63920d59fbaac252474319447" "checksum vcpkg 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "7ed0f6789c8a85ca41bbc1c9d175422116a9869bd1cf31bb08e1493ecce60380" -"checksum vec_map 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)" = "887b5b631c2ad01628bbbaa7dd4c869f80d3186688f8d0b6f58774fbe324988c" +"checksum vec_map 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)" = "05c78687fb1a80548ae3250346c3db86a80a7cdd77bda190189f2d0a0987c81a" "checksum version_check 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)" = "6b772017e347561807c1aa192438c5fd74242a670a6cffacc40f2defd1dc069d" "checksum void 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = "6a02e4885ed3bc0f2de90ea6dd45ebcbb66dacffe03547fadbb0eeae2770887d" -"checksum walkdir 1.0.7 (registry+https://github.com/rust-lang/crates.io-index)" = "bb08f9e670fab86099470b97cd2b252d6527f0b3cc1401acdb595ffc9dd288ff" +"checksum walkdir 2.1.4 (registry+https://github.com/rust-lang/crates.io-index)" = "63636bd0eb3d00ccb8b9036381b526efac53caf112b7783b730ab3f8e44da369" +"checksum want 0.0.4 (registry+https://github.com/rust-lang/crates.io-index)" = "a05d9d966753fa4b5c8db73fcab5eed4549cfe0e1e4e66911e5564a0085c35d1" "checksum widestring 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "7157704c2e12e3d2189c507b7482c52820a16dfa4465ba91add92f266667cadb" "checksum winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)" = "167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a" "checksum winapi 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)" = "04e3bd221fcbe8a271359c04f21a76db7d0c6028862d1bb5512d85e1e2eb5bb3" diff --git a/Cargo.toml b/Cargo.toml index de71231ca..22714c824 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -27,6 +27,7 @@ comrak = "0.2" md5 = "0.3.7" tokio = "0.1" tokio-timer = "0.2" +pq-sys = "=0.4.4" [build-dependencies] pulldown-cmark = "0.1" diff --git a/default.nix b/default.nix index b9197cbb7..5b8a67480 100644 --- a/default.nix +++ b/default.nix @@ -1,5202 +1,15 @@ -# Most of this file was generated using `carnix`, however some fixes -# have been applied manually. When upgrading dependencies, care must -# be taken to not break those fixes: +# This Nix derivation imports the generated Carnix sources and builds +# Converse. # -# 1. Carnix derivations break if a crate's features start with a -# number, which is the case for several of Diesel's features. Those -# have had quotes added around them to fix the issue. +# To work around an issue in Carnix ([1] & [2]) the attributes of the +# comrak crate have been overridden with a dummy environment variable +# to simulate a Cargo-based build. This requires a manual change to +# `Cargo.nix` when updating dependencies. # -# 2. The last line of the derivation has been modified to return the -# derivation for Converse itself, rather than an attribute set of -# all crate derivations. -# -# 3. To fix an issue building Comrak, the Markdown parser, the -# derivation attributes have been overridden to provide a "dummy" -# environment variable that Comrak's binary attempts to read during -# the build. -# Unfortunately Carnix can not currently be configured to not build -# the binary of a dependency (even if the relevant feature is -# disabled), so this workaround is required. +# [1]: https://nest.pijul.com/pmeunier/carnix/discussions/2 +# [2]: https://nest.pijul.com/pmeunier/carnix/discussions/3 -{ pkgs ? import {} }: +{ pkgs ? import {}}: -with pkgs; let kernel = buildPlatform.parsed.kernel.name; - abi = buildPlatform.parsed.abi.name; - include = includedFiles: src: - # The comments assume the `include` field of the Cargo.toml like: - # include = [ "foo", "bar" ] - # and the package is being built from /mypackage - # - # includeFiles == [ "foo" "bar" ] - let - # and includedFileAbsolutePaths == [ "/mypackage/foo" "/mypackage/bar" ] - includedFileAbsolutePaths = builtins.map (relativePath: toString (src + ("/" + relativePath))) includedFiles; - - # Return true only when a possible path exactly matches an - # absolute path, ie: - # - # checkExactMatch "/mypackage/foo" == true - # checkExactMatch "/mypackage/foo/bar" == false - # checkExactMatch "/mypackage/baz" == false - checkExactMatch = possiblePath: builtins.elem possiblePath includedFileAbsolutePaths; - - # Return true only when a possible path is a suffix to a - # directory described by the include. - # - # checkPrefixMatch "/mypackage/buzfoo" == false - # checkPrefixMatch "/mypackage/foo" == false - # checkPrefixMatch "/mypackage/foo/bar" == true - # checkPrefixMatch "/mypackage/baz/foo" == false - checkPrefixMatch = possiblePath: lib.lists.any - (acceptablePrefix: lib.strings.hasPrefix "${acceptablePrefix}/" possiblePath) - includedFileAbsolutePaths; - - in builtins.filterSource (possiblePath: _type: - builtins.trace "${possiblePath}" ((checkExactMatch possiblePath) || (checkPrefixMatch possiblePath)) - ) - src; - updateFeatures = f: up: functions: builtins.deepSeq f (lib.lists.foldl' (features: fun: fun features) (lib.attrsets.recursiveUpdate f up) functions); - mapFeatures = features: map (fun: fun { features = features; }); - mkFeatures = feat: lib.lists.foldl (features: featureName: - if feat.${featureName} or false then - [ featureName ] ++ features - else - features - ) [] (builtins.attrNames feat); -in -rec { - converse = f: converse_0_1_0 { features = converse_0_1_0_features { converse_0_1_0 = f; }; }; - actix_0_5_6_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "actix"; - version = "0.5.6"; - authors = [ "Nikolay Kim " ]; - sha256 = "13n1fq51banr49xd3pcxwdjciqhmbcpn32ym2m5rpa4bifpvid59"; - libPath = "src/lib.rs"; - build = "build.rs"; - inherit dependencies buildDependencies features; - }; - actix_web_0_5_6_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "actix-web"; - version = "0.5.6"; - authors = [ "Nikolay Kim " ]; - sha256 = "1xadbnpp7b12xfjzbnzzv3l3lfm836mvhqapz3nl7hwanidgsakf"; - libPath = "src/lib.rs"; - libName = "actix_web"; - build = "build.rs"; - inherit dependencies buildDependencies features; - }; - actix_derive_0_2_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "actix_derive"; - version = "0.2.0"; - authors = [ "Callym " "Nikolay Kim " ]; - sha256 = "0mh7wmw4kb8vy6pqzhis2y4qqfdz86c1zn4ns4knmvq3rqcjgqpa"; - procMacro = true; - build = "build.rs"; - inherit dependencies buildDependencies features; - }; - adler32_1_0_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "adler32"; - version = "1.0.2"; - authors = [ "Remi Rampin " ]; - sha256 = "1974q3nysai026zhz24df506cxwi09jdzqksll4h7ibpb5n9g1d4"; - inherit dependencies buildDependencies features; - }; - aho_corasick_0_6_4_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "aho-corasick"; - version = "0.6.4"; - authors = [ "Andrew Gallant " ]; - sha256 = "189v919mp6rzzgjp1khpn4zlq8ls81gh43x1lmc8kbkagdlpq888"; - libName = "aho_corasick"; - crateBin = [ { name = "aho-corasick-dot"; } ]; - inherit dependencies buildDependencies features; - }; - ansi_term_0_11_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "ansi_term"; - version = "0.11.0"; - authors = [ "ogham@bsago.me" "Ryan Scheel (Havvy) " "Josh Triplett " ]; - sha256 = "08fk0p2xvkqpmz3zlrwnf6l8sj2vngw464rvzspzp31sbgxbwm4v"; - inherit dependencies buildDependencies features; - }; - antidote_1_0_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "antidote"; - version = "1.0.0"; - authors = [ "Steven Fackler " ]; - sha256 = "1x2wgaw603jcjwsfvc8s2rpaqjv0aqj8mvws2ahhkvfnwkdf7icw"; - inherit dependencies buildDependencies features; - }; - arrayvec_0_4_7_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "arrayvec"; - version = "0.4.7"; - authors = [ "bluss" ]; - sha256 = "0fzgv7z1x1qnyd7j32vdcadk4k9wfx897y06mr3bw1yi52iqf4z4"; - inherit dependencies buildDependencies features; - }; - atty_0_2_10_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "atty"; - version = "0.2.10"; - authors = [ "softprops " ]; - sha256 = "1h26lssj8rwaz0xhwwm5a645r49yly211amfmd243m3m0jl49i2c"; - inherit dependencies buildDependencies features; - }; - backtrace_0_2_3_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "backtrace"; - version = "0.2.3"; - authors = [ "Alex Crichton " "The Rust Project Developers" ]; - sha256 = "12bv0zibls8wckz082jnky2ixykhixc7f72n652nd7l3ljlmkzim"; - build = "build.rs"; - inherit dependencies buildDependencies features; - }; - backtrace_0_3_6_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "backtrace"; - version = "0.3.6"; - authors = [ "Alex Crichton " "The Rust Project Developers" ]; - sha256 = "00p77iqrv2p47m4y5lq1clb8fi1xfmnz2520frqx88497ff4zhrx"; - inherit dependencies buildDependencies features; - }; - backtrace_sys_0_1_16_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "backtrace-sys"; - version = "0.1.16"; - authors = [ "Alex Crichton " ]; - sha256 = "1cn2c8q3dn06crmnk0p62czkngam4l8nf57wy33nz1y5g25pszwy"; - build = "build.rs"; - inherit dependencies buildDependencies features; - }; - base64_0_6_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "base64"; - version = "0.6.0"; - authors = [ "Alice Maz " "Marshall Pierce " ]; - sha256 = "0ql1rmczbnww3iszc0pfc6mqa47ravpsdf525vp6s8r32nyzspl5"; - inherit dependencies buildDependencies features; - }; - base64_0_9_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "base64"; - version = "0.9.1"; - authors = [ "Alice Maz " "Marshall Pierce " ]; - sha256 = "0fnsgkhn6aqbvvgbpcyzy1dbx840g0x5rvxdf82c5pv23knl0j0a"; - inherit dependencies buildDependencies features; - }; - bitflags_0_9_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "bitflags"; - version = "0.9.1"; - authors = [ "The Rust Project Developers" ]; - sha256 = "18h073l5jd88rx4qdr95fjddr9rk79pb1aqnshzdnw16cfmb9rws"; - inherit dependencies buildDependencies features; - }; - bitflags_1_0_3_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "bitflags"; - version = "1.0.3"; - authors = [ "The Rust Project Developers" ]; - sha256 = "162p4w4h1ad76awq6b5yivmls3d50m9cl27d8g588lsps6g8s5rw"; - inherit dependencies buildDependencies features; - }; - brotli_sys_0_3_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "brotli-sys"; - version = "0.3.2"; - authors = [ "Alex Crichton " ]; - sha256 = "0b68xckd06a5gvdykimgr5f0f2whrhj0lwqq6scy0viaargqkdnl"; - build = "build.rs"; - inherit dependencies buildDependencies features; - }; - brotli2_0_3_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "brotli2"; - version = "0.3.2"; - authors = [ "Alex Crichton " ]; - sha256 = "1daqrhn50rr8k03h7dd2zkjc0qn2c45q6hrmi642fnz0y5rfwm5y"; - inherit dependencies buildDependencies features; - }; - build_const_0_2_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "build_const"; - version = "0.2.1"; - authors = [ "Garrett Berg " ]; - sha256 = "15249xzi3qlm72p4glxgavwyq70fx2sp4df6ii0sdlrixrrp77pl"; - inherit dependencies buildDependencies features; - }; - bytecount_0_2_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "bytecount"; - version = "0.2.0"; - authors = [ "Andre Bogus " "Joshua Landau " ]; - sha256 = "0aa82dv2mdx01n8wrhqj7bzdffyw5p4fdps4lf4a2h2dkn7sgjg1"; - inherit dependencies buildDependencies features; - }; - byteorder_1_2_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "byteorder"; - version = "1.2.2"; - authors = [ "Andrew Gallant " ]; - sha256 = "03cj21di3hck3w8a09z2b9a4jv0aay7a4bjdd1f86h3a4icl68m1"; - inherit dependencies buildDependencies features; - }; - bytes_0_4_7_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "bytes"; - version = "0.4.7"; - authors = [ "Carl Lerche " ]; - sha256 = "1icr74r099d0c0a2q1pz51182z7911g92h2j60al351kz78dzv3f"; - inherit dependencies buildDependencies features; - }; - cargo_metadata_0_3_3_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "cargo_metadata"; - version = "0.3.3"; - authors = [ "Oliver Schneider " ]; - sha256 = "0vdxzdh6qmqdlcigvkzya5a4d4f9p0awm2kgkjgnxbc50y1xrndz"; - inherit dependencies buildDependencies features; - }; - cc_1_0_15_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "cc"; - version = "1.0.15"; - authors = [ "Alex Crichton " ]; - sha256 = "1zmcv4zf888byhay2qakqlc9b8snhy5ccfs35zb6flywmlj8f2c0"; - inherit dependencies buildDependencies features; - }; - cfg_if_0_1_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "cfg-if"; - version = "0.1.2"; - authors = [ "Alex Crichton " ]; - sha256 = "0x06hvrrqy96m97593823vvxcgvjaxckghwyy2jcyc8qc7c6cyhi"; - inherit dependencies buildDependencies features; - }; - chrono_0_4_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "chrono"; - version = "0.4.2"; - authors = [ "Kang Seonghoon " "Brandon W Maister " ]; - sha256 = "1zp63v1g56kfjnazmqg8s4gb66l0ra8ggn3gzqbf9sr8d5lnfzak"; - inherit dependencies buildDependencies features; - }; - clap_2_31_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "clap"; - version = "2.31.2"; - authors = [ "Kevin K. " ]; - sha256 = "0r24ziw85a8y1sf2l21y4mvv5qan3rjafcshpyfsjfadqfxsij72"; - inherit dependencies buildDependencies features; - }; - comrak_0_2_9_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "comrak"; - version = "0.2.9"; - authors = [ "Ashe Connor " ]; - sha256 = "14pqn1m2yiyhanbnvza8zc2y8k7yzz0jdxqxpxi02d38d211wi2d"; - crateBin = [ { name = "comrak"; } ]; - inherit dependencies buildDependencies features; - }; - converse_0_1_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "converse"; - version = "0.1.0"; - authors = [ "Vincent Ambo " ]; - src = ./.; - inherit dependencies buildDependencies features; - }; - cookie_0_10_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "cookie"; - version = "0.10.1"; - authors = [ "Alex Crichton " "Sergio Benitez " ]; - sha256 = "0sipihjzmipb13i2hzlvzsyljj00cjs7vx1ymslxr9m6kl2y0qpq"; - inherit dependencies buildDependencies features; - }; - core_foundation_0_2_3_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "core-foundation"; - version = "0.2.3"; - authors = [ "The Servo Project Developers" ]; - sha256 = "1g0vpya5h2wa0nlz4a74jar6y8z09f0p76zbzfqrm3dbfsrld1pm"; - inherit dependencies buildDependencies features; - }; - core_foundation_sys_0_2_3_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "core-foundation-sys"; - version = "0.2.3"; - authors = [ "The Servo Project Developers" ]; - sha256 = "19s0d03294m9s5j8cvy345db3gkhs2y02j5268ap0c6ky5apl53s"; - build = "build.rs"; - inherit dependencies buildDependencies features; - }; - crc_1_8_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "crc"; - version = "1.8.1"; - authors = [ "Rui Hu " ]; - sha256 = "00m9jjqrddp3bqyanvyxv0hf6s56bx1wy51vcdcxg4n2jdhg109s"; - inherit dependencies buildDependencies features; - }; - crossbeam_channel_0_1_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "crossbeam-channel"; - version = "0.1.2"; - authors = [ "The Crossbeam Project Developers" ]; - sha256 = "008xqz8w58sl43fmwpqqf08lp33sjq9gnmbgzw04l6ry7kidwm56"; - inherit dependencies buildDependencies features; - }; - crossbeam_deque_0_2_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "crossbeam-deque"; - version = "0.2.0"; - authors = [ "The Crossbeam Project Developers" ]; - sha256 = "1h3n1p1qy45b6388j3svfy1m72xlcx9j9a5y0mww6jz8fmknipnb"; - inherit dependencies buildDependencies features; - }; - crossbeam_deque_0_3_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "crossbeam-deque"; - version = "0.3.0"; - authors = [ "The Crossbeam Project Developers" ]; - sha256 = "0skpja7ri6q34li5plq8yk7xinc853014ra59ra9l5sdspcbdypa"; - inherit dependencies buildDependencies features; - }; - crossbeam_epoch_0_2_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "crossbeam-epoch"; - version = "0.2.0"; - authors = [ "The Crossbeam Project Developers" ]; - sha256 = "05hyrrbmz64z0gz6n9h6jmx7swnhika90h96fcyd83psjwpkap88"; - inherit dependencies buildDependencies features; - }; - crossbeam_epoch_0_3_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "crossbeam-epoch"; - version = "0.3.1"; - authors = [ "The Crossbeam Project Developers" ]; - sha256 = "1ljrrpvalabi3r2nnpcz7rqkbl2ydmd0mrrr2fv335f7d46xgfxa"; - inherit dependencies buildDependencies features; - }; - crossbeam_epoch_0_4_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "crossbeam-epoch"; - version = "0.4.1"; - authors = [ "The Crossbeam Project Developers" ]; - sha256 = "134565vkm0h14bk8c3bw0f7n8zzhwl6zi8127zvpa8iglchafn0a"; - inherit dependencies buildDependencies features; - }; - crossbeam_utils_0_2_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "crossbeam-utils"; - version = "0.2.2"; - authors = [ "The Crossbeam Project Developers" ]; - sha256 = "0jiwzxv0lysjq68yk4bzkygrf69zhdidyw55nxlmimxlm6xv0j4m"; - inherit dependencies buildDependencies features; - }; - crossbeam_utils_0_3_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "crossbeam-utils"; - version = "0.3.2"; - authors = [ "The Crossbeam Project Developers" ]; - sha256 = "1byx31nkxl48la58571h40ssk94faky26jwz15w40v2gba3v4fql"; - inherit dependencies buildDependencies features; - }; - dbghelp_sys_0_2_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "dbghelp-sys"; - version = "0.2.0"; - authors = [ "Peter Atashian " ]; - sha256 = "0ylpi3bbiy233m57hnisn1df1v0lbl7nsxn34b0anzsgg440hqpq"; - libName = "dbghelp"; - build = "build.rs"; - inherit dependencies buildDependencies features; - }; - diesel_1_2_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "diesel"; - version = "1.2.2"; - authors = [ "Sean Griffin " ]; - sha256 = "0bcy779ndq9l2l2vh3a7h1s1s2cw67365vkx4zhxdq22wyb8z90w"; - inherit dependencies buildDependencies features; - }; - diesel_derives_1_2_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "diesel_derives"; - version = "1.2.0"; - authors = [ "Sean Griffin " ]; - sha256 = "0ykq7c77zsdsak0r8d384nnca9fglhih6jq66d0b9sws8vjvn4m1"; - procMacro = true; - inherit dependencies buildDependencies features; - }; - dtoa_0_4_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "dtoa"; - version = "0.4.2"; - authors = [ "David Tolnay " ]; - sha256 = "1bxsh6fags7nr36vlz07ik2a1rzyipc8x1y30kjk832hf2pzadmw"; - inherit dependencies buildDependencies features; - }; - encoding_0_2_33_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "encoding"; - version = "0.2.33"; - authors = [ "Kang Seonghoon " ]; - sha256 = "16ls6avhv5ll28zajl5q1jbiz1g80c4ygnw13zzqmij14wsp5329"; - inherit dependencies buildDependencies features; - }; - encoding_index_japanese_1_20141219_5_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "encoding-index-japanese"; - version = "1.20141219.5"; - authors = [ "Kang Seonghoon " ]; - sha256 = "1pmfaabps0x6v6cd4fbk9ssykhkmc799dma2y78fhk7gvyr5gyl4"; - libPath = "lib.rs"; - libName = "encoding_index_japanese"; - inherit dependencies buildDependencies features; - }; - encoding_index_korean_1_20141219_5_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "encoding-index-korean"; - version = "1.20141219.5"; - authors = [ "Kang Seonghoon " ]; - sha256 = "1b756n7gcilkx07y7zjrikcg0b8v8yd6mw8w01ji8sp3k1cabcf2"; - libPath = "lib.rs"; - libName = "encoding_index_korean"; - inherit dependencies buildDependencies features; - }; - encoding_index_simpchinese_1_20141219_5_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "encoding-index-simpchinese"; - version = "1.20141219.5"; - authors = [ "Kang Seonghoon " ]; - sha256 = "0rb4xd8cqymhqffqqxdk18mf9n354vs50ar66jrysb1z6ymcvvpy"; - libPath = "lib.rs"; - libName = "encoding_index_simpchinese"; - inherit dependencies buildDependencies features; - }; - encoding_index_singlebyte_1_20141219_5_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "encoding-index-singlebyte"; - version = "1.20141219.5"; - authors = [ "Kang Seonghoon " ]; - sha256 = "07df3jrfwfmzi2s352lvcpvy5dqpy2s45d2xx2dz1x7zh3q5284d"; - libPath = "lib.rs"; - libName = "encoding_index_singlebyte"; - inherit dependencies buildDependencies features; - }; - encoding_index_tradchinese_1_20141219_5_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "encoding-index-tradchinese"; - version = "1.20141219.5"; - authors = [ "Kang Seonghoon " ]; - sha256 = "0lb12nbv29cy41gx26yz3v4kfi8h1xbn1ppja8szgqi2zm1wlywn"; - libPath = "lib.rs"; - libName = "encoding_index_tradchinese"; - inherit dependencies buildDependencies features; - }; - encoding_index_tests_0_1_4_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "encoding_index_tests"; - version = "0.1.4"; - authors = [ "Kang Seonghoon " ]; - sha256 = "0z09kwh4z76q00cfr081rgjbnai4s2maq2vk88lgrq9d6bkf93f6"; - libPath = "index_tests.rs"; - inherit dependencies buildDependencies features; - }; - encoding_rs_0_7_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "encoding_rs"; - version = "0.7.2"; - authors = [ "Henri Sivonen " ]; - sha256 = "1c23bi3q4qmi2ci8g7p5j4b4i5abyggvyg6hkl7w4p4r527c9g3q"; - inherit dependencies buildDependencies features; - }; - entities_1_0_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "entities"; - version = "1.0.1"; - authors = [ "Philip Jackson " ]; - sha256 = "1wvhgyl5mbbh3psw7c5w3mli6h87bk78aqap49mhp0654k87zw5g"; - inherit dependencies buildDependencies features; - }; - env_logger_0_5_9_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "env_logger"; - version = "0.5.9"; - authors = [ "The Rust Project Developers" ]; - sha256 = "1scf1gd6mjvxj4qzibpfvw5kqj36vxsgs19lm6wnbd84kh78892v"; - inherit dependencies buildDependencies features; - }; - error_chain_0_1_12_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "error-chain"; - version = "0.1.12"; - authors = [ "Brian Anderson " "Paul Colomiets " "Colin Kiegel " ]; - sha256 = "0pc1b8zbmim3qhlb0wfpxbvjhpq411rs0l9jzxplyr7j0b0wgbg1"; - inherit dependencies buildDependencies features; - }; - error_chain_0_8_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "error-chain"; - version = "0.8.1"; - authors = [ "Brian Anderson " "Paul Colomiets " "Colin Kiegel " "Yamakaky " ]; - sha256 = "0jaipqr2l2v84raynz3bvb0vnzysk7515j3mnb9i7g1qqprg2waq"; - inherit dependencies buildDependencies features; - }; - error_chain_0_11_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "error-chain"; - version = "0.11.0"; - authors = [ "Brian Anderson " "Paul Colomiets " "Colin Kiegel " "Yamakaky " ]; - sha256 = "19nz17q6dzp0mx2jhh9qbj45gkvvgcl7zq9z2ai5a8ihbisfj6d7"; - inherit dependencies buildDependencies features; - }; - failure_0_1_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "failure"; - version = "0.1.1"; - authors = [ "Without Boats " ]; - sha256 = "0gf9cmkm9kc163sszgjksqp5pcgj689lnf2104nn4h4is18nhigk"; - inherit dependencies buildDependencies features; - }; - failure_derive_0_1_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "failure_derive"; - version = "0.1.1"; - authors = [ "Without Boats " ]; - sha256 = "1w895q4pbyx3rwnhgjwfcayk9ghbi166wc1c3553qh8zkbz52k8i"; - procMacro = true; - inherit dependencies buildDependencies features; - }; - flate2_1_0_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "flate2"; - version = "1.0.1"; - authors = [ "Alex Crichton " ]; - sha256 = "0hi1r0sz8ca750hq9ym6d3n99g6rmmm8m8hadz2v49pfh6jd6svc"; - inherit dependencies buildDependencies features; - }; - fnv_1_0_6_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "fnv"; - version = "1.0.6"; - authors = [ "Alex Crichton " ]; - sha256 = "128mlh23y3gg6ag5h8iiqlcbl59smisdzraqy88ldrf75kbw27ip"; - libPath = "lib.rs"; - inherit dependencies buildDependencies features; - }; - foreign_types_0_3_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "foreign-types"; - version = "0.3.2"; - authors = [ "Steven Fackler " ]; - sha256 = "105n8sp2djb1s5lzrw04p7ss3dchr5qa3canmynx396nh3vwm2p8"; - inherit dependencies buildDependencies features; - }; - foreign_types_shared_0_1_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "foreign-types-shared"; - version = "0.1.1"; - authors = [ "Steven Fackler " ]; - sha256 = "0b6cnvqbflws8dxywk4589vgbz80049lz4x1g9dfy4s1ppd3g4z5"; - inherit dependencies buildDependencies features; - }; - fuchsia_zircon_0_3_3_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "fuchsia-zircon"; - version = "0.3.3"; - authors = [ "Raph Levien " ]; - sha256 = "0jrf4shb1699r4la8z358vri8318w4mdi6qzfqy30p2ymjlca4gk"; - inherit dependencies buildDependencies features; - }; - fuchsia_zircon_sys_0_3_3_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "fuchsia-zircon-sys"; - version = "0.3.3"; - authors = [ "Raph Levien " ]; - sha256 = "08jp1zxrm9jbrr6l26bjal4dbm8bxfy57ickdgibsqxr1n9j3hf5"; - inherit dependencies buildDependencies features; - }; - futures_0_1_21_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "futures"; - version = "0.1.21"; - authors = [ "Alex Crichton " ]; - sha256 = "0v4xrgkqx189b3b4lad2z5l9ay261p9412bzcdh1z6agxwhldr40"; - inherit dependencies buildDependencies features; - }; - futures_cpupool_0_1_8_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "futures-cpupool"; - version = "0.1.8"; - authors = [ "Alex Crichton " ]; - sha256 = "0ficd31n5ljiixy6x0vjglhq4fp0v1p4qzxm3v6ymsrb3z080l5c"; - inherit dependencies buildDependencies features; - }; - gcc_0_3_54_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "gcc"; - version = "0.3.54"; - authors = [ "Alex Crichton " ]; - sha256 = "07a5i47r8achc6gxsba3ga17h9gnh4b9a2cak8vjg4hx62aajkr4"; - inherit dependencies buildDependencies features; - }; - getopts_0_2_17_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "getopts"; - version = "0.2.17"; - authors = [ "The Rust Project Developers" ]; - sha256 = "1rifkxn7njr2w1dsa29hrm26ywgcg8gv1ms00g3vs5mjiabxk0jv"; - inherit dependencies buildDependencies features; - }; - glob_0_2_11_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "glob"; - version = "0.2.11"; - authors = [ "The Rust Project Developers" ]; - sha256 = "104389jjxs8r2f5cc9p0axhjmndgln60ih5x4f00ccgg9d3zarlf"; - inherit dependencies buildDependencies features; - }; - h2_0_1_6_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "h2"; - version = "0.1.6"; - authors = [ "Carl Lerche " ]; - sha256 = "00bkracb1ysifj2sl07gbx8jdajjrmcffk5hxr39lh2nd94nhlhm"; - inherit dependencies buildDependencies features; - }; - hostname_0_1_4_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "hostname"; - version = "0.1.4"; - authors = [ "fengcen " ]; - sha256 = "1wfz2afh9xjd5rdxgyrhvhl6z1vvdch5nnd7miw2pi3i90fw4r1h"; - libPath = "src/lib.rs"; - inherit dependencies buildDependencies features; - }; - http_0_1_5_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "http"; - version = "0.1.5"; - authors = [ "Alex Crichton " "Carl Lerche " "Sean McArthur " ]; - sha256 = "07p5q6h45r0hlnd6vg344iy72jk7xphzf6p38gb4fhb9iibnwn08"; - inherit dependencies buildDependencies features; - }; - http_range_0_1_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "http-range"; - version = "0.1.1"; - authors = [ "Luka Zakrajšek " ]; - sha256 = "1zl43iw110ybbl9g24jhwylqbwgwm25vpv9m47sfwy2ajaqb7b3g"; - inherit dependencies buildDependencies features; - }; - httparse_1_2_4_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "httparse"; - version = "1.2.4"; - authors = [ "Sean McArthur " ]; - sha256 = "169grgxpsq0jaa2fk913z692a6qi8c2n1kypsay124b37720d8ll"; - inherit dependencies buildDependencies features; - }; - humansize_1_1_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "humansize"; - version = "1.1.0"; - authors = [ "Leopold Arkham " ]; - sha256 = "1s7jj570vz90b7wsgd24lla1yn9qp3swgv9c7jgkgrw6bxynbv0p"; - inherit dependencies buildDependencies features; - }; - humantime_1_1_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "humantime"; - version = "1.1.1"; - authors = [ "Paul Colomiets " ]; - sha256 = "1lzdfsfzdikcp1qb6wcdvnsdv16pmzr7p7cv171vnbnyz2lrwbgn"; - libPath = "src/lib.rs"; - inherit dependencies buildDependencies features; - }; - hyper_0_11_25_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "hyper"; - version = "0.11.25"; - authors = [ "Sean McArthur " ]; - sha256 = "01sz75yi93x3hnyrr1n782kv5s1bzcr0114ylyw484j9xpsghw7d"; - inherit dependencies buildDependencies features; - }; - hyper_tls_0_1_3_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "hyper-tls"; - version = "0.1.3"; - authors = [ "Sean McArthur " ]; - sha256 = "1dr5arj79pdyz9f2jggqmna1qpc578f9pdgsf2ana5amjpsp0j89"; - inherit dependencies buildDependencies features; - }; - idna_0_1_4_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "idna"; - version = "0.1.4"; - authors = [ "The rust-url developers" ]; - sha256 = "15j44qgjx1skwg9i7f4cm36ni4n99b1ayx23yxx7axxcw8vjf336"; - inherit dependencies buildDependencies features; - }; - indexmap_1_0_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "indexmap"; - version = "1.0.1"; - authors = [ "bluss" "Josh Stone " ]; - sha256 = "10ak26zp3i5iyb03l99312q66jl20qs45cm5jnghm9ymdhspw3r4"; - inherit dependencies buildDependencies features; - }; - iovec_0_1_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "iovec"; - version = "0.1.2"; - authors = [ "Carl Lerche " ]; - sha256 = "0vjymmb7wj4v4kza5jjn48fcdb85j3k37y7msjl3ifz0p9yiyp2r"; - inherit dependencies buildDependencies features; - }; - ipconfig_0_1_6_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "ipconfig"; - version = "0.1.6"; - authors = [ "Liran Ringel " ]; - sha256 = "1jax0paxr9m2qfmc5l386d65m2g2wyzy077wzmbryv14d6dncfp8"; - inherit dependencies buildDependencies features; - }; - itoa_0_3_4_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "itoa"; - version = "0.3.4"; - authors = [ "David Tolnay " ]; - sha256 = "1nfkzz6vrgj0d9l3yzjkkkqzdgs68y294fjdbl7jq118qi8xc9d9"; - inherit dependencies buildDependencies features; - }; - itoa_0_4_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "itoa"; - version = "0.4.1"; - authors = [ "David Tolnay " ]; - sha256 = "1jyrsmrm5q4r2ipmq5hvvkqg0mgnlbk44lm7gr0v9ymvbrh2gbij"; - inherit dependencies buildDependencies features; - }; - kernel32_sys_0_2_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "kernel32-sys"; - version = "0.2.2"; - authors = [ "Peter Atashian " ]; - sha256 = "1lrw1hbinyvr6cp28g60z97w32w8vsk6pahk64pmrv2fmby8srfj"; - libName = "kernel32"; - build = "build.rs"; - inherit dependencies buildDependencies features; - }; - language_tags_0_2_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "language-tags"; - version = "0.2.2"; - authors = [ "Pyfisch " ]; - sha256 = "1zkrdzsqzzc7509kd7nngdwrp461glm2g09kqpzaqksp82frjdvy"; - inherit dependencies buildDependencies features; - }; - lazy_static_0_2_11_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "lazy_static"; - version = "0.2.11"; - authors = [ "Marvin Löbel " ]; - sha256 = "1x6871cvpy5b96yv4c7jvpq316fp5d4609s9py7qk6cd6x9k34vm"; - inherit dependencies buildDependencies features; - }; - lazy_static_1_0_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "lazy_static"; - version = "1.0.0"; - authors = [ "Marvin Löbel " ]; - sha256 = "0wfvqyr2nvx2mbsrscg5y7gfa9skhb8p72ayanl8vl49pw24v4fh"; - inherit dependencies buildDependencies features; - }; - lazycell_0_6_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "lazycell"; - version = "0.6.0"; - authors = [ "Alex Crichton " "Nikita Pekin " ]; - sha256 = "1ax148clinbvp6alxcih8s5i2bg3mc5mi69n3hvzvzbwlm6k532r"; - inherit dependencies buildDependencies features; - }; - libc_0_2_40_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "libc"; - version = "0.2.40"; - authors = [ "The Rust Project Developers" ]; - sha256 = "1xfc39237ldzgr8x8wcflgdr8zssi3wif7g2zxc02d94gzkjsw83"; - inherit dependencies buildDependencies features; - }; - libflate_0_1_14_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "libflate"; - version = "0.1.14"; - authors = [ "Takeru Ohta " ]; - sha256 = "03zq769bfffg3iyp2vkkjsmkskabrxiyh5khzppyyngm8w9xpdsc"; - inherit dependencies buildDependencies features; - }; - linked_hash_map_0_4_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "linked-hash-map"; - version = "0.4.2"; - authors = [ "Stepan Koltsov " "Andrew Paseltiner " ]; - sha256 = "04da208h6jb69f46j37jnvsw2i1wqplglp4d61csqcrhh83avbgl"; - inherit dependencies buildDependencies features; - }; - log_0_3_9_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "log"; - version = "0.3.9"; - authors = [ "The Rust Project Developers" ]; - sha256 = "19i9pwp7lhaqgzangcpw00kc3zsgcqcx84crv07xgz3v7d3kvfa2"; - inherit dependencies buildDependencies features; - }; - log_0_4_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "log"; - version = "0.4.1"; - authors = [ "The Rust Project Developers" ]; - sha256 = "01vm8yy3wngvyj6qp1x3xpcb4xq7v67yn9l7fsma8kz28mliz90d"; - inherit dependencies buildDependencies features; - }; - lru_cache_0_1_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "lru-cache"; - version = "0.1.1"; - authors = [ "Stepan Koltsov " ]; - sha256 = "1hl6kii1g54sq649gnscv858mmw7a02xj081l4vcgvrswdi2z8fw"; - inherit dependencies buildDependencies features; - }; - matches_0_1_6_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "matches"; - version = "0.1.6"; - authors = [ "Simon Sapin " ]; - sha256 = "1zlrqlbvzxdil8z8ial2ihvxjwvlvg3g8dr0lcdpsjclkclasjan"; - libPath = "lib.rs"; - inherit dependencies buildDependencies features; - }; - md5_0_3_7_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "md5"; - version = "0.3.7"; - authors = [ "Ivan Ukhov " "Kamal Ahmad " "Konstantin Stepanov " "Lukas Kalbertodt " "Nathan Musoke " "Tony Arcieri " ]; - sha256 = "1ga55k7asxln553m89ccka2hnp5gkvacxl98r3nmx4d9mzvwn352"; - inherit dependencies buildDependencies features; - }; - memchr_2_0_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "memchr"; - version = "2.0.1"; - authors = [ "Andrew Gallant " "bluss" ]; - sha256 = "0ls2y47rjwapjdax6bp974gdp06ggm1v8d1h69wyydmh1nhgm5gr"; - inherit dependencies buildDependencies features; - }; - memoffset_0_1_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "memoffset"; - version = "0.1.0"; - authors = [ "Gilad Naaman " ]; - sha256 = "1jq5vcfwqwxl709985srmsxs229da2hq3ab11fx3abbx1bpxcgx1"; - inherit dependencies buildDependencies features; - }; - memoffset_0_2_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "memoffset"; - version = "0.2.1"; - authors = [ "Gilad Naaman " ]; - sha256 = "00vym01jk9slibq2nsiilgffp7n6k52a4q3n4dqp0xf5kzxvffcf"; - inherit dependencies buildDependencies features; - }; - mime_0_3_5_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "mime"; - version = "0.3.5"; - authors = [ "Sean McArthur " ]; - sha256 = "032y8q6h7yzmji1cznw04grbi0inbl1m6rcwgsqfwiw8gflcgy0l"; - inherit dependencies buildDependencies features; - }; - mime_guess_2_0_0_alpha_4_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "mime_guess"; - version = "2.0.0-alpha.4"; - authors = [ "Austin Bonander " ]; - sha256 = "1kz8j1hb4azgyzcs6bnrrygv0ykjp170llri0is031q01vi7fgnh"; - inherit dependencies buildDependencies features; - }; - miniz_sys_0_1_10_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "miniz-sys"; - version = "0.1.10"; - authors = [ "Alex Crichton " ]; - sha256 = "11vg6phafxil87nbxgrlhcx5hjr3145wsbwwkfmibvnmzxfdmvln"; - libPath = "lib.rs"; - libName = "miniz_sys"; - build = "build.rs"; - inherit dependencies buildDependencies features; - }; - mio_0_6_14_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "mio"; - version = "0.6.14"; - authors = [ "Carl Lerche " ]; - sha256 = "0zws9p0d734qps4wdv47d32mmpb85caf9l2arwhxc7pslqk4icap"; - inherit dependencies buildDependencies features; - }; - mio_uds_0_6_4_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "mio-uds"; - version = "0.6.4"; - authors = [ "Alex Crichton " ]; - sha256 = "0migvjj2psaln6169rmyci5v6kvx5b7ylj5a6i2dkw98dylf2s1m"; - inherit dependencies buildDependencies features; - }; - miow_0_2_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "miow"; - version = "0.2.1"; - authors = [ "Alex Crichton " ]; - sha256 = "14f8zkc6ix7mkyis1vsqnim8m29b6l55abkba3p2yz7j1ibcvrl0"; - inherit dependencies buildDependencies features; - }; - native_tls_0_1_5_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "native-tls"; - version = "0.1.5"; - authors = [ "Steven Fackler " ]; - sha256 = "11f75qmbny5pnn6zp0vlvadrvc9ph9qsxiyn4n6q02xyd93pxxlf"; - inherit dependencies buildDependencies features; - }; - net2_0_2_32_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "net2"; - version = "0.2.32"; - authors = [ "Alex Crichton " ]; - sha256 = "15q3il71qaqrwz8q1nz0jyw5q4fl0vrkajgaj909zradxsxv1mcq"; - inherit dependencies buildDependencies features; - }; - nodrop_0_1_12_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "nodrop"; - version = "0.1.12"; - authors = [ "bluss" ]; - sha256 = "1b9rxvdg8061gxjc239l9slndf0ds3m6fy2sf3gs8f9kknqgl49d"; - inherit dependencies buildDependencies features; - }; - num_integer_0_1_36_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "num-integer"; - version = "0.1.36"; - authors = [ "The Rust Project Developers" ]; - sha256 = "1fjprz9h8b04zrsnfmkkfhiw4w852bbh16hy8w9ahlcdhg77i66y"; - inherit dependencies buildDependencies features; - }; - num_traits_0_2_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "num-traits"; - version = "0.2.2"; - authors = [ "The Rust Project Developers" ]; - sha256 = "1gcqhcd27gi72al5salxlp3m374qr3xnc3zh249f7dsrxc9rmgh0"; - inherit dependencies buildDependencies features; - }; - num_cpus_1_8_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "num_cpus"; - version = "1.8.0"; - authors = [ "Sean McArthur " ]; - sha256 = "1y6qnd9r8ga6y8mvlabdrr73nc8cshjjlzbvnanzyj9b8zzkfwk2"; - inherit dependencies buildDependencies features; - }; - openssl_0_9_24_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "openssl"; - version = "0.9.24"; - authors = [ "Steven Fackler " ]; - sha256 = "0wzm3c11g3ndaqyzq36mcdcm1q4a8pmsyi33ibybhjz28g2z0f79"; - build = "build.rs"; - inherit dependencies buildDependencies features; - }; - openssl_sys_0_9_30_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "openssl-sys"; - version = "0.9.30"; - authors = [ "Alex Crichton " "Steven Fackler " ]; - sha256 = "1p5y3md4crbmg0lcfkdl8pp3kf9k82vghjy28x7ix5mji3j2p87a"; - inherit dependencies buildDependencies features; - }; - owning_ref_0_3_3_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "owning_ref"; - version = "0.3.3"; - authors = [ "Marvin Löbel " ]; - sha256 = "13ivn0ydc0hf957ix0f5si9nnplzzykbr70hni1qz9m19i9kvmrh"; - inherit dependencies buildDependencies features; - }; - parking_lot_0_4_8_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "parking_lot"; - version = "0.4.8"; - authors = [ "Amanieu d'Antras " ]; - sha256 = "0qrb2f0azglbsx7k3skgnc7mmv9z9spnqgk1m450g91r94nlklqi"; - inherit dependencies buildDependencies features; - }; - parking_lot_core_0_2_14_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "parking_lot_core"; - version = "0.2.14"; - authors = [ "Amanieu d'Antras " ]; - sha256 = "0giypb8ckkpi34p14nfk4b19c7przj4jxs95gs7x2v5ncmi0y286"; - inherit dependencies buildDependencies features; - }; - percent_encoding_1_0_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "percent-encoding"; - version = "1.0.1"; - authors = [ "The rust-url developers" ]; - sha256 = "04ahrp7aw4ip7fmadb0bknybmkfav0kk0gw4ps3ydq5w6hr0ib5i"; - libPath = "lib.rs"; - inherit dependencies buildDependencies features; - }; - pest_1_0_6_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "pest"; - version = "1.0.6"; - authors = [ "Dragoș Tiselice " ]; - sha256 = "07r7aq8fni6ycjn3mlpam95pd4hlwylqqprv62ni488pjbkhcp5d"; - inherit dependencies buildDependencies features; - }; - pest_derive_1_0_7_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "pest_derive"; - version = "1.0.7"; - authors = [ "Dragoș Tiselice " ]; - sha256 = "1jmw7ai3adwrp81ygs2l9i9fqm33b0m87j6rwcn3rvis4gg12kyc"; - procMacro = true; - inherit dependencies buildDependencies features; - }; - phf_0_7_22_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "phf"; - version = "0.7.22"; - authors = [ "Steven Fackler " ]; - sha256 = "0b58l863rhmqyqsfj2d89nmdzc21g9yvvvq1m4c3a615zpcykb3i"; - libPath = "src/lib.rs"; - inherit dependencies buildDependencies features; - }; - phf_codegen_0_7_22_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "phf_codegen"; - version = "0.7.22"; - authors = [ "Steven Fackler " ]; - sha256 = "0k8yx4gr9m6cfrvh21s6bhnh1azz13j4xih88bvm06r6blfl89fs"; - inherit dependencies buildDependencies features; - }; - phf_generator_0_7_22_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "phf_generator"; - version = "0.7.22"; - authors = [ "Steven Fackler " ]; - sha256 = "093gla320qb6rbk8z7wqqxl79zrh874sa7sxir31q2p7mrw4b70k"; - inherit dependencies buildDependencies features; - }; - phf_shared_0_7_22_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "phf_shared"; - version = "0.7.22"; - authors = [ "Steven Fackler " ]; - sha256 = "0ij9flicfi0ab5vpzdwbizpdyxhk891qxa8nxsqlv4sg4abqang6"; - libPath = "src/lib.rs"; - inherit dependencies buildDependencies features; - }; - pkg_config_0_3_11_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "pkg-config"; - version = "0.3.11"; - authors = [ "Alex Crichton " ]; - sha256 = "177kbs465skvzmb2d9bh7aa5lqm0npfig12awcbd34c6k6nlyr5h"; - inherit dependencies buildDependencies features; - }; - pq_sys_0_4_4_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "pq-sys"; - version = "0.4.4"; - authors = [ "Sean Griffin " ]; - sha256 = "1iqgs12mzx711ab1idiq4ryj27f8srwh83syj0ahvmbp5b8szggg"; - libName = "pq_sys"; - build = "build.rs"; - inherit dependencies buildDependencies features; - }; - proc_macro2_0_2_3_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "proc-macro2"; - version = "0.2.3"; - authors = [ "Alex Crichton " ]; - sha256 = "1y47qagi1r1f13b4b66xagr3dn9hjlvba7i6f5mcb77qhkn8yg9c"; - inherit dependencies buildDependencies features; - }; - proc_macro2_0_3_8_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "proc-macro2"; - version = "0.3.8"; - authors = [ "Alex Crichton " ]; - sha256 = "0ixnavxcd6sk1861hjgnfxly7qgq4ch1iplsx0nclvjjkwg39qdc"; - inherit dependencies buildDependencies features; - }; - pulldown_cmark_0_1_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "pulldown-cmark"; - version = "0.1.2"; - authors = [ "Raph Levien " ]; - sha256 = "0imc6m2bxk4j8y5qfp9x9sjnbrz7cz4i7irv4dfqjp4cgblmg5l8"; - crateBin = [ { name = "pulldown-cmark"; } ]; - build = "build.rs"; - inherit dependencies buildDependencies features; - }; - quick_error_1_2_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "quick-error"; - version = "1.2.1"; - authors = [ "Paul Colomiets " "Colin Kiegel " ]; - sha256 = "0vq41csw68ynaq2fy5dvldh4lx7pnbw6pr332kv5rvrz4pz0jnq6"; - inherit dependencies buildDependencies features; - }; - quote_0_3_15_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "quote"; - version = "0.3.15"; - authors = [ "David Tolnay " ]; - sha256 = "09il61jv4kd1360spaj46qwyl21fv1qz18fsv2jra8wdnlgl5jsg"; - inherit dependencies buildDependencies features; - }; - quote_0_4_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "quote"; - version = "0.4.2"; - authors = [ "David Tolnay " ]; - sha256 = "0rzka356p113f9hdcdc8ha78qar3qd6jpap9wnf5dza9hfs2k4bc"; - inherit dependencies buildDependencies features; - }; - quote_0_5_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "quote"; - version = "0.5.2"; - authors = [ "David Tolnay " ]; - sha256 = "062cnp12j09x0z0nj4j5pfh26h35zlrks07asxgqhfhcym1ba595"; - inherit dependencies buildDependencies features; - }; - r2d2_0_8_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "r2d2"; - version = "0.8.2"; - authors = [ "Steven Fackler " ]; - sha256 = "1m8cvw9gpc5r922alyha2qq9nl79q3ldsjk1qwax36zrca0akvdi"; - inherit dependencies buildDependencies features; - }; - rand_0_3_22_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "rand"; - version = "0.3.22"; - authors = [ "The Rust Project Developers" ]; - sha256 = "0wrj12acx7l4hr7ag3nz8b50yhp8ancyq988bzmnnsxln67rsys0"; - inherit dependencies buildDependencies features; - }; - rand_0_4_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "rand"; - version = "0.4.2"; - authors = [ "The Rust Project Developers" ]; - sha256 = "0h8pkg23wb67i8904sm76iyr1jlmhklb85vbpz9c9191a24xzkfm"; - inherit dependencies buildDependencies features; - }; - rayon_0_8_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "rayon"; - version = "0.8.2"; - authors = [ "Niko Matsakis " "Josh Stone " ]; - sha256 = "0d0mddg1k75hb9138pn8lysy2095jijrinskqbpgfr73s0jx6dq8"; - inherit dependencies buildDependencies features; - }; - rayon_core_1_4_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "rayon-core"; - version = "1.4.0"; - authors = [ "Niko Matsakis " "Josh Stone " ]; - sha256 = "1gmg5fmgvhzks7b05g3ms7x8h1xxqnfkg28wvhzwpdzjljcbnr23"; - build = "build.rs"; - inherit dependencies buildDependencies features; - }; - redox_syscall_0_1_37_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "redox_syscall"; - version = "0.1.37"; - authors = [ "Jeremy Soller " ]; - sha256 = "0qa0jl9cr3qp80an8vshp2mcn8rzvwiavs1398hq1vsjw7pc3h2v"; - libName = "syscall"; - inherit dependencies buildDependencies features; - }; - redox_termios_0_1_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "redox_termios"; - version = "0.1.1"; - authors = [ "Jeremy Soller " ]; - sha256 = "04s6yyzjca552hdaqlvqhp3vw0zqbc304md5czyd3axh56iry8wh"; - libPath = "src/lib.rs"; - inherit dependencies buildDependencies features; - }; - regex_0_2_11_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "regex"; - version = "0.2.11"; - authors = [ "The Rust Project Developers" ]; - sha256 = "0r50cymxdqp0fv1dxd22mjr6y32q450nwacd279p9s7lh0cafijj"; - inherit dependencies buildDependencies features; - }; - regex_syntax_0_5_6_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "regex-syntax"; - version = "0.5.6"; - authors = [ "The Rust Project Developers" ]; - sha256 = "10vf3r34bgjnbrnqd5aszn35bjvm8insw498l1vjy8zx5yms3427"; - inherit dependencies buildDependencies features; - }; - relay_0_1_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "relay"; - version = "0.1.1"; - authors = [ "Sean McArthur " ]; - sha256 = "16csfaslbmj25iaxs88p8wcfh2zfpkh9isg9adid0nxjxvknh07r"; - inherit dependencies buildDependencies features; - }; - remove_dir_all_0_5_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "remove_dir_all"; - version = "0.5.1"; - authors = [ "Aaronepower " ]; - sha256 = "1chx3yvfbj46xjz4bzsvps208l46hfbcy0sm98gpiya454n4rrl7"; - inherit dependencies buildDependencies features; - }; - reqwest_0_8_5_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "reqwest"; - version = "0.8.5"; - authors = [ "Sean McArthur " ]; - sha256 = "1wrrv3kwh0pm5yzajf986z21pyf48vxskvn7pflzhrm9y11kalnf"; - inherit dependencies buildDependencies features; - }; - resolv_conf_0_6_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "resolv-conf"; - version = "0.6.0"; - authors = [ "paul@colomiets.name" ]; - sha256 = "11aslgks1zdwwx5nj6fmrnigyvphgk0chd8isz4zwb3pik1jjvc0"; - libPath = "src/lib.rs"; - libName = "resolv_conf"; - inherit dependencies buildDependencies features; - }; - ring_0_12_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "ring"; - version = "0.12.1"; - authors = [ "Brian Smith " ]; - sha256 = "1i47apwkpa0wz9fwp4iqf0xks95b9nmhhlgvk5fsgbg0aphhw0p7"; - build = "build.rs"; - inherit dependencies buildDependencies features; - }; - rustc_demangle_0_1_7_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "rustc-demangle"; - version = "0.1.7"; - authors = [ "Alex Crichton " ]; - sha256 = "0wrln6jvwmqrhyvqlw5vq9a2s4r04ja8mrybxjj9aaaar1fyvns6"; - inherit dependencies buildDependencies features; - }; - safemem_0_2_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "safemem"; - version = "0.2.0"; - authors = [ "Austin Bonander " ]; - sha256 = "058m251q202n479ip1h6s91yw3plg66vsk5mpaflssn6rs5hijdm"; - inherit dependencies buildDependencies features; - }; - same_file_0_1_3_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "same-file"; - version = "0.1.3"; - authors = [ "Andrew Gallant " ]; - sha256 = "01hdnxblb1hlysr47nwdv7r8vs7p63ia08v5h4lcffmzqvl5zzn9"; - inherit dependencies buildDependencies features; - }; - schannel_0_1_12_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "schannel"; - version = "0.1.12"; - authors = [ "Steven Fackler " "Steffen Butzer " ]; - sha256 = "1lqdzx8d4rql8ah9w760syvrbbyp26s9cgidvrh34h0hjglja42d"; - inherit dependencies buildDependencies features; - }; - scheduled_thread_pool_0_2_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "scheduled-thread-pool"; - version = "0.2.0"; - authors = [ "Steven Fackler " ]; - sha256 = "0x8jxh3l4irj5hm7rwfwmfd0iazcpvcfvnqbsngrrn3dmzpy0ig9"; - inherit dependencies buildDependencies features; - }; - scoped_tls_0_1_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "scoped-tls"; - version = "0.1.1"; - authors = [ "Alex Crichton " ]; - sha256 = "1csp1bp0cc1hvdk0ml293zqjpblh7254cd88q22yx63xmszj1dh4"; - inherit dependencies buildDependencies features; - }; - scopeguard_0_3_3_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "scopeguard"; - version = "0.3.3"; - authors = [ "bluss" ]; - sha256 = "0i1l013csrqzfz6c68pr5pi01hg5v5yahq8fsdmaxy6p8ygsjf3r"; - inherit dependencies buildDependencies features; - }; - security_framework_0_1_16_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "security-framework"; - version = "0.1.16"; - authors = [ "Steven Fackler " ]; - sha256 = "1kxczsaj8gz4922jl5af2gkxh71rasb6khaf3dp7ldlnw9qf2sbm"; - inherit dependencies buildDependencies features; - }; - security_framework_sys_0_1_16_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "security-framework-sys"; - version = "0.1.16"; - authors = [ "Steven Fackler " ]; - sha256 = "0ai2pivdr5fyc7czbkpcrwap0imyy0r8ndarrl3n5kiv0jha1js3"; - build = "build.rs"; - inherit dependencies buildDependencies features; - }; - semver_0_8_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "semver"; - version = "0.8.0"; - authors = [ "Steve Klabnik " "The Rust Project Developers" ]; - sha256 = "0wgg4lmjmqj6sk6q50mw4qbx178a9nd3afb5q8c68ajzj0lfc3cv"; - inherit dependencies buildDependencies features; - }; - semver_parser_0_7_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "semver-parser"; - version = "0.7.0"; - authors = [ "Steve Klabnik " ]; - sha256 = "1da66c8413yakx0y15k8c055yna5lyb6fr0fw9318kdwkrk5k12h"; - inherit dependencies buildDependencies features; - }; - serde_1_0_43_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "serde"; - version = "1.0.43"; - authors = [ "Erick Tryzelaar " "David Tolnay " ]; - sha256 = "05zqbc008pg0q8ds2njxh09lpfi2a99j8n7ihawkrjm2ldwdzb17"; - inherit dependencies buildDependencies features; - }; - serde_derive_1_0_43_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "serde_derive"; - version = "1.0.43"; - authors = [ "Erick Tryzelaar " "David Tolnay " ]; - sha256 = "0a3q4ckirmafb4q9ix7rwmw3crv5q96m1p9m7avf11il6k9hkcrr"; - procMacro = true; - inherit dependencies buildDependencies features; - }; - serde_derive_internals_0_23_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "serde_derive_internals"; - version = "0.23.1"; - authors = [ "Erick Tryzelaar " "David Tolnay " ]; - sha256 = "0bjgcn2irh6sd34q3j3xkbn5ghfgiv3cfdlffb31lh0bikwpk1b4"; - inherit dependencies buildDependencies features; - }; - serde_json_1_0_16_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "serde_json"; - version = "1.0.16"; - authors = [ "Erick Tryzelaar " "David Tolnay " ]; - sha256 = "1715lzswbbc1gj1pq213smvw21iyrsy8pmkbkw503vxdgzkzgc78"; - inherit dependencies buildDependencies features; - }; - serde_urlencoded_0_5_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "serde_urlencoded"; - version = "0.5.1"; - authors = [ "Anthony Ramine " ]; - sha256 = "0zh2wlnapmcwqhxnnq1mdlmg8vily7j54wvj01s7cvapzg5jphdl"; - inherit dependencies buildDependencies features; - }; - sha1_0_6_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "sha1"; - version = "0.6.0"; - authors = [ "Armin Ronacher " ]; - sha256 = "12cp2b8f3hbwhfpnv1j1afl285xxmmbxh9w4npzvwbdh7xfyww8v"; - inherit dependencies buildDependencies features; - }; - siphasher_0_2_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "siphasher"; - version = "0.2.2"; - authors = [ "Frank Denis " ]; - sha256 = "0iyx7nlzfny9ly1634a6zcq0yvrinhxhypwas4p8ry3zqnn76qqr"; - inherit dependencies buildDependencies features; - }; - skeptic_0_13_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "skeptic"; - version = "0.13.2"; - authors = [ "Brian Anderson " "Michał Budzyński " ]; - sha256 = "1wv5ajmaapv9naki7z33mk88z1a547p5dll6hipwpdsc66wrd564"; - libPath = "lib.rs"; - inherit dependencies buildDependencies features; - }; - slab_0_3_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "slab"; - version = "0.3.0"; - authors = [ "Carl Lerche " ]; - sha256 = "0y6lhjggksh57hyfd3l6p9wgv5nhvw9c6djrysq7jnalz8fih21k"; - inherit dependencies buildDependencies features; - }; - slab_0_4_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "slab"; - version = "0.4.0"; - authors = [ "Carl Lerche " ]; - sha256 = "1qy2vkgwqgj5z4ygdkh040n9yh1vz80v5flxb1xrvw3i4wxs7yx0"; - inherit dependencies buildDependencies features; - }; - slug_0_1_3_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "slug"; - version = "0.1.3"; - authors = [ "Steven Allen " ]; - sha256 = "0ry961rwq5d9jf6b9xhlq75caiwrylxz681l3ghan7nf32nmv6zw"; - inherit dependencies buildDependencies features; - }; - smallvec_0_2_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "smallvec"; - version = "0.2.1"; - authors = [ "Simon Sapin " ]; - sha256 = "0rnsll9af52bpjngz0067dpm1ndqmh76i64a58fc118l4lvnjxw2"; - libPath = "lib.rs"; - inherit dependencies buildDependencies features; - }; - smallvec_0_6_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "smallvec"; - version = "0.6.1"; - authors = [ "Simon Sapin " ]; - sha256 = "16m07xh67xcdpwjkbzbv9d7visxmz4fb4a8jfcrsrf333w7vkl1g"; - libPath = "lib.rs"; - inherit dependencies buildDependencies features; - }; - socket2_0_3_5_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "socket2"; - version = "0.3.5"; - authors = [ "Alex Crichton " ]; - sha256 = "0bi6z6qvra16rwm3lk7xz4aakvcmmak6fpdmra1v7ccp40bss0kf"; - inherit dependencies buildDependencies features; - }; - stable_deref_trait_1_0_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "stable_deref_trait"; - version = "1.0.0"; - authors = [ "Robert Grosse " ]; - sha256 = "0ya5fms9qdwkd52d3a111w4vcz18j4rbfx4p88z44116cqd6cczr"; - inherit dependencies buildDependencies features; - }; - string_0_1_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "string"; - version = "0.1.0"; - authors = [ "Carl Lerche " ]; - sha256 = "0pca6c4kf47izwapzz9bzmq7sb6hbzn26xxdfi8ld7mqf0dqg1z7"; - inherit dependencies buildDependencies features; - }; - strsim_0_7_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "strsim"; - version = "0.7.0"; - authors = [ "Danny Guo " ]; - sha256 = "0fy0k5f2705z73mb3x9459bpcvrx4ky8jpr4zikcbiwan4bnm0iv"; - inherit dependencies buildDependencies features; - }; - syn_0_11_11_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "syn"; - version = "0.11.11"; - authors = [ "David Tolnay " ]; - sha256 = "0yw8ng7x1dn5a6ykg0ib49y7r9nhzgpiq2989rqdp7rdz3n85502"; - inherit dependencies buildDependencies features; - }; - syn_0_12_15_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "syn"; - version = "0.12.15"; - authors = [ "David Tolnay " ]; - sha256 = "0kkzav72yy0idzbh9zcg92dam3785xzrbxjjp8vxcis9z2zd6b13"; - inherit dependencies buildDependencies features; - }; - syn_0_13_4_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "syn"; - version = "0.13.4"; - authors = [ "David Tolnay " ]; - sha256 = "029n8x53hvn00fs3wx8x7qcxxkfaaqjcrisgrz1qszzbr8f9hx1b"; - inherit dependencies buildDependencies features; - }; - synom_0_11_3_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "synom"; - version = "0.11.3"; - authors = [ "David Tolnay " ]; - sha256 = "1l6d1s9qjfp6ng2s2z8219igvlv7gyk8gby97sdykqc1r93d8rhc"; - inherit dependencies buildDependencies features; - }; - synstructure_0_6_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "synstructure"; - version = "0.6.1"; - authors = [ "Michael Layzell " ]; - sha256 = "1xnyw58va9zcqi4vvpnmpllacdj2a0mvy0cbd698izmr4qs92xlk"; - inherit dependencies buildDependencies features; - }; - take_0_1_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "take"; - version = "0.1.0"; - authors = [ "Carl Lerche " ]; - sha256 = "17rfh39di5n8w9aghpic2r94cndi3dr04l60nkjylmxfxr3iwlhd"; - inherit dependencies buildDependencies features; - }; - tempdir_0_3_7_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "tempdir"; - version = "0.3.7"; - authors = [ "The Rust Project Developers" ]; - sha256 = "0y53sxybyljrr7lh0x0ysrsa7p7cljmwv9v80acy3rc6n97g67vy"; - inherit dependencies buildDependencies features; - }; - tera_0_11_7_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "tera"; - version = "0.11.7"; - authors = [ "Vincent Prouillet " ]; - sha256 = "14s7pbrg804bb45majjxbgdgkj2ckh8i3kfjg1hc7f803yzhykc2"; - inherit dependencies buildDependencies features; - }; - termcolor_0_3_6_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "termcolor"; - version = "0.3.6"; - authors = [ "Andrew Gallant " ]; - sha256 = "0w609sa1apl1kii67ln2g82r4rrycw45zgjq7mxxjrx1fa21v05z"; - inherit dependencies buildDependencies features; - }; - termion_1_5_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "termion"; - version = "1.5.1"; - authors = [ "ticki " "gycos " "IGI-111 " ]; - sha256 = "02gq4vd8iws1f3gjrgrgpajsk2bk43nds5acbbb4s8dvrdvr8nf1"; - inherit dependencies buildDependencies features; - }; - textwrap_0_9_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "textwrap"; - version = "0.9.0"; - authors = [ "Martin Geisler " ]; - sha256 = "18jg79ndjlwndz01mlbh82kkr2arqm658yn5kwp65l5n1hz8w4yb"; - inherit dependencies buildDependencies features; - }; - thread_local_0_3_5_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "thread_local"; - version = "0.3.5"; - authors = [ "Amanieu d'Antras " ]; - sha256 = "0mkp0sp91aqsk7brgygai4igv751r1754rsxn37mig3ag5rx8np6"; - inherit dependencies buildDependencies features; - }; - time_0_1_39_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "time"; - version = "0.1.39"; - authors = [ "The Rust Project Developers" ]; - sha256 = "1ryy3bwhvyzj6fym123il38mk9ranm4vradj2a47l5ij8jd7w5if"; - inherit dependencies buildDependencies features; - }; - tokio_0_1_5_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "tokio"; - version = "0.1.5"; - authors = [ "Carl Lerche " ]; - sha256 = "0dd11vmmq7q65l1nwq85707n87r7b8gh29lq232j8hrimpkwnav9"; - inherit dependencies buildDependencies features; - }; - tokio_core_0_1_17_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "tokio-core"; - version = "0.1.17"; - authors = [ "Carl Lerche " ]; - sha256 = "1j6c5q3aakvb1hjx4r95xwl5ms8rp19k4qsr6v6ngwbvr6f9z6rs"; - inherit dependencies buildDependencies features; - }; - tokio_executor_0_1_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "tokio-executor"; - version = "0.1.2"; - authors = [ "Carl Lerche " ]; - sha256 = "1y4mwqjw438x6jskigz1knvfbpbinxfv6h43s60w6wdb80xmyg48"; - inherit dependencies buildDependencies features; - }; - tokio_io_0_1_6_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "tokio-io"; - version = "0.1.6"; - authors = [ "Carl Lerche " ]; - sha256 = "0awvw1cfylws2lqdls615hcnrz7x7krr7gm57bgj55xai14rmk9k"; - inherit dependencies buildDependencies features; - }; - tokio_proto_0_1_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "tokio-proto"; - version = "0.1.1"; - authors = [ "Carl Lerche " ]; - sha256 = "030q9h8pn1ngm80klff5irglxxki60hf5maw0mppmmr46k773z66"; - inherit dependencies buildDependencies features; - }; - tokio_reactor_0_1_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "tokio-reactor"; - version = "0.1.1"; - authors = [ "Carl Lerche " ]; - sha256 = "0crs57d2k4a69abqhjzs3crs3hfw7qia3phpc3saxpnwh1j51093"; - inherit dependencies buildDependencies features; - }; - tokio_service_0_1_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "tokio-service"; - version = "0.1.0"; - authors = [ "Carl Lerche " ]; - sha256 = "0c85wm5qz9fabg0k6k763j89m43n6max72d3a8sxcs940id6qmih"; - inherit dependencies buildDependencies features; - }; - tokio_signal_0_1_5_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "tokio-signal"; - version = "0.1.5"; - authors = [ "Alex Crichton " ]; - sha256 = "1rqbb1n2kzzy3gqc4ha3rd3km1wdgy1mgbbngn5alpq9xvd4x1kz"; - inherit dependencies buildDependencies features; - }; - tokio_tcp_0_1_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "tokio-tcp"; - version = "0.1.0"; - authors = [ "Carl Lerche " ]; - sha256 = "19cyajkqvvbn3qqnak0qzivdq6amfjymbc30k7bbqhx4y1pcgqvh"; - inherit dependencies buildDependencies features; - }; - tokio_threadpool_0_1_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "tokio-threadpool"; - version = "0.1.2"; - authors = [ "Carl Lerche " ]; - sha256 = "12690m4cyh6v986xdd705mx2ba4r6mvlmfjfhiqcysyrmv2bk9h2"; - inherit dependencies buildDependencies features; - }; - tokio_timer_0_2_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "tokio-timer"; - version = "0.2.1"; - authors = [ "Carl Lerche " ]; - sha256 = "1igk1jmpgwhhy2giccsshs8smwby6kfyz2fw9y4yav8yp5vzd0r9"; - inherit dependencies buildDependencies features; - }; - tokio_tls_0_1_4_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "tokio-tls"; - version = "0.1.4"; - authors = [ "Carl Lerche " "Alex Crichton " ]; - sha256 = "07rwv3q6jbg65ln1ahzb4g648l8lcn4hvc0ax3r12bnsi1py7agp"; - inherit dependencies buildDependencies features; - }; - tokio_udp_0_1_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "tokio-udp"; - version = "0.1.0"; - authors = [ "Carl Lerche " ]; - sha256 = "0c1wjiqri0xlfrqq2hmgppvl9j8pjy8469s67f08dc8lybmrb1q1"; - inherit dependencies buildDependencies features; - }; - trust_dns_proto_0_3_3_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "trust-dns-proto"; - version = "0.3.3"; - authors = [ "Benjamin Fry " ]; - sha256 = "10cf1999j552fdxnk9cq84n26ybj5b8pk2914akag57g035iq1ql"; - libPath = "src/lib.rs"; - libName = "trust_dns_proto"; - inherit dependencies buildDependencies features; - }; - trust_dns_resolver_0_8_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "trust-dns-resolver"; - version = "0.8.2"; - authors = [ "Benjamin Fry " ]; - sha256 = "0df4ls6gk97zc1931jwm8w9d1mg34h0j4zhm77aaxwq9cjk71xw1"; - libPath = "src/lib.rs"; - libName = "trust_dns_resolver"; - inherit dependencies buildDependencies features; - }; - twoway_0_1_8_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "twoway"; - version = "0.1.8"; - authors = [ "bluss" ]; - sha256 = "0svrdcy08h0gm884f220hx37g8fsp5z6abaw6jb6g3f7djw1ir1g"; - inherit dependencies buildDependencies features; - }; - typed_arena_1_3_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "typed-arena"; - version = "1.3.0"; - authors = [ "Simon Sapin " ]; - sha256 = "19yylpxv4mkx5285igiywh57snj6bgk8yw6139cjy7j86nz0mx9s"; - libPath = "src/lib.rs"; - libName = "typed_arena"; - inherit dependencies buildDependencies features; - }; - ucd_util_0_1_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "ucd-util"; - version = "0.1.1"; - authors = [ "Andrew Gallant " ]; - sha256 = "02a8h3siipx52b832xc8m8rwasj6nx9jpiwfldw8hp6k205hgkn0"; - inherit dependencies buildDependencies features; - }; - unicase_1_4_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "unicase"; - version = "1.4.2"; - authors = [ "Sean McArthur " ]; - sha256 = "0rbnhw2mnhcwrij3vczp0sl8zdfmvf2dlh8hly81kj7132kfj0mf"; - build = "build.rs"; - inherit dependencies buildDependencies features; - }; - unicase_2_1_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "unicase"; - version = "2.1.0"; - authors = [ "Sean McArthur " ]; - sha256 = "1zzn16hh8fdx5pnbbnl32q8m2mh4vpd1jm9pdcv969ik83dw4byp"; - build = "build.rs"; - inherit dependencies buildDependencies features; - }; - unicode_bidi_0_3_4_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "unicode-bidi"; - version = "0.3.4"; - authors = [ "The Servo Project Developers" ]; - sha256 = "0lcd6jasrf8p9p0q20qyf10c6xhvw40m2c4rr105hbk6zy26nj1q"; - libName = "unicode_bidi"; - inherit dependencies buildDependencies features; - }; - unicode_normalization_0_1_5_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "unicode-normalization"; - version = "0.1.5"; - authors = [ "kwantam " ]; - sha256 = "0hg29g86fca7b65mwk4sm5s838js6bqrl0gabadbazvbsgjam0j5"; - inherit dependencies buildDependencies features; - }; - unicode_width_0_1_4_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "unicode-width"; - version = "0.1.4"; - authors = [ "kwantam " ]; - sha256 = "1rp7a04icn9y5c0lm74nrd4py0rdl0af8bhdwq7g478n1xifpifl"; - inherit dependencies buildDependencies features; - }; - unicode_xid_0_0_4_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "unicode-xid"; - version = "0.0.4"; - authors = [ "erick.tryzelaar " "kwantam " ]; - sha256 = "1dc8wkkcd3s6534s5aw4lbjn8m67flkkbnajp5bl8408wdg8rh9v"; - inherit dependencies buildDependencies features; - }; - unicode_xid_0_1_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "unicode-xid"; - version = "0.1.0"; - authors = [ "erick.tryzelaar " "kwantam " ]; - sha256 = "05wdmwlfzxhq3nhsxn6wx4q8dhxzzfb9szsz6wiw092m1rjj01zj"; - inherit dependencies buildDependencies features; - }; - unicode_categories_0_1_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "unicode_categories"; - version = "0.1.1"; - authors = [ "Sean Gillespie " ]; - sha256 = "0capsv7dgw45sh7gpdgpfnmrjx2rdmkp5m523h35apq51cf8fpdi"; - inherit dependencies buildDependencies features; - }; - unidecode_0_3_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "unidecode"; - version = "0.3.0"; - authors = [ "Amit Chowdhury " ]; - sha256 = "09jqspji8m4n2959n35h36ik0nb0c7xq5cb3i0z6kiczz65ba0rs"; - inherit dependencies buildDependencies features; - }; - unreachable_1_0_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "unreachable"; - version = "1.0.0"; - authors = [ "Jonathan Reem " ]; - sha256 = "1am8czbk5wwr25gbp2zr007744fxjshhdqjz9liz7wl4pnv3whcf"; - inherit dependencies buildDependencies features; - }; - untrusted_0_5_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "untrusted"; - version = "0.5.1"; - authors = [ "Brian Smith " ]; - sha256 = "10nbd2nd9asx0v2g59i188rbpclh2xjaj10cjmp8h8a7in4i9pvd"; - inherit dependencies buildDependencies features; - }; - url_1_7_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "url"; - version = "1.7.0"; - authors = [ "The rust-url developers" ]; - sha256 = "0333ynhkp47hna88aamz1zpk4lxyzx4ab9n7yhc75g14w27cv8jj"; - inherit dependencies buildDependencies features; - }; - url_serde_0_2_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "url_serde"; - version = "0.2.0"; - authors = [ "The rust-url developers" ]; - sha256 = "07ry87rw0pi1da6b53f7s3f52wx3ihxbcgjd4ldspfv5xh6wipsg"; - inherit dependencies buildDependencies features; - }; - utf8_ranges_1_0_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "utf8-ranges"; - version = "1.0.0"; - authors = [ "Andrew Gallant " ]; - sha256 = "0rzmqprwjv9yp1n0qqgahgm24872x6c0xddfym5pfndy7a36vkn0"; - inherit dependencies buildDependencies features; - }; - uuid_0_5_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "uuid"; - version = "0.5.1"; - authors = [ "The Rust Project Developers" ]; - sha256 = "17d4csjmy7fa3ckrm40d3c3v411rw5d4400w756mcrzyw2pm1i2r"; - inherit dependencies buildDependencies features; - }; - uuid_0_6_3_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "uuid"; - version = "0.6.3"; - authors = [ "Ashley Mannix" "Christopher Armstrong" "Dylan DPC" "Hunar Roop Kahlon" ]; - sha256 = "1kjp5xglhab4saaikn95zn3mr4zja7484pv307cb5bxm2sawb8p6"; - inherit dependencies buildDependencies features; - }; - vcpkg_0_2_3_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "vcpkg"; - version = "0.2.3"; - authors = [ "Jim McGrath " ]; - sha256 = "0achi8sfy0wm4q04gj7nwpq9xfx8ynk6vv4r12a3ijg26hispq0c"; - inherit dependencies buildDependencies features; - }; - vec_map_0_8_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "vec_map"; - version = "0.8.0"; - authors = [ "Alex Crichton " "Jorge Aparicio " "Alexis Beingessner " "Brian Anderson <>" "tbu- <>" "Manish Goregaokar <>" "Aaron Turon " "Adolfo Ochagavía <>" "Niko Matsakis <>" "Steven Fackler <>" "Chase Southwood " "Eduard Burtescu <>" "Florian Wilkens <>" "Félix Raimundo <>" "Tibor Benke <>" "Markus Siemens " "Josh Branchaud " "Huon Wilson " "Corey Farwell " "Aaron Liblong <>" "Nick Cameron " "Patrick Walton " "Felix S Klock II <>" "Andrew Paseltiner " "Sean McArthur " "Vadim Petrochenkov <>" ]; - sha256 = "07sgxp3cf1a4cxm9n3r27fcvqmld32bl2576mrcahnvm34j11xay"; - inherit dependencies buildDependencies features; - }; - version_check_0_1_3_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "version_check"; - version = "0.1.3"; - authors = [ "Sergio Benitez " ]; - sha256 = "0z635wdclv9bvafj11fpgndn7y79ibpsnc364pm61i1m4wwg8msg"; - inherit dependencies buildDependencies features; - }; - void_1_0_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "void"; - version = "1.0.2"; - authors = [ "Jonathan Reem " ]; - sha256 = "0h1dm0dx8dhf56a83k68mijyxigqhizpskwxfdrs1drwv2cdclv3"; - inherit dependencies buildDependencies features; - }; - walkdir_1_0_7_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "walkdir"; - version = "1.0.7"; - authors = [ "Andrew Gallant " ]; - sha256 = "1ygsc59m8mbnlz0psjxdzm1xjndxpywjwalqcd3pwdarzk1gy1vr"; - inherit dependencies buildDependencies features; - }; - widestring_0_2_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "widestring"; - version = "0.2.2"; - authors = [ "Kathryn Long " ]; - sha256 = "07n6cmk47h8v4bvg7cwawipcn6ijqcfwhf9w6x3r2nw3ghsm2h0a"; - inherit dependencies buildDependencies features; - }; - winapi_0_2_8_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "winapi"; - version = "0.2.8"; - authors = [ "Peter Atashian " ]; - sha256 = "0a45b58ywf12vb7gvj6h3j264nydynmzyqz8d8rqxsj6icqv82as"; - inherit dependencies buildDependencies features; - }; - winapi_0_3_4_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "winapi"; - version = "0.3.4"; - authors = [ "Peter Atashian " ]; - sha256 = "1qbrf5dcnd8j36cawby5d9r5vx07r0l4ryf672pfncnp8895k9lx"; - build = "build.rs"; - inherit dependencies buildDependencies features; - }; - winapi_build_0_1_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "winapi-build"; - version = "0.1.1"; - authors = [ "Peter Atashian " ]; - sha256 = "1lxlpi87rkhxcwp2ykf1ldw3p108hwm24nywf3jfrvmff4rjhqga"; - libName = "build"; - inherit dependencies buildDependencies features; - }; - winapi_i686_pc_windows_gnu_0_4_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "winapi-i686-pc-windows-gnu"; - version = "0.4.0"; - authors = [ "Peter Atashian " ]; - sha256 = "05ihkij18r4gamjpxj4gra24514can762imjzlmak5wlzidplzrp"; - build = "build.rs"; - inherit dependencies buildDependencies features; - }; - winapi_x86_64_pc_windows_gnu_0_4_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "winapi-x86_64-pc-windows-gnu"; - version = "0.4.0"; - authors = [ "Peter Atashian " ]; - sha256 = "0n1ylmlsb8yg1v583i4xy0qmqg42275flvbc51hdqjjfjcl9vlbj"; - build = "build.rs"; - inherit dependencies buildDependencies features; - }; - wincolor_0_1_6_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "wincolor"; - version = "0.1.6"; - authors = [ "Andrew Gallant " ]; - sha256 = "0f8m3l86pw6qi31jidqj78pgd15xj914850lyvsxkbln4f1drv47"; - inherit dependencies buildDependencies features; - }; - winreg_0_5_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "winreg"; - version = "0.5.0"; - authors = [ "Igor Shaula " ]; - sha256 = "0smhk0h5kcwzpjlhyvx2p6cjda28cchzjbnwbs658rz641q98rcd"; - inherit dependencies buildDependencies features; - }; - winutil_0_1_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "winutil"; - version = "0.1.1"; - authors = [ "Dave Lancaster " ]; - sha256 = "1wvq440hl1v3a65agjbp031gw5jim3qasfvmz703dlz95pbjv45r"; - inherit dependencies buildDependencies features; - }; - ws2_32_sys_0_2_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { - crateName = "ws2_32-sys"; - version = "0.2.1"; - authors = [ "Peter Atashian " ]; - sha256 = "1zpy9d9wk11sj17fczfngcj28w4xxjs3b4n036yzpy38dxp4f7kc"; - libName = "ws2_32"; - build = "build.rs"; - inherit dependencies buildDependencies features; - }; - actix_0_5_6 = { features?(actix_0_5_6_features {}) }: actix_0_5_6_ { - dependencies = mapFeatures features ([ actix_derive_0_2_0 bitflags_1_0_3 bytes_0_4_7 crossbeam_channel_0_1_2 failure_0_1_1 futures_0_1_21 libc_0_2_40 log_0_4_1 smallvec_0_6_1 tokio_core_0_1_17 tokio_io_0_1_6 tokio_signal_0_1_5 trust_dns_resolver_0_8_2 uuid_0_6_3 ]); - buildDependencies = mapFeatures features ([ skeptic_0_13_2 ]); - }; - actix_0_5_6_features = f: updateFeatures f (rec { - actix_0_5_6.default = (f.actix_0_5_6.default or true); - actix_derive_0_2_0.default = true; - bitflags_1_0_3.default = true; - bytes_0_4_7.default = true; - crossbeam_channel_0_1_2.default = true; - failure_0_1_1.default = true; - futures_0_1_21.default = true; - libc_0_2_40.default = true; - log_0_4_1.default = true; - skeptic_0_13_2.default = true; - smallvec_0_6_1.default = true; - tokio_core_0_1_17.default = true; - tokio_io_0_1_6.default = true; - tokio_signal_0_1_5.default = true; - trust_dns_resolver_0_8_2.default = true; - uuid_0_6_3.default = true; - uuid_0_6_3.v4 = true; - }) [ actix_derive_0_2_0_features bitflags_1_0_3_features bytes_0_4_7_features crossbeam_channel_0_1_2_features failure_0_1_1_features futures_0_1_21_features libc_0_2_40_features log_0_4_1_features smallvec_0_6_1_features tokio_core_0_1_17_features tokio_io_0_1_6_features tokio_signal_0_1_5_features trust_dns_resolver_0_8_2_features uuid_0_6_3_features skeptic_0_13_2_features ]; - actix_web_0_5_6 = { features?(actix_web_0_5_6_features {}) }: actix_web_0_5_6_ { - dependencies = mapFeatures features ([ actix_0_5_6 base64_0_9_1 bitflags_1_0_3 byteorder_1_2_2 bytes_0_4_7 cookie_0_10_1 encoding_0_2_33 failure_0_1_1 futures_0_1_21 futures_cpupool_0_1_8 h2_0_1_6 http_0_1_5 http_range_0_1_1 httparse_1_2_4 language_tags_0_2_2 lazy_static_1_0_0 libc_0_2_40 log_0_4_1 mime_0_3_5 mime_guess_2_0_0_alpha_4 mio_0_6_14 net2_0_2_32 num_cpus_1_8_0 percent_encoding_1_0_1 rand_0_4_2 regex_0_2_11 serde_1_0_43 serde_json_1_0_16 serde_urlencoded_0_5_1 sha1_0_6_0 smallvec_0_6_1 time_0_1_39 tokio_core_0_1_17 tokio_io_0_1_6 url_1_7_0 ] - ++ (if features.actix_web_0_5_6.brotli2 or false then [ brotli2_0_3_2 ] else []) - ++ (if features.actix_web_0_5_6.flate2 or false then [ flate2_1_0_1 ] else [])); - buildDependencies = mapFeatures features ([ version_check_0_1_3 ]); - features = mkFeatures (features.actix_web_0_5_6 or {}); - }; - actix_web_0_5_6_features = f: updateFeatures f (rec { - actix_0_5_6.default = true; - actix_web_0_5_6.brotli = - (f.actix_web_0_5_6.brotli or false) || - (f.actix_web_0_5_6.default or false) || - (actix_web_0_5_6.default or false); - actix_web_0_5_6.brotli2 = - (f.actix_web_0_5_6.brotli2 or false) || - (f.actix_web_0_5_6.brotli or false) || - (actix_web_0_5_6.brotli or false); - actix_web_0_5_6.default = (f.actix_web_0_5_6.default or true); - actix_web_0_5_6.flate2-c = - (f.actix_web_0_5_6.flate2-c or false) || - (f.actix_web_0_5_6.default or false) || - (actix_web_0_5_6.default or false); - actix_web_0_5_6.native-tls = - (f.actix_web_0_5_6.native-tls or false) || - (f.actix_web_0_5_6.tls or false) || - (actix_web_0_5_6.tls or false); - actix_web_0_5_6.openssl = - (f.actix_web_0_5_6.openssl or false) || - (f.actix_web_0_5_6.alpn or false) || - (actix_web_0_5_6.alpn or false); - actix_web_0_5_6.session = - (f.actix_web_0_5_6.session or false) || - (f.actix_web_0_5_6.default or false) || - (actix_web_0_5_6.default or false); - actix_web_0_5_6.tokio-openssl = - (f.actix_web_0_5_6.tokio-openssl or false) || - (f.actix_web_0_5_6.alpn or false) || - (actix_web_0_5_6.alpn or false); - actix_web_0_5_6.tokio-tls = - (f.actix_web_0_5_6.tokio-tls or false) || - (f.actix_web_0_5_6.tls or false) || - (actix_web_0_5_6.tls or false); - base64_0_9_1.default = true; - bitflags_1_0_3.default = true; - brotli2_0_3_2.default = true; - byteorder_1_2_2.default = true; - bytes_0_4_7.default = true; - cookie_0_10_1.default = true; - cookie_0_10_1.percent-encode = true; - cookie_0_10_1.secure = - (f.cookie_0_10_1.secure or false) || - (actix_web_0_5_6.session or false) || - (f.actix_web_0_5_6.session or false); - encoding_0_2_33.default = true; - failure_0_1_1.default = true; - flate2_1_0_1.default = (f.flate2_1_0_1.default or false); - flate2_1_0_1.miniz-sys = - (f.flate2_1_0_1.miniz-sys or false) || - (actix_web_0_5_6.flate2-c or false) || - (f.actix_web_0_5_6.flate2-c or false); - flate2_1_0_1.rust_backend = - (f.flate2_1_0_1.rust_backend or false) || - (actix_web_0_5_6.flate2-rust or false) || - (f.actix_web_0_5_6.flate2-rust or false); - futures_0_1_21.default = true; - futures_cpupool_0_1_8.default = true; - h2_0_1_6.default = true; - http_0_1_5.default = true; - http_range_0_1_1.default = true; - httparse_1_2_4.default = true; - language_tags_0_2_2.default = true; - lazy_static_1_0_0.default = true; - libc_0_2_40.default = true; - log_0_4_1.default = true; - mime_0_3_5.default = true; - mime_guess_2_0_0_alpha_4.default = true; - mio_0_6_14.default = true; - net2_0_2_32.default = true; - num_cpus_1_8_0.default = true; - percent_encoding_1_0_1.default = true; - rand_0_4_2.default = true; - regex_0_2_11.default = true; - serde_1_0_43.default = true; - serde_json_1_0_16.default = true; - serde_urlencoded_0_5_1.default = true; - sha1_0_6_0.default = true; - smallvec_0_6_1.default = true; - time_0_1_39.default = true; - tokio_core_0_1_17.default = true; - tokio_io_0_1_6.default = true; - url_1_7_0.default = true; - url_1_7_0.query_encoding = true; - version_check_0_1_3.default = true; - }) [ actix_0_5_6_features base64_0_9_1_features bitflags_1_0_3_features brotli2_0_3_2_features byteorder_1_2_2_features bytes_0_4_7_features cookie_0_10_1_features encoding_0_2_33_features failure_0_1_1_features flate2_1_0_1_features futures_0_1_21_features futures_cpupool_0_1_8_features h2_0_1_6_features http_0_1_5_features http_range_0_1_1_features httparse_1_2_4_features language_tags_0_2_2_features lazy_static_1_0_0_features libc_0_2_40_features log_0_4_1_features mime_0_3_5_features mime_guess_2_0_0_alpha_4_features mio_0_6_14_features net2_0_2_32_features num_cpus_1_8_0_features percent_encoding_1_0_1_features rand_0_4_2_features regex_0_2_11_features serde_1_0_43_features serde_json_1_0_16_features serde_urlencoded_0_5_1_features sha1_0_6_0_features smallvec_0_6_1_features time_0_1_39_features tokio_core_0_1_17_features tokio_io_0_1_6_features url_1_7_0_features version_check_0_1_3_features ]; - actix_derive_0_2_0 = { features?(actix_derive_0_2_0_features {}) }: actix_derive_0_2_0_ { - dependencies = mapFeatures features ([ quote_0_3_15 rand_0_3_22 syn_0_11_11 ]); - buildDependencies = mapFeatures features ([ version_check_0_1_3 ]); - }; - actix_derive_0_2_0_features = f: updateFeatures f (rec { - actix_derive_0_2_0.default = (f.actix_derive_0_2_0.default or true); - quote_0_3_15.default = true; - rand_0_3_22.default = true; - syn_0_11_11.default = true; - syn_0_11_11.full = true; - version_check_0_1_3.default = true; - }) [ quote_0_3_15_features rand_0_3_22_features syn_0_11_11_features version_check_0_1_3_features ]; - adler32_1_0_2 = { features?(adler32_1_0_2_features {}) }: adler32_1_0_2_ {}; - adler32_1_0_2_features = f: updateFeatures f (rec { - adler32_1_0_2.default = (f.adler32_1_0_2.default or true); - }) []; - aho_corasick_0_6_4 = { features?(aho_corasick_0_6_4_features {}) }: aho_corasick_0_6_4_ { - dependencies = mapFeatures features ([ memchr_2_0_1 ]); - }; - aho_corasick_0_6_4_features = f: updateFeatures f (rec { - aho_corasick_0_6_4.default = (f.aho_corasick_0_6_4.default or true); - memchr_2_0_1.default = true; - }) [ memchr_2_0_1_features ]; - ansi_term_0_11_0 = { features?(ansi_term_0_11_0_features {}) }: ansi_term_0_11_0_ { - dependencies = (if kernel == "windows" then mapFeatures features ([ winapi_0_3_4 ]) else []); - }; - ansi_term_0_11_0_features = f: updateFeatures f (rec { - ansi_term_0_11_0.default = (f.ansi_term_0_11_0.default or true); - winapi_0_3_4.consoleapi = true; - winapi_0_3_4.default = true; - winapi_0_3_4.errhandlingapi = true; - winapi_0_3_4.processenv = true; - }) [ winapi_0_3_4_features ]; - antidote_1_0_0 = { features?(antidote_1_0_0_features {}) }: antidote_1_0_0_ {}; - antidote_1_0_0_features = f: updateFeatures f (rec { - antidote_1_0_0.default = (f.antidote_1_0_0.default or true); - }) []; - arrayvec_0_4_7 = { features?(arrayvec_0_4_7_features {}) }: arrayvec_0_4_7_ { - dependencies = mapFeatures features ([ nodrop_0_1_12 ]); - features = mkFeatures (features.arrayvec_0_4_7 or {}); - }; - arrayvec_0_4_7_features = f: updateFeatures f (rec { - arrayvec_0_4_7.default = (f.arrayvec_0_4_7.default or true); - arrayvec_0_4_7.serde = - (f.arrayvec_0_4_7.serde or false) || - (f.arrayvec_0_4_7.serde-1 or false) || - (arrayvec_0_4_7.serde-1 or false); - arrayvec_0_4_7.std = - (f.arrayvec_0_4_7.std or false) || - (f.arrayvec_0_4_7.default or false) || - (arrayvec_0_4_7.default or false); - nodrop_0_1_12.default = (f.nodrop_0_1_12.default or false); - }) [ nodrop_0_1_12_features ]; - atty_0_2_10 = { features?(atty_0_2_10_features {}) }: atty_0_2_10_ { - dependencies = (if kernel == "redox" then mapFeatures features ([ termion_1_5_1 ]) else []) - ++ (if (kernel == "linux" || kernel == "darwin") then mapFeatures features ([ libc_0_2_40 ]) else []) - ++ (if kernel == "windows" then mapFeatures features ([ winapi_0_3_4 ]) else []); - }; - atty_0_2_10_features = f: updateFeatures f (rec { - atty_0_2_10.default = (f.atty_0_2_10.default or true); - libc_0_2_40.default = (f.libc_0_2_40.default or false); - termion_1_5_1.default = true; - winapi_0_3_4.consoleapi = true; - winapi_0_3_4.default = true; - winapi_0_3_4.minwinbase = true; - winapi_0_3_4.minwindef = true; - winapi_0_3_4.processenv = true; - winapi_0_3_4.winbase = true; - }) [ termion_1_5_1_features libc_0_2_40_features winapi_0_3_4_features ]; - backtrace_0_2_3 = { features?(backtrace_0_2_3_features {}) }: backtrace_0_2_3_ { - dependencies = mapFeatures features ([ cfg_if_0_1_2 libc_0_2_40 rustc_demangle_0_1_7 ] - ++ (if features.backtrace_0_2_3.backtrace-sys or false then [ backtrace_sys_0_1_16 ] else []) - ++ (if features.backtrace_0_2_3.dbghelp-sys or false then [ dbghelp_sys_0_2_0 ] else []) - ++ (if features.backtrace_0_2_3.kernel32-sys or false then [ kernel32_sys_0_2_2 ] else []) - ++ (if features.backtrace_0_2_3.winapi or false then [ winapi_0_2_8 ] else [])); - buildDependencies = mapFeatures features ([]); - features = mkFeatures (features.backtrace_0_2_3 or {}); - }; - backtrace_0_2_3_features = f: updateFeatures f (rec { - backtrace_0_2_3.backtrace-sys = - (f.backtrace_0_2_3.backtrace-sys or false) || - (f.backtrace_0_2_3.libbacktrace or false) || - (backtrace_0_2_3.libbacktrace or false); - backtrace_0_2_3.dbghelp = - (f.backtrace_0_2_3.dbghelp or false) || - (f.backtrace_0_2_3.default or false) || - (backtrace_0_2_3.default or false); - backtrace_0_2_3.dbghelp-sys = - (f.backtrace_0_2_3.dbghelp-sys or false) || - (f.backtrace_0_2_3.dbghelp or false) || - (backtrace_0_2_3.dbghelp or false); - backtrace_0_2_3.default = (f.backtrace_0_2_3.default or true); - backtrace_0_2_3.dladdr = - (f.backtrace_0_2_3.dladdr or false) || - (f.backtrace_0_2_3.default or false) || - (backtrace_0_2_3.default or false); - backtrace_0_2_3.kernel32-sys = - (f.backtrace_0_2_3.kernel32-sys or false) || - (f.backtrace_0_2_3.dbghelp or false) || - (backtrace_0_2_3.dbghelp or false); - backtrace_0_2_3.libbacktrace = - (f.backtrace_0_2_3.libbacktrace or false) || - (f.backtrace_0_2_3.default or false) || - (backtrace_0_2_3.default or false); - backtrace_0_2_3.libunwind = - (f.backtrace_0_2_3.libunwind or false) || - (f.backtrace_0_2_3.default or false) || - (backtrace_0_2_3.default or false); - backtrace_0_2_3.rustc-serialize = - (f.backtrace_0_2_3.rustc-serialize or false) || - (f.backtrace_0_2_3.serialize-rustc or false) || - (backtrace_0_2_3.serialize-rustc or false); - backtrace_0_2_3.serde = - (f.backtrace_0_2_3.serde or false) || - (f.backtrace_0_2_3.serialize-serde or false) || - (backtrace_0_2_3.serialize-serde or false); - backtrace_0_2_3.serde_codegen = - (f.backtrace_0_2_3.serde_codegen or false) || - (f.backtrace_0_2_3.serialize-serde or false) || - (backtrace_0_2_3.serialize-serde or false); - backtrace_0_2_3.winapi = - (f.backtrace_0_2_3.winapi or false) || - (f.backtrace_0_2_3.dbghelp or false) || - (backtrace_0_2_3.dbghelp or false); - backtrace_sys_0_1_16.default = true; - cfg_if_0_1_2.default = true; - dbghelp_sys_0_2_0.default = true; - kernel32_sys_0_2_2.default = true; - libc_0_2_40.default = true; - rustc_demangle_0_1_7.default = true; - winapi_0_2_8.default = true; - }) [ backtrace_sys_0_1_16_features cfg_if_0_1_2_features dbghelp_sys_0_2_0_features kernel32_sys_0_2_2_features libc_0_2_40_features rustc_demangle_0_1_7_features winapi_0_2_8_features ]; - backtrace_0_3_6 = { features?(backtrace_0_3_6_features {}) }: backtrace_0_3_6_ { - dependencies = mapFeatures features ([ cfg_if_0_1_2 rustc_demangle_0_1_7 ]) - ++ (if (kernel == "linux" || kernel == "darwin") && !(kernel == "fuchsia") && !(kernel == "emscripten") && !(kernel == "darwin") && !(kernel == "ios") then mapFeatures features ([ ] - ++ (if features.backtrace_0_3_6.backtrace-sys or false then [ backtrace_sys_0_1_16 ] else [])) else []) - ++ (if (kernel == "linux" || kernel == "darwin") then mapFeatures features ([ libc_0_2_40 ]) else []) - ++ (if kernel == "windows" then mapFeatures features ([ ] - ++ (if features.backtrace_0_3_6.winapi or false then [ winapi_0_3_4 ] else [])) else []); - features = mkFeatures (features.backtrace_0_3_6 or {}); - }; - backtrace_0_3_6_features = f: updateFeatures f (rec { - backtrace_0_3_6.addr2line = - (f.backtrace_0_3_6.addr2line or false) || - (f.backtrace_0_3_6.gimli-symbolize or false) || - (backtrace_0_3_6.gimli-symbolize or false); - backtrace_0_3_6.backtrace-sys = - (f.backtrace_0_3_6.backtrace-sys or false) || - (f.backtrace_0_3_6.libbacktrace or false) || - (backtrace_0_3_6.libbacktrace or false); - backtrace_0_3_6.coresymbolication = - (f.backtrace_0_3_6.coresymbolication or false) || - (f.backtrace_0_3_6.default or false) || - (backtrace_0_3_6.default or false); - backtrace_0_3_6.dbghelp = - (f.backtrace_0_3_6.dbghelp or false) || - (f.backtrace_0_3_6.default or false) || - (backtrace_0_3_6.default or false); - backtrace_0_3_6.default = (f.backtrace_0_3_6.default or true); - backtrace_0_3_6.dladdr = - (f.backtrace_0_3_6.dladdr or false) || - (f.backtrace_0_3_6.default or false) || - (backtrace_0_3_6.default or false); - backtrace_0_3_6.findshlibs = - (f.backtrace_0_3_6.findshlibs or false) || - (f.backtrace_0_3_6.gimli-symbolize or false) || - (backtrace_0_3_6.gimli-symbolize or false); - backtrace_0_3_6.gimli = - (f.backtrace_0_3_6.gimli or false) || - (f.backtrace_0_3_6.gimli-symbolize or false) || - (backtrace_0_3_6.gimli-symbolize or false); - backtrace_0_3_6.libbacktrace = - (f.backtrace_0_3_6.libbacktrace or false) || - (f.backtrace_0_3_6.default or false) || - (backtrace_0_3_6.default or false); - backtrace_0_3_6.libunwind = - (f.backtrace_0_3_6.libunwind or false) || - (f.backtrace_0_3_6.default or false) || - (backtrace_0_3_6.default or false); - backtrace_0_3_6.memmap = - (f.backtrace_0_3_6.memmap or false) || - (f.backtrace_0_3_6.gimli-symbolize or false) || - (backtrace_0_3_6.gimli-symbolize or false); - backtrace_0_3_6.object = - (f.backtrace_0_3_6.object or false) || - (f.backtrace_0_3_6.gimli-symbolize or false) || - (backtrace_0_3_6.gimli-symbolize or false); - backtrace_0_3_6.rustc-serialize = - (f.backtrace_0_3_6.rustc-serialize or false) || - (f.backtrace_0_3_6.serialize-rustc or false) || - (backtrace_0_3_6.serialize-rustc or false); - backtrace_0_3_6.serde = - (f.backtrace_0_3_6.serde or false) || - (f.backtrace_0_3_6.serialize-serde or false) || - (backtrace_0_3_6.serialize-serde or false); - backtrace_0_3_6.serde_derive = - (f.backtrace_0_3_6.serde_derive or false) || - (f.backtrace_0_3_6.serialize-serde or false) || - (backtrace_0_3_6.serialize-serde or false); - backtrace_0_3_6.winapi = - (f.backtrace_0_3_6.winapi or false) || - (f.backtrace_0_3_6.dbghelp or false) || - (backtrace_0_3_6.dbghelp or false); - backtrace_sys_0_1_16.default = true; - cfg_if_0_1_2.default = true; - libc_0_2_40.default = true; - rustc_demangle_0_1_7.default = true; - winapi_0_3_4.dbghelp = true; - winapi_0_3_4.default = true; - winapi_0_3_4.minwindef = true; - winapi_0_3_4.processthreadsapi = true; - winapi_0_3_4.std = true; - winapi_0_3_4.winnt = true; - }) [ cfg_if_0_1_2_features rustc_demangle_0_1_7_features backtrace_sys_0_1_16_features libc_0_2_40_features winapi_0_3_4_features ]; - backtrace_sys_0_1_16 = { features?(backtrace_sys_0_1_16_features {}) }: backtrace_sys_0_1_16_ { - dependencies = mapFeatures features ([ libc_0_2_40 ]); - buildDependencies = mapFeatures features ([ cc_1_0_15 ]); - }; - backtrace_sys_0_1_16_features = f: updateFeatures f (rec { - backtrace_sys_0_1_16.default = (f.backtrace_sys_0_1_16.default or true); - cc_1_0_15.default = true; - libc_0_2_40.default = true; - }) [ libc_0_2_40_features cc_1_0_15_features ]; - base64_0_6_0 = { features?(base64_0_6_0_features {}) }: base64_0_6_0_ { - dependencies = mapFeatures features ([ byteorder_1_2_2 safemem_0_2_0 ]); - }; - base64_0_6_0_features = f: updateFeatures f (rec { - base64_0_6_0.default = (f.base64_0_6_0.default or true); - byteorder_1_2_2.default = true; - safemem_0_2_0.default = true; - }) [ byteorder_1_2_2_features safemem_0_2_0_features ]; - base64_0_9_1 = { features?(base64_0_9_1_features {}) }: base64_0_9_1_ { - dependencies = mapFeatures features ([ byteorder_1_2_2 safemem_0_2_0 ]); - }; - base64_0_9_1_features = f: updateFeatures f (rec { - base64_0_9_1.default = (f.base64_0_9_1.default or true); - byteorder_1_2_2.default = true; - safemem_0_2_0.default = true; - }) [ byteorder_1_2_2_features safemem_0_2_0_features ]; - bitflags_0_9_1 = { features?(bitflags_0_9_1_features {}) }: bitflags_0_9_1_ { - features = mkFeatures (features.bitflags_0_9_1 or {}); - }; - bitflags_0_9_1_features = f: updateFeatures f (rec { - bitflags_0_9_1.default = (f.bitflags_0_9_1.default or true); - bitflags_0_9_1.example_generated = - (f.bitflags_0_9_1.example_generated or false) || - (f.bitflags_0_9_1.default or false) || - (bitflags_0_9_1.default or false); - }) []; - bitflags_1_0_3 = { features?(bitflags_1_0_3_features {}) }: bitflags_1_0_3_ { - features = mkFeatures (features.bitflags_1_0_3 or {}); - }; - bitflags_1_0_3_features = f: updateFeatures f (rec { - bitflags_1_0_3.default = (f.bitflags_1_0_3.default or true); - }) []; - brotli_sys_0_3_2 = { features?(brotli_sys_0_3_2_features {}) }: brotli_sys_0_3_2_ { - dependencies = mapFeatures features ([ libc_0_2_40 ]); - buildDependencies = mapFeatures features ([ cc_1_0_15 ]); - }; - brotli_sys_0_3_2_features = f: updateFeatures f (rec { - brotli_sys_0_3_2.default = (f.brotli_sys_0_3_2.default or true); - cc_1_0_15.default = true; - libc_0_2_40.default = true; - }) [ libc_0_2_40_features cc_1_0_15_features ]; - brotli2_0_3_2 = { features?(brotli2_0_3_2_features {}) }: brotli2_0_3_2_ { - dependencies = mapFeatures features ([ brotli_sys_0_3_2 libc_0_2_40 ]); - }; - brotli2_0_3_2_features = f: updateFeatures f (rec { - brotli2_0_3_2.default = (f.brotli2_0_3_2.default or true); - brotli_sys_0_3_2.default = true; - libc_0_2_40.default = true; - }) [ brotli_sys_0_3_2_features libc_0_2_40_features ]; - build_const_0_2_1 = { features?(build_const_0_2_1_features {}) }: build_const_0_2_1_ { - features = mkFeatures (features.build_const_0_2_1 or {}); - }; - build_const_0_2_1_features = f: updateFeatures f (rec { - build_const_0_2_1.default = (f.build_const_0_2_1.default or true); - build_const_0_2_1.std = - (f.build_const_0_2_1.std or false) || - (f.build_const_0_2_1.default or false) || - (build_const_0_2_1.default or false); - }) []; - bytecount_0_2_0 = { features?(bytecount_0_2_0_features {}) }: bytecount_0_2_0_ { - dependencies = mapFeatures features ([]); - features = mkFeatures (features.bytecount_0_2_0 or {}); - }; - bytecount_0_2_0_features = f: updateFeatures f (rec { - bytecount_0_2_0.default = (f.bytecount_0_2_0.default or true); - bytecount_0_2_0.simd = - (f.bytecount_0_2_0.simd or false) || - (f.bytecount_0_2_0.simd-accel or false) || - (bytecount_0_2_0.simd-accel or false); - bytecount_0_2_0.simd-accel = - (f.bytecount_0_2_0.simd-accel or false) || - (f.bytecount_0_2_0.avx-accel or false) || - (bytecount_0_2_0.avx-accel or false); - }) []; - byteorder_1_2_2 = { features?(byteorder_1_2_2_features {}) }: byteorder_1_2_2_ { - features = mkFeatures (features.byteorder_1_2_2 or {}); - }; - byteorder_1_2_2_features = f: updateFeatures f (rec { - byteorder_1_2_2.default = (f.byteorder_1_2_2.default or true); - byteorder_1_2_2.std = - (f.byteorder_1_2_2.std or false) || - (f.byteorder_1_2_2.default or false) || - (byteorder_1_2_2.default or false); - }) []; - bytes_0_4_7 = { features?(bytes_0_4_7_features {}) }: bytes_0_4_7_ { - dependencies = mapFeatures features ([ byteorder_1_2_2 iovec_0_1_2 ]); - }; - bytes_0_4_7_features = f: updateFeatures f (rec { - byteorder_1_2_2.default = true; - bytes_0_4_7.default = (f.bytes_0_4_7.default or true); - iovec_0_1_2.default = true; - }) [ byteorder_1_2_2_features iovec_0_1_2_features ]; - cargo_metadata_0_3_3 = { features?(cargo_metadata_0_3_3_features {}) }: cargo_metadata_0_3_3_ { - dependencies = mapFeatures features ([ error_chain_0_11_0 semver_0_8_0 serde_1_0_43 serde_derive_1_0_43 serde_json_1_0_16 ]); - }; - cargo_metadata_0_3_3_features = f: updateFeatures f (rec { - cargo_metadata_0_3_3.default = (f.cargo_metadata_0_3_3.default or true); - error_chain_0_11_0.default = true; - semver_0_8_0.default = true; - semver_0_8_0.serde = true; - serde_1_0_43.default = true; - serde_derive_1_0_43.default = true; - serde_json_1_0_16.default = true; - }) [ error_chain_0_11_0_features semver_0_8_0_features serde_1_0_43_features serde_derive_1_0_43_features serde_json_1_0_16_features ]; - cc_1_0_15 = { features?(cc_1_0_15_features {}) }: cc_1_0_15_ { - dependencies = mapFeatures features ([]); - features = mkFeatures (features.cc_1_0_15 or {}); - }; - cc_1_0_15_features = f: updateFeatures f (rec { - cc_1_0_15.default = (f.cc_1_0_15.default or true); - cc_1_0_15.rayon = - (f.cc_1_0_15.rayon or false) || - (f.cc_1_0_15.parallel or false) || - (cc_1_0_15.parallel or false); - }) []; - cfg_if_0_1_2 = { features?(cfg_if_0_1_2_features {}) }: cfg_if_0_1_2_ {}; - cfg_if_0_1_2_features = f: updateFeatures f (rec { - cfg_if_0_1_2.default = (f.cfg_if_0_1_2.default or true); - }) []; - chrono_0_4_2 = { features?(chrono_0_4_2_features {}) }: chrono_0_4_2_ { - dependencies = mapFeatures features ([ num_integer_0_1_36 num_traits_0_2_2 ] - ++ (if features.chrono_0_4_2.serde or false then [ serde_1_0_43 ] else []) - ++ (if features.chrono_0_4_2.time or false then [ time_0_1_39 ] else [])); - features = mkFeatures (features.chrono_0_4_2 or {}); - }; - chrono_0_4_2_features = f: updateFeatures f (rec { - chrono_0_4_2.clock = - (f.chrono_0_4_2.clock or false) || - (f.chrono_0_4_2.default or false) || - (chrono_0_4_2.default or false); - chrono_0_4_2.default = (f.chrono_0_4_2.default or true); - chrono_0_4_2.time = - (f.chrono_0_4_2.time or false) || - (f.chrono_0_4_2.clock or false) || - (chrono_0_4_2.clock or false); - num_integer_0_1_36.default = (f.num_integer_0_1_36.default or false); - num_traits_0_2_2.default = (f.num_traits_0_2_2.default or false); - serde_1_0_43.default = true; - time_0_1_39.default = true; - }) [ num_integer_0_1_36_features num_traits_0_2_2_features serde_1_0_43_features time_0_1_39_features ]; - clap_2_31_2 = { features?(clap_2_31_2_features {}) }: clap_2_31_2_ { - dependencies = mapFeatures features ([ bitflags_1_0_3 textwrap_0_9_0 unicode_width_0_1_4 ] - ++ (if features.clap_2_31_2.atty or false then [ atty_0_2_10 ] else []) - ++ (if features.clap_2_31_2.strsim or false then [ strsim_0_7_0 ] else []) - ++ (if features.clap_2_31_2.vec_map or false then [ vec_map_0_8_0 ] else [])) - ++ (if !(kernel == "windows") then mapFeatures features ([ ] - ++ (if features.clap_2_31_2.ansi_term or false then [ ansi_term_0_11_0 ] else [])) else []); - features = mkFeatures (features.clap_2_31_2 or {}); - }; - clap_2_31_2_features = f: updateFeatures f (rec { - ansi_term_0_11_0.default = true; - atty_0_2_10.default = true; - bitflags_1_0_3.default = true; - clap_2_31_2.ansi_term = - (f.clap_2_31_2.ansi_term or false) || - (f.clap_2_31_2.color or false) || - (clap_2_31_2.color or false); - clap_2_31_2.atty = - (f.clap_2_31_2.atty or false) || - (f.clap_2_31_2.color or false) || - (clap_2_31_2.color or false); - clap_2_31_2.clippy = - (f.clap_2_31_2.clippy or false) || - (f.clap_2_31_2.lints or false) || - (clap_2_31_2.lints or false); - clap_2_31_2.color = - (f.clap_2_31_2.color or false) || - (f.clap_2_31_2.default or false) || - (clap_2_31_2.default or false); - clap_2_31_2.default = (f.clap_2_31_2.default or true); - clap_2_31_2.strsim = - (f.clap_2_31_2.strsim or false) || - (f.clap_2_31_2.suggestions or false) || - (clap_2_31_2.suggestions or false); - clap_2_31_2.suggestions = - (f.clap_2_31_2.suggestions or false) || - (f.clap_2_31_2.default or false) || - (clap_2_31_2.default or false); - clap_2_31_2.term_size = - (f.clap_2_31_2.term_size or false) || - (f.clap_2_31_2.wrap_help or false) || - (clap_2_31_2.wrap_help or false); - clap_2_31_2.vec_map = - (f.clap_2_31_2.vec_map or false) || - (f.clap_2_31_2.default or false) || - (clap_2_31_2.default or false); - clap_2_31_2.yaml = - (f.clap_2_31_2.yaml or false) || - (f.clap_2_31_2.doc or false) || - (clap_2_31_2.doc or false); - clap_2_31_2.yaml-rust = - (f.clap_2_31_2.yaml-rust or false) || - (f.clap_2_31_2.yaml or false) || - (clap_2_31_2.yaml or false); - strsim_0_7_0.default = true; - textwrap_0_9_0.default = true; - textwrap_0_9_0.term_size = - (f.textwrap_0_9_0.term_size or false) || - (clap_2_31_2.wrap_help or false) || - (f.clap_2_31_2.wrap_help or false); - unicode_width_0_1_4.default = true; - vec_map_0_8_0.default = true; - }) [ atty_0_2_10_features bitflags_1_0_3_features strsim_0_7_0_features textwrap_0_9_0_features unicode_width_0_1_4_features vec_map_0_8_0_features ansi_term_0_11_0_features ]; - comrak_0_2_9 = { features?(comrak_0_2_9_features {}) }: (comrak_0_2_9_ { - dependencies = mapFeatures features ([ entities_1_0_1 lazy_static_1_0_0 pest_1_0_6 pest_derive_1_0_7 regex_0_2_11 twoway_0_1_8 typed_arena_1_3_0 unicode_categories_0_1_1 ] - ++ (if features.comrak_0_2_9.clap or false then [ clap_2_31_2 ] else [])); - features = mkFeatures (features.comrak_0_2_9 or {}); - }).overrideAttrs (oldAttrs: rec { CARGO_PKG_DESCRIPTION = "dummy"; }); - comrak_0_2_9_features = f: updateFeatures f (rec { - clap_2_31_2.default = true; - comrak_0_2_9.clap = - (f.comrak_0_2_9.clap or false) || - (f.comrak_0_2_9.default or false) || - (comrak_0_2_9.default or false); - comrak_0_2_9.default = (f.comrak_0_2_9.default or true); - entities_1_0_1.default = true; - lazy_static_1_0_0.default = true; - pest_1_0_6.default = true; - pest_derive_1_0_7.default = true; - regex_0_2_11.default = true; - twoway_0_1_8.default = true; - typed_arena_1_3_0.default = true; - unicode_categories_0_1_1.default = true; - }) [ clap_2_31_2_features entities_1_0_1_features lazy_static_1_0_0_features pest_1_0_6_features pest_derive_1_0_7_features regex_0_2_11_features twoway_0_1_8_features typed_arena_1_3_0_features unicode_categories_0_1_1_features ]; - converse_0_1_0 = { features?(converse_0_1_0_features {}) }: converse_0_1_0_ { - dependencies = mapFeatures features ([ actix_0_5_6 actix_web_0_5_6 chrono_0_4_2 comrak_0_2_9 diesel_1_2_2 env_logger_0_5_9 failure_0_1_1 futures_0_1_21 hyper_0_11_25 log_0_4_1 md5_0_3_7 r2d2_0_8_2 rand_0_4_2 reqwest_0_8_5 serde_1_0_43 serde_derive_1_0_43 serde_json_1_0_16 tera_0_11_7 tokio_0_1_5 tokio_timer_0_2_1 url_1_7_0 url_serde_0_2_0 ]); - buildDependencies = mapFeatures features ([ pulldown_cmark_0_1_2 ]); - }; - converse_0_1_0_features = f: updateFeatures f (rec { - actix_0_5_6.default = true; - actix_web_0_5_6.default = true; - chrono_0_4_2.default = true; - chrono_0_4_2.serde = true; - comrak_0_2_9.default = true; - converse_0_1_0.default = (f.converse_0_1_0.default or true); - diesel_1_2_2.chrono = true; - diesel_1_2_2.default = true; - diesel_1_2_2.postgres = true; - diesel_1_2_2.r2d2 = true; - env_logger_0_5_9.default = true; - failure_0_1_1.default = true; - futures_0_1_21.default = true; - hyper_0_11_25.default = true; - log_0_4_1.default = true; - md5_0_3_7.default = true; - pulldown_cmark_0_1_2.default = true; - r2d2_0_8_2.default = true; - rand_0_4_2.default = true; - reqwest_0_8_5.default = true; - serde_1_0_43.default = true; - serde_derive_1_0_43.default = true; - serde_json_1_0_16.default = true; - tera_0_11_7.default = true; - tokio_0_1_5.default = true; - tokio_timer_0_2_1.default = true; - url_1_7_0.default = true; - url_serde_0_2_0.default = true; - }) [ actix_0_5_6_features actix_web_0_5_6_features chrono_0_4_2_features comrak_0_2_9_features diesel_1_2_2_features env_logger_0_5_9_features failure_0_1_1_features futures_0_1_21_features hyper_0_11_25_features log_0_4_1_features md5_0_3_7_features r2d2_0_8_2_features rand_0_4_2_features reqwest_0_8_5_features serde_1_0_43_features serde_derive_1_0_43_features serde_json_1_0_16_features tera_0_11_7_features tokio_0_1_5_features tokio_timer_0_2_1_features url_1_7_0_features url_serde_0_2_0_features pulldown_cmark_0_1_2_features ]; - cookie_0_10_1 = { features?(cookie_0_10_1_features {}) }: cookie_0_10_1_ { - dependencies = mapFeatures features ([ time_0_1_39 ] - ++ (if features.cookie_0_10_1.base64 or false then [ base64_0_6_0 ] else []) - ++ (if features.cookie_0_10_1.ring or false then [ ring_0_12_1 ] else []) - ++ (if features.cookie_0_10_1.url or false then [ url_1_7_0 ] else [])); - features = mkFeatures (features.cookie_0_10_1 or {}); - }; - cookie_0_10_1_features = f: updateFeatures f (rec { - base64_0_6_0.default = true; - cookie_0_10_1.base64 = - (f.cookie_0_10_1.base64 or false) || - (f.cookie_0_10_1.secure or false) || - (cookie_0_10_1.secure or false); - cookie_0_10_1.default = (f.cookie_0_10_1.default or true); - cookie_0_10_1.ring = - (f.cookie_0_10_1.ring or false) || - (f.cookie_0_10_1.secure or false) || - (cookie_0_10_1.secure or false); - cookie_0_10_1.url = - (f.cookie_0_10_1.url or false) || - (f.cookie_0_10_1.percent-encode or false) || - (cookie_0_10_1.percent-encode or false); - ring_0_12_1.default = true; - time_0_1_39.default = true; - url_1_7_0.default = true; - }) [ base64_0_6_0_features ring_0_12_1_features time_0_1_39_features url_1_7_0_features ]; - core_foundation_0_2_3 = { features?(core_foundation_0_2_3_features {}) }: core_foundation_0_2_3_ { - dependencies = mapFeatures features ([ core_foundation_sys_0_2_3 libc_0_2_40 ]); - }; - core_foundation_0_2_3_features = f: updateFeatures f (rec { - core_foundation_0_2_3.default = (f.core_foundation_0_2_3.default or true); - core_foundation_sys_0_2_3.default = true; - libc_0_2_40.default = true; - }) [ core_foundation_sys_0_2_3_features libc_0_2_40_features ]; - core_foundation_sys_0_2_3 = { features?(core_foundation_sys_0_2_3_features {}) }: core_foundation_sys_0_2_3_ { - dependencies = mapFeatures features ([ libc_0_2_40 ]); - }; - core_foundation_sys_0_2_3_features = f: updateFeatures f (rec { - core_foundation_sys_0_2_3.default = (f.core_foundation_sys_0_2_3.default or true); - libc_0_2_40.default = true; - }) [ libc_0_2_40_features ]; - crc_1_8_1 = { features?(crc_1_8_1_features {}) }: crc_1_8_1_ { - buildDependencies = mapFeatures features ([ build_const_0_2_1 ]); - features = mkFeatures (features.crc_1_8_1 or {}); - }; - crc_1_8_1_features = f: updateFeatures f (rec { - build_const_0_2_1.default = true; - crc_1_8_1.default = (f.crc_1_8_1.default or true); - crc_1_8_1.std = - (f.crc_1_8_1.std or false) || - (f.crc_1_8_1.default or false) || - (crc_1_8_1.default or false); - }) [ build_const_0_2_1_features ]; - crossbeam_channel_0_1_2 = { features?(crossbeam_channel_0_1_2_features {}) }: crossbeam_channel_0_1_2_ { - dependencies = mapFeatures features ([ crossbeam_epoch_0_2_0 crossbeam_utils_0_2_2 parking_lot_0_4_8 ]); - features = mkFeatures (features.crossbeam_channel_0_1_2 or {}); - }; - crossbeam_channel_0_1_2_features = f: updateFeatures f (rec { - crossbeam_channel_0_1_2.default = (f.crossbeam_channel_0_1_2.default or true); - crossbeam_epoch_0_2_0.default = true; - crossbeam_utils_0_2_2.default = true; - parking_lot_0_4_8.default = true; - }) [ crossbeam_epoch_0_2_0_features crossbeam_utils_0_2_2_features parking_lot_0_4_8_features ]; - crossbeam_deque_0_2_0 = { features?(crossbeam_deque_0_2_0_features {}) }: crossbeam_deque_0_2_0_ { - dependencies = mapFeatures features ([ crossbeam_epoch_0_3_1 crossbeam_utils_0_2_2 ]); - }; - crossbeam_deque_0_2_0_features = f: updateFeatures f (rec { - crossbeam_deque_0_2_0.default = (f.crossbeam_deque_0_2_0.default or true); - crossbeam_epoch_0_3_1.default = true; - crossbeam_utils_0_2_2.default = true; - }) [ crossbeam_epoch_0_3_1_features crossbeam_utils_0_2_2_features ]; - crossbeam_deque_0_3_0 = { features?(crossbeam_deque_0_3_0_features {}) }: crossbeam_deque_0_3_0_ { - dependencies = mapFeatures features ([ crossbeam_epoch_0_4_1 crossbeam_utils_0_2_2 ]); - }; - crossbeam_deque_0_3_0_features = f: updateFeatures f (rec { - crossbeam_deque_0_3_0.default = (f.crossbeam_deque_0_3_0.default or true); - crossbeam_epoch_0_4_1.default = true; - crossbeam_utils_0_2_2.default = true; - }) [ crossbeam_epoch_0_4_1_features crossbeam_utils_0_2_2_features ]; - crossbeam_epoch_0_2_0 = { features?(crossbeam_epoch_0_2_0_features {}) }: crossbeam_epoch_0_2_0_ { - dependencies = mapFeatures features ([ arrayvec_0_4_7 cfg_if_0_1_2 crossbeam_utils_0_2_2 memoffset_0_1_0 scopeguard_0_3_3 ] - ++ (if features.crossbeam_epoch_0_2_0.lazy_static or false then [ lazy_static_0_2_11 ] else [])); - features = mkFeatures (features.crossbeam_epoch_0_2_0 or {}); - }; - crossbeam_epoch_0_2_0_features = f: updateFeatures f (rec { - arrayvec_0_4_7.default = (f.arrayvec_0_4_7.default or false); - arrayvec_0_4_7.use_union = - (f.arrayvec_0_4_7.use_union or false) || - (crossbeam_epoch_0_2_0.nightly or false) || - (f.crossbeam_epoch_0_2_0.nightly or false); - cfg_if_0_1_2.default = true; - crossbeam_epoch_0_2_0.default = (f.crossbeam_epoch_0_2_0.default or true); - crossbeam_epoch_0_2_0.lazy_static = - (f.crossbeam_epoch_0_2_0.lazy_static or false) || - (f.crossbeam_epoch_0_2_0.use_std or false) || - (crossbeam_epoch_0_2_0.use_std or false); - crossbeam_epoch_0_2_0.use_std = - (f.crossbeam_epoch_0_2_0.use_std or false) || - (f.crossbeam_epoch_0_2_0.default or false) || - (crossbeam_epoch_0_2_0.default or false); - crossbeam_utils_0_2_2.default = (f.crossbeam_utils_0_2_2.default or false); - crossbeam_utils_0_2_2.use_std = - (f.crossbeam_utils_0_2_2.use_std or false) || - (crossbeam_epoch_0_2_0.use_std or false) || - (f.crossbeam_epoch_0_2_0.use_std or false); - lazy_static_0_2_11.default = true; - memoffset_0_1_0.default = (f.memoffset_0_1_0.default or false); - scopeguard_0_3_3.default = (f.scopeguard_0_3_3.default or false); - }) [ arrayvec_0_4_7_features cfg_if_0_1_2_features crossbeam_utils_0_2_2_features lazy_static_0_2_11_features memoffset_0_1_0_features scopeguard_0_3_3_features ]; - crossbeam_epoch_0_3_1 = { features?(crossbeam_epoch_0_3_1_features {}) }: crossbeam_epoch_0_3_1_ { - dependencies = mapFeatures features ([ arrayvec_0_4_7 cfg_if_0_1_2 crossbeam_utils_0_2_2 memoffset_0_2_1 nodrop_0_1_12 scopeguard_0_3_3 ] - ++ (if features.crossbeam_epoch_0_3_1.lazy_static or false then [ lazy_static_1_0_0 ] else [])); - features = mkFeatures (features.crossbeam_epoch_0_3_1 or {}); - }; - crossbeam_epoch_0_3_1_features = f: updateFeatures f (rec { - arrayvec_0_4_7.default = (f.arrayvec_0_4_7.default or false); - arrayvec_0_4_7.use_union = - (f.arrayvec_0_4_7.use_union or false) || - (crossbeam_epoch_0_3_1.nightly or false) || - (f.crossbeam_epoch_0_3_1.nightly or false); - cfg_if_0_1_2.default = true; - crossbeam_epoch_0_3_1.default = (f.crossbeam_epoch_0_3_1.default or true); - crossbeam_epoch_0_3_1.lazy_static = - (f.crossbeam_epoch_0_3_1.lazy_static or false) || - (f.crossbeam_epoch_0_3_1.use_std or false) || - (crossbeam_epoch_0_3_1.use_std or false); - crossbeam_epoch_0_3_1.use_std = - (f.crossbeam_epoch_0_3_1.use_std or false) || - (f.crossbeam_epoch_0_3_1.default or false) || - (crossbeam_epoch_0_3_1.default or false); - crossbeam_utils_0_2_2.default = (f.crossbeam_utils_0_2_2.default or false); - crossbeam_utils_0_2_2.use_std = - (f.crossbeam_utils_0_2_2.use_std or false) || - (crossbeam_epoch_0_3_1.use_std or false) || - (f.crossbeam_epoch_0_3_1.use_std or false); - lazy_static_1_0_0.default = true; - memoffset_0_2_1.default = true; - nodrop_0_1_12.default = (f.nodrop_0_1_12.default or false); - scopeguard_0_3_3.default = (f.scopeguard_0_3_3.default or false); - }) [ arrayvec_0_4_7_features cfg_if_0_1_2_features crossbeam_utils_0_2_2_features lazy_static_1_0_0_features memoffset_0_2_1_features nodrop_0_1_12_features scopeguard_0_3_3_features ]; - crossbeam_epoch_0_4_1 = { features?(crossbeam_epoch_0_4_1_features {}) }: crossbeam_epoch_0_4_1_ { - dependencies = mapFeatures features ([ arrayvec_0_4_7 cfg_if_0_1_2 crossbeam_utils_0_3_2 memoffset_0_2_1 scopeguard_0_3_3 ] - ++ (if features.crossbeam_epoch_0_4_1.lazy_static or false then [ lazy_static_1_0_0 ] else [])); - features = mkFeatures (features.crossbeam_epoch_0_4_1 or {}); - }; - crossbeam_epoch_0_4_1_features = f: updateFeatures f (rec { - arrayvec_0_4_7.default = (f.arrayvec_0_4_7.default or false); - arrayvec_0_4_7.use_union = - (f.arrayvec_0_4_7.use_union or false) || - (crossbeam_epoch_0_4_1.nightly or false) || - (f.crossbeam_epoch_0_4_1.nightly or false); - cfg_if_0_1_2.default = true; - crossbeam_epoch_0_4_1.default = (f.crossbeam_epoch_0_4_1.default or true); - crossbeam_epoch_0_4_1.lazy_static = - (f.crossbeam_epoch_0_4_1.lazy_static or false) || - (f.crossbeam_epoch_0_4_1.use_std or false) || - (crossbeam_epoch_0_4_1.use_std or false); - crossbeam_epoch_0_4_1.use_std = - (f.crossbeam_epoch_0_4_1.use_std or false) || - (f.crossbeam_epoch_0_4_1.default or false) || - (crossbeam_epoch_0_4_1.default or false); - crossbeam_utils_0_3_2.default = (f.crossbeam_utils_0_3_2.default or false); - crossbeam_utils_0_3_2.use_std = - (f.crossbeam_utils_0_3_2.use_std or false) || - (crossbeam_epoch_0_4_1.use_std or false) || - (f.crossbeam_epoch_0_4_1.use_std or false); - lazy_static_1_0_0.default = true; - memoffset_0_2_1.default = true; - scopeguard_0_3_3.default = (f.scopeguard_0_3_3.default or false); - }) [ arrayvec_0_4_7_features cfg_if_0_1_2_features crossbeam_utils_0_3_2_features lazy_static_1_0_0_features memoffset_0_2_1_features scopeguard_0_3_3_features ]; - crossbeam_utils_0_2_2 = { features?(crossbeam_utils_0_2_2_features {}) }: crossbeam_utils_0_2_2_ { - dependencies = mapFeatures features ([ cfg_if_0_1_2 ]); - features = mkFeatures (features.crossbeam_utils_0_2_2 or {}); - }; - crossbeam_utils_0_2_2_features = f: updateFeatures f (rec { - cfg_if_0_1_2.default = true; - crossbeam_utils_0_2_2.default = (f.crossbeam_utils_0_2_2.default or true); - crossbeam_utils_0_2_2.use_std = - (f.crossbeam_utils_0_2_2.use_std or false) || - (f.crossbeam_utils_0_2_2.default or false) || - (crossbeam_utils_0_2_2.default or false); - }) [ cfg_if_0_1_2_features ]; - crossbeam_utils_0_3_2 = { features?(crossbeam_utils_0_3_2_features {}) }: crossbeam_utils_0_3_2_ { - dependencies = mapFeatures features ([ cfg_if_0_1_2 ]); - features = mkFeatures (features.crossbeam_utils_0_3_2 or {}); - }; - crossbeam_utils_0_3_2_features = f: updateFeatures f (rec { - cfg_if_0_1_2.default = true; - crossbeam_utils_0_3_2.default = (f.crossbeam_utils_0_3_2.default or true); - crossbeam_utils_0_3_2.use_std = - (f.crossbeam_utils_0_3_2.use_std or false) || - (f.crossbeam_utils_0_3_2.default or false) || - (crossbeam_utils_0_3_2.default or false); - }) [ cfg_if_0_1_2_features ]; - dbghelp_sys_0_2_0 = { features?(dbghelp_sys_0_2_0_features {}) }: dbghelp_sys_0_2_0_ { - dependencies = mapFeatures features ([ winapi_0_2_8 ]); - buildDependencies = mapFeatures features ([ winapi_build_0_1_1 ]); - }; - dbghelp_sys_0_2_0_features = f: updateFeatures f (rec { - dbghelp_sys_0_2_0.default = (f.dbghelp_sys_0_2_0.default or true); - winapi_0_2_8.default = true; - winapi_build_0_1_1.default = true; - }) [ winapi_0_2_8_features winapi_build_0_1_1_features ]; - diesel_1_2_2 = { features?(diesel_1_2_2_features {}) }: diesel_1_2_2_ { - dependencies = mapFeatures features ([ byteorder_1_2_2 diesel_derives_1_2_0 ] - ++ (if features.diesel_1_2_2.bitflags or false then [ bitflags_1_0_3 ] else []) - ++ (if features.diesel_1_2_2.chrono or false then [ chrono_0_4_2 ] else []) - ++ (if features.diesel_1_2_2.pq-sys or false then [ pq_sys_0_4_4 ] else []) - ++ (if features.diesel_1_2_2.r2d2 or false then [ r2d2_0_8_2 ] else [])); - features = mkFeatures (features.diesel_1_2_2 or {}); - }; - diesel_1_2_2_features = f: updateFeatures f (rec { - bitflags_1_0_3.default = true; - byteorder_1_2_2.default = true; - chrono_0_4_2.default = true; - diesel_1_2_2."128-column-tables" = - (f.diesel_1_2_2."128-column-tables" or false) || - (f.diesel_1_2_2.x128-column-tables or false) || - (diesel_1_2_2.x128-column-tables or false); - diesel_1_2_2."32-column-tables" = - (f.diesel_1_2_2."32-column-tables" or false) || - (f.diesel_1_2_2."64-column-tables" or false) || - (diesel_1_2_2."64-column-tables" or false) || - (f.diesel_1_2_2.default or false) || - (diesel_1_2_2.default or false) || - (f.diesel_1_2_2.large-tables or false) || - (diesel_1_2_2.large-tables or false) || - (f.diesel_1_2_2.x32-column-tables or false) || - (diesel_1_2_2.x32-column-tables or false); - diesel_1_2_2."64-column-tables" = - (f.diesel_1_2_2."64-column-tables" or false) || - (f.diesel_1_2_2."128-column-tables" or false) || - (diesel_1_2_2."128-column-tables" or false) || - (f.diesel_1_2_2.huge-tables or false) || - (diesel_1_2_2.huge-tables or false) || - (f.diesel_1_2_2.x64-column-tables or false) || - (diesel_1_2_2.x64-column-tables or false); - diesel_1_2_2.bigdecimal = - (f.diesel_1_2_2.bigdecimal or false) || - (f.diesel_1_2_2.numeric or false) || - (diesel_1_2_2.numeric or false); - diesel_1_2_2.bitflags = - (f.diesel_1_2_2.bitflags or false) || - (f.diesel_1_2_2.postgres or false) || - (diesel_1_2_2.postgres or false); - diesel_1_2_2.chrono = - (f.diesel_1_2_2.chrono or false) || - (f.diesel_1_2_2.extras or false) || - (diesel_1_2_2.extras or false); - diesel_1_2_2.clippy = - (f.diesel_1_2_2.clippy or false) || - (f.diesel_1_2_2.lint or false) || - (diesel_1_2_2.lint or false); - diesel_1_2_2.default = (f.diesel_1_2_2.default or true); - diesel_1_2_2.deprecated-time = - (f.diesel_1_2_2.deprecated-time or false) || - (f.diesel_1_2_2.extras or false) || - (diesel_1_2_2.extras or false); - diesel_1_2_2.ipnetwork = - (f.diesel_1_2_2.ipnetwork or false) || - (f.diesel_1_2_2.network-address or false) || - (diesel_1_2_2.network-address or false); - diesel_1_2_2.libc = - (f.diesel_1_2_2.libc or false) || - (f.diesel_1_2_2.network-address or false) || - (diesel_1_2_2.network-address or false); - diesel_1_2_2.libsqlite3-sys = - (f.diesel_1_2_2.libsqlite3-sys or false) || - (f.diesel_1_2_2.sqlite or false) || - (diesel_1_2_2.sqlite or false); - diesel_1_2_2.mysqlclient-sys = - (f.diesel_1_2_2.mysqlclient-sys or false) || - (f.diesel_1_2_2.mysql or false) || - (diesel_1_2_2.mysql or false); - diesel_1_2_2.network-address = - (f.diesel_1_2_2.network-address or false) || - (f.diesel_1_2_2.extras or false) || - (diesel_1_2_2.extras or false); - diesel_1_2_2.num-bigint = - (f.diesel_1_2_2.num-bigint or false) || - (f.diesel_1_2_2.numeric or false) || - (diesel_1_2_2.numeric or false); - diesel_1_2_2.num-integer = - (f.diesel_1_2_2.num-integer or false) || - (f.diesel_1_2_2.numeric or false) || - (diesel_1_2_2.numeric or false); - diesel_1_2_2.num-traits = - (f.diesel_1_2_2.num-traits or false) || - (f.diesel_1_2_2.numeric or false) || - (diesel_1_2_2.numeric or false); - diesel_1_2_2.numeric = - (f.diesel_1_2_2.numeric or false) || - (f.diesel_1_2_2.extras or false) || - (diesel_1_2_2.extras or false); - diesel_1_2_2.pq-sys = - (f.diesel_1_2_2.pq-sys or false) || - (f.diesel_1_2_2.postgres or false) || - (diesel_1_2_2.postgres or false); - diesel_1_2_2.r2d2 = - (f.diesel_1_2_2.r2d2 or false) || - (f.diesel_1_2_2.extras or false) || - (diesel_1_2_2.extras or false); - diesel_1_2_2.serde_json = - (f.diesel_1_2_2.serde_json or false) || - (f.diesel_1_2_2.extras or false) || - (diesel_1_2_2.extras or false); - diesel_1_2_2.time = - (f.diesel_1_2_2.time or false) || - (f.diesel_1_2_2.deprecated-time or false) || - (diesel_1_2_2.deprecated-time or false); - diesel_1_2_2.url = - (f.diesel_1_2_2.url or false) || - (f.diesel_1_2_2.mysql or false) || - (diesel_1_2_2.mysql or false); - diesel_1_2_2.uuid = - (f.diesel_1_2_2.uuid or false) || - (f.diesel_1_2_2.extras or false) || - (diesel_1_2_2.extras or false); - diesel_1_2_2.with-deprecated = - (f.diesel_1_2_2.with-deprecated or false) || - (f.diesel_1_2_2.default or false) || - (diesel_1_2_2.default or false); - diesel_derives_1_2_0.default = true; - diesel_derives_1_2_0.mysql = - (f.diesel_derives_1_2_0.mysql or false) || - (diesel_1_2_2.mysql or false) || - (f.diesel_1_2_2.mysql or false); - diesel_derives_1_2_0.nightly = - (f.diesel_derives_1_2_0.nightly or false) || - (diesel_1_2_2.unstable or false) || - (f.diesel_1_2_2.unstable or false); - diesel_derives_1_2_0.postgres = - (f.diesel_derives_1_2_0.postgres or false) || - (diesel_1_2_2.postgres or false) || - (f.diesel_1_2_2.postgres or false); - diesel_derives_1_2_0.sqlite = - (f.diesel_derives_1_2_0.sqlite or false) || - (diesel_1_2_2.sqlite or false) || - (f.diesel_1_2_2.sqlite or false); - pq_sys_0_4_4.default = true; - r2d2_0_8_2.default = true; - }) [ bitflags_1_0_3_features byteorder_1_2_2_features chrono_0_4_2_features diesel_derives_1_2_0_features pq_sys_0_4_4_features r2d2_0_8_2_features ]; - diesel_derives_1_2_0 = { features?(diesel_derives_1_2_0_features {}) }: diesel_derives_1_2_0_ { - dependencies = mapFeatures features ([ proc_macro2_0_2_3 quote_0_4_2 syn_0_12_15 ]); - features = mkFeatures (features.diesel_derives_1_2_0 or {}); - }; - diesel_derives_1_2_0_features = f: updateFeatures f (rec { - diesel_derives_1_2_0.clippy = - (f.diesel_derives_1_2_0.clippy or false) || - (f.diesel_derives_1_2_0.lint or false) || - (diesel_derives_1_2_0.lint or false); - diesel_derives_1_2_0.default = (f.diesel_derives_1_2_0.default or true); - proc_macro2_0_2_3.default = true; - proc_macro2_0_2_3.nightly = - (f.proc_macro2_0_2_3.nightly or false) || - (diesel_derives_1_2_0.nightly or false) || - (f.diesel_derives_1_2_0.nightly or false); - quote_0_4_2.default = true; - syn_0_12_15.default = true; - syn_0_12_15.fold = true; - syn_0_12_15.full = true; - }) [ proc_macro2_0_2_3_features quote_0_4_2_features syn_0_12_15_features ]; - dtoa_0_4_2 = { features?(dtoa_0_4_2_features {}) }: dtoa_0_4_2_ {}; - dtoa_0_4_2_features = f: updateFeatures f (rec { - dtoa_0_4_2.default = (f.dtoa_0_4_2.default or true); - }) []; - encoding_0_2_33 = { features?(encoding_0_2_33_features {}) }: encoding_0_2_33_ { - dependencies = mapFeatures features ([ encoding_index_japanese_1_20141219_5 encoding_index_korean_1_20141219_5 encoding_index_simpchinese_1_20141219_5 encoding_index_singlebyte_1_20141219_5 encoding_index_tradchinese_1_20141219_5 ]); - }; - encoding_0_2_33_features = f: updateFeatures f (rec { - encoding_0_2_33.default = (f.encoding_0_2_33.default or true); - encoding_index_japanese_1_20141219_5.default = true; - encoding_index_korean_1_20141219_5.default = true; - encoding_index_simpchinese_1_20141219_5.default = true; - encoding_index_singlebyte_1_20141219_5.default = true; - encoding_index_tradchinese_1_20141219_5.default = true; - }) [ encoding_index_japanese_1_20141219_5_features encoding_index_korean_1_20141219_5_features encoding_index_simpchinese_1_20141219_5_features encoding_index_singlebyte_1_20141219_5_features encoding_index_tradchinese_1_20141219_5_features ]; - encoding_index_japanese_1_20141219_5 = { features?(encoding_index_japanese_1_20141219_5_features {}) }: encoding_index_japanese_1_20141219_5_ { - dependencies = mapFeatures features ([ encoding_index_tests_0_1_4 ]); - }; - encoding_index_japanese_1_20141219_5_features = f: updateFeatures f (rec { - encoding_index_japanese_1_20141219_5.default = (f.encoding_index_japanese_1_20141219_5.default or true); - encoding_index_tests_0_1_4.default = true; - }) [ encoding_index_tests_0_1_4_features ]; - encoding_index_korean_1_20141219_5 = { features?(encoding_index_korean_1_20141219_5_features {}) }: encoding_index_korean_1_20141219_5_ { - dependencies = mapFeatures features ([ encoding_index_tests_0_1_4 ]); - }; - encoding_index_korean_1_20141219_5_features = f: updateFeatures f (rec { - encoding_index_korean_1_20141219_5.default = (f.encoding_index_korean_1_20141219_5.default or true); - encoding_index_tests_0_1_4.default = true; - }) [ encoding_index_tests_0_1_4_features ]; - encoding_index_simpchinese_1_20141219_5 = { features?(encoding_index_simpchinese_1_20141219_5_features {}) }: encoding_index_simpchinese_1_20141219_5_ { - dependencies = mapFeatures features ([ encoding_index_tests_0_1_4 ]); - }; - encoding_index_simpchinese_1_20141219_5_features = f: updateFeatures f (rec { - encoding_index_simpchinese_1_20141219_5.default = (f.encoding_index_simpchinese_1_20141219_5.default or true); - encoding_index_tests_0_1_4.default = true; - }) [ encoding_index_tests_0_1_4_features ]; - encoding_index_singlebyte_1_20141219_5 = { features?(encoding_index_singlebyte_1_20141219_5_features {}) }: encoding_index_singlebyte_1_20141219_5_ { - dependencies = mapFeatures features ([ encoding_index_tests_0_1_4 ]); - }; - encoding_index_singlebyte_1_20141219_5_features = f: updateFeatures f (rec { - encoding_index_singlebyte_1_20141219_5.default = (f.encoding_index_singlebyte_1_20141219_5.default or true); - encoding_index_tests_0_1_4.default = true; - }) [ encoding_index_tests_0_1_4_features ]; - encoding_index_tradchinese_1_20141219_5 = { features?(encoding_index_tradchinese_1_20141219_5_features {}) }: encoding_index_tradchinese_1_20141219_5_ { - dependencies = mapFeatures features ([ encoding_index_tests_0_1_4 ]); - }; - encoding_index_tradchinese_1_20141219_5_features = f: updateFeatures f (rec { - encoding_index_tests_0_1_4.default = true; - encoding_index_tradchinese_1_20141219_5.default = (f.encoding_index_tradchinese_1_20141219_5.default or true); - }) [ encoding_index_tests_0_1_4_features ]; - encoding_index_tests_0_1_4 = { features?(encoding_index_tests_0_1_4_features {}) }: encoding_index_tests_0_1_4_ {}; - encoding_index_tests_0_1_4_features = f: updateFeatures f (rec { - encoding_index_tests_0_1_4.default = (f.encoding_index_tests_0_1_4.default or true); - }) []; - encoding_rs_0_7_2 = { features?(encoding_rs_0_7_2_features {}) }: encoding_rs_0_7_2_ { - dependencies = mapFeatures features ([ cfg_if_0_1_2 ]); - features = mkFeatures (features.encoding_rs_0_7_2 or {}); - }; - encoding_rs_0_7_2_features = f: updateFeatures f (rec { - cfg_if_0_1_2.default = true; - encoding_rs_0_7_2.default = (f.encoding_rs_0_7_2.default or true); - encoding_rs_0_7_2.simd = - (f.encoding_rs_0_7_2.simd or false) || - (f.encoding_rs_0_7_2.simd-accel or false) || - (encoding_rs_0_7_2.simd-accel or false); - }) [ cfg_if_0_1_2_features ]; - entities_1_0_1 = { features?(entities_1_0_1_features {}) }: entities_1_0_1_ {}; - entities_1_0_1_features = f: updateFeatures f (rec { - entities_1_0_1.default = (f.entities_1_0_1.default or true); - }) []; - env_logger_0_5_9 = { features?(env_logger_0_5_9_features {}) }: env_logger_0_5_9_ { - dependencies = mapFeatures features ([ atty_0_2_10 humantime_1_1_1 log_0_4_1 termcolor_0_3_6 ] - ++ (if features.env_logger_0_5_9.regex or false then [ regex_0_2_11 ] else [])); - features = mkFeatures (features.env_logger_0_5_9 or {}); - }; - env_logger_0_5_9_features = f: updateFeatures f (rec { - atty_0_2_10.default = true; - env_logger_0_5_9.default = (f.env_logger_0_5_9.default or true); - env_logger_0_5_9.regex = - (f.env_logger_0_5_9.regex or false) || - (f.env_logger_0_5_9.default or false) || - (env_logger_0_5_9.default or false); - humantime_1_1_1.default = true; - log_0_4_1.default = true; - log_0_4_1.std = true; - regex_0_2_11.default = true; - termcolor_0_3_6.default = true; - }) [ atty_0_2_10_features humantime_1_1_1_features log_0_4_1_features regex_0_2_11_features termcolor_0_3_6_features ]; - error_chain_0_1_12 = { features?(error_chain_0_1_12_features {}) }: error_chain_0_1_12_ { - dependencies = mapFeatures features ([ backtrace_0_2_3 ]); - }; - error_chain_0_1_12_features = f: updateFeatures f (rec { - backtrace_0_2_3.default = true; - error_chain_0_1_12.default = (f.error_chain_0_1_12.default or true); - }) [ backtrace_0_2_3_features ]; - error_chain_0_8_1 = { features?(error_chain_0_8_1_features {}) }: error_chain_0_8_1_ { - dependencies = mapFeatures features ([ ] - ++ (if features.error_chain_0_8_1.backtrace or false then [ backtrace_0_3_6 ] else [])); - features = mkFeatures (features.error_chain_0_8_1 or {}); - }; - error_chain_0_8_1_features = f: updateFeatures f (rec { - backtrace_0_3_6.default = true; - error_chain_0_8_1.backtrace = - (f.error_chain_0_8_1.backtrace or false) || - (f.error_chain_0_8_1.default or false) || - (error_chain_0_8_1.default or false); - error_chain_0_8_1.default = (f.error_chain_0_8_1.default or true); - error_chain_0_8_1.example_generated = - (f.error_chain_0_8_1.example_generated or false) || - (f.error_chain_0_8_1.default or false) || - (error_chain_0_8_1.default or false); - }) [ backtrace_0_3_6_features ]; - error_chain_0_11_0 = { features?(error_chain_0_11_0_features {}) }: error_chain_0_11_0_ { - dependencies = mapFeatures features ([ ] - ++ (if features.error_chain_0_11_0.backtrace or false then [ backtrace_0_3_6 ] else [])); - features = mkFeatures (features.error_chain_0_11_0 or {}); - }; - error_chain_0_11_0_features = f: updateFeatures f (rec { - backtrace_0_3_6.default = true; - error_chain_0_11_0.backtrace = - (f.error_chain_0_11_0.backtrace or false) || - (f.error_chain_0_11_0.default or false) || - (error_chain_0_11_0.default or false); - error_chain_0_11_0.default = (f.error_chain_0_11_0.default or true); - error_chain_0_11_0.example_generated = - (f.error_chain_0_11_0.example_generated or false) || - (f.error_chain_0_11_0.default or false) || - (error_chain_0_11_0.default or false); - }) [ backtrace_0_3_6_features ]; - failure_0_1_1 = { features?(failure_0_1_1_features {}) }: failure_0_1_1_ { - dependencies = mapFeatures features ([ ] - ++ (if features.failure_0_1_1.backtrace or false then [ backtrace_0_3_6 ] else []) - ++ (if features.failure_0_1_1.failure_derive or false then [ failure_derive_0_1_1 ] else [])); - features = mkFeatures (features.failure_0_1_1 or {}); - }; - failure_0_1_1_features = f: updateFeatures f (rec { - backtrace_0_3_6.default = true; - failure_0_1_1.backtrace = - (f.failure_0_1_1.backtrace or false) || - (f.failure_0_1_1.std or false) || - (failure_0_1_1.std or false); - failure_0_1_1.default = (f.failure_0_1_1.default or true); - failure_0_1_1.derive = - (f.failure_0_1_1.derive or false) || - (f.failure_0_1_1.default or false) || - (failure_0_1_1.default or false); - failure_0_1_1.failure_derive = - (f.failure_0_1_1.failure_derive or false) || - (f.failure_0_1_1.derive or false) || - (failure_0_1_1.derive or false); - failure_0_1_1.std = - (f.failure_0_1_1.std or false) || - (f.failure_0_1_1.default or false) || - (failure_0_1_1.default or false); - failure_derive_0_1_1.default = true; - }) [ backtrace_0_3_6_features failure_derive_0_1_1_features ]; - failure_derive_0_1_1 = { features?(failure_derive_0_1_1_features {}) }: failure_derive_0_1_1_ { - dependencies = mapFeatures features ([ quote_0_3_15 syn_0_11_11 synstructure_0_6_1 ]); - features = mkFeatures (features.failure_derive_0_1_1 or {}); - }; - failure_derive_0_1_1_features = f: updateFeatures f (rec { - failure_derive_0_1_1.default = (f.failure_derive_0_1_1.default or true); - failure_derive_0_1_1.std = - (f.failure_derive_0_1_1.std or false) || - (f.failure_derive_0_1_1.default or false) || - (failure_derive_0_1_1.default or false); - quote_0_3_15.default = true; - syn_0_11_11.default = true; - synstructure_0_6_1.default = true; - }) [ quote_0_3_15_features syn_0_11_11_features synstructure_0_6_1_features ]; - flate2_1_0_1 = { features?(flate2_1_0_1_features {}) }: flate2_1_0_1_ { - dependencies = mapFeatures features ([ libc_0_2_40 ] - ++ (if features.flate2_1_0_1.miniz-sys or false then [ miniz_sys_0_1_10 ] else [])); - features = mkFeatures (features.flate2_1_0_1 or {}); - }; - flate2_1_0_1_features = f: updateFeatures f (rec { - flate2_1_0_1.default = (f.flate2_1_0_1.default or true); - flate2_1_0_1.futures = - (f.flate2_1_0_1.futures or false) || - (f.flate2_1_0_1.tokio or false) || - (flate2_1_0_1.tokio or false); - flate2_1_0_1.libz-sys = - (f.flate2_1_0_1.libz-sys or false) || - (f.flate2_1_0_1.zlib or false) || - (flate2_1_0_1.zlib or false); - flate2_1_0_1.miniz-sys = - (f.flate2_1_0_1.miniz-sys or false) || - (f.flate2_1_0_1.default or false) || - (flate2_1_0_1.default or false); - flate2_1_0_1.miniz_oxide_c_api = - (f.flate2_1_0_1.miniz_oxide_c_api or false) || - (f.flate2_1_0_1.rust_backend or false) || - (flate2_1_0_1.rust_backend or false); - flate2_1_0_1.tokio-io = - (f.flate2_1_0_1.tokio-io or false) || - (f.flate2_1_0_1.tokio or false) || - (flate2_1_0_1.tokio or false); - libc_0_2_40.default = true; - miniz_sys_0_1_10.default = true; - }) [ libc_0_2_40_features miniz_sys_0_1_10_features ]; - fnv_1_0_6 = { features?(fnv_1_0_6_features {}) }: fnv_1_0_6_ {}; - fnv_1_0_6_features = f: updateFeatures f (rec { - fnv_1_0_6.default = (f.fnv_1_0_6.default or true); - }) []; - foreign_types_0_3_2 = { features?(foreign_types_0_3_2_features {}) }: foreign_types_0_3_2_ { - dependencies = mapFeatures features ([ foreign_types_shared_0_1_1 ]); - }; - foreign_types_0_3_2_features = f: updateFeatures f (rec { - foreign_types_0_3_2.default = (f.foreign_types_0_3_2.default or true); - foreign_types_shared_0_1_1.default = true; - }) [ foreign_types_shared_0_1_1_features ]; - foreign_types_shared_0_1_1 = { features?(foreign_types_shared_0_1_1_features {}) }: foreign_types_shared_0_1_1_ {}; - foreign_types_shared_0_1_1_features = f: updateFeatures f (rec { - foreign_types_shared_0_1_1.default = (f.foreign_types_shared_0_1_1.default or true); - }) []; - fuchsia_zircon_0_3_3 = { features?(fuchsia_zircon_0_3_3_features {}) }: fuchsia_zircon_0_3_3_ { - dependencies = mapFeatures features ([ bitflags_1_0_3 fuchsia_zircon_sys_0_3_3 ]); - }; - fuchsia_zircon_0_3_3_features = f: updateFeatures f (rec { - bitflags_1_0_3.default = true; - fuchsia_zircon_0_3_3.default = (f.fuchsia_zircon_0_3_3.default or true); - fuchsia_zircon_sys_0_3_3.default = true; - }) [ bitflags_1_0_3_features fuchsia_zircon_sys_0_3_3_features ]; - fuchsia_zircon_sys_0_3_3 = { features?(fuchsia_zircon_sys_0_3_3_features {}) }: fuchsia_zircon_sys_0_3_3_ {}; - fuchsia_zircon_sys_0_3_3_features = f: updateFeatures f (rec { - fuchsia_zircon_sys_0_3_3.default = (f.fuchsia_zircon_sys_0_3_3.default or true); - }) []; - futures_0_1_21 = { features?(futures_0_1_21_features {}) }: futures_0_1_21_ { - features = mkFeatures (features.futures_0_1_21 or {}); - }; - futures_0_1_21_features = f: updateFeatures f (rec { - futures_0_1_21.default = (f.futures_0_1_21.default or true); - futures_0_1_21.use_std = - (f.futures_0_1_21.use_std or false) || - (f.futures_0_1_21.default or false) || - (futures_0_1_21.default or false); - futures_0_1_21.with-deprecated = - (f.futures_0_1_21.with-deprecated or false) || - (f.futures_0_1_21.default or false) || - (futures_0_1_21.default or false); - }) []; - futures_cpupool_0_1_8 = { features?(futures_cpupool_0_1_8_features {}) }: futures_cpupool_0_1_8_ { - dependencies = mapFeatures features ([ futures_0_1_21 num_cpus_1_8_0 ]); - features = mkFeatures (features.futures_cpupool_0_1_8 or {}); - }; - futures_cpupool_0_1_8_features = f: updateFeatures f (rec { - futures_0_1_21.default = (f.futures_0_1_21.default or false); - futures_0_1_21.use_std = true; - futures_0_1_21.with-deprecated = - (f.futures_0_1_21.with-deprecated or false) || - (futures_cpupool_0_1_8.with-deprecated or false) || - (f.futures_cpupool_0_1_8.with-deprecated or false); - futures_cpupool_0_1_8.default = (f.futures_cpupool_0_1_8.default or true); - futures_cpupool_0_1_8.with-deprecated = - (f.futures_cpupool_0_1_8.with-deprecated or false) || - (f.futures_cpupool_0_1_8.default or false) || - (futures_cpupool_0_1_8.default or false); - num_cpus_1_8_0.default = true; - }) [ futures_0_1_21_features num_cpus_1_8_0_features ]; - gcc_0_3_54 = { features?(gcc_0_3_54_features {}) }: gcc_0_3_54_ { - dependencies = mapFeatures features ([]); - features = mkFeatures (features.gcc_0_3_54 or {}); - }; - gcc_0_3_54_features = f: updateFeatures f (rec { - gcc_0_3_54.default = (f.gcc_0_3_54.default or true); - gcc_0_3_54.rayon = - (f.gcc_0_3_54.rayon or false) || - (f.gcc_0_3_54.parallel or false) || - (gcc_0_3_54.parallel or false); - }) []; - getopts_0_2_17 = { features?(getopts_0_2_17_features {}) }: getopts_0_2_17_ {}; - getopts_0_2_17_features = f: updateFeatures f (rec { - getopts_0_2_17.default = (f.getopts_0_2_17.default or true); - }) []; - glob_0_2_11 = { features?(glob_0_2_11_features {}) }: glob_0_2_11_ {}; - glob_0_2_11_features = f: updateFeatures f (rec { - glob_0_2_11.default = (f.glob_0_2_11.default or true); - }) []; - h2_0_1_6 = { features?(h2_0_1_6_features {}) }: h2_0_1_6_ { - dependencies = mapFeatures features ([ byteorder_1_2_2 bytes_0_4_7 fnv_1_0_6 futures_0_1_21 http_0_1_5 indexmap_1_0_1 log_0_4_1 slab_0_4_0 string_0_1_0 tokio_io_0_1_6 ]); - features = mkFeatures (features.h2_0_1_6 or {}); - }; - h2_0_1_6_features = f: updateFeatures f (rec { - byteorder_1_2_2.default = true; - bytes_0_4_7.default = true; - fnv_1_0_6.default = true; - futures_0_1_21.default = true; - h2_0_1_6.default = (f.h2_0_1_6.default or true); - http_0_1_5.default = true; - indexmap_1_0_1.default = true; - log_0_4_1.default = true; - slab_0_4_0.default = true; - string_0_1_0.default = true; - tokio_io_0_1_6.default = true; - }) [ byteorder_1_2_2_features bytes_0_4_7_features fnv_1_0_6_features futures_0_1_21_features http_0_1_5_features indexmap_1_0_1_features log_0_4_1_features slab_0_4_0_features string_0_1_0_features tokio_io_0_1_6_features ]; - hostname_0_1_4 = { features?(hostname_0_1_4_features {}) }: hostname_0_1_4_ { - dependencies = (if (kernel == "linux" || kernel == "darwin") then mapFeatures features ([ libc_0_2_40 ]) else []) - ++ (if kernel == "windows" then mapFeatures features ([ winutil_0_1_1 ]) else []); - features = mkFeatures (features.hostname_0_1_4 or {}); - }; - hostname_0_1_4_features = f: updateFeatures f (rec { - hostname_0_1_4.default = (f.hostname_0_1_4.default or true); - libc_0_2_40.default = true; - winutil_0_1_1.default = true; - }) [ libc_0_2_40_features winutil_0_1_1_features ]; - http_0_1_5 = { features?(http_0_1_5_features {}) }: http_0_1_5_ { - dependencies = mapFeatures features ([ bytes_0_4_7 fnv_1_0_6 ]); - }; - http_0_1_5_features = f: updateFeatures f (rec { - bytes_0_4_7.default = true; - fnv_1_0_6.default = true; - http_0_1_5.default = (f.http_0_1_5.default or true); - }) [ bytes_0_4_7_features fnv_1_0_6_features ]; - http_range_0_1_1 = { features?(http_range_0_1_1_features {}) }: http_range_0_1_1_ {}; - http_range_0_1_1_features = f: updateFeatures f (rec { - http_range_0_1_1.default = (f.http_range_0_1_1.default or true); - }) []; - httparse_1_2_4 = { features?(httparse_1_2_4_features {}) }: httparse_1_2_4_ { - features = mkFeatures (features.httparse_1_2_4 or {}); - }; - httparse_1_2_4_features = f: updateFeatures f (rec { - httparse_1_2_4.default = (f.httparse_1_2_4.default or true); - httparse_1_2_4.std = - (f.httparse_1_2_4.std or false) || - (f.httparse_1_2_4.default or false) || - (httparse_1_2_4.default or false); - }) []; - humansize_1_1_0 = { features?(humansize_1_1_0_features {}) }: humansize_1_1_0_ {}; - humansize_1_1_0_features = f: updateFeatures f (rec { - humansize_1_1_0.default = (f.humansize_1_1_0.default or true); - }) []; - humantime_1_1_1 = { features?(humantime_1_1_1_features {}) }: humantime_1_1_1_ { - dependencies = mapFeatures features ([ quick_error_1_2_1 ]); - }; - humantime_1_1_1_features = f: updateFeatures f (rec { - humantime_1_1_1.default = (f.humantime_1_1_1.default or true); - quick_error_1_2_1.default = true; - }) [ quick_error_1_2_1_features ]; - hyper_0_11_25 = { features?(hyper_0_11_25_features {}) }: hyper_0_11_25_ { - dependencies = mapFeatures features ([ base64_0_9_1 bytes_0_4_7 futures_0_1_21 futures_cpupool_0_1_8 httparse_1_2_4 iovec_0_1_2 language_tags_0_2_2 log_0_4_1 mime_0_3_5 percent_encoding_1_0_1 relay_0_1_1 time_0_1_39 tokio_core_0_1_17 tokio_io_0_1_6 tokio_service_0_1_0 unicase_2_1_0 ] - ++ (if features.hyper_0_11_25.tokio-proto or false then [ tokio_proto_0_1_1 ] else [])); - features = mkFeatures (features.hyper_0_11_25 or {}); - }; - hyper_0_11_25_features = f: updateFeatures f (rec { - base64_0_9_1.default = true; - bytes_0_4_7.default = true; - futures_0_1_21.default = true; - futures_cpupool_0_1_8.default = true; - httparse_1_2_4.default = true; - hyper_0_11_25.default = (f.hyper_0_11_25.default or true); - hyper_0_11_25.http = - (f.hyper_0_11_25.http or false) || - (f.hyper_0_11_25.compat or false) || - (hyper_0_11_25.compat or false); - hyper_0_11_25.server-proto = - (f.hyper_0_11_25.server-proto or false) || - (f.hyper_0_11_25.default or false) || - (hyper_0_11_25.default or false); - hyper_0_11_25.tokio-proto = - (f.hyper_0_11_25.tokio-proto or false) || - (f.hyper_0_11_25.server-proto or false) || - (hyper_0_11_25.server-proto or false); - iovec_0_1_2.default = true; - language_tags_0_2_2.default = true; - log_0_4_1.default = true; - mime_0_3_5.default = true; - percent_encoding_1_0_1.default = true; - relay_0_1_1.default = true; - time_0_1_39.default = true; - tokio_core_0_1_17.default = true; - tokio_io_0_1_6.default = true; - tokio_proto_0_1_1.default = true; - tokio_service_0_1_0.default = true; - unicase_2_1_0.default = true; - }) [ base64_0_9_1_features bytes_0_4_7_features futures_0_1_21_features futures_cpupool_0_1_8_features httparse_1_2_4_features iovec_0_1_2_features language_tags_0_2_2_features log_0_4_1_features mime_0_3_5_features percent_encoding_1_0_1_features relay_0_1_1_features time_0_1_39_features tokio_core_0_1_17_features tokio_io_0_1_6_features tokio_proto_0_1_1_features tokio_service_0_1_0_features unicase_2_1_0_features ]; - hyper_tls_0_1_3 = { features?(hyper_tls_0_1_3_features {}) }: hyper_tls_0_1_3_ { - dependencies = mapFeatures features ([ futures_0_1_21 hyper_0_11_25 native_tls_0_1_5 tokio_core_0_1_17 tokio_io_0_1_6 tokio_service_0_1_0 tokio_tls_0_1_4 ]); - }; - hyper_tls_0_1_3_features = f: updateFeatures f (rec { - futures_0_1_21.default = true; - hyper_0_11_25.default = true; - hyper_tls_0_1_3.default = (f.hyper_tls_0_1_3.default or true); - native_tls_0_1_5.default = true; - tokio_core_0_1_17.default = true; - tokio_io_0_1_6.default = true; - tokio_service_0_1_0.default = true; - tokio_tls_0_1_4.default = true; - }) [ futures_0_1_21_features hyper_0_11_25_features native_tls_0_1_5_features tokio_core_0_1_17_features tokio_io_0_1_6_features tokio_service_0_1_0_features tokio_tls_0_1_4_features ]; - idna_0_1_4 = { features?(idna_0_1_4_features {}) }: idna_0_1_4_ { - dependencies = mapFeatures features ([ matches_0_1_6 unicode_bidi_0_3_4 unicode_normalization_0_1_5 ]); - }; - idna_0_1_4_features = f: updateFeatures f (rec { - idna_0_1_4.default = (f.idna_0_1_4.default or true); - matches_0_1_6.default = true; - unicode_bidi_0_3_4.default = true; - unicode_normalization_0_1_5.default = true; - }) [ matches_0_1_6_features unicode_bidi_0_3_4_features unicode_normalization_0_1_5_features ]; - indexmap_1_0_1 = { features?(indexmap_1_0_1_features {}) }: indexmap_1_0_1_ { - dependencies = mapFeatures features ([]); - features = mkFeatures (features.indexmap_1_0_1 or {}); - }; - indexmap_1_0_1_features = f: updateFeatures f (rec { - indexmap_1_0_1.default = (f.indexmap_1_0_1.default or true); - indexmap_1_0_1.serde = - (f.indexmap_1_0_1.serde or false) || - (f.indexmap_1_0_1.serde-1 or false) || - (indexmap_1_0_1.serde-1 or false); - }) []; - iovec_0_1_2 = { features?(iovec_0_1_2_features {}) }: iovec_0_1_2_ { - dependencies = (if (kernel == "linux" || kernel == "darwin") then mapFeatures features ([ libc_0_2_40 ]) else []) - ++ (if kernel == "windows" then mapFeatures features ([ winapi_0_2_8 ]) else []); - }; - iovec_0_1_2_features = f: updateFeatures f (rec { - iovec_0_1_2.default = (f.iovec_0_1_2.default or true); - libc_0_2_40.default = true; - winapi_0_2_8.default = true; - }) [ libc_0_2_40_features winapi_0_2_8_features ]; - ipconfig_0_1_6 = { features?(ipconfig_0_1_6_features {}) }: ipconfig_0_1_6_ { - dependencies = (if kernel == "windows" then mapFeatures features ([ error_chain_0_8_1 socket2_0_3_5 widestring_0_2_2 winapi_0_3_4 winreg_0_5_0 ]) else []); - }; - ipconfig_0_1_6_features = f: updateFeatures f (rec { - error_chain_0_8_1.default = true; - ipconfig_0_1_6.default = (f.ipconfig_0_1_6.default or true); - socket2_0_3_5.default = true; - widestring_0_2_2.default = true; - winapi_0_3_4.default = true; - winreg_0_5_0.default = true; - }) [ error_chain_0_8_1_features socket2_0_3_5_features widestring_0_2_2_features winapi_0_3_4_features winreg_0_5_0_features ]; - itoa_0_3_4 = { features?(itoa_0_3_4_features {}) }: itoa_0_3_4_ { - features = mkFeatures (features.itoa_0_3_4 or {}); - }; - itoa_0_3_4_features = f: updateFeatures f (rec { - itoa_0_3_4.default = (f.itoa_0_3_4.default or true); - }) []; - itoa_0_4_1 = { features?(itoa_0_4_1_features {}) }: itoa_0_4_1_ { - features = mkFeatures (features.itoa_0_4_1 or {}); - }; - itoa_0_4_1_features = f: updateFeatures f (rec { - itoa_0_4_1.default = (f.itoa_0_4_1.default or true); - itoa_0_4_1.std = - (f.itoa_0_4_1.std or false) || - (f.itoa_0_4_1.default or false) || - (itoa_0_4_1.default or false); - }) []; - kernel32_sys_0_2_2 = { features?(kernel32_sys_0_2_2_features {}) }: kernel32_sys_0_2_2_ { - dependencies = mapFeatures features ([ winapi_0_2_8 ]); - buildDependencies = mapFeatures features ([ winapi_build_0_1_1 ]); - }; - kernel32_sys_0_2_2_features = f: updateFeatures f (rec { - kernel32_sys_0_2_2.default = (f.kernel32_sys_0_2_2.default or true); - winapi_0_2_8.default = true; - winapi_build_0_1_1.default = true; - }) [ winapi_0_2_8_features winapi_build_0_1_1_features ]; - language_tags_0_2_2 = { features?(language_tags_0_2_2_features {}) }: language_tags_0_2_2_ { - dependencies = mapFeatures features ([]); - features = mkFeatures (features.language_tags_0_2_2 or {}); - }; - language_tags_0_2_2_features = f: updateFeatures f (rec { - language_tags_0_2_2.default = (f.language_tags_0_2_2.default or true); - language_tags_0_2_2.heapsize = - (f.language_tags_0_2_2.heapsize or false) || - (f.language_tags_0_2_2.heap_size or false) || - (language_tags_0_2_2.heap_size or false); - language_tags_0_2_2.heapsize_plugin = - (f.language_tags_0_2_2.heapsize_plugin or false) || - (f.language_tags_0_2_2.heap_size or false) || - (language_tags_0_2_2.heap_size or false); - }) []; - lazy_static_0_2_11 = { features?(lazy_static_0_2_11_features {}) }: lazy_static_0_2_11_ { - dependencies = mapFeatures features ([]); - features = mkFeatures (features.lazy_static_0_2_11 or {}); - }; - lazy_static_0_2_11_features = f: updateFeatures f (rec { - lazy_static_0_2_11.compiletest_rs = - (f.lazy_static_0_2_11.compiletest_rs or false) || - (f.lazy_static_0_2_11.compiletest or false) || - (lazy_static_0_2_11.compiletest or false); - lazy_static_0_2_11.default = (f.lazy_static_0_2_11.default or true); - lazy_static_0_2_11.nightly = - (f.lazy_static_0_2_11.nightly or false) || - (f.lazy_static_0_2_11.spin_no_std or false) || - (lazy_static_0_2_11.spin_no_std or false); - lazy_static_0_2_11.spin = - (f.lazy_static_0_2_11.spin or false) || - (f.lazy_static_0_2_11.spin_no_std or false) || - (lazy_static_0_2_11.spin_no_std or false); - }) []; - lazy_static_1_0_0 = { features?(lazy_static_1_0_0_features {}) }: lazy_static_1_0_0_ { - dependencies = mapFeatures features ([]); - features = mkFeatures (features.lazy_static_1_0_0 or {}); - }; - lazy_static_1_0_0_features = f: updateFeatures f (rec { - lazy_static_1_0_0.compiletest_rs = - (f.lazy_static_1_0_0.compiletest_rs or false) || - (f.lazy_static_1_0_0.compiletest or false) || - (lazy_static_1_0_0.compiletest or false); - lazy_static_1_0_0.default = (f.lazy_static_1_0_0.default or true); - lazy_static_1_0_0.nightly = - (f.lazy_static_1_0_0.nightly or false) || - (f.lazy_static_1_0_0.spin_no_std or false) || - (lazy_static_1_0_0.spin_no_std or false); - lazy_static_1_0_0.spin = - (f.lazy_static_1_0_0.spin or false) || - (f.lazy_static_1_0_0.spin_no_std or false) || - (lazy_static_1_0_0.spin_no_std or false); - }) []; - lazycell_0_6_0 = { features?(lazycell_0_6_0_features {}) }: lazycell_0_6_0_ { - dependencies = mapFeatures features ([]); - features = mkFeatures (features.lazycell_0_6_0 or {}); - }; - lazycell_0_6_0_features = f: updateFeatures f (rec { - lazycell_0_6_0.clippy = - (f.lazycell_0_6_0.clippy or false) || - (f.lazycell_0_6_0.nightly-testing or false) || - (lazycell_0_6_0.nightly-testing or false); - lazycell_0_6_0.default = (f.lazycell_0_6_0.default or true); - lazycell_0_6_0.nightly = - (f.lazycell_0_6_0.nightly or false) || - (f.lazycell_0_6_0.nightly-testing or false) || - (lazycell_0_6_0.nightly-testing or false); - }) []; - libc_0_2_40 = { features?(libc_0_2_40_features {}) }: libc_0_2_40_ { - features = mkFeatures (features.libc_0_2_40 or {}); - }; - libc_0_2_40_features = f: updateFeatures f (rec { - libc_0_2_40.default = (f.libc_0_2_40.default or true); - libc_0_2_40.use_std = - (f.libc_0_2_40.use_std or false) || - (f.libc_0_2_40.default or false) || - (libc_0_2_40.default or false); - }) []; - libflate_0_1_14 = { features?(libflate_0_1_14_features {}) }: libflate_0_1_14_ { - dependencies = mapFeatures features ([ adler32_1_0_2 byteorder_1_2_2 crc_1_8_1 ]); - }; - libflate_0_1_14_features = f: updateFeatures f (rec { - adler32_1_0_2.default = true; - byteorder_1_2_2.default = true; - crc_1_8_1.default = true; - libflate_0_1_14.default = (f.libflate_0_1_14.default or true); - }) [ adler32_1_0_2_features byteorder_1_2_2_features crc_1_8_1_features ]; - linked_hash_map_0_4_2 = { features?(linked_hash_map_0_4_2_features {}) }: linked_hash_map_0_4_2_ { - dependencies = mapFeatures features ([]); - features = mkFeatures (features.linked_hash_map_0_4_2 or {}); - }; - linked_hash_map_0_4_2_features = f: updateFeatures f (rec { - linked_hash_map_0_4_2.default = (f.linked_hash_map_0_4_2.default or true); - linked_hash_map_0_4_2.heapsize = - (f.linked_hash_map_0_4_2.heapsize or false) || - (f.linked_hash_map_0_4_2.heapsize_impl or false) || - (linked_hash_map_0_4_2.heapsize_impl or false); - linked_hash_map_0_4_2.serde = - (f.linked_hash_map_0_4_2.serde or false) || - (f.linked_hash_map_0_4_2.serde_impl or false) || - (linked_hash_map_0_4_2.serde_impl or false); - linked_hash_map_0_4_2.serde_test = - (f.linked_hash_map_0_4_2.serde_test or false) || - (f.linked_hash_map_0_4_2.serde_impl or false) || - (linked_hash_map_0_4_2.serde_impl or false); - }) []; - log_0_3_9 = { features?(log_0_3_9_features {}) }: log_0_3_9_ { - dependencies = mapFeatures features ([ log_0_4_1 ]); - features = mkFeatures (features.log_0_3_9 or {}); - }; - log_0_3_9_features = f: updateFeatures f (rec { - log_0_3_9.default = (f.log_0_3_9.default or true); - log_0_3_9.use_std = - (f.log_0_3_9.use_std or false) || - (f.log_0_3_9.default or false) || - (log_0_3_9.default or false); - log_0_4_1.default = true; - log_0_4_1.max_level_debug = - (f.log_0_4_1.max_level_debug or false) || - (log_0_3_9.max_level_debug or false) || - (f.log_0_3_9.max_level_debug or false); - log_0_4_1.max_level_error = - (f.log_0_4_1.max_level_error or false) || - (log_0_3_9.max_level_error or false) || - (f.log_0_3_9.max_level_error or false); - log_0_4_1.max_level_info = - (f.log_0_4_1.max_level_info or false) || - (log_0_3_9.max_level_info or false) || - (f.log_0_3_9.max_level_info or false); - log_0_4_1.max_level_off = - (f.log_0_4_1.max_level_off or false) || - (log_0_3_9.max_level_off or false) || - (f.log_0_3_9.max_level_off or false); - log_0_4_1.max_level_trace = - (f.log_0_4_1.max_level_trace or false) || - (log_0_3_9.max_level_trace or false) || - (f.log_0_3_9.max_level_trace or false); - log_0_4_1.max_level_warn = - (f.log_0_4_1.max_level_warn or false) || - (log_0_3_9.max_level_warn or false) || - (f.log_0_3_9.max_level_warn or false); - log_0_4_1.release_max_level_debug = - (f.log_0_4_1.release_max_level_debug or false) || - (log_0_3_9.release_max_level_debug or false) || - (f.log_0_3_9.release_max_level_debug or false); - log_0_4_1.release_max_level_error = - (f.log_0_4_1.release_max_level_error or false) || - (log_0_3_9.release_max_level_error or false) || - (f.log_0_3_9.release_max_level_error or false); - log_0_4_1.release_max_level_info = - (f.log_0_4_1.release_max_level_info or false) || - (log_0_3_9.release_max_level_info or false) || - (f.log_0_3_9.release_max_level_info or false); - log_0_4_1.release_max_level_off = - (f.log_0_4_1.release_max_level_off or false) || - (log_0_3_9.release_max_level_off or false) || - (f.log_0_3_9.release_max_level_off or false); - log_0_4_1.release_max_level_trace = - (f.log_0_4_1.release_max_level_trace or false) || - (log_0_3_9.release_max_level_trace or false) || - (f.log_0_3_9.release_max_level_trace or false); - log_0_4_1.release_max_level_warn = - (f.log_0_4_1.release_max_level_warn or false) || - (log_0_3_9.release_max_level_warn or false) || - (f.log_0_3_9.release_max_level_warn or false); - log_0_4_1.std = - (f.log_0_4_1.std or false) || - (log_0_3_9.use_std or false) || - (f.log_0_3_9.use_std or false); - }) [ log_0_4_1_features ]; - log_0_4_1 = { features?(log_0_4_1_features {}) }: log_0_4_1_ { - dependencies = mapFeatures features ([ cfg_if_0_1_2 ]); - features = mkFeatures (features.log_0_4_1 or {}); - }; - log_0_4_1_features = f: updateFeatures f (rec { - cfg_if_0_1_2.default = true; - log_0_4_1.default = (f.log_0_4_1.default or true); - }) [ cfg_if_0_1_2_features ]; - lru_cache_0_1_1 = { features?(lru_cache_0_1_1_features {}) }: lru_cache_0_1_1_ { - dependencies = mapFeatures features ([ linked_hash_map_0_4_2 ]); - features = mkFeatures (features.lru_cache_0_1_1 or {}); - }; - lru_cache_0_1_1_features = f: updateFeatures f (rec { - linked_hash_map_0_4_2.default = true; - linked_hash_map_0_4_2.heapsize_impl = - (f.linked_hash_map_0_4_2.heapsize_impl or false) || - (lru_cache_0_1_1.heapsize_impl or false) || - (f.lru_cache_0_1_1.heapsize_impl or false); - lru_cache_0_1_1.default = (f.lru_cache_0_1_1.default or true); - lru_cache_0_1_1.heapsize = - (f.lru_cache_0_1_1.heapsize or false) || - (f.lru_cache_0_1_1.heapsize_impl or false) || - (lru_cache_0_1_1.heapsize_impl or false); - }) [ linked_hash_map_0_4_2_features ]; - matches_0_1_6 = { features?(matches_0_1_6_features {}) }: matches_0_1_6_ {}; - matches_0_1_6_features = f: updateFeatures f (rec { - matches_0_1_6.default = (f.matches_0_1_6.default or true); - }) []; - md5_0_3_7 = { features?(md5_0_3_7_features {}) }: md5_0_3_7_ {}; - md5_0_3_7_features = f: updateFeatures f (rec { - md5_0_3_7.default = (f.md5_0_3_7.default or true); - }) []; - memchr_2_0_1 = { features?(memchr_2_0_1_features {}) }: memchr_2_0_1_ { - dependencies = mapFeatures features ([ ] - ++ (if features.memchr_2_0_1.libc or false then [ libc_0_2_40 ] else [])); - features = mkFeatures (features.memchr_2_0_1 or {}); - }; - memchr_2_0_1_features = f: updateFeatures f (rec { - libc_0_2_40.default = (f.libc_0_2_40.default or false); - libc_0_2_40.use_std = - (f.libc_0_2_40.use_std or false) || - (memchr_2_0_1.use_std or false) || - (f.memchr_2_0_1.use_std or false); - memchr_2_0_1.default = (f.memchr_2_0_1.default or true); - memchr_2_0_1.libc = - (f.memchr_2_0_1.libc or false) || - (f.memchr_2_0_1.default or false) || - (memchr_2_0_1.default or false) || - (f.memchr_2_0_1.use_std or false) || - (memchr_2_0_1.use_std or false); - memchr_2_0_1.use_std = - (f.memchr_2_0_1.use_std or false) || - (f.memchr_2_0_1.default or false) || - (memchr_2_0_1.default or false); - }) [ libc_0_2_40_features ]; - memoffset_0_1_0 = { features?(memoffset_0_1_0_features {}) }: memoffset_0_1_0_ { - features = mkFeatures (features.memoffset_0_1_0 or {}); - }; - memoffset_0_1_0_features = f: updateFeatures f (rec { - memoffset_0_1_0.default = (f.memoffset_0_1_0.default or true); - memoffset_0_1_0.std = - (f.memoffset_0_1_0.std or false) || - (f.memoffset_0_1_0.default or false) || - (memoffset_0_1_0.default or false); - }) []; - memoffset_0_2_1 = { features?(memoffset_0_2_1_features {}) }: memoffset_0_2_1_ {}; - memoffset_0_2_1_features = f: updateFeatures f (rec { - memoffset_0_2_1.default = (f.memoffset_0_2_1.default or true); - }) []; - mime_0_3_5 = { features?(mime_0_3_5_features {}) }: mime_0_3_5_ { - dependencies = mapFeatures features ([ unicase_2_1_0 ]); - }; - mime_0_3_5_features = f: updateFeatures f (rec { - mime_0_3_5.default = (f.mime_0_3_5.default or true); - unicase_2_1_0.default = true; - }) [ unicase_2_1_0_features ]; - mime_guess_2_0_0_alpha_4 = { features?(mime_guess_2_0_0_alpha_4_features {}) }: mime_guess_2_0_0_alpha_4_ { - dependencies = mapFeatures features ([ mime_0_3_5 phf_0_7_22 unicase_1_4_2 ]); - buildDependencies = mapFeatures features ([ phf_codegen_0_7_22 unicase_1_4_2 ]); - features = mkFeatures (features.mime_guess_2_0_0_alpha_4 or {}); - }; - mime_guess_2_0_0_alpha_4_features = f: updateFeatures f (rec { - mime_0_3_5.default = true; - mime_guess_2_0_0_alpha_4.default = (f.mime_guess_2_0_0_alpha_4.default or true); - phf_0_7_22.default = true; - phf_0_7_22.unicase = true; - phf_codegen_0_7_22.default = true; - unicase_1_4_2.default = true; - }) [ mime_0_3_5_features phf_0_7_22_features unicase_1_4_2_features phf_codegen_0_7_22_features unicase_1_4_2_features ]; - miniz_sys_0_1_10 = { features?(miniz_sys_0_1_10_features {}) }: miniz_sys_0_1_10_ { - dependencies = mapFeatures features ([ libc_0_2_40 ]); - buildDependencies = mapFeatures features ([ cc_1_0_15 ]); - }; - miniz_sys_0_1_10_features = f: updateFeatures f (rec { - cc_1_0_15.default = true; - libc_0_2_40.default = true; - miniz_sys_0_1_10.default = (f.miniz_sys_0_1_10.default or true); - }) [ libc_0_2_40_features cc_1_0_15_features ]; - mio_0_6_14 = { features?(mio_0_6_14_features {}) }: mio_0_6_14_ { - dependencies = mapFeatures features ([ iovec_0_1_2 lazycell_0_6_0 log_0_4_1 net2_0_2_32 slab_0_4_0 ]) - ++ (if kernel == "fuchsia" then mapFeatures features ([ fuchsia_zircon_0_3_3 fuchsia_zircon_sys_0_3_3 ]) else []) - ++ (if (kernel == "linux" || kernel == "darwin") then mapFeatures features ([ libc_0_2_40 ]) else []) - ++ (if kernel == "windows" then mapFeatures features ([ kernel32_sys_0_2_2 miow_0_2_1 winapi_0_2_8 ]) else []); - features = mkFeatures (features.mio_0_6_14 or {}); - }; - mio_0_6_14_features = f: updateFeatures f (rec { - fuchsia_zircon_0_3_3.default = true; - fuchsia_zircon_sys_0_3_3.default = true; - iovec_0_1_2.default = true; - kernel32_sys_0_2_2.default = true; - lazycell_0_6_0.default = true; - libc_0_2_40.default = true; - log_0_4_1.default = true; - mio_0_6_14.default = (f.mio_0_6_14.default or true); - mio_0_6_14.with-deprecated = - (f.mio_0_6_14.with-deprecated or false) || - (f.mio_0_6_14.default or false) || - (mio_0_6_14.default or false); - miow_0_2_1.default = true; - net2_0_2_32.default = true; - slab_0_4_0.default = true; - winapi_0_2_8.default = true; - }) [ iovec_0_1_2_features lazycell_0_6_0_features log_0_4_1_features net2_0_2_32_features slab_0_4_0_features fuchsia_zircon_0_3_3_features fuchsia_zircon_sys_0_3_3_features libc_0_2_40_features kernel32_sys_0_2_2_features miow_0_2_1_features winapi_0_2_8_features ]; - mio_uds_0_6_4 = { features?(mio_uds_0_6_4_features {}) }: mio_uds_0_6_4_ { - dependencies = (if (kernel == "linux" || kernel == "darwin") then mapFeatures features ([ libc_0_2_40 mio_0_6_14 ]) else []); - }; - mio_uds_0_6_4_features = f: updateFeatures f (rec { - libc_0_2_40.default = true; - mio_0_6_14.default = true; - mio_uds_0_6_4.default = (f.mio_uds_0_6_4.default or true); - }) [ libc_0_2_40_features mio_0_6_14_features ]; - miow_0_2_1 = { features?(miow_0_2_1_features {}) }: miow_0_2_1_ { - dependencies = mapFeatures features ([ kernel32_sys_0_2_2 net2_0_2_32 winapi_0_2_8 ws2_32_sys_0_2_1 ]); - }; - miow_0_2_1_features = f: updateFeatures f (rec { - kernel32_sys_0_2_2.default = true; - miow_0_2_1.default = (f.miow_0_2_1.default or true); - net2_0_2_32.default = (f.net2_0_2_32.default or false); - winapi_0_2_8.default = true; - ws2_32_sys_0_2_1.default = true; - }) [ kernel32_sys_0_2_2_features net2_0_2_32_features winapi_0_2_8_features ws2_32_sys_0_2_1_features ]; - native_tls_0_1_5 = { features?(native_tls_0_1_5_features {}) }: native_tls_0_1_5_ { - dependencies = mapFeatures features ([ lazy_static_0_2_11 ]) - ++ (if kernel == "darwin" || kernel == "ios" then mapFeatures features ([ libc_0_2_40 security_framework_0_1_16 security_framework_sys_0_1_16 tempdir_0_3_7 ]) else []) - ++ (if !(kernel == "windows" || kernel == "darwin" || kernel == "ios") then mapFeatures features ([ openssl_0_9_24 ]) else []) - ++ (if kernel == "windows" then mapFeatures features ([ schannel_0_1_12 ]) else []); - }; - native_tls_0_1_5_features = f: updateFeatures f (rec { - lazy_static_0_2_11.default = true; - libc_0_2_40.default = true; - native_tls_0_1_5.default = (f.native_tls_0_1_5.default or true); - openssl_0_9_24.default = true; - schannel_0_1_12.default = true; - security_framework_0_1_16.OSX_10_8 = true; - security_framework_0_1_16.default = true; - security_framework_sys_0_1_16.default = true; - tempdir_0_3_7.default = true; - }) [ lazy_static_0_2_11_features libc_0_2_40_features security_framework_0_1_16_features security_framework_sys_0_1_16_features tempdir_0_3_7_features openssl_0_9_24_features schannel_0_1_12_features ]; - net2_0_2_32 = { features?(net2_0_2_32_features {}) }: net2_0_2_32_ { - dependencies = mapFeatures features ([ cfg_if_0_1_2 ]) - ++ (if (kernel == "linux" || kernel == "darwin") then mapFeatures features ([ libc_0_2_40 ]) else []) - ++ (if kernel == "windows" then mapFeatures features ([ winapi_0_3_4 ]) else []) - ++ (if kernel == "i686-apple-darwin" then mapFeatures features ([ libc_0_2_40 ]) else []) - ++ (if kernel == "i686-unknown-linux-gnu" then mapFeatures features ([ libc_0_2_40 ]) else []) - ++ (if kernel == "x86_64-apple-darwin" then mapFeatures features ([ libc_0_2_40 ]) else []) - ++ (if kernel == "x86_64-unknown-linux-gnu" then mapFeatures features ([ libc_0_2_40 ]) else []); - features = mkFeatures (features.net2_0_2_32 or {}); - }; - net2_0_2_32_features = f: updateFeatures f (rec { - cfg_if_0_1_2.default = true; - libc_0_2_40.default = true; - net2_0_2_32.default = (f.net2_0_2_32.default or true); - net2_0_2_32.duration = - (f.net2_0_2_32.duration or false) || - (f.net2_0_2_32.default or false) || - (net2_0_2_32.default or false); - winapi_0_3_4.default = true; - winapi_0_3_4.handleapi = true; - winapi_0_3_4.winsock2 = true; - winapi_0_3_4.ws2def = true; - winapi_0_3_4.ws2ipdef = true; - winapi_0_3_4.ws2tcpip = true; - }) [ cfg_if_0_1_2_features libc_0_2_40_features winapi_0_3_4_features libc_0_2_40_features libc_0_2_40_features libc_0_2_40_features libc_0_2_40_features ]; - nodrop_0_1_12 = { features?(nodrop_0_1_12_features {}) }: nodrop_0_1_12_ { - dependencies = mapFeatures features ([]); - features = mkFeatures (features.nodrop_0_1_12 or {}); - }; - nodrop_0_1_12_features = f: updateFeatures f (rec { - nodrop_0_1_12.default = (f.nodrop_0_1_12.default or true); - nodrop_0_1_12.nodrop-union = - (f.nodrop_0_1_12.nodrop-union or false) || - (f.nodrop_0_1_12.use_union or false) || - (nodrop_0_1_12.use_union or false); - nodrop_0_1_12.std = - (f.nodrop_0_1_12.std or false) || - (f.nodrop_0_1_12.default or false) || - (nodrop_0_1_12.default or false); - }) []; - num_integer_0_1_36 = { features?(num_integer_0_1_36_features {}) }: num_integer_0_1_36_ { - dependencies = mapFeatures features ([ num_traits_0_2_2 ]); - features = mkFeatures (features.num_integer_0_1_36 or {}); - }; - num_integer_0_1_36_features = f: updateFeatures f (rec { - num_integer_0_1_36.default = (f.num_integer_0_1_36.default or true); - num_integer_0_1_36.std = - (f.num_integer_0_1_36.std or false) || - (f.num_integer_0_1_36.default or false) || - (num_integer_0_1_36.default or false); - num_traits_0_2_2.default = (f.num_traits_0_2_2.default or false); - }) [ num_traits_0_2_2_features ]; - num_traits_0_2_2 = { features?(num_traits_0_2_2_features {}) }: num_traits_0_2_2_ { - features = mkFeatures (features.num_traits_0_2_2 or {}); - }; - num_traits_0_2_2_features = f: updateFeatures f (rec { - num_traits_0_2_2.default = (f.num_traits_0_2_2.default or true); - num_traits_0_2_2.std = - (f.num_traits_0_2_2.std or false) || - (f.num_traits_0_2_2.default or false) || - (num_traits_0_2_2.default or false); - }) []; - num_cpus_1_8_0 = { features?(num_cpus_1_8_0_features {}) }: num_cpus_1_8_0_ { - dependencies = mapFeatures features ([ libc_0_2_40 ]); - }; - num_cpus_1_8_0_features = f: updateFeatures f (rec { - libc_0_2_40.default = true; - num_cpus_1_8_0.default = (f.num_cpus_1_8_0.default or true); - }) [ libc_0_2_40_features ]; - openssl_0_9_24 = { features?(openssl_0_9_24_features {}) }: openssl_0_9_24_ { - dependencies = mapFeatures features ([ bitflags_0_9_1 foreign_types_0_3_2 lazy_static_1_0_0 libc_0_2_40 openssl_sys_0_9_30 ]); - features = mkFeatures (features.openssl_0_9_24 or {}); - }; - openssl_0_9_24_features = f: updateFeatures f (rec { - bitflags_0_9_1.default = true; - foreign_types_0_3_2.default = true; - lazy_static_1_0_0.default = true; - libc_0_2_40.default = true; - openssl_0_9_24.default = (f.openssl_0_9_24.default or true); - openssl_sys_0_9_30.default = true; - }) [ bitflags_0_9_1_features foreign_types_0_3_2_features lazy_static_1_0_0_features libc_0_2_40_features openssl_sys_0_9_30_features ]; - openssl_sys_0_9_30 = { features?(openssl_sys_0_9_30_features {}) }: openssl_sys_0_9_30_ { - dependencies = mapFeatures features ([ libc_0_2_40 ]) - ++ (if abi == "msvc" then mapFeatures features ([]) else []); - buildDependencies = mapFeatures features ([ cc_1_0_15 pkg_config_0_3_11 ]); - }; - openssl_sys_0_9_30_features = f: updateFeatures f (rec { - cc_1_0_15.default = true; - libc_0_2_40.default = true; - openssl_sys_0_9_30.default = (f.openssl_sys_0_9_30.default or true); - pkg_config_0_3_11.default = true; - }) [ libc_0_2_40_features cc_1_0_15_features pkg_config_0_3_11_features ]; - owning_ref_0_3_3 = { features?(owning_ref_0_3_3_features {}) }: owning_ref_0_3_3_ { - dependencies = mapFeatures features ([ stable_deref_trait_1_0_0 ]); - }; - owning_ref_0_3_3_features = f: updateFeatures f (rec { - owning_ref_0_3_3.default = (f.owning_ref_0_3_3.default or true); - stable_deref_trait_1_0_0.default = true; - }) [ stable_deref_trait_1_0_0_features ]; - parking_lot_0_4_8 = { features?(parking_lot_0_4_8_features {}) }: parking_lot_0_4_8_ { - dependencies = mapFeatures features ([ parking_lot_core_0_2_14 ] - ++ (if features.parking_lot_0_4_8.owning_ref or false then [ owning_ref_0_3_3 ] else [])); - features = mkFeatures (features.parking_lot_0_4_8 or {}); - }; - parking_lot_0_4_8_features = f: updateFeatures f (rec { - owning_ref_0_3_3.default = true; - parking_lot_0_4_8.default = (f.parking_lot_0_4_8.default or true); - parking_lot_0_4_8.owning_ref = - (f.parking_lot_0_4_8.owning_ref or false) || - (f.parking_lot_0_4_8.default or false) || - (parking_lot_0_4_8.default or false); - parking_lot_core_0_2_14.deadlock_detection = - (f.parking_lot_core_0_2_14.deadlock_detection or false) || - (parking_lot_0_4_8.deadlock_detection or false) || - (f.parking_lot_0_4_8.deadlock_detection or false); - parking_lot_core_0_2_14.default = true; - parking_lot_core_0_2_14.nightly = - (f.parking_lot_core_0_2_14.nightly or false) || - (parking_lot_0_4_8.nightly or false) || - (f.parking_lot_0_4_8.nightly or false); - }) [ owning_ref_0_3_3_features parking_lot_core_0_2_14_features ]; - parking_lot_core_0_2_14 = { features?(parking_lot_core_0_2_14_features {}) }: parking_lot_core_0_2_14_ { - dependencies = mapFeatures features ([ rand_0_4_2 smallvec_0_6_1 ]) - ++ (if (kernel == "linux" || kernel == "darwin") then mapFeatures features ([ libc_0_2_40 ]) else []) - ++ (if kernel == "windows" then mapFeatures features ([ winapi_0_3_4 ]) else []); - features = mkFeatures (features.parking_lot_core_0_2_14 or {}); - }; - parking_lot_core_0_2_14_features = f: updateFeatures f (rec { - libc_0_2_40.default = true; - parking_lot_core_0_2_14.backtrace = - (f.parking_lot_core_0_2_14.backtrace or false) || - (f.parking_lot_core_0_2_14.deadlock_detection or false) || - (parking_lot_core_0_2_14.deadlock_detection or false); - parking_lot_core_0_2_14.default = (f.parking_lot_core_0_2_14.default or true); - parking_lot_core_0_2_14.petgraph = - (f.parking_lot_core_0_2_14.petgraph or false) || - (f.parking_lot_core_0_2_14.deadlock_detection or false) || - (parking_lot_core_0_2_14.deadlock_detection or false); - parking_lot_core_0_2_14.thread-id = - (f.parking_lot_core_0_2_14.thread-id or false) || - (f.parking_lot_core_0_2_14.deadlock_detection or false) || - (parking_lot_core_0_2_14.deadlock_detection or false); - rand_0_4_2.default = true; - smallvec_0_6_1.default = true; - winapi_0_3_4.default = true; - winapi_0_3_4.errhandlingapi = true; - winapi_0_3_4.handleapi = true; - winapi_0_3_4.minwindef = true; - winapi_0_3_4.ntstatus = true; - winapi_0_3_4.winbase = true; - winapi_0_3_4.winerror = true; - winapi_0_3_4.winnt = true; - }) [ rand_0_4_2_features smallvec_0_6_1_features libc_0_2_40_features winapi_0_3_4_features ]; - percent_encoding_1_0_1 = { features?(percent_encoding_1_0_1_features {}) }: percent_encoding_1_0_1_ {}; - percent_encoding_1_0_1_features = f: updateFeatures f (rec { - percent_encoding_1_0_1.default = (f.percent_encoding_1_0_1.default or true); - }) []; - pest_1_0_6 = { features?(pest_1_0_6_features {}) }: pest_1_0_6_ {}; - pest_1_0_6_features = f: updateFeatures f (rec { - pest_1_0_6.default = (f.pest_1_0_6.default or true); - }) []; - pest_derive_1_0_7 = { features?(pest_derive_1_0_7_features {}) }: pest_derive_1_0_7_ { - dependencies = mapFeatures features ([ pest_1_0_6 quote_0_3_15 syn_0_11_11 ]); - }; - pest_derive_1_0_7_features = f: updateFeatures f (rec { - pest_1_0_6.default = true; - pest_derive_1_0_7.default = (f.pest_derive_1_0_7.default or true); - quote_0_3_15.default = true; - syn_0_11_11.default = true; - }) [ pest_1_0_6_features quote_0_3_15_features syn_0_11_11_features ]; - phf_0_7_22 = { features?(phf_0_7_22_features {}) }: phf_0_7_22_ { - dependencies = mapFeatures features ([ phf_shared_0_7_22 ]); - features = mkFeatures (features.phf_0_7_22 or {}); - }; - phf_0_7_22_features = f: updateFeatures f (rec { - phf_0_7_22.default = (f.phf_0_7_22.default or true); - phf_shared_0_7_22.core = - (f.phf_shared_0_7_22.core or false) || - (phf_0_7_22.core or false) || - (f.phf_0_7_22.core or false); - phf_shared_0_7_22.default = true; - phf_shared_0_7_22.unicase = - (f.phf_shared_0_7_22.unicase or false) || - (phf_0_7_22.unicase or false) || - (f.phf_0_7_22.unicase or false); - }) [ phf_shared_0_7_22_features ]; - phf_codegen_0_7_22 = { features?(phf_codegen_0_7_22_features {}) }: phf_codegen_0_7_22_ { - dependencies = mapFeatures features ([ phf_generator_0_7_22 phf_shared_0_7_22 ]); - }; - phf_codegen_0_7_22_features = f: updateFeatures f (rec { - phf_codegen_0_7_22.default = (f.phf_codegen_0_7_22.default or true); - phf_generator_0_7_22.default = true; - phf_shared_0_7_22.default = true; - }) [ phf_generator_0_7_22_features phf_shared_0_7_22_features ]; - phf_generator_0_7_22 = { features?(phf_generator_0_7_22_features {}) }: phf_generator_0_7_22_ { - dependencies = mapFeatures features ([ phf_shared_0_7_22 rand_0_4_2 ]); - }; - phf_generator_0_7_22_features = f: updateFeatures f (rec { - phf_generator_0_7_22.default = (f.phf_generator_0_7_22.default or true); - phf_shared_0_7_22.default = true; - rand_0_4_2.default = true; - }) [ phf_shared_0_7_22_features rand_0_4_2_features ]; - phf_shared_0_7_22 = { features?(phf_shared_0_7_22_features {}) }: phf_shared_0_7_22_ { - dependencies = mapFeatures features ([ siphasher_0_2_2 ] - ++ (if features.phf_shared_0_7_22.unicase or false then [ unicase_1_4_2 ] else [])); - features = mkFeatures (features.phf_shared_0_7_22 or {}); - }; - phf_shared_0_7_22_features = f: updateFeatures f (rec { - phf_shared_0_7_22.default = (f.phf_shared_0_7_22.default or true); - siphasher_0_2_2.default = true; - unicase_1_4_2.default = true; - }) [ siphasher_0_2_2_features unicase_1_4_2_features ]; - pkg_config_0_3_11 = { features?(pkg_config_0_3_11_features {}) }: pkg_config_0_3_11_ {}; - pkg_config_0_3_11_features = f: updateFeatures f (rec { - pkg_config_0_3_11.default = (f.pkg_config_0_3_11.default or true); - }) []; - pq_sys_0_4_4 = { features?(pq_sys_0_4_4_features {}) }: pq_sys_0_4_4_ { - dependencies = (if abi == "msvc" then mapFeatures features ([]) else []); - buildDependencies = mapFeatures features ([]); - }; - pq_sys_0_4_4_features = f: updateFeatures f (rec { - pq_sys_0_4_4.default = (f.pq_sys_0_4_4.default or true); - }) []; - proc_macro2_0_2_3 = { features?(proc_macro2_0_2_3_features {}) }: proc_macro2_0_2_3_ { - dependencies = mapFeatures features ([ unicode_xid_0_1_0 ]); - features = mkFeatures (features.proc_macro2_0_2_3 or {}); - }; - proc_macro2_0_2_3_features = f: updateFeatures f (rec { - proc_macro2_0_2_3.default = (f.proc_macro2_0_2_3.default or true); - proc_macro2_0_2_3.proc-macro = - (f.proc_macro2_0_2_3.proc-macro or false) || - (f.proc_macro2_0_2_3.default or false) || - (proc_macro2_0_2_3.default or false) || - (f.proc_macro2_0_2_3.nightly or false) || - (proc_macro2_0_2_3.nightly or false); - unicode_xid_0_1_0.default = true; - }) [ unicode_xid_0_1_0_features ]; - proc_macro2_0_3_8 = { features?(proc_macro2_0_3_8_features {}) }: proc_macro2_0_3_8_ { - dependencies = mapFeatures features ([ unicode_xid_0_1_0 ]); - features = mkFeatures (features.proc_macro2_0_3_8 or {}); - }; - proc_macro2_0_3_8_features = f: updateFeatures f (rec { - proc_macro2_0_3_8.default = (f.proc_macro2_0_3_8.default or true); - proc_macro2_0_3_8.proc-macro = - (f.proc_macro2_0_3_8.proc-macro or false) || - (f.proc_macro2_0_3_8.default or false) || - (proc_macro2_0_3_8.default or false) || - (f.proc_macro2_0_3_8.nightly or false) || - (proc_macro2_0_3_8.nightly or false); - unicode_xid_0_1_0.default = true; - }) [ unicode_xid_0_1_0_features ]; - pulldown_cmark_0_1_2 = { features?(pulldown_cmark_0_1_2_features {}) }: pulldown_cmark_0_1_2_ { - dependencies = mapFeatures features ([ bitflags_0_9_1 ] - ++ (if features.pulldown_cmark_0_1_2.getopts or false then [ getopts_0_2_17 ] else [])); - features = mkFeatures (features.pulldown_cmark_0_1_2 or {}); - }; - pulldown_cmark_0_1_2_features = f: updateFeatures f (rec { - bitflags_0_9_1.default = true; - getopts_0_2_17.default = true; - pulldown_cmark_0_1_2.default = (f.pulldown_cmark_0_1_2.default or true); - pulldown_cmark_0_1_2.getopts = - (f.pulldown_cmark_0_1_2.getopts or false) || - (f.pulldown_cmark_0_1_2.default or false) || - (pulldown_cmark_0_1_2.default or false); - }) [ bitflags_0_9_1_features getopts_0_2_17_features ]; - quick_error_1_2_1 = { features?(quick_error_1_2_1_features {}) }: quick_error_1_2_1_ {}; - quick_error_1_2_1_features = f: updateFeatures f (rec { - quick_error_1_2_1.default = (f.quick_error_1_2_1.default or true); - }) []; - quote_0_3_15 = { features?(quote_0_3_15_features {}) }: quote_0_3_15_ {}; - quote_0_3_15_features = f: updateFeatures f (rec { - quote_0_3_15.default = (f.quote_0_3_15.default or true); - }) []; - quote_0_4_2 = { features?(quote_0_4_2_features {}) }: quote_0_4_2_ { - dependencies = mapFeatures features ([ proc_macro2_0_2_3 ]); - }; - quote_0_4_2_features = f: updateFeatures f (rec { - proc_macro2_0_2_3.default = true; - quote_0_4_2.default = (f.quote_0_4_2.default or true); - }) [ proc_macro2_0_2_3_features ]; - quote_0_5_2 = { features?(quote_0_5_2_features {}) }: quote_0_5_2_ { - dependencies = mapFeatures features ([ proc_macro2_0_3_8 ]); - features = mkFeatures (features.quote_0_5_2 or {}); - }; - quote_0_5_2_features = f: updateFeatures f (rec { - proc_macro2_0_3_8.default = (f.proc_macro2_0_3_8.default or false); - proc_macro2_0_3_8.proc-macro = - (f.proc_macro2_0_3_8.proc-macro or false) || - (quote_0_5_2.proc-macro or false) || - (f.quote_0_5_2.proc-macro or false); - quote_0_5_2.default = (f.quote_0_5_2.default or true); - quote_0_5_2.proc-macro = - (f.quote_0_5_2.proc-macro or false) || - (f.quote_0_5_2.default or false) || - (quote_0_5_2.default or false); - }) [ proc_macro2_0_3_8_features ]; - r2d2_0_8_2 = { features?(r2d2_0_8_2_features {}) }: r2d2_0_8_2_ { - dependencies = mapFeatures features ([ antidote_1_0_0 log_0_4_1 scheduled_thread_pool_0_2_0 ]); - }; - r2d2_0_8_2_features = f: updateFeatures f (rec { - antidote_1_0_0.default = true; - log_0_4_1.default = true; - r2d2_0_8_2.default = (f.r2d2_0_8_2.default or true); - scheduled_thread_pool_0_2_0.default = true; - }) [ antidote_1_0_0_features log_0_4_1_features scheduled_thread_pool_0_2_0_features ]; - rand_0_3_22 = { features?(rand_0_3_22_features {}) }: rand_0_3_22_ { - dependencies = mapFeatures features ([ libc_0_2_40 rand_0_4_2 ]) - ++ (if kernel == "fuchsia" then mapFeatures features ([ fuchsia_zircon_0_3_3 ]) else []); - features = mkFeatures (features.rand_0_3_22 or {}); - }; - rand_0_3_22_features = f: updateFeatures f (rec { - fuchsia_zircon_0_3_3.default = true; - libc_0_2_40.default = true; - rand_0_3_22.default = (f.rand_0_3_22.default or true); - rand_0_3_22.i128_support = - (f.rand_0_3_22.i128_support or false) || - (f.rand_0_3_22.nightly or false) || - (rand_0_3_22.nightly or false); - rand_0_4_2.default = true; - }) [ libc_0_2_40_features rand_0_4_2_features fuchsia_zircon_0_3_3_features ]; - rand_0_4_2 = { features?(rand_0_4_2_features {}) }: rand_0_4_2_ { - dependencies = (if kernel == "fuchsia" then mapFeatures features ([ fuchsia_zircon_0_3_3 ]) else []) - ++ (if (kernel == "linux" || kernel == "darwin") then mapFeatures features ([ ] - ++ (if features.rand_0_4_2.libc or false then [ libc_0_2_40 ] else [])) else []) - ++ (if kernel == "windows" then mapFeatures features ([ winapi_0_3_4 ]) else []); - features = mkFeatures (features.rand_0_4_2 or {}); - }; - rand_0_4_2_features = f: updateFeatures f (rec { - fuchsia_zircon_0_3_3.default = true; - libc_0_2_40.default = true; - rand_0_4_2.default = (f.rand_0_4_2.default or true); - rand_0_4_2.i128_support = - (f.rand_0_4_2.i128_support or false) || - (f.rand_0_4_2.nightly or false) || - (rand_0_4_2.nightly or false); - rand_0_4_2.libc = - (f.rand_0_4_2.libc or false) || - (f.rand_0_4_2.std or false) || - (rand_0_4_2.std or false); - rand_0_4_2.std = - (f.rand_0_4_2.std or false) || - (f.rand_0_4_2.default or false) || - (rand_0_4_2.default or false); - winapi_0_3_4.default = true; - winapi_0_3_4.minwindef = true; - winapi_0_3_4.ntsecapi = true; - winapi_0_3_4.profileapi = true; - winapi_0_3_4.winnt = true; - }) [ fuchsia_zircon_0_3_3_features libc_0_2_40_features winapi_0_3_4_features ]; - rayon_0_8_2 = { features?(rayon_0_8_2_features {}) }: rayon_0_8_2_ { - dependencies = mapFeatures features ([ rayon_core_1_4_0 ]); - }; - rayon_0_8_2_features = f: updateFeatures f (rec { - rayon_0_8_2.default = (f.rayon_0_8_2.default or true); - rayon_core_1_4_0.default = true; - }) [ rayon_core_1_4_0_features ]; - rayon_core_1_4_0 = { features?(rayon_core_1_4_0_features {}) }: rayon_core_1_4_0_ { - dependencies = mapFeatures features ([ crossbeam_deque_0_2_0 lazy_static_1_0_0 libc_0_2_40 num_cpus_1_8_0 rand_0_4_2 ]); - }; - rayon_core_1_4_0_features = f: updateFeatures f (rec { - crossbeam_deque_0_2_0.default = true; - lazy_static_1_0_0.default = true; - libc_0_2_40.default = true; - num_cpus_1_8_0.default = true; - rand_0_4_2.default = true; - rayon_core_1_4_0.default = (f.rayon_core_1_4_0.default or true); - }) [ crossbeam_deque_0_2_0_features lazy_static_1_0_0_features libc_0_2_40_features num_cpus_1_8_0_features rand_0_4_2_features ]; - redox_syscall_0_1_37 = { features?(redox_syscall_0_1_37_features {}) }: redox_syscall_0_1_37_ {}; - redox_syscall_0_1_37_features = f: updateFeatures f (rec { - redox_syscall_0_1_37.default = (f.redox_syscall_0_1_37.default or true); - }) []; - redox_termios_0_1_1 = { features?(redox_termios_0_1_1_features {}) }: redox_termios_0_1_1_ { - dependencies = mapFeatures features ([ redox_syscall_0_1_37 ]); - }; - redox_termios_0_1_1_features = f: updateFeatures f (rec { - redox_syscall_0_1_37.default = true; - redox_termios_0_1_1.default = (f.redox_termios_0_1_1.default or true); - }) [ redox_syscall_0_1_37_features ]; - regex_0_2_11 = { features?(regex_0_2_11_features {}) }: regex_0_2_11_ { - dependencies = mapFeatures features ([ aho_corasick_0_6_4 memchr_2_0_1 regex_syntax_0_5_6 thread_local_0_3_5 utf8_ranges_1_0_0 ]); - features = mkFeatures (features.regex_0_2_11 or {}); - }; - regex_0_2_11_features = f: updateFeatures f (rec { - aho_corasick_0_6_4.default = true; - memchr_2_0_1.default = true; - regex_0_2_11.default = (f.regex_0_2_11.default or true); - regex_0_2_11.pattern = - (f.regex_0_2_11.pattern or false) || - (f.regex_0_2_11.unstable or false) || - (regex_0_2_11.unstable or false); - regex_syntax_0_5_6.default = true; - thread_local_0_3_5.default = true; - utf8_ranges_1_0_0.default = true; - }) [ aho_corasick_0_6_4_features memchr_2_0_1_features regex_syntax_0_5_6_features thread_local_0_3_5_features utf8_ranges_1_0_0_features ]; - regex_syntax_0_5_6 = { features?(regex_syntax_0_5_6_features {}) }: regex_syntax_0_5_6_ { - dependencies = mapFeatures features ([ ucd_util_0_1_1 ]); - }; - regex_syntax_0_5_6_features = f: updateFeatures f (rec { - regex_syntax_0_5_6.default = (f.regex_syntax_0_5_6.default or true); - ucd_util_0_1_1.default = true; - }) [ ucd_util_0_1_1_features ]; - relay_0_1_1 = { features?(relay_0_1_1_features {}) }: relay_0_1_1_ { - dependencies = mapFeatures features ([ futures_0_1_21 ]); - }; - relay_0_1_1_features = f: updateFeatures f (rec { - futures_0_1_21.default = true; - relay_0_1_1.default = (f.relay_0_1_1.default or true); - }) [ futures_0_1_21_features ]; - remove_dir_all_0_5_1 = { features?(remove_dir_all_0_5_1_features {}) }: remove_dir_all_0_5_1_ { - dependencies = (if kernel == "windows" then mapFeatures features ([ winapi_0_3_4 ]) else []); - }; - remove_dir_all_0_5_1_features = f: updateFeatures f (rec { - remove_dir_all_0_5_1.default = (f.remove_dir_all_0_5_1.default or true); - winapi_0_3_4.default = true; - winapi_0_3_4.errhandlingapi = true; - winapi_0_3_4.fileapi = true; - winapi_0_3_4.std = true; - winapi_0_3_4.winbase = true; - winapi_0_3_4.winerror = true; - }) [ winapi_0_3_4_features ]; - reqwest_0_8_5 = { features?(reqwest_0_8_5_features {}) }: reqwest_0_8_5_ { - dependencies = mapFeatures features ([ bytes_0_4_7 encoding_rs_0_7_2 futures_0_1_21 hyper_0_11_25 hyper_tls_0_1_3 libflate_0_1_14 log_0_4_1 mime_guess_2_0_0_alpha_4 native_tls_0_1_5 serde_1_0_43 serde_json_1_0_16 serde_urlencoded_0_5_1 tokio_core_0_1_17 tokio_io_0_1_6 tokio_tls_0_1_4 url_1_7_0 uuid_0_5_1 ]); - features = mkFeatures (features.reqwest_0_8_5 or {}); - }; - reqwest_0_8_5_features = f: updateFeatures f (rec { - bytes_0_4_7.default = true; - encoding_rs_0_7_2.default = true; - futures_0_1_21.default = true; - hyper_0_11_25.default = true; - hyper_tls_0_1_3.default = true; - libflate_0_1_14.default = true; - log_0_4_1.default = true; - mime_guess_2_0_0_alpha_4.default = true; - native_tls_0_1_5.default = true; - reqwest_0_8_5.default = (f.reqwest_0_8_5.default or true); - serde_1_0_43.default = true; - serde_json_1_0_16.default = true; - serde_urlencoded_0_5_1.default = true; - tokio_core_0_1_17.default = true; - tokio_io_0_1_6.default = true; - tokio_tls_0_1_4.default = true; - url_1_7_0.default = true; - uuid_0_5_1.default = true; - uuid_0_5_1.v4 = true; - }) [ bytes_0_4_7_features encoding_rs_0_7_2_features futures_0_1_21_features hyper_0_11_25_features hyper_tls_0_1_3_features libflate_0_1_14_features log_0_4_1_features mime_guess_2_0_0_alpha_4_features native_tls_0_1_5_features serde_1_0_43_features serde_json_1_0_16_features serde_urlencoded_0_5_1_features tokio_core_0_1_17_features tokio_io_0_1_6_features tokio_tls_0_1_4_features url_1_7_0_features uuid_0_5_1_features ]; - resolv_conf_0_6_0 = { features?(resolv_conf_0_6_0_features {}) }: resolv_conf_0_6_0_ { - dependencies = mapFeatures features ([ quick_error_1_2_1 ] - ++ (if features.resolv_conf_0_6_0.hostname or false then [ hostname_0_1_4 ] else [])); - features = mkFeatures (features.resolv_conf_0_6_0 or {}); - }; - resolv_conf_0_6_0_features = f: updateFeatures f (rec { - hostname_0_1_4.default = true; - quick_error_1_2_1.default = true; - resolv_conf_0_6_0.default = (f.resolv_conf_0_6_0.default or true); - resolv_conf_0_6_0.hostname = - (f.resolv_conf_0_6_0.hostname or false) || - (f.resolv_conf_0_6_0.system or false) || - (resolv_conf_0_6_0.system or false); - }) [ hostname_0_1_4_features quick_error_1_2_1_features ]; - ring_0_12_1 = { features?(ring_0_12_1_features {}) }: ring_0_12_1_ { - dependencies = mapFeatures features ([ libc_0_2_40 untrusted_0_5_1 ]) - ++ (if kernel == "redox" || (kernel == "linux" || kernel == "darwin") && !(kernel == "darwin" || kernel == "ios") then mapFeatures features ([ lazy_static_0_2_11 ]) else []); - buildDependencies = mapFeatures features ([ gcc_0_3_54 rayon_0_8_2 ]); - features = mkFeatures (features.ring_0_12_1 or {}); - }; - ring_0_12_1_features = f: updateFeatures f (rec { - gcc_0_3_54.default = true; - lazy_static_0_2_11.default = true; - libc_0_2_40.default = true; - rayon_0_8_2.default = true; - ring_0_12_1.default = (f.ring_0_12_1.default or true); - ring_0_12_1.dev_urandom_fallback = - (f.ring_0_12_1.dev_urandom_fallback or false) || - (f.ring_0_12_1.default or false) || - (ring_0_12_1.default or false); - ring_0_12_1.use_heap = - (f.ring_0_12_1.use_heap or false) || - (f.ring_0_12_1.default or false) || - (ring_0_12_1.default or false) || - (f.ring_0_12_1.rsa_signing or false) || - (ring_0_12_1.rsa_signing or false); - untrusted_0_5_1.default = true; - }) [ libc_0_2_40_features untrusted_0_5_1_features gcc_0_3_54_features rayon_0_8_2_features lazy_static_0_2_11_features ]; - rustc_demangle_0_1_7 = { features?(rustc_demangle_0_1_7_features {}) }: rustc_demangle_0_1_7_ {}; - rustc_demangle_0_1_7_features = f: updateFeatures f (rec { - rustc_demangle_0_1_7.default = (f.rustc_demangle_0_1_7.default or true); - }) []; - safemem_0_2_0 = { features?(safemem_0_2_0_features {}) }: safemem_0_2_0_ {}; - safemem_0_2_0_features = f: updateFeatures f (rec { - safemem_0_2_0.default = (f.safemem_0_2_0.default or true); - }) []; - same_file_0_1_3 = { features?(same_file_0_1_3_features {}) }: same_file_0_1_3_ { - dependencies = (if kernel == "windows" then mapFeatures features ([ kernel32_sys_0_2_2 winapi_0_2_8 ]) else []); - }; - same_file_0_1_3_features = f: updateFeatures f (rec { - kernel32_sys_0_2_2.default = true; - same_file_0_1_3.default = (f.same_file_0_1_3.default or true); - winapi_0_2_8.default = true; - }) [ kernel32_sys_0_2_2_features winapi_0_2_8_features ]; - schannel_0_1_12 = { features?(schannel_0_1_12_features {}) }: schannel_0_1_12_ { - dependencies = mapFeatures features ([ lazy_static_1_0_0 winapi_0_3_4 ]); - }; - schannel_0_1_12_features = f: updateFeatures f (rec { - lazy_static_1_0_0.default = true; - schannel_0_1_12.default = (f.schannel_0_1_12.default or true); - winapi_0_3_4.default = true; - winapi_0_3_4.lmcons = true; - winapi_0_3_4.minschannel = true; - winapi_0_3_4.schannel = true; - winapi_0_3_4.securitybaseapi = true; - winapi_0_3_4.sysinfoapi = true; - winapi_0_3_4.timezoneapi = true; - winapi_0_3_4.winbase = true; - winapi_0_3_4.wincrypt = true; - winapi_0_3_4.winerror = true; - }) [ lazy_static_1_0_0_features winapi_0_3_4_features ]; - scheduled_thread_pool_0_2_0 = { features?(scheduled_thread_pool_0_2_0_features {}) }: scheduled_thread_pool_0_2_0_ { - dependencies = mapFeatures features ([ antidote_1_0_0 ]); - }; - scheduled_thread_pool_0_2_0_features = f: updateFeatures f (rec { - antidote_1_0_0.default = true; - scheduled_thread_pool_0_2_0.default = (f.scheduled_thread_pool_0_2_0.default or true); - }) [ antidote_1_0_0_features ]; - scoped_tls_0_1_1 = { features?(scoped_tls_0_1_1_features {}) }: scoped_tls_0_1_1_ { - features = mkFeatures (features.scoped_tls_0_1_1 or {}); - }; - scoped_tls_0_1_1_features = f: updateFeatures f (rec { - scoped_tls_0_1_1.default = (f.scoped_tls_0_1_1.default or true); - }) []; - scopeguard_0_3_3 = { features?(scopeguard_0_3_3_features {}) }: scopeguard_0_3_3_ { - features = mkFeatures (features.scopeguard_0_3_3 or {}); - }; - scopeguard_0_3_3_features = f: updateFeatures f (rec { - scopeguard_0_3_3.default = (f.scopeguard_0_3_3.default or true); - scopeguard_0_3_3.use_std = - (f.scopeguard_0_3_3.use_std or false) || - (f.scopeguard_0_3_3.default or false) || - (scopeguard_0_3_3.default or false); - }) []; - security_framework_0_1_16 = { features?(security_framework_0_1_16_features {}) }: security_framework_0_1_16_ { - dependencies = mapFeatures features ([ core_foundation_0_2_3 core_foundation_sys_0_2_3 libc_0_2_40 security_framework_sys_0_1_16 ]); - features = mkFeatures (features.security_framework_0_1_16 or {}); - }; - security_framework_0_1_16_features = f: updateFeatures f (rec { - core_foundation_0_2_3.default = true; - core_foundation_sys_0_2_3.default = true; - libc_0_2_40.default = true; - security_framework_0_1_16.OSX_10_10 = - (f.security_framework_0_1_16.OSX_10_10 or false) || - (f.security_framework_0_1_16.OSX_10_11 or false) || - (security_framework_0_1_16.OSX_10_11 or false); - security_framework_0_1_16.OSX_10_11 = - (f.security_framework_0_1_16.OSX_10_11 or false) || - (f.security_framework_0_1_16.OSX_10_12 or false) || - (security_framework_0_1_16.OSX_10_12 or false); - security_framework_0_1_16.OSX_10_8 = - (f.security_framework_0_1_16.OSX_10_8 or false) || - (f.security_framework_0_1_16.OSX_10_9 or false) || - (security_framework_0_1_16.OSX_10_9 or false); - security_framework_0_1_16.OSX_10_9 = - (f.security_framework_0_1_16.OSX_10_9 or false) || - (f.security_framework_0_1_16.OSX_10_10 or false) || - (security_framework_0_1_16.OSX_10_10 or false); - security_framework_0_1_16.default = (f.security_framework_0_1_16.default or true); - security_framework_sys_0_1_16.OSX_10_10 = - (f.security_framework_sys_0_1_16.OSX_10_10 or false) || - (security_framework_0_1_16.OSX_10_10 or false) || - (f.security_framework_0_1_16.OSX_10_10 or false); - security_framework_sys_0_1_16.OSX_10_11 = - (f.security_framework_sys_0_1_16.OSX_10_11 or false) || - (security_framework_0_1_16.OSX_10_11 or false) || - (f.security_framework_0_1_16.OSX_10_11 or false) || - (security_framework_0_1_16.OSX_10_12 or false) || - (f.security_framework_0_1_16.OSX_10_12 or false); - security_framework_sys_0_1_16.OSX_10_8 = - (f.security_framework_sys_0_1_16.OSX_10_8 or false) || - (security_framework_0_1_16.OSX_10_8 or false) || - (f.security_framework_0_1_16.OSX_10_8 or false); - security_framework_sys_0_1_16.OSX_10_9 = - (f.security_framework_sys_0_1_16.OSX_10_9 or false) || - (security_framework_0_1_16.OSX_10_9 or false) || - (f.security_framework_0_1_16.OSX_10_9 or false); - security_framework_sys_0_1_16.default = true; - }) [ core_foundation_0_2_3_features core_foundation_sys_0_2_3_features libc_0_2_40_features security_framework_sys_0_1_16_features ]; - security_framework_sys_0_1_16 = { features?(security_framework_sys_0_1_16_features {}) }: security_framework_sys_0_1_16_ { - dependencies = mapFeatures features ([ core_foundation_sys_0_2_3 libc_0_2_40 ]); - features = mkFeatures (features.security_framework_sys_0_1_16 or {}); - }; - security_framework_sys_0_1_16_features = f: updateFeatures f (rec { - core_foundation_sys_0_2_3.default = true; - libc_0_2_40.default = true; - security_framework_sys_0_1_16.OSX_10_10 = - (f.security_framework_sys_0_1_16.OSX_10_10 or false) || - (f.security_framework_sys_0_1_16.OSX_10_11 or false) || - (security_framework_sys_0_1_16.OSX_10_11 or false); - security_framework_sys_0_1_16.OSX_10_11 = - (f.security_framework_sys_0_1_16.OSX_10_11 or false) || - (f.security_framework_sys_0_1_16.OSX_10_12 or false) || - (security_framework_sys_0_1_16.OSX_10_12 or false); - security_framework_sys_0_1_16.OSX_10_8 = - (f.security_framework_sys_0_1_16.OSX_10_8 or false) || - (f.security_framework_sys_0_1_16.OSX_10_9 or false) || - (security_framework_sys_0_1_16.OSX_10_9 or false); - security_framework_sys_0_1_16.OSX_10_9 = - (f.security_framework_sys_0_1_16.OSX_10_9 or false) || - (f.security_framework_sys_0_1_16.OSX_10_10 or false) || - (security_framework_sys_0_1_16.OSX_10_10 or false); - security_framework_sys_0_1_16.default = (f.security_framework_sys_0_1_16.default or true); - }) [ core_foundation_sys_0_2_3_features libc_0_2_40_features ]; - semver_0_8_0 = { features?(semver_0_8_0_features {}) }: semver_0_8_0_ { - dependencies = mapFeatures features ([ semver_parser_0_7_0 ] - ++ (if features.semver_0_8_0.serde or false then [ serde_1_0_43 ] else [])); - features = mkFeatures (features.semver_0_8_0 or {}); - }; - semver_0_8_0_features = f: updateFeatures f (rec { - semver_0_8_0.default = (f.semver_0_8_0.default or true); - semver_0_8_0.serde = - (f.semver_0_8_0.serde or false) || - (f.semver_0_8_0.ci or false) || - (semver_0_8_0.ci or false); - semver_parser_0_7_0.default = true; - serde_1_0_43.default = true; - }) [ semver_parser_0_7_0_features serde_1_0_43_features ]; - semver_parser_0_7_0 = { features?(semver_parser_0_7_0_features {}) }: semver_parser_0_7_0_ {}; - semver_parser_0_7_0_features = f: updateFeatures f (rec { - semver_parser_0_7_0.default = (f.semver_parser_0_7_0.default or true); - }) []; - serde_1_0_43 = { features?(serde_1_0_43_features {}) }: serde_1_0_43_ { - dependencies = mapFeatures features ([]); - features = mkFeatures (features.serde_1_0_43 or {}); - }; - serde_1_0_43_features = f: updateFeatures f (rec { - serde_1_0_43.default = (f.serde_1_0_43.default or true); - serde_1_0_43.serde_derive = - (f.serde_1_0_43.serde_derive or false) || - (f.serde_1_0_43.derive or false) || - (serde_1_0_43.derive or false) || - (f.serde_1_0_43.playground or false) || - (serde_1_0_43.playground or false); - serde_1_0_43.std = - (f.serde_1_0_43.std or false) || - (f.serde_1_0_43.default or false) || - (serde_1_0_43.default or false); - serde_1_0_43.unstable = - (f.serde_1_0_43.unstable or false) || - (f.serde_1_0_43.alloc or false) || - (serde_1_0_43.alloc or false); - }) []; - serde_derive_1_0_43 = { features?(serde_derive_1_0_43_features {}) }: serde_derive_1_0_43_ { - dependencies = mapFeatures features ([ proc_macro2_0_3_8 quote_0_5_2 serde_derive_internals_0_23_1 syn_0_13_4 ]); - features = mkFeatures (features.serde_derive_1_0_43 or {}); - }; - serde_derive_1_0_43_features = f: updateFeatures f (rec { - proc_macro2_0_3_8.default = true; - quote_0_5_2.default = true; - serde_derive_1_0_43.default = (f.serde_derive_1_0_43.default or true); - serde_derive_internals_0_23_1.default = (f.serde_derive_internals_0_23_1.default or false); - syn_0_13_4.default = true; - syn_0_13_4.visit = true; - }) [ proc_macro2_0_3_8_features quote_0_5_2_features serde_derive_internals_0_23_1_features syn_0_13_4_features ]; - serde_derive_internals_0_23_1 = { features?(serde_derive_internals_0_23_1_features {}) }: serde_derive_internals_0_23_1_ { - dependencies = mapFeatures features ([ proc_macro2_0_3_8 syn_0_13_4 ]); - }; - serde_derive_internals_0_23_1_features = f: updateFeatures f (rec { - proc_macro2_0_3_8.default = true; - serde_derive_internals_0_23_1.default = (f.serde_derive_internals_0_23_1.default or true); - syn_0_13_4.clone-impls = true; - syn_0_13_4.default = (f.syn_0_13_4.default or false); - syn_0_13_4.derive = true; - syn_0_13_4.parsing = true; - }) [ proc_macro2_0_3_8_features syn_0_13_4_features ]; - serde_json_1_0_16 = { features?(serde_json_1_0_16_features {}) }: serde_json_1_0_16_ { - dependencies = mapFeatures features ([ dtoa_0_4_2 itoa_0_4_1 serde_1_0_43 ]); - features = mkFeatures (features.serde_json_1_0_16 or {}); - }; - serde_json_1_0_16_features = f: updateFeatures f (rec { - dtoa_0_4_2.default = true; - itoa_0_4_1.default = true; - serde_1_0_43.default = true; - serde_json_1_0_16.default = (f.serde_json_1_0_16.default or true); - serde_json_1_0_16.linked-hash-map = - (f.serde_json_1_0_16.linked-hash-map or false) || - (f.serde_json_1_0_16.preserve_order or false) || - (serde_json_1_0_16.preserve_order or false); - }) [ dtoa_0_4_2_features itoa_0_4_1_features serde_1_0_43_features ]; - serde_urlencoded_0_5_1 = { features?(serde_urlencoded_0_5_1_features {}) }: serde_urlencoded_0_5_1_ { - dependencies = mapFeatures features ([ dtoa_0_4_2 itoa_0_3_4 serde_1_0_43 url_1_7_0 ]); - }; - serde_urlencoded_0_5_1_features = f: updateFeatures f (rec { - dtoa_0_4_2.default = true; - itoa_0_3_4.default = true; - serde_1_0_43.default = true; - serde_urlencoded_0_5_1.default = (f.serde_urlencoded_0_5_1.default or true); - url_1_7_0.default = true; - }) [ dtoa_0_4_2_features itoa_0_3_4_features serde_1_0_43_features url_1_7_0_features ]; - sha1_0_6_0 = { features?(sha1_0_6_0_features {}) }: sha1_0_6_0_ { - dependencies = mapFeatures features ([]); - features = mkFeatures (features.sha1_0_6_0 or {}); - }; - sha1_0_6_0_features = f: updateFeatures f (rec { - sha1_0_6_0.default = (f.sha1_0_6_0.default or true); - }) []; - siphasher_0_2_2 = { features?(siphasher_0_2_2_features {}) }: siphasher_0_2_2_ { - dependencies = mapFeatures features ([]); - }; - siphasher_0_2_2_features = f: updateFeatures f (rec { - siphasher_0_2_2.default = (f.siphasher_0_2_2.default or true); - }) []; - skeptic_0_13_2 = { features?(skeptic_0_13_2_features {}) }: skeptic_0_13_2_ { - dependencies = mapFeatures features ([ bytecount_0_2_0 cargo_metadata_0_3_3 error_chain_0_11_0 glob_0_2_11 pulldown_cmark_0_1_2 serde_json_1_0_16 tempdir_0_3_7 walkdir_1_0_7 ]); - }; - skeptic_0_13_2_features = f: updateFeatures f (rec { - bytecount_0_2_0.default = true; - cargo_metadata_0_3_3.default = true; - error_chain_0_11_0.default = (f.error_chain_0_11_0.default or false); - glob_0_2_11.default = true; - pulldown_cmark_0_1_2.default = (f.pulldown_cmark_0_1_2.default or false); - serde_json_1_0_16.default = true; - skeptic_0_13_2.default = (f.skeptic_0_13_2.default or true); - tempdir_0_3_7.default = true; - walkdir_1_0_7.default = true; - }) [ bytecount_0_2_0_features cargo_metadata_0_3_3_features error_chain_0_11_0_features glob_0_2_11_features pulldown_cmark_0_1_2_features serde_json_1_0_16_features tempdir_0_3_7_features walkdir_1_0_7_features ]; - slab_0_3_0 = { features?(slab_0_3_0_features {}) }: slab_0_3_0_ {}; - slab_0_3_0_features = f: updateFeatures f (rec { - slab_0_3_0.default = (f.slab_0_3_0.default or true); - }) []; - slab_0_4_0 = { features?(slab_0_4_0_features {}) }: slab_0_4_0_ {}; - slab_0_4_0_features = f: updateFeatures f (rec { - slab_0_4_0.default = (f.slab_0_4_0.default or true); - }) []; - slug_0_1_3 = { features?(slug_0_1_3_features {}) }: slug_0_1_3_ { - dependencies = mapFeatures features ([ unidecode_0_3_0 ]); - }; - slug_0_1_3_features = f: updateFeatures f (rec { - slug_0_1_3.default = (f.slug_0_1_3.default or true); - unidecode_0_3_0.default = true; - }) [ unidecode_0_3_0_features ]; - smallvec_0_2_1 = { features?(smallvec_0_2_1_features {}) }: smallvec_0_2_1_ {}; - smallvec_0_2_1_features = f: updateFeatures f (rec { - smallvec_0_2_1.default = (f.smallvec_0_2_1.default or true); - }) []; - smallvec_0_6_1 = { features?(smallvec_0_6_1_features {}) }: smallvec_0_6_1_ { - dependencies = mapFeatures features ([]); - features = mkFeatures (features.smallvec_0_6_1 or {}); - }; - smallvec_0_6_1_features = f: updateFeatures f (rec { - smallvec_0_6_1.default = (f.smallvec_0_6_1.default or true); - smallvec_0_6_1.std = - (f.smallvec_0_6_1.std or false) || - (f.smallvec_0_6_1.default or false) || - (smallvec_0_6_1.default or false); - }) []; - socket2_0_3_5 = { features?(socket2_0_3_5_features {}) }: socket2_0_3_5_ { - dependencies = (if (kernel == "linux" || kernel == "darwin") then mapFeatures features ([ cfg_if_0_1_2 libc_0_2_40 ]) else []) - ++ (if kernel == "windows" then mapFeatures features ([ winapi_0_3_4 ]) else []); - features = mkFeatures (features.socket2_0_3_5 or {}); - }; - socket2_0_3_5_features = f: updateFeatures f (rec { - cfg_if_0_1_2.default = true; - libc_0_2_40.default = true; - socket2_0_3_5.default = (f.socket2_0_3_5.default or true); - winapi_0_3_4.default = true; - winapi_0_3_4.handleapi = true; - winapi_0_3_4.minwindef = true; - winapi_0_3_4.ws2def = true; - winapi_0_3_4.ws2ipdef = true; - winapi_0_3_4.ws2tcpip = true; - }) [ cfg_if_0_1_2_features libc_0_2_40_features winapi_0_3_4_features ]; - stable_deref_trait_1_0_0 = { features?(stable_deref_trait_1_0_0_features {}) }: stable_deref_trait_1_0_0_ { - features = mkFeatures (features.stable_deref_trait_1_0_0 or {}); - }; - stable_deref_trait_1_0_0_features = f: updateFeatures f (rec { - stable_deref_trait_1_0_0.default = (f.stable_deref_trait_1_0_0.default or true); - stable_deref_trait_1_0_0.std = - (f.stable_deref_trait_1_0_0.std or false) || - (f.stable_deref_trait_1_0_0.default or false) || - (stable_deref_trait_1_0_0.default or false); - }) []; - string_0_1_0 = { features?(string_0_1_0_features {}) }: string_0_1_0_ {}; - string_0_1_0_features = f: updateFeatures f (rec { - string_0_1_0.default = (f.string_0_1_0.default or true); - }) []; - strsim_0_7_0 = { features?(strsim_0_7_0_features {}) }: strsim_0_7_0_ {}; - strsim_0_7_0_features = f: updateFeatures f (rec { - strsim_0_7_0.default = (f.strsim_0_7_0.default or true); - }) []; - syn_0_11_11 = { features?(syn_0_11_11_features {}) }: syn_0_11_11_ { - dependencies = mapFeatures features ([ ] - ++ (if features.syn_0_11_11.quote or false then [ quote_0_3_15 ] else []) - ++ (if features.syn_0_11_11.synom or false then [ synom_0_11_3 ] else []) - ++ (if features.syn_0_11_11.unicode-xid or false then [ unicode_xid_0_0_4 ] else [])); - features = mkFeatures (features.syn_0_11_11 or {}); - }; - syn_0_11_11_features = f: updateFeatures f (rec { - quote_0_3_15.default = true; - syn_0_11_11.default = (f.syn_0_11_11.default or true); - syn_0_11_11.parsing = - (f.syn_0_11_11.parsing or false) || - (f.syn_0_11_11.default or false) || - (syn_0_11_11.default or false); - syn_0_11_11.printing = - (f.syn_0_11_11.printing or false) || - (f.syn_0_11_11.default or false) || - (syn_0_11_11.default or false); - syn_0_11_11.quote = - (f.syn_0_11_11.quote or false) || - (f.syn_0_11_11.printing or false) || - (syn_0_11_11.printing or false); - syn_0_11_11.synom = - (f.syn_0_11_11.synom or false) || - (f.syn_0_11_11.parsing or false) || - (syn_0_11_11.parsing or false); - syn_0_11_11.unicode-xid = - (f.syn_0_11_11.unicode-xid or false) || - (f.syn_0_11_11.parsing or false) || - (syn_0_11_11.parsing or false); - synom_0_11_3.default = true; - unicode_xid_0_0_4.default = true; - }) [ quote_0_3_15_features synom_0_11_3_features unicode_xid_0_0_4_features ]; - syn_0_12_15 = { features?(syn_0_12_15_features {}) }: syn_0_12_15_ { - dependencies = mapFeatures features ([ proc_macro2_0_2_3 unicode_xid_0_1_0 ] - ++ (if features.syn_0_12_15.quote or false then [ quote_0_4_2 ] else [])); - features = mkFeatures (features.syn_0_12_15 or {}); - }; - syn_0_12_15_features = f: updateFeatures f (rec { - proc_macro2_0_2_3.default = true; - quote_0_4_2.default = true; - syn_0_12_15.clone-impls = - (f.syn_0_12_15.clone-impls or false) || - (f.syn_0_12_15.default or false) || - (syn_0_12_15.default or false); - syn_0_12_15.default = (f.syn_0_12_15.default or true); - syn_0_12_15.derive = - (f.syn_0_12_15.derive or false) || - (f.syn_0_12_15.default or false) || - (syn_0_12_15.default or false); - syn_0_12_15.parsing = - (f.syn_0_12_15.parsing or false) || - (f.syn_0_12_15.default or false) || - (syn_0_12_15.default or false); - syn_0_12_15.printing = - (f.syn_0_12_15.printing or false) || - (f.syn_0_12_15.default or false) || - (syn_0_12_15.default or false); - syn_0_12_15.quote = - (f.syn_0_12_15.quote or false) || - (f.syn_0_12_15.printing or false) || - (syn_0_12_15.printing or false); - unicode_xid_0_1_0.default = true; - }) [ proc_macro2_0_2_3_features quote_0_4_2_features unicode_xid_0_1_0_features ]; - syn_0_13_4 = { features?(syn_0_13_4_features {}) }: syn_0_13_4_ { - dependencies = mapFeatures features ([ proc_macro2_0_3_8 unicode_xid_0_1_0 ] - ++ (if features.syn_0_13_4.quote or false then [ quote_0_5_2 ] else [])); - features = mkFeatures (features.syn_0_13_4 or {}); - }; - syn_0_13_4_features = f: updateFeatures f (rec { - proc_macro2_0_3_8.default = (f.proc_macro2_0_3_8.default or false); - proc_macro2_0_3_8.proc-macro = - (f.proc_macro2_0_3_8.proc-macro or false) || - (syn_0_13_4.proc-macro or false) || - (f.syn_0_13_4.proc-macro or false); - quote_0_5_2.default = (f.quote_0_5_2.default or false); - quote_0_5_2.proc-macro = - (f.quote_0_5_2.proc-macro or false) || - (syn_0_13_4.proc-macro or false) || - (f.syn_0_13_4.proc-macro or false); - syn_0_13_4.clone-impls = - (f.syn_0_13_4.clone-impls or false) || - (f.syn_0_13_4.default or false) || - (syn_0_13_4.default or false); - syn_0_13_4.default = (f.syn_0_13_4.default or true); - syn_0_13_4.derive = - (f.syn_0_13_4.derive or false) || - (f.syn_0_13_4.default or false) || - (syn_0_13_4.default or false); - syn_0_13_4.parsing = - (f.syn_0_13_4.parsing or false) || - (f.syn_0_13_4.default or false) || - (syn_0_13_4.default or false); - syn_0_13_4.printing = - (f.syn_0_13_4.printing or false) || - (f.syn_0_13_4.default or false) || - (syn_0_13_4.default or false); - syn_0_13_4.proc-macro = - (f.syn_0_13_4.proc-macro or false) || - (f.syn_0_13_4.default or false) || - (syn_0_13_4.default or false); - syn_0_13_4.quote = - (f.syn_0_13_4.quote or false) || - (f.syn_0_13_4.printing or false) || - (syn_0_13_4.printing or false); - unicode_xid_0_1_0.default = true; - }) [ proc_macro2_0_3_8_features quote_0_5_2_features unicode_xid_0_1_0_features ]; - synom_0_11_3 = { features?(synom_0_11_3_features {}) }: synom_0_11_3_ { - dependencies = mapFeatures features ([ unicode_xid_0_0_4 ]); - }; - synom_0_11_3_features = f: updateFeatures f (rec { - synom_0_11_3.default = (f.synom_0_11_3.default or true); - unicode_xid_0_0_4.default = true; - }) [ unicode_xid_0_0_4_features ]; - synstructure_0_6_1 = { features?(synstructure_0_6_1_features {}) }: synstructure_0_6_1_ { - dependencies = mapFeatures features ([ quote_0_3_15 syn_0_11_11 ]); - features = mkFeatures (features.synstructure_0_6_1 or {}); - }; - synstructure_0_6_1_features = f: updateFeatures f (rec { - quote_0_3_15.default = true; - syn_0_11_11.default = true; - syn_0_11_11.visit = true; - synstructure_0_6_1.default = (f.synstructure_0_6_1.default or true); - }) [ quote_0_3_15_features syn_0_11_11_features ]; - take_0_1_0 = { features?(take_0_1_0_features {}) }: take_0_1_0_ {}; - take_0_1_0_features = f: updateFeatures f (rec { - take_0_1_0.default = (f.take_0_1_0.default or true); - }) []; - tempdir_0_3_7 = { features?(tempdir_0_3_7_features {}) }: tempdir_0_3_7_ { - dependencies = mapFeatures features ([ rand_0_4_2 remove_dir_all_0_5_1 ]); - }; - tempdir_0_3_7_features = f: updateFeatures f (rec { - rand_0_4_2.default = true; - remove_dir_all_0_5_1.default = true; - tempdir_0_3_7.default = (f.tempdir_0_3_7.default or true); - }) [ rand_0_4_2_features remove_dir_all_0_5_1_features ]; - tera_0_11_7 = { features?(tera_0_11_7_features {}) }: tera_0_11_7_ { - dependencies = mapFeatures features ([ chrono_0_4_2 error_chain_0_11_0 glob_0_2_11 humansize_1_1_0 lazy_static_1_0_0 pest_1_0_6 pest_derive_1_0_7 regex_0_2_11 serde_1_0_43 serde_json_1_0_16 slug_0_1_3 url_1_7_0 ]); - }; - tera_0_11_7_features = f: updateFeatures f (rec { - chrono_0_4_2.default = true; - error_chain_0_11_0.default = true; - glob_0_2_11.default = true; - humansize_1_1_0.default = true; - lazy_static_1_0_0.default = true; - pest_1_0_6.default = true; - pest_derive_1_0_7.default = true; - regex_0_2_11.default = true; - serde_1_0_43.default = true; - serde_json_1_0_16.default = true; - slug_0_1_3.default = true; - tera_0_11_7.default = (f.tera_0_11_7.default or true); - url_1_7_0.default = true; - }) [ chrono_0_4_2_features error_chain_0_11_0_features glob_0_2_11_features humansize_1_1_0_features lazy_static_1_0_0_features pest_1_0_6_features pest_derive_1_0_7_features regex_0_2_11_features serde_1_0_43_features serde_json_1_0_16_features slug_0_1_3_features url_1_7_0_features ]; - termcolor_0_3_6 = { features?(termcolor_0_3_6_features {}) }: termcolor_0_3_6_ { - dependencies = (if kernel == "windows" then mapFeatures features ([ wincolor_0_1_6 ]) else []); - }; - termcolor_0_3_6_features = f: updateFeatures f (rec { - termcolor_0_3_6.default = (f.termcolor_0_3_6.default or true); - wincolor_0_1_6.default = true; - }) [ wincolor_0_1_6_features ]; - termion_1_5_1 = { features?(termion_1_5_1_features {}) }: termion_1_5_1_ { - dependencies = (if !(kernel == "redox") then mapFeatures features ([ libc_0_2_40 ]) else []) - ++ (if kernel == "redox" then mapFeatures features ([ redox_syscall_0_1_37 redox_termios_0_1_1 ]) else []); - }; - termion_1_5_1_features = f: updateFeatures f (rec { - libc_0_2_40.default = true; - redox_syscall_0_1_37.default = true; - redox_termios_0_1_1.default = true; - termion_1_5_1.default = (f.termion_1_5_1.default or true); - }) [ libc_0_2_40_features redox_syscall_0_1_37_features redox_termios_0_1_1_features ]; - textwrap_0_9_0 = { features?(textwrap_0_9_0_features {}) }: textwrap_0_9_0_ { - dependencies = mapFeatures features ([ unicode_width_0_1_4 ]); - }; - textwrap_0_9_0_features = f: updateFeatures f (rec { - textwrap_0_9_0.default = (f.textwrap_0_9_0.default or true); - unicode_width_0_1_4.default = true; - }) [ unicode_width_0_1_4_features ]; - thread_local_0_3_5 = { features?(thread_local_0_3_5_features {}) }: thread_local_0_3_5_ { - dependencies = mapFeatures features ([ lazy_static_1_0_0 unreachable_1_0_0 ]); - }; - thread_local_0_3_5_features = f: updateFeatures f (rec { - lazy_static_1_0_0.default = true; - thread_local_0_3_5.default = (f.thread_local_0_3_5.default or true); - unreachable_1_0_0.default = true; - }) [ lazy_static_1_0_0_features unreachable_1_0_0_features ]; - time_0_1_39 = { features?(time_0_1_39_features {}) }: time_0_1_39_ { - dependencies = mapFeatures features ([ libc_0_2_40 ]) - ++ (if kernel == "redox" then mapFeatures features ([ redox_syscall_0_1_37 ]) else []) - ++ (if kernel == "windows" then mapFeatures features ([ winapi_0_3_4 ]) else []); - }; - time_0_1_39_features = f: updateFeatures f (rec { - libc_0_2_40.default = true; - redox_syscall_0_1_37.default = true; - time_0_1_39.default = (f.time_0_1_39.default or true); - winapi_0_3_4.default = true; - winapi_0_3_4.minwinbase = true; - winapi_0_3_4.minwindef = true; - winapi_0_3_4.ntdef = true; - winapi_0_3_4.profileapi = true; - winapi_0_3_4.std = true; - winapi_0_3_4.sysinfoapi = true; - winapi_0_3_4.timezoneapi = true; - }) [ libc_0_2_40_features redox_syscall_0_1_37_features winapi_0_3_4_features ]; - tokio_0_1_5 = { features?(tokio_0_1_5_features {}) }: tokio_0_1_5_ { - dependencies = mapFeatures features ([ futures_0_1_21 mio_0_6_14 tokio_executor_0_1_2 tokio_io_0_1_6 tokio_reactor_0_1_1 tokio_tcp_0_1_0 tokio_threadpool_0_1_2 tokio_timer_0_2_1 tokio_udp_0_1_0 ]); - features = mkFeatures (features.tokio_0_1_5 or {}); - }; - tokio_0_1_5_features = f: updateFeatures f (rec { - futures_0_1_21.default = true; - mio_0_6_14.default = true; - tokio_0_1_5.default = (f.tokio_0_1_5.default or true); - tokio_0_1_5.futures2 = - (f.tokio_0_1_5.futures2 or false) || - (f.tokio_0_1_5.unstable-futures or false) || - (tokio_0_1_5.unstable-futures or false); - tokio_executor_0_1_2.default = true; - tokio_executor_0_1_2.unstable-futures = - (f.tokio_executor_0_1_2.unstable-futures or false) || - (tokio_0_1_5.unstable-futures or false) || - (f.tokio_0_1_5.unstable-futures or false); - tokio_io_0_1_6.default = true; - tokio_reactor_0_1_1.default = true; - tokio_reactor_0_1_1.unstable-futures = - (f.tokio_reactor_0_1_1.unstable-futures or false) || - (tokio_0_1_5.unstable-futures or false) || - (f.tokio_0_1_5.unstable-futures or false); - tokio_tcp_0_1_0.default = true; - tokio_tcp_0_1_0.unstable-futures = - (f.tokio_tcp_0_1_0.unstable-futures or false) || - (tokio_0_1_5.unstable-futures or false) || - (f.tokio_0_1_5.unstable-futures or false); - tokio_threadpool_0_1_2.default = true; - tokio_threadpool_0_1_2.unstable-futures = - (f.tokio_threadpool_0_1_2.unstable-futures or false) || - (tokio_0_1_5.unstable-futures or false) || - (f.tokio_0_1_5.unstable-futures or false); - tokio_timer_0_2_1.default = true; - tokio_udp_0_1_0.default = true; - tokio_udp_0_1_0.unstable-futures = - (f.tokio_udp_0_1_0.unstable-futures or false) || - (tokio_0_1_5.unstable-futures or false) || - (f.tokio_0_1_5.unstable-futures or false); - }) [ futures_0_1_21_features mio_0_6_14_features tokio_executor_0_1_2_features tokio_io_0_1_6_features tokio_reactor_0_1_1_features tokio_tcp_0_1_0_features tokio_threadpool_0_1_2_features tokio_timer_0_2_1_features tokio_udp_0_1_0_features ]; - tokio_core_0_1_17 = { features?(tokio_core_0_1_17_features {}) }: tokio_core_0_1_17_ { - dependencies = mapFeatures features ([ bytes_0_4_7 futures_0_1_21 iovec_0_1_2 log_0_4_1 mio_0_6_14 scoped_tls_0_1_1 tokio_0_1_5 tokio_executor_0_1_2 tokio_io_0_1_6 tokio_reactor_0_1_1 tokio_timer_0_2_1 ]); - }; - tokio_core_0_1_17_features = f: updateFeatures f (rec { - bytes_0_4_7.default = true; - futures_0_1_21.default = true; - iovec_0_1_2.default = true; - log_0_4_1.default = true; - mio_0_6_14.default = true; - scoped_tls_0_1_1.default = true; - tokio_0_1_5.default = true; - tokio_core_0_1_17.default = (f.tokio_core_0_1_17.default or true); - tokio_executor_0_1_2.default = true; - tokio_io_0_1_6.default = true; - tokio_reactor_0_1_1.default = true; - tokio_timer_0_2_1.default = true; - }) [ bytes_0_4_7_features futures_0_1_21_features iovec_0_1_2_features log_0_4_1_features mio_0_6_14_features scoped_tls_0_1_1_features tokio_0_1_5_features tokio_executor_0_1_2_features tokio_io_0_1_6_features tokio_reactor_0_1_1_features tokio_timer_0_2_1_features ]; - tokio_executor_0_1_2 = { features?(tokio_executor_0_1_2_features {}) }: tokio_executor_0_1_2_ { - dependencies = mapFeatures features ([ futures_0_1_21 ]); - features = mkFeatures (features.tokio_executor_0_1_2 or {}); - }; - tokio_executor_0_1_2_features = f: updateFeatures f (rec { - futures_0_1_21.default = true; - tokio_executor_0_1_2.default = (f.tokio_executor_0_1_2.default or true); - tokio_executor_0_1_2.futures2 = - (f.tokio_executor_0_1_2.futures2 or false) || - (f.tokio_executor_0_1_2.unstable-futures or false) || - (tokio_executor_0_1_2.unstable-futures or false); - }) [ futures_0_1_21_features ]; - tokio_io_0_1_6 = { features?(tokio_io_0_1_6_features {}) }: tokio_io_0_1_6_ { - dependencies = mapFeatures features ([ bytes_0_4_7 futures_0_1_21 log_0_4_1 ]); - }; - tokio_io_0_1_6_features = f: updateFeatures f (rec { - bytes_0_4_7.default = true; - futures_0_1_21.default = true; - log_0_4_1.default = true; - tokio_io_0_1_6.default = (f.tokio_io_0_1_6.default or true); - }) [ bytes_0_4_7_features futures_0_1_21_features log_0_4_1_features ]; - tokio_proto_0_1_1 = { features?(tokio_proto_0_1_1_features {}) }: tokio_proto_0_1_1_ { - dependencies = mapFeatures features ([ futures_0_1_21 log_0_3_9 net2_0_2_32 rand_0_3_22 slab_0_3_0 smallvec_0_2_1 take_0_1_0 tokio_core_0_1_17 tokio_io_0_1_6 tokio_service_0_1_0 ]); - }; - tokio_proto_0_1_1_features = f: updateFeatures f (rec { - futures_0_1_21.default = true; - log_0_3_9.default = true; - net2_0_2_32.default = true; - rand_0_3_22.default = true; - slab_0_3_0.default = true; - smallvec_0_2_1.default = true; - take_0_1_0.default = true; - tokio_core_0_1_17.default = true; - tokio_io_0_1_6.default = true; - tokio_proto_0_1_1.default = (f.tokio_proto_0_1_1.default or true); - tokio_service_0_1_0.default = true; - }) [ futures_0_1_21_features log_0_3_9_features net2_0_2_32_features rand_0_3_22_features slab_0_3_0_features smallvec_0_2_1_features take_0_1_0_features tokio_core_0_1_17_features tokio_io_0_1_6_features tokio_service_0_1_0_features ]; - tokio_reactor_0_1_1 = { features?(tokio_reactor_0_1_1_features {}) }: tokio_reactor_0_1_1_ { - dependencies = mapFeatures features ([ futures_0_1_21 log_0_4_1 mio_0_6_14 slab_0_4_0 tokio_executor_0_1_2 tokio_io_0_1_6 ]); - features = mkFeatures (features.tokio_reactor_0_1_1 or {}); - }; - tokio_reactor_0_1_1_features = f: updateFeatures f (rec { - futures_0_1_21.default = true; - log_0_4_1.default = true; - mio_0_6_14.default = true; - slab_0_4_0.default = true; - tokio_executor_0_1_2.default = true; - tokio_io_0_1_6.default = true; - tokio_reactor_0_1_1.default = (f.tokio_reactor_0_1_1.default or true); - tokio_reactor_0_1_1.futures2 = - (f.tokio_reactor_0_1_1.futures2 or false) || - (f.tokio_reactor_0_1_1.unstable-futures or false) || - (tokio_reactor_0_1_1.unstable-futures or false); - }) [ futures_0_1_21_features log_0_4_1_features mio_0_6_14_features slab_0_4_0_features tokio_executor_0_1_2_features tokio_io_0_1_6_features ]; - tokio_service_0_1_0 = { features?(tokio_service_0_1_0_features {}) }: tokio_service_0_1_0_ { - dependencies = mapFeatures features ([ futures_0_1_21 ]); - }; - tokio_service_0_1_0_features = f: updateFeatures f (rec { - futures_0_1_21.default = true; - tokio_service_0_1_0.default = (f.tokio_service_0_1_0.default or true); - }) [ futures_0_1_21_features ]; - tokio_signal_0_1_5 = { features?(tokio_signal_0_1_5_features {}) }: tokio_signal_0_1_5_ { - dependencies = mapFeatures features ([ futures_0_1_21 mio_0_6_14 tokio_core_0_1_17 tokio_io_0_1_6 ]) - ++ (if (kernel == "linux" || kernel == "darwin") then mapFeatures features ([ libc_0_2_40 mio_uds_0_6_4 ]) else []) - ++ (if kernel == "windows" then mapFeatures features ([ winapi_0_3_4 ]) else []); - }; - tokio_signal_0_1_5_features = f: updateFeatures f (rec { - futures_0_1_21.default = true; - libc_0_2_40.default = true; - mio_0_6_14.default = true; - mio_uds_0_6_4.default = true; - tokio_core_0_1_17.default = true; - tokio_io_0_1_6.default = true; - tokio_signal_0_1_5.default = (f.tokio_signal_0_1_5.default or true); - winapi_0_3_4.default = true; - winapi_0_3_4.minwindef = true; - winapi_0_3_4.wincon = true; - }) [ futures_0_1_21_features mio_0_6_14_features tokio_core_0_1_17_features tokio_io_0_1_6_features libc_0_2_40_features mio_uds_0_6_4_features winapi_0_3_4_features ]; - tokio_tcp_0_1_0 = { features?(tokio_tcp_0_1_0_features {}) }: tokio_tcp_0_1_0_ { - dependencies = mapFeatures features ([ bytes_0_4_7 futures_0_1_21 iovec_0_1_2 mio_0_6_14 tokio_io_0_1_6 tokio_reactor_0_1_1 ]); - features = mkFeatures (features.tokio_tcp_0_1_0 or {}); - }; - tokio_tcp_0_1_0_features = f: updateFeatures f (rec { - bytes_0_4_7.default = true; - futures_0_1_21.default = true; - iovec_0_1_2.default = true; - mio_0_6_14.default = true; - tokio_io_0_1_6.default = true; - tokio_reactor_0_1_1.default = true; - tokio_tcp_0_1_0.default = (f.tokio_tcp_0_1_0.default or true); - tokio_tcp_0_1_0.futures2 = - (f.tokio_tcp_0_1_0.futures2 or false) || - (f.tokio_tcp_0_1_0.unstable-futures or false) || - (tokio_tcp_0_1_0.unstable-futures or false); - }) [ bytes_0_4_7_features futures_0_1_21_features iovec_0_1_2_features mio_0_6_14_features tokio_io_0_1_6_features tokio_reactor_0_1_1_features ]; - tokio_threadpool_0_1_2 = { features?(tokio_threadpool_0_1_2_features {}) }: tokio_threadpool_0_1_2_ { - dependencies = mapFeatures features ([ crossbeam_deque_0_3_0 futures_0_1_21 log_0_4_1 num_cpus_1_8_0 rand_0_4_2 tokio_executor_0_1_2 ]); - features = mkFeatures (features.tokio_threadpool_0_1_2 or {}); - }; - tokio_threadpool_0_1_2_features = f: updateFeatures f (rec { - crossbeam_deque_0_3_0.default = true; - futures_0_1_21.default = true; - log_0_4_1.default = true; - num_cpus_1_8_0.default = true; - rand_0_4_2.default = true; - tokio_executor_0_1_2.default = true; - tokio_executor_0_1_2.unstable-futures = - (f.tokio_executor_0_1_2.unstable-futures or false) || - (tokio_threadpool_0_1_2.unstable-futures or false) || - (f.tokio_threadpool_0_1_2.unstable-futures or false); - tokio_threadpool_0_1_2.default = (f.tokio_threadpool_0_1_2.default or true); - tokio_threadpool_0_1_2.futures2 = - (f.tokio_threadpool_0_1_2.futures2 or false) || - (f.tokio_threadpool_0_1_2.unstable-futures or false) || - (tokio_threadpool_0_1_2.unstable-futures or false); - }) [ crossbeam_deque_0_3_0_features futures_0_1_21_features log_0_4_1_features num_cpus_1_8_0_features rand_0_4_2_features tokio_executor_0_1_2_features ]; - tokio_timer_0_2_1 = { features?(tokio_timer_0_2_1_features {}) }: tokio_timer_0_2_1_ { - dependencies = mapFeatures features ([ futures_0_1_21 tokio_executor_0_1_2 ]); - }; - tokio_timer_0_2_1_features = f: updateFeatures f (rec { - futures_0_1_21.default = true; - tokio_executor_0_1_2.default = true; - tokio_timer_0_2_1.default = (f.tokio_timer_0_2_1.default or true); - }) [ futures_0_1_21_features tokio_executor_0_1_2_features ]; - tokio_tls_0_1_4 = { features?(tokio_tls_0_1_4_features {}) }: tokio_tls_0_1_4_ { - dependencies = mapFeatures features ([ futures_0_1_21 native_tls_0_1_5 tokio_core_0_1_17 tokio_io_0_1_6 ]) - ++ (if !(kernel == "darwin") && !(kernel == "windows") && !(kernel == "ios") then mapFeatures features ([]) else []) - ++ (if kernel == "darwin" || kernel == "ios" then mapFeatures features ([]) else []) - ++ (if kernel == "windows" then mapFeatures features ([]) else []); - }; - tokio_tls_0_1_4_features = f: updateFeatures f (rec { - futures_0_1_21.default = true; - native_tls_0_1_5.default = true; - tokio_core_0_1_17.default = true; - tokio_io_0_1_6.default = true; - tokio_tls_0_1_4.default = (f.tokio_tls_0_1_4.default or true); - }) [ futures_0_1_21_features native_tls_0_1_5_features tokio_core_0_1_17_features tokio_io_0_1_6_features ]; - tokio_udp_0_1_0 = { features?(tokio_udp_0_1_0_features {}) }: tokio_udp_0_1_0_ { - dependencies = mapFeatures features ([ bytes_0_4_7 futures_0_1_21 log_0_4_1 mio_0_6_14 tokio_io_0_1_6 tokio_reactor_0_1_1 ]); - features = mkFeatures (features.tokio_udp_0_1_0 or {}); - }; - tokio_udp_0_1_0_features = f: updateFeatures f (rec { - bytes_0_4_7.default = true; - futures_0_1_21.default = true; - log_0_4_1.default = true; - mio_0_6_14.default = true; - tokio_io_0_1_6.default = true; - tokio_reactor_0_1_1.default = true; - tokio_udp_0_1_0.default = (f.tokio_udp_0_1_0.default or true); - tokio_udp_0_1_0.futures2 = - (f.tokio_udp_0_1_0.futures2 or false) || - (f.tokio_udp_0_1_0.unstable-futures or false) || - (tokio_udp_0_1_0.unstable-futures or false); - }) [ bytes_0_4_7_features futures_0_1_21_features log_0_4_1_features mio_0_6_14_features tokio_io_0_1_6_features tokio_reactor_0_1_1_features ]; - trust_dns_proto_0_3_3 = { features?(trust_dns_proto_0_3_3_features {}) }: trust_dns_proto_0_3_3_ { - dependencies = mapFeatures features ([ byteorder_1_2_2 error_chain_0_1_12 futures_0_1_21 idna_0_1_4 lazy_static_1_0_0 log_0_4_1 rand_0_4_2 tokio_core_0_1_17 tokio_io_0_1_6 url_1_7_0 ]); - features = mkFeatures (features.trust_dns_proto_0_3_3 or {}); - }; - trust_dns_proto_0_3_3_features = f: updateFeatures f (rec { - byteorder_1_2_2.default = true; - error_chain_0_1_12.default = (f.error_chain_0_1_12.default or false); - futures_0_1_21.default = true; - idna_0_1_4.default = true; - lazy_static_1_0_0.default = true; - log_0_4_1.default = true; - rand_0_4_2.default = true; - tokio_core_0_1_17.default = true; - tokio_io_0_1_6.default = true; - trust_dns_proto_0_3_3.data-encoding = - (f.trust_dns_proto_0_3_3.data-encoding or false) || - (f.trust_dns_proto_0_3_3.dnssec or false) || - (trust_dns_proto_0_3_3.dnssec or false); - trust_dns_proto_0_3_3.default = (f.trust_dns_proto_0_3_3.default or true); - trust_dns_proto_0_3_3.dnssec = - (f.trust_dns_proto_0_3_3.dnssec or false) || - (f.trust_dns_proto_0_3_3.dnssec-openssl or false) || - (trust_dns_proto_0_3_3.dnssec-openssl or false) || - (f.trust_dns_proto_0_3_3.dnssec-ring or false) || - (trust_dns_proto_0_3_3.dnssec-ring or false); - trust_dns_proto_0_3_3.openssl = - (f.trust_dns_proto_0_3_3.openssl or false) || - (f.trust_dns_proto_0_3_3.dnssec-openssl or false) || - (trust_dns_proto_0_3_3.dnssec-openssl or false); - trust_dns_proto_0_3_3.ring = - (f.trust_dns_proto_0_3_3.ring or false) || - (f.trust_dns_proto_0_3_3.dnssec-ring or false) || - (trust_dns_proto_0_3_3.dnssec-ring or false); - trust_dns_proto_0_3_3.untrusted = - (f.trust_dns_proto_0_3_3.untrusted or false) || - (f.trust_dns_proto_0_3_3.dnssec-ring or false) || - (trust_dns_proto_0_3_3.dnssec-ring or false); - url_1_7_0.default = true; - }) [ byteorder_1_2_2_features error_chain_0_1_12_features futures_0_1_21_features idna_0_1_4_features lazy_static_1_0_0_features log_0_4_1_features rand_0_4_2_features tokio_core_0_1_17_features tokio_io_0_1_6_features url_1_7_0_features ]; - trust_dns_resolver_0_8_2 = { features?(trust_dns_resolver_0_8_2_features {}) }: trust_dns_resolver_0_8_2_ { - dependencies = mapFeatures features ([ error_chain_0_1_12 futures_0_1_21 lazy_static_1_0_0 log_0_4_1 lru_cache_0_1_1 resolv_conf_0_6_0 tokio_core_0_1_17 trust_dns_proto_0_3_3 ]) - ++ (if kernel == "windows" then mapFeatures features ([ ipconfig_0_1_6 ]) else []); - features = mkFeatures (features.trust_dns_resolver_0_8_2 or {}); - }; - trust_dns_resolver_0_8_2_features = f: updateFeatures f (rec { - error_chain_0_1_12.default = (f.error_chain_0_1_12.default or false); - futures_0_1_21.default = true; - ipconfig_0_1_6.default = true; - lazy_static_1_0_0.default = true; - log_0_4_1.default = true; - lru_cache_0_1_1.default = true; - resolv_conf_0_6_0.default = true; - resolv_conf_0_6_0.system = true; - tokio_core_0_1_17.default = true; - trust_dns_proto_0_3_3.default = true; - trust_dns_proto_0_3_3.dnssec-openssl = - (f.trust_dns_proto_0_3_3.dnssec-openssl or false) || - (trust_dns_resolver_0_8_2.dnssec-openssl or false) || - (f.trust_dns_resolver_0_8_2.dnssec-openssl or false); - trust_dns_proto_0_3_3.dnssec-ring = - (f.trust_dns_proto_0_3_3.dnssec-ring or false) || - (trust_dns_resolver_0_8_2.dnssec-ring or false) || - (f.trust_dns_resolver_0_8_2.dnssec-ring or false); - trust_dns_resolver_0_8_2.default = (f.trust_dns_resolver_0_8_2.default or true); - trust_dns_resolver_0_8_2.dnssec = - (f.trust_dns_resolver_0_8_2.dnssec or false) || - (f.trust_dns_resolver_0_8_2.dnssec-openssl or false) || - (trust_dns_resolver_0_8_2.dnssec-openssl or false) || - (f.trust_dns_resolver_0_8_2.dnssec-ring or false) || - (trust_dns_resolver_0_8_2.dnssec-ring or false); - }) [ error_chain_0_1_12_features futures_0_1_21_features lazy_static_1_0_0_features log_0_4_1_features lru_cache_0_1_1_features resolv_conf_0_6_0_features tokio_core_0_1_17_features trust_dns_proto_0_3_3_features ipconfig_0_1_6_features ]; - twoway_0_1_8 = { features?(twoway_0_1_8_features {}) }: twoway_0_1_8_ { - dependencies = mapFeatures features ([ memchr_2_0_1 ]); - features = mkFeatures (features.twoway_0_1_8 or {}); - }; - twoway_0_1_8_features = f: updateFeatures f (rec { - memchr_2_0_1.default = (f.memchr_2_0_1.default or false); - memchr_2_0_1.use_std = - (f.memchr_2_0_1.use_std or false) || - (twoway_0_1_8.use_std or false) || - (f.twoway_0_1_8.use_std or false); - twoway_0_1_8.default = (f.twoway_0_1_8.default or true); - twoway_0_1_8.galil-seiferas = - (f.twoway_0_1_8.galil-seiferas or false) || - (f.twoway_0_1_8.benchmarks or false) || - (twoway_0_1_8.benchmarks or false); - twoway_0_1_8.jetscii = - (f.twoway_0_1_8.jetscii or false) || - (f.twoway_0_1_8.all or false) || - (twoway_0_1_8.all or false); - twoway_0_1_8.pattern = - (f.twoway_0_1_8.pattern or false) || - (f.twoway_0_1_8.all or false) || - (twoway_0_1_8.all or false) || - (f.twoway_0_1_8.benchmarks or false) || - (twoway_0_1_8.benchmarks or false); - twoway_0_1_8.pcmp = - (f.twoway_0_1_8.pcmp or false) || - (f.twoway_0_1_8.all or false) || - (twoway_0_1_8.all or false); - twoway_0_1_8.test-set = - (f.twoway_0_1_8.test-set or false) || - (f.twoway_0_1_8.all or false) || - (twoway_0_1_8.all or false); - twoway_0_1_8.unchecked-index = - (f.twoway_0_1_8.unchecked-index or false) || - (f.twoway_0_1_8.benchmarks or false) || - (twoway_0_1_8.benchmarks or false) || - (f.twoway_0_1_8.pcmp or false) || - (twoway_0_1_8.pcmp or false); - twoway_0_1_8.use_std = - (f.twoway_0_1_8.use_std or false) || - (f.twoway_0_1_8.default or false) || - (twoway_0_1_8.default or false); - }) [ memchr_2_0_1_features ]; - typed_arena_1_3_0 = { features?(typed_arena_1_3_0_features {}) }: typed_arena_1_3_0_ {}; - typed_arena_1_3_0_features = f: updateFeatures f (rec { - typed_arena_1_3_0.default = (f.typed_arena_1_3_0.default or true); - }) []; - ucd_util_0_1_1 = { features?(ucd_util_0_1_1_features {}) }: ucd_util_0_1_1_ {}; - ucd_util_0_1_1_features = f: updateFeatures f (rec { - ucd_util_0_1_1.default = (f.ucd_util_0_1_1.default or true); - }) []; - unicase_1_4_2 = { features?(unicase_1_4_2_features {}) }: unicase_1_4_2_ { - dependencies = mapFeatures features ([]); - buildDependencies = mapFeatures features ([ version_check_0_1_3 ]); - features = mkFeatures (features.unicase_1_4_2 or {}); - }; - unicase_1_4_2_features = f: updateFeatures f (rec { - unicase_1_4_2.default = (f.unicase_1_4_2.default or true); - unicase_1_4_2.heapsize = - (f.unicase_1_4_2.heapsize or false) || - (f.unicase_1_4_2.heap_size or false) || - (unicase_1_4_2.heap_size or false); - unicase_1_4_2.heapsize_plugin = - (f.unicase_1_4_2.heapsize_plugin or false) || - (f.unicase_1_4_2.heap_size or false) || - (unicase_1_4_2.heap_size or false); - version_check_0_1_3.default = true; - }) [ version_check_0_1_3_features ]; - unicase_2_1_0 = { features?(unicase_2_1_0_features {}) }: unicase_2_1_0_ { - buildDependencies = mapFeatures features ([ version_check_0_1_3 ]); - features = mkFeatures (features.unicase_2_1_0 or {}); - }; - unicase_2_1_0_features = f: updateFeatures f (rec { - unicase_2_1_0.default = (f.unicase_2_1_0.default or true); - version_check_0_1_3.default = true; - }) [ version_check_0_1_3_features ]; - unicode_bidi_0_3_4 = { features?(unicode_bidi_0_3_4_features {}) }: unicode_bidi_0_3_4_ { - dependencies = mapFeatures features ([ matches_0_1_6 ]); - features = mkFeatures (features.unicode_bidi_0_3_4 or {}); - }; - unicode_bidi_0_3_4_features = f: updateFeatures f (rec { - matches_0_1_6.default = true; - unicode_bidi_0_3_4.default = (f.unicode_bidi_0_3_4.default or true); - unicode_bidi_0_3_4.flame = - (f.unicode_bidi_0_3_4.flame or false) || - (f.unicode_bidi_0_3_4.flame_it or false) || - (unicode_bidi_0_3_4.flame_it or false); - unicode_bidi_0_3_4.flamer = - (f.unicode_bidi_0_3_4.flamer or false) || - (f.unicode_bidi_0_3_4.flame_it or false) || - (unicode_bidi_0_3_4.flame_it or false); - unicode_bidi_0_3_4.serde = - (f.unicode_bidi_0_3_4.serde or false) || - (f.unicode_bidi_0_3_4.with_serde or false) || - (unicode_bidi_0_3_4.with_serde or false); - }) [ matches_0_1_6_features ]; - unicode_normalization_0_1_5 = { features?(unicode_normalization_0_1_5_features {}) }: unicode_normalization_0_1_5_ {}; - unicode_normalization_0_1_5_features = f: updateFeatures f (rec { - unicode_normalization_0_1_5.default = (f.unicode_normalization_0_1_5.default or true); - }) []; - unicode_width_0_1_4 = { features?(unicode_width_0_1_4_features {}) }: unicode_width_0_1_4_ { - features = mkFeatures (features.unicode_width_0_1_4 or {}); - }; - unicode_width_0_1_4_features = f: updateFeatures f (rec { - unicode_width_0_1_4.default = (f.unicode_width_0_1_4.default or true); - }) []; - unicode_xid_0_0_4 = { features?(unicode_xid_0_0_4_features {}) }: unicode_xid_0_0_4_ { - features = mkFeatures (features.unicode_xid_0_0_4 or {}); - }; - unicode_xid_0_0_4_features = f: updateFeatures f (rec { - unicode_xid_0_0_4.default = (f.unicode_xid_0_0_4.default or true); - }) []; - unicode_xid_0_1_0 = { features?(unicode_xid_0_1_0_features {}) }: unicode_xid_0_1_0_ { - features = mkFeatures (features.unicode_xid_0_1_0 or {}); - }; - unicode_xid_0_1_0_features = f: updateFeatures f (rec { - unicode_xid_0_1_0.default = (f.unicode_xid_0_1_0.default or true); - }) []; - unicode_categories_0_1_1 = { features?(unicode_categories_0_1_1_features {}) }: unicode_categories_0_1_1_ {}; - unicode_categories_0_1_1_features = f: updateFeatures f (rec { - unicode_categories_0_1_1.default = (f.unicode_categories_0_1_1.default or true); - }) []; - unidecode_0_3_0 = { features?(unidecode_0_3_0_features {}) }: unidecode_0_3_0_ {}; - unidecode_0_3_0_features = f: updateFeatures f (rec { - unidecode_0_3_0.default = (f.unidecode_0_3_0.default or true); - }) []; - unreachable_1_0_0 = { features?(unreachable_1_0_0_features {}) }: unreachable_1_0_0_ { - dependencies = mapFeatures features ([ void_1_0_2 ]); - }; - unreachable_1_0_0_features = f: updateFeatures f (rec { - unreachable_1_0_0.default = (f.unreachable_1_0_0.default or true); - void_1_0_2.default = (f.void_1_0_2.default or false); - }) [ void_1_0_2_features ]; - untrusted_0_5_1 = { features?(untrusted_0_5_1_features {}) }: untrusted_0_5_1_ {}; - untrusted_0_5_1_features = f: updateFeatures f (rec { - untrusted_0_5_1.default = (f.untrusted_0_5_1.default or true); - }) []; - url_1_7_0 = { features?(url_1_7_0_features {}) }: url_1_7_0_ { - dependencies = mapFeatures features ([ idna_0_1_4 matches_0_1_6 percent_encoding_1_0_1 ] - ++ (if features.url_1_7_0.encoding or false then [ encoding_0_2_33 ] else [])); - features = mkFeatures (features.url_1_7_0 or {}); - }; - url_1_7_0_features = f: updateFeatures f (rec { - encoding_0_2_33.default = true; - idna_0_1_4.default = true; - matches_0_1_6.default = true; - percent_encoding_1_0_1.default = true; - url_1_7_0.default = (f.url_1_7_0.default or true); - url_1_7_0.encoding = - (f.url_1_7_0.encoding or false) || - (f.url_1_7_0.query_encoding or false) || - (url_1_7_0.query_encoding or false); - url_1_7_0.heapsize = - (f.url_1_7_0.heapsize or false) || - (f.url_1_7_0.heap_size or false) || - (url_1_7_0.heap_size or false); - }) [ encoding_0_2_33_features idna_0_1_4_features matches_0_1_6_features percent_encoding_1_0_1_features ]; - url_serde_0_2_0 = { features?(url_serde_0_2_0_features {}) }: url_serde_0_2_0_ { - dependencies = mapFeatures features ([ serde_1_0_43 url_1_7_0 ]); - }; - url_serde_0_2_0_features = f: updateFeatures f (rec { - serde_1_0_43.default = true; - url_1_7_0.default = true; - url_serde_0_2_0.default = (f.url_serde_0_2_0.default or true); - }) [ serde_1_0_43_features url_1_7_0_features ]; - utf8_ranges_1_0_0 = { features?(utf8_ranges_1_0_0_features {}) }: utf8_ranges_1_0_0_ {}; - utf8_ranges_1_0_0_features = f: updateFeatures f (rec { - utf8_ranges_1_0_0.default = (f.utf8_ranges_1_0_0.default or true); - }) []; - uuid_0_5_1 = { features?(uuid_0_5_1_features {}) }: uuid_0_5_1_ { - dependencies = mapFeatures features ([ ] - ++ (if features.uuid_0_5_1.rand or false then [ rand_0_3_22 ] else [])); - features = mkFeatures (features.uuid_0_5_1 or {}); - }; - uuid_0_5_1_features = f: updateFeatures f (rec { - rand_0_3_22.default = true; - uuid_0_5_1.default = (f.uuid_0_5_1.default or true); - uuid_0_5_1.md5 = - (f.uuid_0_5_1.md5 or false) || - (f.uuid_0_5_1.v3 or false) || - (uuid_0_5_1.v3 or false); - uuid_0_5_1.rand = - (f.uuid_0_5_1.rand or false) || - (f.uuid_0_5_1.v1 or false) || - (uuid_0_5_1.v1 or false) || - (f.uuid_0_5_1.v4 or false) || - (uuid_0_5_1.v4 or false); - uuid_0_5_1.sha1 = - (f.uuid_0_5_1.sha1 or false) || - (f.uuid_0_5_1.v5 or false) || - (uuid_0_5_1.v5 or false); - }) [ rand_0_3_22_features ]; - uuid_0_6_3 = { features?(uuid_0_6_3_features {}) }: uuid_0_6_3_ { - dependencies = mapFeatures features ([ cfg_if_0_1_2 ] - ++ (if features.uuid_0_6_3.rand or false then [ rand_0_4_2 ] else [])); - features = mkFeatures (features.uuid_0_6_3 or {}); - }; - uuid_0_6_3_features = f: updateFeatures f (rec { - cfg_if_0_1_2.default = true; - rand_0_4_2.default = true; - uuid_0_6_3.default = (f.uuid_0_6_3.default or true); - uuid_0_6_3.md5 = - (f.uuid_0_6_3.md5 or false) || - (f.uuid_0_6_3.v3 or false) || - (uuid_0_6_3.v3 or false); - uuid_0_6_3.rand = - (f.uuid_0_6_3.rand or false) || - (f.uuid_0_6_3.v3 or false) || - (uuid_0_6_3.v3 or false) || - (f.uuid_0_6_3.v4 or false) || - (uuid_0_6_3.v4 or false) || - (f.uuid_0_6_3.v5 or false) || - (uuid_0_6_3.v5 or false); - uuid_0_6_3.serde = - (f.uuid_0_6_3.serde or false) || - (f.uuid_0_6_3.playground or false) || - (uuid_0_6_3.playground or false); - uuid_0_6_3.sha1 = - (f.uuid_0_6_3.sha1 or false) || - (f.uuid_0_6_3.v5 or false) || - (uuid_0_6_3.v5 or false); - uuid_0_6_3.std = - (f.uuid_0_6_3.std or false) || - (f.uuid_0_6_3.default or false) || - (uuid_0_6_3.default or false) || - (f.uuid_0_6_3.use_std or false) || - (uuid_0_6_3.use_std or false); - uuid_0_6_3.v1 = - (f.uuid_0_6_3.v1 or false) || - (f.uuid_0_6_3.playground or false) || - (uuid_0_6_3.playground or false); - uuid_0_6_3.v3 = - (f.uuid_0_6_3.v3 or false) || - (f.uuid_0_6_3.playground or false) || - (uuid_0_6_3.playground or false); - uuid_0_6_3.v4 = - (f.uuid_0_6_3.v4 or false) || - (f.uuid_0_6_3.playground or false) || - (uuid_0_6_3.playground or false); - uuid_0_6_3.v5 = - (f.uuid_0_6_3.v5 or false) || - (f.uuid_0_6_3.playground or false) || - (uuid_0_6_3.playground or false); - }) [ cfg_if_0_1_2_features rand_0_4_2_features ]; - vcpkg_0_2_3 = { features?(vcpkg_0_2_3_features {}) }: vcpkg_0_2_3_ {}; - vcpkg_0_2_3_features = f: updateFeatures f (rec { - vcpkg_0_2_3.default = (f.vcpkg_0_2_3.default or true); - }) []; - vec_map_0_8_0 = { features?(vec_map_0_8_0_features {}) }: vec_map_0_8_0_ { - dependencies = mapFeatures features ([]); - features = mkFeatures (features.vec_map_0_8_0 or {}); - }; - vec_map_0_8_0_features = f: updateFeatures f (rec { - vec_map_0_8_0.default = (f.vec_map_0_8_0.default or true); - vec_map_0_8_0.serde = - (f.vec_map_0_8_0.serde or false) || - (f.vec_map_0_8_0.eders or false) || - (vec_map_0_8_0.eders or false); - vec_map_0_8_0.serde_derive = - (f.vec_map_0_8_0.serde_derive or false) || - (f.vec_map_0_8_0.eders or false) || - (vec_map_0_8_0.eders or false); - }) []; - version_check_0_1_3 = { features?(version_check_0_1_3_features {}) }: version_check_0_1_3_ {}; - version_check_0_1_3_features = f: updateFeatures f (rec { - version_check_0_1_3.default = (f.version_check_0_1_3.default or true); - }) []; - void_1_0_2 = { features?(void_1_0_2_features {}) }: void_1_0_2_ { - features = mkFeatures (features.void_1_0_2 or {}); - }; - void_1_0_2_features = f: updateFeatures f (rec { - void_1_0_2.default = (f.void_1_0_2.default or true); - void_1_0_2.std = - (f.void_1_0_2.std or false) || - (f.void_1_0_2.default or false) || - (void_1_0_2.default or false); - }) []; - walkdir_1_0_7 = { features?(walkdir_1_0_7_features {}) }: walkdir_1_0_7_ { - dependencies = mapFeatures features ([ same_file_0_1_3 ]) - ++ (if kernel == "windows" then mapFeatures features ([ kernel32_sys_0_2_2 winapi_0_2_8 ]) else []); - }; - walkdir_1_0_7_features = f: updateFeatures f (rec { - kernel32_sys_0_2_2.default = true; - same_file_0_1_3.default = true; - walkdir_1_0_7.default = (f.walkdir_1_0_7.default or true); - winapi_0_2_8.default = true; - }) [ same_file_0_1_3_features kernel32_sys_0_2_2_features winapi_0_2_8_features ]; - widestring_0_2_2 = { features?(widestring_0_2_2_features {}) }: widestring_0_2_2_ {}; - widestring_0_2_2_features = f: updateFeatures f (rec { - widestring_0_2_2.default = (f.widestring_0_2_2.default or true); - }) []; - winapi_0_2_8 = { features?(winapi_0_2_8_features {}) }: winapi_0_2_8_ {}; - winapi_0_2_8_features = f: updateFeatures f (rec { - winapi_0_2_8.default = (f.winapi_0_2_8.default or true); - }) []; - winapi_0_3_4 = { features?(winapi_0_3_4_features {}) }: winapi_0_3_4_ { - dependencies = (if kernel == "i686-pc-windows-gnu" then mapFeatures features ([ winapi_i686_pc_windows_gnu_0_4_0 ]) else []) - ++ (if kernel == "x86_64-pc-windows-gnu" then mapFeatures features ([ winapi_x86_64_pc_windows_gnu_0_4_0 ]) else []); - features = mkFeatures (features.winapi_0_3_4 or {}); - }; - winapi_0_3_4_features = f: updateFeatures f (rec { - winapi_0_3_4.default = (f.winapi_0_3_4.default or true); - winapi_i686_pc_windows_gnu_0_4_0.default = true; - winapi_x86_64_pc_windows_gnu_0_4_0.default = true; - }) [ winapi_i686_pc_windows_gnu_0_4_0_features winapi_x86_64_pc_windows_gnu_0_4_0_features ]; - winapi_build_0_1_1 = { features?(winapi_build_0_1_1_features {}) }: winapi_build_0_1_1_ {}; - winapi_build_0_1_1_features = f: updateFeatures f (rec { - winapi_build_0_1_1.default = (f.winapi_build_0_1_1.default or true); - }) []; - winapi_i686_pc_windows_gnu_0_4_0 = { features?(winapi_i686_pc_windows_gnu_0_4_0_features {}) }: winapi_i686_pc_windows_gnu_0_4_0_ {}; - winapi_i686_pc_windows_gnu_0_4_0_features = f: updateFeatures f (rec { - winapi_i686_pc_windows_gnu_0_4_0.default = (f.winapi_i686_pc_windows_gnu_0_4_0.default or true); - }) []; - winapi_x86_64_pc_windows_gnu_0_4_0 = { features?(winapi_x86_64_pc_windows_gnu_0_4_0_features {}) }: winapi_x86_64_pc_windows_gnu_0_4_0_ {}; - winapi_x86_64_pc_windows_gnu_0_4_0_features = f: updateFeatures f (rec { - winapi_x86_64_pc_windows_gnu_0_4_0.default = (f.winapi_x86_64_pc_windows_gnu_0_4_0.default or true); - }) []; - wincolor_0_1_6 = { features?(wincolor_0_1_6_features {}) }: wincolor_0_1_6_ { - dependencies = mapFeatures features ([ winapi_0_3_4 ]); - }; - wincolor_0_1_6_features = f: updateFeatures f (rec { - winapi_0_3_4.consoleapi = true; - winapi_0_3_4.default = true; - winapi_0_3_4.minwindef = true; - winapi_0_3_4.processenv = true; - winapi_0_3_4.winbase = true; - winapi_0_3_4.wincon = true; - wincolor_0_1_6.default = (f.wincolor_0_1_6.default or true); - }) [ winapi_0_3_4_features ]; - winreg_0_5_0 = { features?(winreg_0_5_0_features {}) }: winreg_0_5_0_ { - dependencies = mapFeatures features ([ winapi_0_3_4 ]); - features = mkFeatures (features.winreg_0_5_0 or {}); - }; - winreg_0_5_0_features = f: updateFeatures f (rec { - winapi_0_3_4.default = true; - winapi_0_3_4.handleapi = true; - winapi_0_3_4.ktmw32 = - (f.winapi_0_3_4.ktmw32 or false) || - (winreg_0_5_0.transactions or false) || - (f.winreg_0_5_0.transactions or false); - winapi_0_3_4.minwindef = true; - winapi_0_3_4.winerror = true; - winapi_0_3_4.winnt = true; - winapi_0_3_4.winreg = true; - winreg_0_5_0.default = (f.winreg_0_5_0.default or true); - winreg_0_5_0.serde = - (f.winreg_0_5_0.serde or false) || - (f.winreg_0_5_0.serialization-serde or false) || - (winreg_0_5_0.serialization-serde or false); - winreg_0_5_0.transactions = - (f.winreg_0_5_0.transactions or false) || - (f.winreg_0_5_0.serialization-serde or false) || - (winreg_0_5_0.serialization-serde or false); - }) [ winapi_0_3_4_features ]; - winutil_0_1_1 = { features?(winutil_0_1_1_features {}) }: winutil_0_1_1_ { - dependencies = (if kernel == "windows" then mapFeatures features ([ winapi_0_3_4 ]) else []); - }; - winutil_0_1_1_features = f: updateFeatures f (rec { - winapi_0_3_4.default = true; - winapi_0_3_4.processthreadsapi = true; - winapi_0_3_4.winbase = true; - winapi_0_3_4.wow64apiset = true; - winutil_0_1_1.default = (f.winutil_0_1_1.default or true); - }) [ winapi_0_3_4_features ]; - ws2_32_sys_0_2_1 = { features?(ws2_32_sys_0_2_1_features {}) }: ws2_32_sys_0_2_1_ { - dependencies = mapFeatures features ([ winapi_0_2_8 ]); - buildDependencies = mapFeatures features ([ winapi_build_0_1_1 ]); - }; - ws2_32_sys_0_2_1_features = f: updateFeatures f (rec { - winapi_0_2_8.default = true; - winapi_build_0_1_1.default = true; - ws2_32_sys_0_2_1.default = (f.ws2_32_sys_0_2_1.default or true); - }) [ winapi_0_2_8_features winapi_build_0_1_1_features ]; -}.converse_0_1_0 {} +let cargo = pkgs.callPackage ./Cargo.nix {}; +in cargo.converse {} From 02542317ea1651ea8e9dfb2ca335c9fa4a5248d0 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Fri, 18 May 2018 21:46:07 +0200 Subject: [PATCH 134/163] fix(build): Split Cargo.nix into separate file --- Cargo.nix | 5189 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 5189 insertions(+) create mode 100644 Cargo.nix diff --git a/Cargo.nix b/Cargo.nix new file mode 100644 index 000000000..f834daf8a --- /dev/null +++ b/Cargo.nix @@ -0,0 +1,5189 @@ +# Generated by carnix 0.7.2: carnix nix --src . +{ lib, buildPlatform, buildRustCrate, fetchgit }: +let kernel = buildPlatform.parsed.kernel.name; + abi = buildPlatform.parsed.abi.name; + include = includedFiles: src: builtins.filterSource (path: type: + lib.lists.any (f: + let p = toString (src + ("/" + f)); in + (path == p) || (type == "directory" && lib.strings.hasPrefix path p) + ) includedFiles + ) src; + updateFeatures = f: up: functions: builtins.deepSeq f (lib.lists.foldl' (features: fun: fun features) (lib.attrsets.recursiveUpdate f up) functions); + mapFeatures = features: map (fun: fun { features = features; }); + mkFeatures = feat: lib.lists.foldl (features: featureName: + if feat.${featureName} or false then + [ featureName ] ++ features + else + features + ) [] (builtins.attrNames feat); +in +rec { + converse = f: converse_0_1_0 { features = converse_0_1_0_features { converse_0_1_0 = f; }; }; + __all = [ (converse {}) ]; + actix_0_5_7_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "actix"; + version = "0.5.7"; + authors = [ "Nikolay Kim " ]; + sha256 = "0vvx1r6z66fmpgaq2mhlcjf1p7kg0zzl3q05y6cp9jx53xdal4zz"; + libPath = "src/lib.rs"; + build = "build.rs"; + inherit dependencies buildDependencies features; + }; + actix_web_0_6_7_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "actix-web"; + version = "0.6.7"; + authors = [ "Nikolay Kim " ]; + sha256 = "1kxbifqm90f0a2mbl01gpsqffcig5cqcink7frk09h4w43bqq231"; + libPath = "src/lib.rs"; + libName = "actix_web"; + build = "build.rs"; + inherit dependencies buildDependencies features; + }; + actix_derive_0_2_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "actix_derive"; + version = "0.2.0"; + authors = [ "Callym " "Nikolay Kim " ]; + sha256 = "0mh7wmw4kb8vy6pqzhis2y4qqfdz86c1zn4ns4knmvq3rqcjgqpa"; + procMacro = true; + build = "build.rs"; + inherit dependencies buildDependencies features; + }; + adler32_1_0_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "adler32"; + version = "1.0.2"; + authors = [ "Remi Rampin " ]; + sha256 = "1974q3nysai026zhz24df506cxwi09jdzqksll4h7ibpb5n9g1d4"; + inherit dependencies buildDependencies features; + }; + aho_corasick_0_6_4_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "aho-corasick"; + version = "0.6.4"; + authors = [ "Andrew Gallant " ]; + sha256 = "189v919mp6rzzgjp1khpn4zlq8ls81gh43x1lmc8kbkagdlpq888"; + libName = "aho_corasick"; + crateBin = [ { name = "aho-corasick-dot"; } ]; + inherit dependencies buildDependencies features; + }; + ansi_term_0_11_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "ansi_term"; + version = "0.11.0"; + authors = [ "ogham@bsago.me" "Ryan Scheel (Havvy) " "Josh Triplett " ]; + sha256 = "08fk0p2xvkqpmz3zlrwnf6l8sj2vngw464rvzspzp31sbgxbwm4v"; + inherit dependencies buildDependencies features; + }; + antidote_1_0_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "antidote"; + version = "1.0.0"; + authors = [ "Steven Fackler " ]; + sha256 = "1x2wgaw603jcjwsfvc8s2rpaqjv0aqj8mvws2ahhkvfnwkdf7icw"; + inherit dependencies buildDependencies features; + }; + arrayvec_0_4_7_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "arrayvec"; + version = "0.4.7"; + authors = [ "bluss" ]; + sha256 = "0fzgv7z1x1qnyd7j32vdcadk4k9wfx897y06mr3bw1yi52iqf4z4"; + inherit dependencies buildDependencies features; + }; + atty_0_2_10_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "atty"; + version = "0.2.10"; + authors = [ "softprops " ]; + sha256 = "1h26lssj8rwaz0xhwwm5a645r49yly211amfmd243m3m0jl49i2c"; + inherit dependencies buildDependencies features; + }; + backtrace_0_2_3_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "backtrace"; + version = "0.2.3"; + authors = [ "Alex Crichton " "The Rust Project Developers" ]; + sha256 = "12bv0zibls8wckz082jnky2ixykhixc7f72n652nd7l3ljlmkzim"; + build = "build.rs"; + inherit dependencies buildDependencies features; + }; + backtrace_0_3_7_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "backtrace"; + version = "0.3.7"; + authors = [ "Alex Crichton " "The Rust Project Developers" ]; + sha256 = "00zzcgacv516dlhxkrdw4c8vsx3bwkkdrrzi5pnxrhpd87ambjwn"; + inherit dependencies buildDependencies features; + }; + backtrace_sys_0_1_16_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "backtrace-sys"; + version = "0.1.16"; + authors = [ "Alex Crichton " ]; + sha256 = "1cn2c8q3dn06crmnk0p62czkngam4l8nf57wy33nz1y5g25pszwy"; + build = "build.rs"; + inherit dependencies buildDependencies features; + }; + base64_0_6_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "base64"; + version = "0.6.0"; + authors = [ "Alice Maz " "Marshall Pierce " ]; + sha256 = "0ql1rmczbnww3iszc0pfc6mqa47ravpsdf525vp6s8r32nyzspl5"; + inherit dependencies buildDependencies features; + }; + base64_0_9_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "base64"; + version = "0.9.1"; + authors = [ "Alice Maz " "Marshall Pierce " ]; + sha256 = "0fnsgkhn6aqbvvgbpcyzy1dbx840g0x5rvxdf82c5pv23knl0j0a"; + inherit dependencies buildDependencies features; + }; + bitflags_0_9_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "bitflags"; + version = "0.9.1"; + authors = [ "The Rust Project Developers" ]; + sha256 = "18h073l5jd88rx4qdr95fjddr9rk79pb1aqnshzdnw16cfmb9rws"; + inherit dependencies buildDependencies features; + }; + bitflags_1_0_3_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "bitflags"; + version = "1.0.3"; + authors = [ "The Rust Project Developers" ]; + sha256 = "162p4w4h1ad76awq6b5yivmls3d50m9cl27d8g588lsps6g8s5rw"; + inherit dependencies buildDependencies features; + }; + brotli_sys_0_3_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "brotli-sys"; + version = "0.3.2"; + authors = [ "Alex Crichton " ]; + sha256 = "0b68xckd06a5gvdykimgr5f0f2whrhj0lwqq6scy0viaargqkdnl"; + build = "build.rs"; + inherit dependencies buildDependencies features; + }; + brotli2_0_3_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "brotli2"; + version = "0.3.2"; + authors = [ "Alex Crichton " ]; + sha256 = "1daqrhn50rr8k03h7dd2zkjc0qn2c45q6hrmi642fnz0y5rfwm5y"; + inherit dependencies buildDependencies features; + }; + build_const_0_2_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "build_const"; + version = "0.2.1"; + authors = [ "Garrett Berg " ]; + sha256 = "15249xzi3qlm72p4glxgavwyq70fx2sp4df6ii0sdlrixrrp77pl"; + inherit dependencies buildDependencies features; + }; + bytecount_0_3_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "bytecount"; + version = "0.3.1"; + authors = [ "Andre Bogus " "Joshua Landau " ]; + sha256 = "09l2hly8vyg1rk4aafg29lif9r6lyrrryz799nxf85cjrzjphgw9"; + inherit dependencies buildDependencies features; + }; + byteorder_1_2_3_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "byteorder"; + version = "1.2.3"; + authors = [ "Andrew Gallant " ]; + sha256 = "1xghv5f5rydzsam8lnfqhfk090i8a1knb77ikbs0ik44bvrw2ij3"; + inherit dependencies buildDependencies features; + }; + bytes_0_4_7_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "bytes"; + version = "0.4.7"; + authors = [ "Carl Lerche " ]; + sha256 = "1icr74r099d0c0a2q1pz51182z7911g92h2j60al351kz78dzv3f"; + inherit dependencies buildDependencies features; + }; + cargo_metadata_0_5_4_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "cargo_metadata"; + version = "0.5.4"; + authors = [ "Oliver Schneider " ]; + sha256 = "0g45nw8kb2yi78g97y6rf0phxd91ny12gs5qy89jwivaqcpc5gyd"; + inherit dependencies buildDependencies features; + }; + cc_1_0_15_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "cc"; + version = "1.0.15"; + authors = [ "Alex Crichton " ]; + sha256 = "1zmcv4zf888byhay2qakqlc9b8snhy5ccfs35zb6flywmlj8f2c0"; + inherit dependencies buildDependencies features; + }; + cfg_if_0_1_3_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "cfg-if"; + version = "0.1.3"; + authors = [ "Alex Crichton " ]; + sha256 = "0hphfz5qg40gr5p18gmgy2rzkqj019lii3n0dy3s0a6lnl9106k6"; + inherit dependencies buildDependencies features; + }; + chrono_0_4_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "chrono"; + version = "0.4.2"; + authors = [ "Kang Seonghoon " "Brandon W Maister " ]; + sha256 = "1zp63v1g56kfjnazmqg8s4gb66l0ra8ggn3gzqbf9sr8d5lnfzak"; + inherit dependencies buildDependencies features; + }; + clap_2_31_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "clap"; + version = "2.31.2"; + authors = [ "Kevin K. " ]; + sha256 = "0r24ziw85a8y1sf2l21y4mvv5qan3rjafcshpyfsjfadqfxsij72"; + inherit dependencies buildDependencies features; + }; + comrak_0_2_12_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "comrak"; + version = "0.2.12"; + authors = [ "Ashe Connor " ]; + sha256 = "14n2xpvlncy36ycf53iv26wszv8nd59br5sjlc0b29qjajfa34z4"; + crateBin = [ { name = "comrak"; } ]; + inherit dependencies buildDependencies features; + }; + converse_0_1_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "converse"; + version = "0.1.0"; + authors = [ "Vincent Ambo " ]; + src = ./.; + inherit dependencies buildDependencies features; + }; + cookie_0_10_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "cookie"; + version = "0.10.1"; + authors = [ "Alex Crichton " "Sergio Benitez " ]; + sha256 = "0sipihjzmipb13i2hzlvzsyljj00cjs7vx1ymslxr9m6kl2y0qpq"; + inherit dependencies buildDependencies features; + }; + core_foundation_0_2_3_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "core-foundation"; + version = "0.2.3"; + authors = [ "The Servo Project Developers" ]; + sha256 = "1g0vpya5h2wa0nlz4a74jar6y8z09f0p76zbzfqrm3dbfsrld1pm"; + inherit dependencies buildDependencies features; + }; + core_foundation_sys_0_2_3_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "core-foundation-sys"; + version = "0.2.3"; + authors = [ "The Servo Project Developers" ]; + sha256 = "19s0d03294m9s5j8cvy345db3gkhs2y02j5268ap0c6ky5apl53s"; + build = "build.rs"; + inherit dependencies buildDependencies features; + }; + crc_1_8_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "crc"; + version = "1.8.1"; + authors = [ "Rui Hu " ]; + sha256 = "00m9jjqrddp3bqyanvyxv0hf6s56bx1wy51vcdcxg4n2jdhg109s"; + inherit dependencies buildDependencies features; + }; + crossbeam_channel_0_1_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "crossbeam-channel"; + version = "0.1.2"; + authors = [ "The Crossbeam Project Developers" ]; + sha256 = "008xqz8w58sl43fmwpqqf08lp33sjq9gnmbgzw04l6ry7kidwm56"; + inherit dependencies buildDependencies features; + }; + crossbeam_deque_0_2_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "crossbeam-deque"; + version = "0.2.0"; + authors = [ "The Crossbeam Project Developers" ]; + sha256 = "1h3n1p1qy45b6388j3svfy1m72xlcx9j9a5y0mww6jz8fmknipnb"; + inherit dependencies buildDependencies features; + }; + crossbeam_deque_0_3_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "crossbeam-deque"; + version = "0.3.1"; + authors = [ "The Crossbeam Project Developers" ]; + sha256 = "1km0mavyp9ddwb7k7kcdmyryi3bwxf0nmr6jqcpyjzvzmxjlkqap"; + inherit dependencies buildDependencies features; + }; + crossbeam_epoch_0_2_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "crossbeam-epoch"; + version = "0.2.0"; + authors = [ "The Crossbeam Project Developers" ]; + sha256 = "05hyrrbmz64z0gz6n9h6jmx7swnhika90h96fcyd83psjwpkap88"; + inherit dependencies buildDependencies features; + }; + crossbeam_epoch_0_3_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "crossbeam-epoch"; + version = "0.3.1"; + authors = [ "The Crossbeam Project Developers" ]; + sha256 = "1ljrrpvalabi3r2nnpcz7rqkbl2ydmd0mrrr2fv335f7d46xgfxa"; + inherit dependencies buildDependencies features; + }; + crossbeam_epoch_0_4_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "crossbeam-epoch"; + version = "0.4.1"; + authors = [ "The Crossbeam Project Developers" ]; + sha256 = "134565vkm0h14bk8c3bw0f7n8zzhwl6zi8127zvpa8iglchafn0a"; + inherit dependencies buildDependencies features; + }; + crossbeam_utils_0_2_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "crossbeam-utils"; + version = "0.2.2"; + authors = [ "The Crossbeam Project Developers" ]; + sha256 = "0jiwzxv0lysjq68yk4bzkygrf69zhdidyw55nxlmimxlm6xv0j4m"; + inherit dependencies buildDependencies features; + }; + crossbeam_utils_0_3_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "crossbeam-utils"; + version = "0.3.2"; + authors = [ "The Crossbeam Project Developers" ]; + sha256 = "1byx31nkxl48la58571h40ssk94faky26jwz15w40v2gba3v4fql"; + inherit dependencies buildDependencies features; + }; + dbghelp_sys_0_2_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "dbghelp-sys"; + version = "0.2.0"; + authors = [ "Peter Atashian " ]; + sha256 = "0ylpi3bbiy233m57hnisn1df1v0lbl7nsxn34b0anzsgg440hqpq"; + libName = "dbghelp"; + build = "build.rs"; + inherit dependencies buildDependencies features; + }; + diesel_1_2_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "diesel"; + version = "1.2.2"; + authors = [ "Sean Griffin " ]; + sha256 = "0bcy779ndq9l2l2vh3a7h1s1s2cw67365vkx4zhxdq22wyb8z90w"; + inherit dependencies buildDependencies features; + }; + diesel_derives_1_2_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "diesel_derives"; + version = "1.2.0"; + authors = [ "Sean Griffin " ]; + sha256 = "0ykq7c77zsdsak0r8d384nnca9fglhih6jq66d0b9sws8vjvn4m1"; + procMacro = true; + inherit dependencies buildDependencies features; + }; + dtoa_0_4_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "dtoa"; + version = "0.4.2"; + authors = [ "David Tolnay " ]; + sha256 = "1bxsh6fags7nr36vlz07ik2a1rzyipc8x1y30kjk832hf2pzadmw"; + inherit dependencies buildDependencies features; + }; + encoding_0_2_33_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "encoding"; + version = "0.2.33"; + authors = [ "Kang Seonghoon " ]; + sha256 = "16ls6avhv5ll28zajl5q1jbiz1g80c4ygnw13zzqmij14wsp5329"; + inherit dependencies buildDependencies features; + }; + encoding_index_japanese_1_20141219_5_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "encoding-index-japanese"; + version = "1.20141219.5"; + authors = [ "Kang Seonghoon " ]; + sha256 = "1pmfaabps0x6v6cd4fbk9ssykhkmc799dma2y78fhk7gvyr5gyl4"; + libPath = "lib.rs"; + libName = "encoding_index_japanese"; + inherit dependencies buildDependencies features; + }; + encoding_index_korean_1_20141219_5_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "encoding-index-korean"; + version = "1.20141219.5"; + authors = [ "Kang Seonghoon " ]; + sha256 = "1b756n7gcilkx07y7zjrikcg0b8v8yd6mw8w01ji8sp3k1cabcf2"; + libPath = "lib.rs"; + libName = "encoding_index_korean"; + inherit dependencies buildDependencies features; + }; + encoding_index_simpchinese_1_20141219_5_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "encoding-index-simpchinese"; + version = "1.20141219.5"; + authors = [ "Kang Seonghoon " ]; + sha256 = "0rb4xd8cqymhqffqqxdk18mf9n354vs50ar66jrysb1z6ymcvvpy"; + libPath = "lib.rs"; + libName = "encoding_index_simpchinese"; + inherit dependencies buildDependencies features; + }; + encoding_index_singlebyte_1_20141219_5_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "encoding-index-singlebyte"; + version = "1.20141219.5"; + authors = [ "Kang Seonghoon " ]; + sha256 = "07df3jrfwfmzi2s352lvcpvy5dqpy2s45d2xx2dz1x7zh3q5284d"; + libPath = "lib.rs"; + libName = "encoding_index_singlebyte"; + inherit dependencies buildDependencies features; + }; + encoding_index_tradchinese_1_20141219_5_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "encoding-index-tradchinese"; + version = "1.20141219.5"; + authors = [ "Kang Seonghoon " ]; + sha256 = "0lb12nbv29cy41gx26yz3v4kfi8h1xbn1ppja8szgqi2zm1wlywn"; + libPath = "lib.rs"; + libName = "encoding_index_tradchinese"; + inherit dependencies buildDependencies features; + }; + encoding_index_tests_0_1_4_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "encoding_index_tests"; + version = "0.1.4"; + authors = [ "Kang Seonghoon " ]; + sha256 = "0z09kwh4z76q00cfr081rgjbnai4s2maq2vk88lgrq9d6bkf93f6"; + libPath = "index_tests.rs"; + inherit dependencies buildDependencies features; + }; + encoding_rs_0_7_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "encoding_rs"; + version = "0.7.2"; + authors = [ "Henri Sivonen " ]; + sha256 = "1c23bi3q4qmi2ci8g7p5j4b4i5abyggvyg6hkl7w4p4r527c9g3q"; + inherit dependencies buildDependencies features; + }; + entities_1_0_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "entities"; + version = "1.0.1"; + authors = [ "Philip Jackson " ]; + sha256 = "1wvhgyl5mbbh3psw7c5w3mli6h87bk78aqap49mhp0654k87zw5g"; + inherit dependencies buildDependencies features; + }; + env_logger_0_5_10_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "env_logger"; + version = "0.5.10"; + authors = [ "The Rust Project Developers" ]; + sha256 = "0any21l2x4h4h4ggc6r69k14i57pzqrm1pf89vfm3faxfpa23nhk"; + inherit dependencies buildDependencies features; + }; + error_chain_0_1_12_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "error-chain"; + version = "0.1.12"; + authors = [ "Brian Anderson " "Paul Colomiets " "Colin Kiegel " ]; + sha256 = "0pc1b8zbmim3qhlb0wfpxbvjhpq411rs0l9jzxplyr7j0b0wgbg1"; + inherit dependencies buildDependencies features; + }; + error_chain_0_8_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "error-chain"; + version = "0.8.1"; + authors = [ "Brian Anderson " "Paul Colomiets " "Colin Kiegel " "Yamakaky " ]; + sha256 = "0jaipqr2l2v84raynz3bvb0vnzysk7515j3mnb9i7g1qqprg2waq"; + inherit dependencies buildDependencies features; + }; + error_chain_0_11_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "error-chain"; + version = "0.11.0"; + authors = [ "Brian Anderson " "Paul Colomiets " "Colin Kiegel " "Yamakaky " ]; + sha256 = "19nz17q6dzp0mx2jhh9qbj45gkvvgcl7zq9z2ai5a8ihbisfj6d7"; + inherit dependencies buildDependencies features; + }; + failure_0_1_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "failure"; + version = "0.1.1"; + authors = [ "Without Boats " ]; + sha256 = "0gf9cmkm9kc163sszgjksqp5pcgj689lnf2104nn4h4is18nhigk"; + inherit dependencies buildDependencies features; + }; + failure_derive_0_1_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "failure_derive"; + version = "0.1.1"; + authors = [ "Without Boats " ]; + sha256 = "1w895q4pbyx3rwnhgjwfcayk9ghbi166wc1c3553qh8zkbz52k8i"; + procMacro = true; + inherit dependencies buildDependencies features; + }; + flate2_1_0_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "flate2"; + version = "1.0.1"; + authors = [ "Alex Crichton " ]; + sha256 = "0hi1r0sz8ca750hq9ym6d3n99g6rmmm8m8hadz2v49pfh6jd6svc"; + inherit dependencies buildDependencies features; + }; + fnv_1_0_6_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "fnv"; + version = "1.0.6"; + authors = [ "Alex Crichton " ]; + sha256 = "128mlh23y3gg6ag5h8iiqlcbl59smisdzraqy88ldrf75kbw27ip"; + libPath = "lib.rs"; + inherit dependencies buildDependencies features; + }; + foreign_types_0_3_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "foreign-types"; + version = "0.3.2"; + authors = [ "Steven Fackler " ]; + sha256 = "105n8sp2djb1s5lzrw04p7ss3dchr5qa3canmynx396nh3vwm2p8"; + inherit dependencies buildDependencies features; + }; + foreign_types_shared_0_1_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "foreign-types-shared"; + version = "0.1.1"; + authors = [ "Steven Fackler " ]; + sha256 = "0b6cnvqbflws8dxywk4589vgbz80049lz4x1g9dfy4s1ppd3g4z5"; + inherit dependencies buildDependencies features; + }; + fuchsia_zircon_0_3_3_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "fuchsia-zircon"; + version = "0.3.3"; + authors = [ "Raph Levien " ]; + sha256 = "0jrf4shb1699r4la8z358vri8318w4mdi6qzfqy30p2ymjlca4gk"; + inherit dependencies buildDependencies features; + }; + fuchsia_zircon_sys_0_3_3_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "fuchsia-zircon-sys"; + version = "0.3.3"; + authors = [ "Raph Levien " ]; + sha256 = "08jp1zxrm9jbrr6l26bjal4dbm8bxfy57ickdgibsqxr1n9j3hf5"; + inherit dependencies buildDependencies features; + }; + futures_0_1_21_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "futures"; + version = "0.1.21"; + authors = [ "Alex Crichton " ]; + sha256 = "0v4xrgkqx189b3b4lad2z5l9ay261p9412bzcdh1z6agxwhldr40"; + inherit dependencies buildDependencies features; + }; + futures_cpupool_0_1_8_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "futures-cpupool"; + version = "0.1.8"; + authors = [ "Alex Crichton " ]; + sha256 = "0ficd31n5ljiixy6x0vjglhq4fp0v1p4qzxm3v6ymsrb3z080l5c"; + inherit dependencies buildDependencies features; + }; + gcc_0_3_54_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "gcc"; + version = "0.3.54"; + authors = [ "Alex Crichton " ]; + sha256 = "07a5i47r8achc6gxsba3ga17h9gnh4b9a2cak8vjg4hx62aajkr4"; + inherit dependencies buildDependencies features; + }; + getopts_0_2_17_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "getopts"; + version = "0.2.17"; + authors = [ "The Rust Project Developers" ]; + sha256 = "1rifkxn7njr2w1dsa29hrm26ywgcg8gv1ms00g3vs5mjiabxk0jv"; + inherit dependencies buildDependencies features; + }; + glob_0_2_11_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "glob"; + version = "0.2.11"; + authors = [ "The Rust Project Developers" ]; + sha256 = "104389jjxs8r2f5cc9p0axhjmndgln60ih5x4f00ccgg9d3zarlf"; + inherit dependencies buildDependencies features; + }; + h2_0_1_7_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "h2"; + version = "0.1.7"; + authors = [ "Carl Lerche " ]; + sha256 = "03zn4gx31w1jgbf408dmg71c6hiy71vr9s017lxhyjydg6dfzkac"; + inherit dependencies buildDependencies features; + }; + hostname_0_1_4_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "hostname"; + version = "0.1.4"; + authors = [ "fengcen " ]; + sha256 = "1wfz2afh9xjd5rdxgyrhvhl6z1vvdch5nnd7miw2pi3i90fw4r1h"; + libPath = "src/lib.rs"; + inherit dependencies buildDependencies features; + }; + http_0_1_5_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "http"; + version = "0.1.5"; + authors = [ "Alex Crichton " "Carl Lerche " "Sean McArthur " ]; + sha256 = "07p5q6h45r0hlnd6vg344iy72jk7xphzf6p38gb4fhb9iibnwn08"; + inherit dependencies buildDependencies features; + }; + http_range_0_1_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "http-range"; + version = "0.1.1"; + authors = [ "Luka Zakrajšek " ]; + sha256 = "1zl43iw110ybbl9g24jhwylqbwgwm25vpv9m47sfwy2ajaqb7b3g"; + inherit dependencies buildDependencies features; + }; + httparse_1_2_4_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "httparse"; + version = "1.2.4"; + authors = [ "Sean McArthur " ]; + sha256 = "169grgxpsq0jaa2fk913z692a6qi8c2n1kypsay124b37720d8ll"; + inherit dependencies buildDependencies features; + }; + humansize_1_1_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "humansize"; + version = "1.1.0"; + authors = [ "Leopold Arkham " ]; + sha256 = "1s7jj570vz90b7wsgd24lla1yn9qp3swgv9c7jgkgrw6bxynbv0p"; + inherit dependencies buildDependencies features; + }; + humantime_1_1_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "humantime"; + version = "1.1.1"; + authors = [ "Paul Colomiets " ]; + sha256 = "1lzdfsfzdikcp1qb6wcdvnsdv16pmzr7p7cv171vnbnyz2lrwbgn"; + libPath = "src/lib.rs"; + inherit dependencies buildDependencies features; + }; + hyper_0_11_27_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "hyper"; + version = "0.11.27"; + authors = [ "Sean McArthur " ]; + sha256 = "0q5as4lhvh31bzk4qm7j84snrmxyxyaqk040rfk72b42dn98mryi"; + inherit dependencies buildDependencies features; + }; + hyper_tls_0_1_3_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "hyper-tls"; + version = "0.1.3"; + authors = [ "Sean McArthur " ]; + sha256 = "1dr5arj79pdyz9f2jggqmna1qpc578f9pdgsf2ana5amjpsp0j89"; + inherit dependencies buildDependencies features; + }; + idna_0_1_4_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "idna"; + version = "0.1.4"; + authors = [ "The rust-url developers" ]; + sha256 = "15j44qgjx1skwg9i7f4cm36ni4n99b1ayx23yxx7axxcw8vjf336"; + inherit dependencies buildDependencies features; + }; + indexmap_1_0_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "indexmap"; + version = "1.0.1"; + authors = [ "bluss" "Josh Stone " ]; + sha256 = "10ak26zp3i5iyb03l99312q66jl20qs45cm5jnghm9ymdhspw3r4"; + inherit dependencies buildDependencies features; + }; + iovec_0_1_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "iovec"; + version = "0.1.2"; + authors = [ "Carl Lerche " ]; + sha256 = "0vjymmb7wj4v4kza5jjn48fcdb85j3k37y7msjl3ifz0p9yiyp2r"; + inherit dependencies buildDependencies features; + }; + ipconfig_0_1_6_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "ipconfig"; + version = "0.1.6"; + authors = [ "Liran Ringel " ]; + sha256 = "1jax0paxr9m2qfmc5l386d65m2g2wyzy077wzmbryv14d6dncfp8"; + inherit dependencies buildDependencies features; + }; + itoa_0_4_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "itoa"; + version = "0.4.1"; + authors = [ "David Tolnay " ]; + sha256 = "1jyrsmrm5q4r2ipmq5hvvkqg0mgnlbk44lm7gr0v9ymvbrh2gbij"; + inherit dependencies buildDependencies features; + }; + kernel32_sys_0_2_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "kernel32-sys"; + version = "0.2.2"; + authors = [ "Peter Atashian " ]; + sha256 = "1lrw1hbinyvr6cp28g60z97w32w8vsk6pahk64pmrv2fmby8srfj"; + libName = "kernel32"; + build = "build.rs"; + inherit dependencies buildDependencies features; + }; + language_tags_0_2_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "language-tags"; + version = "0.2.2"; + authors = [ "Pyfisch " ]; + sha256 = "1zkrdzsqzzc7509kd7nngdwrp461glm2g09kqpzaqksp82frjdvy"; + inherit dependencies buildDependencies features; + }; + lazy_static_0_2_11_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "lazy_static"; + version = "0.2.11"; + authors = [ "Marvin Löbel " ]; + sha256 = "1x6871cvpy5b96yv4c7jvpq316fp5d4609s9py7qk6cd6x9k34vm"; + inherit dependencies buildDependencies features; + }; + lazy_static_1_0_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "lazy_static"; + version = "1.0.0"; + authors = [ "Marvin Löbel " ]; + sha256 = "0wfvqyr2nvx2mbsrscg5y7gfa9skhb8p72ayanl8vl49pw24v4fh"; + inherit dependencies buildDependencies features; + }; + lazycell_0_6_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "lazycell"; + version = "0.6.0"; + authors = [ "Alex Crichton " "Nikita Pekin " ]; + sha256 = "1ax148clinbvp6alxcih8s5i2bg3mc5mi69n3hvzvzbwlm6k532r"; + inherit dependencies buildDependencies features; + }; + libc_0_2_40_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "libc"; + version = "0.2.40"; + authors = [ "The Rust Project Developers" ]; + sha256 = "1xfc39237ldzgr8x8wcflgdr8zssi3wif7g2zxc02d94gzkjsw83"; + inherit dependencies buildDependencies features; + }; + libflate_0_1_14_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "libflate"; + version = "0.1.14"; + authors = [ "Takeru Ohta " ]; + sha256 = "03zq769bfffg3iyp2vkkjsmkskabrxiyh5khzppyyngm8w9xpdsc"; + inherit dependencies buildDependencies features; + }; + linked_hash_map_0_4_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "linked-hash-map"; + version = "0.4.2"; + authors = [ "Stepan Koltsov " "Andrew Paseltiner " ]; + sha256 = "04da208h6jb69f46j37jnvsw2i1wqplglp4d61csqcrhh83avbgl"; + inherit dependencies buildDependencies features; + }; + log_0_3_9_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "log"; + version = "0.3.9"; + authors = [ "The Rust Project Developers" ]; + sha256 = "19i9pwp7lhaqgzangcpw00kc3zsgcqcx84crv07xgz3v7d3kvfa2"; + inherit dependencies buildDependencies features; + }; + log_0_4_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "log"; + version = "0.4.1"; + authors = [ "The Rust Project Developers" ]; + sha256 = "01vm8yy3wngvyj6qp1x3xpcb4xq7v67yn9l7fsma8kz28mliz90d"; + inherit dependencies buildDependencies features; + }; + lru_cache_0_1_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "lru-cache"; + version = "0.1.1"; + authors = [ "Stepan Koltsov " ]; + sha256 = "1hl6kii1g54sq649gnscv858mmw7a02xj081l4vcgvrswdi2z8fw"; + inherit dependencies buildDependencies features; + }; + matches_0_1_6_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "matches"; + version = "0.1.6"; + authors = [ "Simon Sapin " ]; + sha256 = "1zlrqlbvzxdil8z8ial2ihvxjwvlvg3g8dr0lcdpsjclkclasjan"; + libPath = "lib.rs"; + inherit dependencies buildDependencies features; + }; + md5_0_3_7_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "md5"; + version = "0.3.7"; + authors = [ "Ivan Ukhov " "Kamal Ahmad " "Konstantin Stepanov " "Lukas Kalbertodt " "Nathan Musoke " "Tony Arcieri " ]; + sha256 = "1ga55k7asxln553m89ccka2hnp5gkvacxl98r3nmx4d9mzvwn352"; + inherit dependencies buildDependencies features; + }; + memchr_2_0_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "memchr"; + version = "2.0.1"; + authors = [ "Andrew Gallant " "bluss" ]; + sha256 = "0ls2y47rjwapjdax6bp974gdp06ggm1v8d1h69wyydmh1nhgm5gr"; + inherit dependencies buildDependencies features; + }; + memoffset_0_1_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "memoffset"; + version = "0.1.0"; + authors = [ "Gilad Naaman " ]; + sha256 = "1jq5vcfwqwxl709985srmsxs229da2hq3ab11fx3abbx1bpxcgx1"; + inherit dependencies buildDependencies features; + }; + memoffset_0_2_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "memoffset"; + version = "0.2.1"; + authors = [ "Gilad Naaman " ]; + sha256 = "00vym01jk9slibq2nsiilgffp7n6k52a4q3n4dqp0xf5kzxvffcf"; + inherit dependencies buildDependencies features; + }; + mime_0_3_7_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "mime"; + version = "0.3.7"; + authors = [ "Sean McArthur " ]; + sha256 = "1hvhza86jqrzwgin3mi08c6l8fqvxlpnwxj2yzv8zyxkqa70h9ax"; + inherit dependencies buildDependencies features; + }; + mime_guess_2_0_0_alpha_4_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "mime_guess"; + version = "2.0.0-alpha.4"; + authors = [ "Austin Bonander " ]; + sha256 = "1kz8j1hb4azgyzcs6bnrrygv0ykjp170llri0is031q01vi7fgnh"; + inherit dependencies buildDependencies features; + }; + miniz_sys_0_1_10_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "miniz-sys"; + version = "0.1.10"; + authors = [ "Alex Crichton " ]; + sha256 = "11vg6phafxil87nbxgrlhcx5hjr3145wsbwwkfmibvnmzxfdmvln"; + libPath = "lib.rs"; + libName = "miniz_sys"; + build = "build.rs"; + inherit dependencies buildDependencies features; + }; + mio_0_6_14_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "mio"; + version = "0.6.14"; + authors = [ "Carl Lerche " ]; + sha256 = "0zws9p0d734qps4wdv47d32mmpb85caf9l2arwhxc7pslqk4icap"; + inherit dependencies buildDependencies features; + }; + mio_uds_0_6_6_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "mio-uds"; + version = "0.6.6"; + authors = [ "Alex Crichton " ]; + sha256 = "1428ywzd30ayagqmagmzslzi70d91mj402wp4mw1mz1yhvjrj9v8"; + inherit dependencies buildDependencies features; + }; + miow_0_2_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "miow"; + version = "0.2.1"; + authors = [ "Alex Crichton " ]; + sha256 = "14f8zkc6ix7mkyis1vsqnim8m29b6l55abkba3p2yz7j1ibcvrl0"; + inherit dependencies buildDependencies features; + }; + native_tls_0_1_5_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "native-tls"; + version = "0.1.5"; + authors = [ "Steven Fackler " ]; + sha256 = "11f75qmbny5pnn6zp0vlvadrvc9ph9qsxiyn4n6q02xyd93pxxlf"; + inherit dependencies buildDependencies features; + }; + net2_0_2_32_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "net2"; + version = "0.2.32"; + authors = [ "Alex Crichton " ]; + sha256 = "15q3il71qaqrwz8q1nz0jyw5q4fl0vrkajgaj909zradxsxv1mcq"; + inherit dependencies buildDependencies features; + }; + nodrop_0_1_12_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "nodrop"; + version = "0.1.12"; + authors = [ "bluss" ]; + sha256 = "1b9rxvdg8061gxjc239l9slndf0ds3m6fy2sf3gs8f9kknqgl49d"; + inherit dependencies buildDependencies features; + }; + num_integer_0_1_38_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "num-integer"; + version = "0.1.38"; + authors = [ "The Rust Project Developers" ]; + sha256 = "0xcyvsg43zrmaanf546l67mz816g5jigxi8818rx5y95xid722yy"; + build = "build.rs"; + inherit dependencies buildDependencies features; + }; + num_traits_0_2_4_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "num-traits"; + version = "0.2.4"; + authors = [ "The Rust Project Developers" ]; + sha256 = "0j0n4lcxbqq8q9v2qcyybz6aqxvmghzl5q2p19ds0c8fl5wviqmj"; + build = "build.rs"; + inherit dependencies buildDependencies features; + }; + num_cpus_1_8_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "num_cpus"; + version = "1.8.0"; + authors = [ "Sean McArthur " ]; + sha256 = "1y6qnd9r8ga6y8mvlabdrr73nc8cshjjlzbvnanzyj9b8zzkfwk2"; + inherit dependencies buildDependencies features; + }; + openssl_0_9_24_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "openssl"; + version = "0.9.24"; + authors = [ "Steven Fackler " ]; + sha256 = "0wzm3c11g3ndaqyzq36mcdcm1q4a8pmsyi33ibybhjz28g2z0f79"; + build = "build.rs"; + inherit dependencies buildDependencies features; + }; + openssl_sys_0_9_30_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "openssl-sys"; + version = "0.9.30"; + authors = [ "Alex Crichton " "Steven Fackler " ]; + sha256 = "1p5y3md4crbmg0lcfkdl8pp3kf9k82vghjy28x7ix5mji3j2p87a"; + inherit dependencies buildDependencies features; + }; + owning_ref_0_3_3_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "owning_ref"; + version = "0.3.3"; + authors = [ "Marvin Löbel " ]; + sha256 = "13ivn0ydc0hf957ix0f5si9nnplzzykbr70hni1qz9m19i9kvmrh"; + inherit dependencies buildDependencies features; + }; + parking_lot_0_4_8_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "parking_lot"; + version = "0.4.8"; + authors = [ "Amanieu d'Antras " ]; + sha256 = "0qrb2f0azglbsx7k3skgnc7mmv9z9spnqgk1m450g91r94nlklqi"; + inherit dependencies buildDependencies features; + }; + parking_lot_core_0_2_14_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "parking_lot_core"; + version = "0.2.14"; + authors = [ "Amanieu d'Antras " ]; + sha256 = "0giypb8ckkpi34p14nfk4b19c7przj4jxs95gs7x2v5ncmi0y286"; + inherit dependencies buildDependencies features; + }; + percent_encoding_1_0_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "percent-encoding"; + version = "1.0.1"; + authors = [ "The rust-url developers" ]; + sha256 = "04ahrp7aw4ip7fmadb0bknybmkfav0kk0gw4ps3ydq5w6hr0ib5i"; + libPath = "lib.rs"; + inherit dependencies buildDependencies features; + }; + pest_1_0_6_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "pest"; + version = "1.0.6"; + authors = [ "Dragoș Tiselice " ]; + sha256 = "07r7aq8fni6ycjn3mlpam95pd4hlwylqqprv62ni488pjbkhcp5d"; + inherit dependencies buildDependencies features; + }; + pest_derive_1_0_7_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "pest_derive"; + version = "1.0.7"; + authors = [ "Dragoș Tiselice " ]; + sha256 = "1jmw7ai3adwrp81ygs2l9i9fqm33b0m87j6rwcn3rvis4gg12kyc"; + procMacro = true; + inherit dependencies buildDependencies features; + }; + phf_0_7_22_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "phf"; + version = "0.7.22"; + authors = [ "Steven Fackler " ]; + sha256 = "0b58l863rhmqyqsfj2d89nmdzc21g9yvvvq1m4c3a615zpcykb3i"; + libPath = "src/lib.rs"; + inherit dependencies buildDependencies features; + }; + phf_codegen_0_7_22_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "phf_codegen"; + version = "0.7.22"; + authors = [ "Steven Fackler " ]; + sha256 = "0k8yx4gr9m6cfrvh21s6bhnh1azz13j4xih88bvm06r6blfl89fs"; + inherit dependencies buildDependencies features; + }; + phf_generator_0_7_22_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "phf_generator"; + version = "0.7.22"; + authors = [ "Steven Fackler " ]; + sha256 = "093gla320qb6rbk8z7wqqxl79zrh874sa7sxir31q2p7mrw4b70k"; + inherit dependencies buildDependencies features; + }; + phf_shared_0_7_22_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "phf_shared"; + version = "0.7.22"; + authors = [ "Steven Fackler " ]; + sha256 = "0ij9flicfi0ab5vpzdwbizpdyxhk891qxa8nxsqlv4sg4abqang6"; + libPath = "src/lib.rs"; + inherit dependencies buildDependencies features; + }; + pkg_config_0_3_11_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "pkg-config"; + version = "0.3.11"; + authors = [ "Alex Crichton " ]; + sha256 = "177kbs465skvzmb2d9bh7aa5lqm0npfig12awcbd34c6k6nlyr5h"; + inherit dependencies buildDependencies features; + }; + pq_sys_0_4_4_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "pq-sys"; + version = "0.4.4"; + authors = [ "Sean Griffin " ]; + sha256 = "1iqgs12mzx711ab1idiq4ryj27f8srwh83syj0ahvmbp5b8szggg"; + libName = "pq_sys"; + build = "build.rs"; + inherit dependencies buildDependencies features; + }; + proc_macro2_0_2_3_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "proc-macro2"; + version = "0.2.3"; + authors = [ "Alex Crichton " ]; + sha256 = "1y47qagi1r1f13b4b66xagr3dn9hjlvba7i6f5mcb77qhkn8yg9c"; + inherit dependencies buildDependencies features; + }; + proc_macro2_0_3_8_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "proc-macro2"; + version = "0.3.8"; + authors = [ "Alex Crichton " ]; + sha256 = "0ixnavxcd6sk1861hjgnfxly7qgq4ch1iplsx0nclvjjkwg39qdc"; + inherit dependencies buildDependencies features; + }; + pulldown_cmark_0_1_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "pulldown-cmark"; + version = "0.1.2"; + authors = [ "Raph Levien " ]; + sha256 = "0imc6m2bxk4j8y5qfp9x9sjnbrz7cz4i7irv4dfqjp4cgblmg5l8"; + crateBin = [ { name = "pulldown-cmark"; } ]; + build = "build.rs"; + inherit dependencies buildDependencies features; + }; + quick_error_1_2_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "quick-error"; + version = "1.2.1"; + authors = [ "Paul Colomiets " "Colin Kiegel " ]; + sha256 = "0vq41csw68ynaq2fy5dvldh4lx7pnbw6pr332kv5rvrz4pz0jnq6"; + inherit dependencies buildDependencies features; + }; + quote_0_3_15_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "quote"; + version = "0.3.15"; + authors = [ "David Tolnay " ]; + sha256 = "09il61jv4kd1360spaj46qwyl21fv1qz18fsv2jra8wdnlgl5jsg"; + inherit dependencies buildDependencies features; + }; + quote_0_4_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "quote"; + version = "0.4.2"; + authors = [ "David Tolnay " ]; + sha256 = "0rzka356p113f9hdcdc8ha78qar3qd6jpap9wnf5dza9hfs2k4bc"; + inherit dependencies buildDependencies features; + }; + quote_0_5_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "quote"; + version = "0.5.2"; + authors = [ "David Tolnay " ]; + sha256 = "062cnp12j09x0z0nj4j5pfh26h35zlrks07asxgqhfhcym1ba595"; + inherit dependencies buildDependencies features; + }; + r2d2_0_8_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "r2d2"; + version = "0.8.2"; + authors = [ "Steven Fackler " ]; + sha256 = "1m8cvw9gpc5r922alyha2qq9nl79q3ldsjk1qwax36zrca0akvdi"; + inherit dependencies buildDependencies features; + }; + rand_0_3_22_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "rand"; + version = "0.3.22"; + authors = [ "The Rust Project Developers" ]; + sha256 = "0wrj12acx7l4hr7ag3nz8b50yhp8ancyq988bzmnnsxln67rsys0"; + inherit dependencies buildDependencies features; + }; + rand_0_4_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "rand"; + version = "0.4.2"; + authors = [ "The Rust Project Developers" ]; + sha256 = "0h8pkg23wb67i8904sm76iyr1jlmhklb85vbpz9c9191a24xzkfm"; + inherit dependencies buildDependencies features; + }; + rayon_0_8_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "rayon"; + version = "0.8.2"; + authors = [ "Niko Matsakis " "Josh Stone " ]; + sha256 = "0d0mddg1k75hb9138pn8lysy2095jijrinskqbpgfr73s0jx6dq8"; + inherit dependencies buildDependencies features; + }; + rayon_core_1_4_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "rayon-core"; + version = "1.4.0"; + authors = [ "Niko Matsakis " "Josh Stone " ]; + sha256 = "1gmg5fmgvhzks7b05g3ms7x8h1xxqnfkg28wvhzwpdzjljcbnr23"; + build = "build.rs"; + inherit dependencies buildDependencies features; + }; + redox_syscall_0_1_37_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "redox_syscall"; + version = "0.1.37"; + authors = [ "Jeremy Soller " ]; + sha256 = "0qa0jl9cr3qp80an8vshp2mcn8rzvwiavs1398hq1vsjw7pc3h2v"; + libName = "syscall"; + inherit dependencies buildDependencies features; + }; + redox_termios_0_1_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "redox_termios"; + version = "0.1.1"; + authors = [ "Jeremy Soller " ]; + sha256 = "04s6yyzjca552hdaqlvqhp3vw0zqbc304md5czyd3axh56iry8wh"; + libPath = "src/lib.rs"; + inherit dependencies buildDependencies features; + }; + regex_0_2_11_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "regex"; + version = "0.2.11"; + authors = [ "The Rust Project Developers" ]; + sha256 = "0r50cymxdqp0fv1dxd22mjr6y32q450nwacd279p9s7lh0cafijj"; + inherit dependencies buildDependencies features; + }; + regex_1_0_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "regex"; + version = "1.0.0"; + authors = [ "The Rust Project Developers" ]; + sha256 = "1wynl7jmf6l2fnsayw1bzfh7km4wwqnqfpi8anj7wbhdk17i6j6b"; + inherit dependencies buildDependencies features; + }; + regex_syntax_0_5_6_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "regex-syntax"; + version = "0.5.6"; + authors = [ "The Rust Project Developers" ]; + sha256 = "10vf3r34bgjnbrnqd5aszn35bjvm8insw498l1vjy8zx5yms3427"; + inherit dependencies buildDependencies features; + }; + regex_syntax_0_6_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "regex-syntax"; + version = "0.6.0"; + authors = [ "The Rust Project Developers" ]; + sha256 = "1zlaq3y1zbiqilxbh0471bizcs4p14b58nqr815w3ssyam169cy6"; + inherit dependencies buildDependencies features; + }; + relay_0_1_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "relay"; + version = "0.1.1"; + authors = [ "Sean McArthur " ]; + sha256 = "16csfaslbmj25iaxs88p8wcfh2zfpkh9isg9adid0nxjxvknh07r"; + inherit dependencies buildDependencies features; + }; + remove_dir_all_0_5_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "remove_dir_all"; + version = "0.5.1"; + authors = [ "Aaronepower " ]; + sha256 = "1chx3yvfbj46xjz4bzsvps208l46hfbcy0sm98gpiya454n4rrl7"; + inherit dependencies buildDependencies features; + }; + reqwest_0_8_5_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "reqwest"; + version = "0.8.5"; + authors = [ "Sean McArthur " ]; + sha256 = "1wrrv3kwh0pm5yzajf986z21pyf48vxskvn7pflzhrm9y11kalnf"; + inherit dependencies buildDependencies features; + }; + resolv_conf_0_6_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "resolv-conf"; + version = "0.6.0"; + authors = [ "paul@colomiets.name" ]; + sha256 = "11aslgks1zdwwx5nj6fmrnigyvphgk0chd8isz4zwb3pik1jjvc0"; + libPath = "src/lib.rs"; + libName = "resolv_conf"; + inherit dependencies buildDependencies features; + }; + ring_0_12_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "ring"; + version = "0.12.1"; + authors = [ "Brian Smith " ]; + sha256 = "1i47apwkpa0wz9fwp4iqf0xks95b9nmhhlgvk5fsgbg0aphhw0p7"; + build = "build.rs"; + inherit dependencies buildDependencies features; + }; + rustc_demangle_0_1_8_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "rustc-demangle"; + version = "0.1.8"; + authors = [ "Alex Crichton " ]; + sha256 = "0xn5l86qfwngmdsjbglj30wh37zplvch96jl9raysl3k06gkkv3c"; + inherit dependencies buildDependencies features; + }; + safemem_0_2_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "safemem"; + version = "0.2.0"; + authors = [ "Austin Bonander " ]; + sha256 = "058m251q202n479ip1h6s91yw3plg66vsk5mpaflssn6rs5hijdm"; + inherit dependencies buildDependencies features; + }; + same_file_1_0_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "same-file"; + version = "1.0.2"; + authors = [ "Andrew Gallant " ]; + sha256 = "1xjj93345qz4dqk1qwlah98dkqrbfvrg7i3hcm3dkjygjqdid2h7"; + inherit dependencies buildDependencies features; + }; + schannel_0_1_12_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "schannel"; + version = "0.1.12"; + authors = [ "Steven Fackler " "Steffen Butzer " ]; + sha256 = "1lqdzx8d4rql8ah9w760syvrbbyp26s9cgidvrh34h0hjglja42d"; + inherit dependencies buildDependencies features; + }; + scheduled_thread_pool_0_2_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "scheduled-thread-pool"; + version = "0.2.0"; + authors = [ "Steven Fackler " ]; + sha256 = "0x8jxh3l4irj5hm7rwfwmfd0iazcpvcfvnqbsngrrn3dmzpy0ig9"; + inherit dependencies buildDependencies features; + }; + scoped_tls_0_1_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "scoped-tls"; + version = "0.1.2"; + authors = [ "Alex Crichton " ]; + sha256 = "0nblksgki698cqsclsnd6f1pq4yy34350dn2slaah9dlmx9z5xla"; + inherit dependencies buildDependencies features; + }; + scopeguard_0_3_3_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "scopeguard"; + version = "0.3.3"; + authors = [ "bluss" ]; + sha256 = "0i1l013csrqzfz6c68pr5pi01hg5v5yahq8fsdmaxy6p8ygsjf3r"; + inherit dependencies buildDependencies features; + }; + security_framework_0_1_16_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "security-framework"; + version = "0.1.16"; + authors = [ "Steven Fackler " ]; + sha256 = "1kxczsaj8gz4922jl5af2gkxh71rasb6khaf3dp7ldlnw9qf2sbm"; + inherit dependencies buildDependencies features; + }; + security_framework_sys_0_1_16_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "security-framework-sys"; + version = "0.1.16"; + authors = [ "Steven Fackler " ]; + sha256 = "0ai2pivdr5fyc7czbkpcrwap0imyy0r8ndarrl3n5kiv0jha1js3"; + build = "build.rs"; + inherit dependencies buildDependencies features; + }; + semver_0_9_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "semver"; + version = "0.9.0"; + authors = [ "Steve Klabnik " "The Rust Project Developers" ]; + sha256 = "0azak2lb2wc36s3x15az886kck7rpnksrw14lalm157rg9sc9z63"; + inherit dependencies buildDependencies features; + }; + semver_parser_0_7_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "semver-parser"; + version = "0.7.0"; + authors = [ "Steve Klabnik " ]; + sha256 = "1da66c8413yakx0y15k8c055yna5lyb6fr0fw9318kdwkrk5k12h"; + inherit dependencies buildDependencies features; + }; + serde_1_0_55_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "serde"; + version = "1.0.55"; + authors = [ "Erick Tryzelaar " "David Tolnay " ]; + sha256 = "1vpslfs3j8xbl3srmzppa34h0908q0sj4hyrmlrpklhldii5vbqh"; + inherit dependencies buildDependencies features; + }; + serde_derive_1_0_55_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "serde_derive"; + version = "1.0.55"; + authors = [ "Erick Tryzelaar " "David Tolnay " ]; + sha256 = "1ggcidzgi51l3lsdf8gg46ivn61py8rnrf6garpcxwmdbfcc8lgk"; + procMacro = true; + inherit dependencies buildDependencies features; + }; + serde_json_1_0_17_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "serde_json"; + version = "1.0.17"; + authors = [ "Erick Tryzelaar " "David Tolnay " ]; + sha256 = "1q4660h8yqq5y3wkpqfzwmyvncfb2z7qqxblngs4jfi1sndi2zlz"; + inherit dependencies buildDependencies features; + }; + serde_urlencoded_0_5_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "serde_urlencoded"; + version = "0.5.2"; + authors = [ "Anthony Ramine " ]; + sha256 = "0m5pigng0665qrk4ii1z84pb4lchbsswhgb863yglljskmm056m0"; + inherit dependencies buildDependencies features; + }; + sha1_0_6_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "sha1"; + version = "0.6.0"; + authors = [ "Armin Ronacher " ]; + sha256 = "12cp2b8f3hbwhfpnv1j1afl285xxmmbxh9w4npzvwbdh7xfyww8v"; + inherit dependencies buildDependencies features; + }; + siphasher_0_2_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "siphasher"; + version = "0.2.2"; + authors = [ "Frank Denis " ]; + sha256 = "0iyx7nlzfny9ly1634a6zcq0yvrinhxhypwas4p8ry3zqnn76qqr"; + inherit dependencies buildDependencies features; + }; + skeptic_0_13_3_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "skeptic"; + version = "0.13.3"; + authors = [ "Brian Anderson " "Michał Budzyński " ]; + sha256 = "0zfxk41bqby451wd3fr0mnbq0q6l8f7gzp0n96ccgjcvh2nlcnrj"; + libPath = "lib.rs"; + inherit dependencies buildDependencies features; + }; + slab_0_3_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "slab"; + version = "0.3.0"; + authors = [ "Carl Lerche " ]; + sha256 = "0y6lhjggksh57hyfd3l6p9wgv5nhvw9c6djrysq7jnalz8fih21k"; + inherit dependencies buildDependencies features; + }; + slab_0_4_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "slab"; + version = "0.4.0"; + authors = [ "Carl Lerche " ]; + sha256 = "1qy2vkgwqgj5z4ygdkh040n9yh1vz80v5flxb1xrvw3i4wxs7yx0"; + inherit dependencies buildDependencies features; + }; + slug_0_1_3_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "slug"; + version = "0.1.3"; + authors = [ "Steven Allen " ]; + sha256 = "0ry961rwq5d9jf6b9xhlq75caiwrylxz681l3ghan7nf32nmv6zw"; + inherit dependencies buildDependencies features; + }; + smallvec_0_2_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "smallvec"; + version = "0.2.1"; + authors = [ "Simon Sapin " ]; + sha256 = "0rnsll9af52bpjngz0067dpm1ndqmh76i64a58fc118l4lvnjxw2"; + libPath = "lib.rs"; + inherit dependencies buildDependencies features; + }; + smallvec_0_6_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "smallvec"; + version = "0.6.1"; + authors = [ "Simon Sapin " ]; + sha256 = "16m07xh67xcdpwjkbzbv9d7visxmz4fb4a8jfcrsrf333w7vkl1g"; + libPath = "lib.rs"; + inherit dependencies buildDependencies features; + }; + socket2_0_3_5_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "socket2"; + version = "0.3.5"; + authors = [ "Alex Crichton " ]; + sha256 = "0bi6z6qvra16rwm3lk7xz4aakvcmmak6fpdmra1v7ccp40bss0kf"; + inherit dependencies buildDependencies features; + }; + stable_deref_trait_1_0_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "stable_deref_trait"; + version = "1.0.0"; + authors = [ "Robert Grosse " ]; + sha256 = "0ya5fms9qdwkd52d3a111w4vcz18j4rbfx4p88z44116cqd6cczr"; + inherit dependencies buildDependencies features; + }; + string_0_1_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "string"; + version = "0.1.0"; + authors = [ "Carl Lerche " ]; + sha256 = "0pca6c4kf47izwapzz9bzmq7sb6hbzn26xxdfi8ld7mqf0dqg1z7"; + inherit dependencies buildDependencies features; + }; + strsim_0_7_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "strsim"; + version = "0.7.0"; + authors = [ "Danny Guo " ]; + sha256 = "0fy0k5f2705z73mb3x9459bpcvrx4ky8jpr4zikcbiwan4bnm0iv"; + inherit dependencies buildDependencies features; + }; + syn_0_11_11_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "syn"; + version = "0.11.11"; + authors = [ "David Tolnay " ]; + sha256 = "0yw8ng7x1dn5a6ykg0ib49y7r9nhzgpiq2989rqdp7rdz3n85502"; + inherit dependencies buildDependencies features; + }; + syn_0_12_15_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "syn"; + version = "0.12.15"; + authors = [ "David Tolnay " ]; + sha256 = "0kkzav72yy0idzbh9zcg92dam3785xzrbxjjp8vxcis9z2zd6b13"; + inherit dependencies buildDependencies features; + }; + syn_0_13_10_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "syn"; + version = "0.13.10"; + authors = [ "David Tolnay " ]; + sha256 = "0dbvdxlpvx7f8iw5cbv88vbyszp72df8y8zhl36gj73g1xwdqfhx"; + inherit dependencies buildDependencies features; + }; + synom_0_11_3_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "synom"; + version = "0.11.3"; + authors = [ "David Tolnay " ]; + sha256 = "1l6d1s9qjfp6ng2s2z8219igvlv7gyk8gby97sdykqc1r93d8rhc"; + inherit dependencies buildDependencies features; + }; + synstructure_0_6_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "synstructure"; + version = "0.6.1"; + authors = [ "Michael Layzell " ]; + sha256 = "1xnyw58va9zcqi4vvpnmpllacdj2a0mvy0cbd698izmr4qs92xlk"; + inherit dependencies buildDependencies features; + }; + take_0_1_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "take"; + version = "0.1.0"; + authors = [ "Carl Lerche " ]; + sha256 = "17rfh39di5n8w9aghpic2r94cndi3dr04l60nkjylmxfxr3iwlhd"; + inherit dependencies buildDependencies features; + }; + tempdir_0_3_7_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "tempdir"; + version = "0.3.7"; + authors = [ "The Rust Project Developers" ]; + sha256 = "0y53sxybyljrr7lh0x0ysrsa7p7cljmwv9v80acy3rc6n97g67vy"; + inherit dependencies buildDependencies features; + }; + tera_0_11_7_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "tera"; + version = "0.11.7"; + authors = [ "Vincent Prouillet " ]; + sha256 = "14s7pbrg804bb45majjxbgdgkj2ckh8i3kfjg1hc7f803yzhykc2"; + inherit dependencies buildDependencies features; + }; + termcolor_0_3_6_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "termcolor"; + version = "0.3.6"; + authors = [ "Andrew Gallant " ]; + sha256 = "0w609sa1apl1kii67ln2g82r4rrycw45zgjq7mxxjrx1fa21v05z"; + inherit dependencies buildDependencies features; + }; + termion_1_5_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "termion"; + version = "1.5.1"; + authors = [ "ticki " "gycos " "IGI-111 " ]; + sha256 = "02gq4vd8iws1f3gjrgrgpajsk2bk43nds5acbbb4s8dvrdvr8nf1"; + inherit dependencies buildDependencies features; + }; + textwrap_0_9_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "textwrap"; + version = "0.9.0"; + authors = [ "Martin Geisler " ]; + sha256 = "18jg79ndjlwndz01mlbh82kkr2arqm658yn5kwp65l5n1hz8w4yb"; + inherit dependencies buildDependencies features; + }; + thread_local_0_3_5_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "thread_local"; + version = "0.3.5"; + authors = [ "Amanieu d'Antras " ]; + sha256 = "0mkp0sp91aqsk7brgygai4igv751r1754rsxn37mig3ag5rx8np6"; + inherit dependencies buildDependencies features; + }; + time_0_1_40_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "time"; + version = "0.1.40"; + authors = [ "The Rust Project Developers" ]; + sha256 = "0wgnbjamljz6bqxsd5axc4p2mmhkqfrryj4gf2yswjaxiw5dd01m"; + inherit dependencies buildDependencies features; + }; + tokio_0_1_6_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "tokio"; + version = "0.1.6"; + authors = [ "Carl Lerche " ]; + sha256 = "03sw1pkl0pkrlrx2qc82c3r29bnibzbsy9gl16qsi75p3jqqj3g0"; + inherit dependencies buildDependencies features; + }; + tokio_core_0_1_17_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "tokio-core"; + version = "0.1.17"; + authors = [ "Carl Lerche " ]; + sha256 = "1j6c5q3aakvb1hjx4r95xwl5ms8rp19k4qsr6v6ngwbvr6f9z6rs"; + inherit dependencies buildDependencies features; + }; + tokio_executor_0_1_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "tokio-executor"; + version = "0.1.2"; + authors = [ "Carl Lerche " ]; + sha256 = "1y4mwqjw438x6jskigz1knvfbpbinxfv6h43s60w6wdb80xmyg48"; + inherit dependencies buildDependencies features; + }; + tokio_fs_0_1_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "tokio-fs"; + version = "0.1.0"; + authors = [ "Carl Lerche " ]; + sha256 = "02w7py4i92vwa0zdap4p2inalglmklfm6xj6zf5fzbynxfj2jddm"; + inherit dependencies buildDependencies features; + }; + tokio_io_0_1_6_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "tokio-io"; + version = "0.1.6"; + authors = [ "Carl Lerche " ]; + sha256 = "0awvw1cfylws2lqdls615hcnrz7x7krr7gm57bgj55xai14rmk9k"; + inherit dependencies buildDependencies features; + }; + tokio_proto_0_1_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "tokio-proto"; + version = "0.1.1"; + authors = [ "Carl Lerche " ]; + sha256 = "030q9h8pn1ngm80klff5irglxxki60hf5maw0mppmmr46k773z66"; + inherit dependencies buildDependencies features; + }; + tokio_reactor_0_1_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "tokio-reactor"; + version = "0.1.1"; + authors = [ "Carl Lerche " ]; + sha256 = "0crs57d2k4a69abqhjzs3crs3hfw7qia3phpc3saxpnwh1j51093"; + inherit dependencies buildDependencies features; + }; + tokio_service_0_1_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "tokio-service"; + version = "0.1.0"; + authors = [ "Carl Lerche " ]; + sha256 = "0c85wm5qz9fabg0k6k763j89m43n6max72d3a8sxcs940id6qmih"; + inherit dependencies buildDependencies features; + }; + tokio_signal_0_1_5_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "tokio-signal"; + version = "0.1.5"; + authors = [ "Alex Crichton " ]; + sha256 = "1rqbb1n2kzzy3gqc4ha3rd3km1wdgy1mgbbngn5alpq9xvd4x1kz"; + inherit dependencies buildDependencies features; + }; + tokio_tcp_0_1_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "tokio-tcp"; + version = "0.1.0"; + authors = [ "Carl Lerche " ]; + sha256 = "19cyajkqvvbn3qqnak0qzivdq6amfjymbc30k7bbqhx4y1pcgqvh"; + inherit dependencies buildDependencies features; + }; + tokio_threadpool_0_1_3_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "tokio-threadpool"; + version = "0.1.3"; + authors = [ "Carl Lerche " ]; + sha256 = "03frrcrq0r8z7gl7k9i3qy7ijnk5mbwcszlcbfk7zfhy23ik46md"; + inherit dependencies buildDependencies features; + }; + tokio_timer_0_2_3_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "tokio-timer"; + version = "0.2.3"; + authors = [ "Carl Lerche " ]; + sha256 = "13n45gbjv1wj5pf9v0s63qxpv88yifm8zfbq1pyhwdpf4nwnvn97"; + inherit dependencies buildDependencies features; + }; + tokio_tls_0_1_4_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "tokio-tls"; + version = "0.1.4"; + authors = [ "Carl Lerche " "Alex Crichton " ]; + sha256 = "07rwv3q6jbg65ln1ahzb4g648l8lcn4hvc0ax3r12bnsi1py7agp"; + inherit dependencies buildDependencies features; + }; + tokio_udp_0_1_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "tokio-udp"; + version = "0.1.0"; + authors = [ "Carl Lerche " ]; + sha256 = "0c1wjiqri0xlfrqq2hmgppvl9j8pjy8469s67f08dc8lybmrb1q1"; + inherit dependencies buildDependencies features; + }; + trust_dns_proto_0_3_3_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "trust-dns-proto"; + version = "0.3.3"; + authors = [ "Benjamin Fry " ]; + sha256 = "10cf1999j552fdxnk9cq84n26ybj5b8pk2914akag57g035iq1ql"; + libPath = "src/lib.rs"; + libName = "trust_dns_proto"; + inherit dependencies buildDependencies features; + }; + trust_dns_resolver_0_8_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "trust-dns-resolver"; + version = "0.8.2"; + authors = [ "Benjamin Fry " ]; + sha256 = "0df4ls6gk97zc1931jwm8w9d1mg34h0j4zhm77aaxwq9cjk71xw1"; + libPath = "src/lib.rs"; + libName = "trust_dns_resolver"; + inherit dependencies buildDependencies features; + }; + try_lock_0_1_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "try-lock"; + version = "0.1.0"; + authors = [ "Sean McArthur " ]; + sha256 = "0kfrqrb2xkjig54s3qfy80dpldknr19p3rmp0n82yk5929j879k3"; + inherit dependencies buildDependencies features; + }; + twoway_0_1_8_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "twoway"; + version = "0.1.8"; + authors = [ "bluss" ]; + sha256 = "0svrdcy08h0gm884f220hx37g8fsp5z6abaw6jb6g3f7djw1ir1g"; + inherit dependencies buildDependencies features; + }; + typed_arena_1_3_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "typed-arena"; + version = "1.3.0"; + authors = [ "Simon Sapin " ]; + sha256 = "19yylpxv4mkx5285igiywh57snj6bgk8yw6139cjy7j86nz0mx9s"; + libPath = "src/lib.rs"; + libName = "typed_arena"; + inherit dependencies buildDependencies features; + }; + ucd_util_0_1_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "ucd-util"; + version = "0.1.1"; + authors = [ "Andrew Gallant " ]; + sha256 = "02a8h3siipx52b832xc8m8rwasj6nx9jpiwfldw8hp6k205hgkn0"; + inherit dependencies buildDependencies features; + }; + unicase_1_4_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "unicase"; + version = "1.4.2"; + authors = [ "Sean McArthur " ]; + sha256 = "0rbnhw2mnhcwrij3vczp0sl8zdfmvf2dlh8hly81kj7132kfj0mf"; + build = "build.rs"; + inherit dependencies buildDependencies features; + }; + unicase_2_1_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "unicase"; + version = "2.1.0"; + authors = [ "Sean McArthur " ]; + sha256 = "1zzn16hh8fdx5pnbbnl32q8m2mh4vpd1jm9pdcv969ik83dw4byp"; + build = "build.rs"; + inherit dependencies buildDependencies features; + }; + unicode_bidi_0_3_4_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "unicode-bidi"; + version = "0.3.4"; + authors = [ "The Servo Project Developers" ]; + sha256 = "0lcd6jasrf8p9p0q20qyf10c6xhvw40m2c4rr105hbk6zy26nj1q"; + libName = "unicode_bidi"; + inherit dependencies buildDependencies features; + }; + unicode_normalization_0_1_7_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "unicode-normalization"; + version = "0.1.7"; + authors = [ "kwantam " ]; + sha256 = "1da2hv800pd0wilmn4idwpgv5p510hjxizjcfv6xzb40xcsjd8gs"; + inherit dependencies buildDependencies features; + }; + unicode_width_0_1_4_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "unicode-width"; + version = "0.1.4"; + authors = [ "kwantam " ]; + sha256 = "1rp7a04icn9y5c0lm74nrd4py0rdl0af8bhdwq7g478n1xifpifl"; + inherit dependencies buildDependencies features; + }; + unicode_xid_0_0_4_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "unicode-xid"; + version = "0.0.4"; + authors = [ "erick.tryzelaar " "kwantam " ]; + sha256 = "1dc8wkkcd3s6534s5aw4lbjn8m67flkkbnajp5bl8408wdg8rh9v"; + inherit dependencies buildDependencies features; + }; + unicode_xid_0_1_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "unicode-xid"; + version = "0.1.0"; + authors = [ "erick.tryzelaar " "kwantam " ]; + sha256 = "05wdmwlfzxhq3nhsxn6wx4q8dhxzzfb9szsz6wiw092m1rjj01zj"; + inherit dependencies buildDependencies features; + }; + unicode_categories_0_1_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "unicode_categories"; + version = "0.1.1"; + authors = [ "Sean Gillespie " ]; + sha256 = "0capsv7dgw45sh7gpdgpfnmrjx2rdmkp5m523h35apq51cf8fpdi"; + inherit dependencies buildDependencies features; + }; + unidecode_0_3_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "unidecode"; + version = "0.3.0"; + authors = [ "Amit Chowdhury " ]; + sha256 = "09jqspji8m4n2959n35h36ik0nb0c7xq5cb3i0z6kiczz65ba0rs"; + inherit dependencies buildDependencies features; + }; + unreachable_1_0_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "unreachable"; + version = "1.0.0"; + authors = [ "Jonathan Reem " ]; + sha256 = "1am8czbk5wwr25gbp2zr007744fxjshhdqjz9liz7wl4pnv3whcf"; + inherit dependencies buildDependencies features; + }; + untrusted_0_5_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "untrusted"; + version = "0.5.1"; + authors = [ "Brian Smith " ]; + sha256 = "10nbd2nd9asx0v2g59i188rbpclh2xjaj10cjmp8h8a7in4i9pvd"; + inherit dependencies buildDependencies features; + }; + url_1_7_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "url"; + version = "1.7.0"; + authors = [ "The rust-url developers" ]; + sha256 = "0333ynhkp47hna88aamz1zpk4lxyzx4ab9n7yhc75g14w27cv8jj"; + inherit dependencies buildDependencies features; + }; + url_serde_0_2_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "url_serde"; + version = "0.2.0"; + authors = [ "The rust-url developers" ]; + sha256 = "07ry87rw0pi1da6b53f7s3f52wx3ihxbcgjd4ldspfv5xh6wipsg"; + inherit dependencies buildDependencies features; + }; + utf8_ranges_1_0_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "utf8-ranges"; + version = "1.0.0"; + authors = [ "Andrew Gallant " ]; + sha256 = "0rzmqprwjv9yp1n0qqgahgm24872x6c0xddfym5pfndy7a36vkn0"; + inherit dependencies buildDependencies features; + }; + uuid_0_5_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "uuid"; + version = "0.5.1"; + authors = [ "The Rust Project Developers" ]; + sha256 = "17d4csjmy7fa3ckrm40d3c3v411rw5d4400w756mcrzyw2pm1i2r"; + inherit dependencies buildDependencies features; + }; + uuid_0_6_3_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "uuid"; + version = "0.6.3"; + authors = [ "Ashley Mannix" "Christopher Armstrong" "Dylan DPC" "Hunar Roop Kahlon" ]; + sha256 = "1kjp5xglhab4saaikn95zn3mr4zja7484pv307cb5bxm2sawb8p6"; + inherit dependencies buildDependencies features; + }; + vcpkg_0_2_3_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "vcpkg"; + version = "0.2.3"; + authors = [ "Jim McGrath " ]; + sha256 = "0achi8sfy0wm4q04gj7nwpq9xfx8ynk6vv4r12a3ijg26hispq0c"; + inherit dependencies buildDependencies features; + }; + vec_map_0_8_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "vec_map"; + version = "0.8.1"; + authors = [ "Alex Crichton " "Jorge Aparicio " "Alexis Beingessner " "Brian Anderson <>" "tbu- <>" "Manish Goregaokar <>" "Aaron Turon " "Adolfo Ochagavía <>" "Niko Matsakis <>" "Steven Fackler <>" "Chase Southwood " "Eduard Burtescu <>" "Florian Wilkens <>" "Félix Raimundo <>" "Tibor Benke <>" "Markus Siemens " "Josh Branchaud " "Huon Wilson " "Corey Farwell " "Aaron Liblong <>" "Nick Cameron " "Patrick Walton " "Felix S Klock II <>" "Andrew Paseltiner " "Sean McArthur " "Vadim Petrochenkov <>" ]; + sha256 = "1jj2nrg8h3l53d43rwkpkikq5a5x15ms4rf1rw92hp5lrqhi8mpi"; + inherit dependencies buildDependencies features; + }; + version_check_0_1_3_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "version_check"; + version = "0.1.3"; + authors = [ "Sergio Benitez " ]; + sha256 = "0z635wdclv9bvafj11fpgndn7y79ibpsnc364pm61i1m4wwg8msg"; + inherit dependencies buildDependencies features; + }; + void_1_0_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "void"; + version = "1.0.2"; + authors = [ "Jonathan Reem " ]; + sha256 = "0h1dm0dx8dhf56a83k68mijyxigqhizpskwxfdrs1drwv2cdclv3"; + inherit dependencies buildDependencies features; + }; + walkdir_2_1_4_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "walkdir"; + version = "2.1.4"; + authors = [ "Andrew Gallant " ]; + sha256 = "1bx9q2xnhgbjygn99zi8j5avhv8jmkbi5lxgg20h9kmgswqkbmny"; + inherit dependencies buildDependencies features; + }; + want_0_0_4_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "want"; + version = "0.0.4"; + authors = [ "Sean McArthur " ]; + sha256 = "1l1qy4pvg5q71nrzfjldw9xzqhhgicj4slly1bal89hr2aaibpy0"; + inherit dependencies buildDependencies features; + }; + widestring_0_2_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "widestring"; + version = "0.2.2"; + authors = [ "Kathryn Long " ]; + sha256 = "07n6cmk47h8v4bvg7cwawipcn6ijqcfwhf9w6x3r2nw3ghsm2h0a"; + inherit dependencies buildDependencies features; + }; + winapi_0_2_8_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "winapi"; + version = "0.2.8"; + authors = [ "Peter Atashian " ]; + sha256 = "0a45b58ywf12vb7gvj6h3j264nydynmzyqz8d8rqxsj6icqv82as"; + inherit dependencies buildDependencies features; + }; + winapi_0_3_4_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "winapi"; + version = "0.3.4"; + authors = [ "Peter Atashian " ]; + sha256 = "1qbrf5dcnd8j36cawby5d9r5vx07r0l4ryf672pfncnp8895k9lx"; + build = "build.rs"; + inherit dependencies buildDependencies features; + }; + winapi_build_0_1_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "winapi-build"; + version = "0.1.1"; + authors = [ "Peter Atashian " ]; + sha256 = "1lxlpi87rkhxcwp2ykf1ldw3p108hwm24nywf3jfrvmff4rjhqga"; + libName = "build"; + inherit dependencies buildDependencies features; + }; + winapi_i686_pc_windows_gnu_0_4_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "winapi-i686-pc-windows-gnu"; + version = "0.4.0"; + authors = [ "Peter Atashian " ]; + sha256 = "05ihkij18r4gamjpxj4gra24514can762imjzlmak5wlzidplzrp"; + build = "build.rs"; + inherit dependencies buildDependencies features; + }; + winapi_x86_64_pc_windows_gnu_0_4_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "winapi-x86_64-pc-windows-gnu"; + version = "0.4.0"; + authors = [ "Peter Atashian " ]; + sha256 = "0n1ylmlsb8yg1v583i4xy0qmqg42275flvbc51hdqjjfjcl9vlbj"; + build = "build.rs"; + inherit dependencies buildDependencies features; + }; + wincolor_0_1_6_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "wincolor"; + version = "0.1.6"; + authors = [ "Andrew Gallant " ]; + sha256 = "0f8m3l86pw6qi31jidqj78pgd15xj914850lyvsxkbln4f1drv47"; + inherit dependencies buildDependencies features; + }; + winreg_0_5_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "winreg"; + version = "0.5.0"; + authors = [ "Igor Shaula " ]; + sha256 = "0smhk0h5kcwzpjlhyvx2p6cjda28cchzjbnwbs658rz641q98rcd"; + inherit dependencies buildDependencies features; + }; + winutil_0_1_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "winutil"; + version = "0.1.1"; + authors = [ "Dave Lancaster " ]; + sha256 = "1wvq440hl1v3a65agjbp031gw5jim3qasfvmz703dlz95pbjv45r"; + inherit dependencies buildDependencies features; + }; + ws2_32_sys_0_2_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "ws2_32-sys"; + version = "0.2.1"; + authors = [ "Peter Atashian " ]; + sha256 = "1zpy9d9wk11sj17fczfngcj28w4xxjs3b4n036yzpy38dxp4f7kc"; + libName = "ws2_32"; + build = "build.rs"; + inherit dependencies buildDependencies features; + }; + actix_0_5_7 = { features?(actix_0_5_7_features {}) }: actix_0_5_7_ { + dependencies = mapFeatures features ([ actix_derive_0_2_0 bitflags_1_0_3 bytes_0_4_7 crossbeam_channel_0_1_2 failure_0_1_1 futures_0_1_21 libc_0_2_40 log_0_4_1 smallvec_0_6_1 tokio_core_0_1_17 tokio_io_0_1_6 tokio_signal_0_1_5 trust_dns_resolver_0_8_2 uuid_0_6_3 ]); + buildDependencies = mapFeatures features ([ skeptic_0_13_3 ]); + }; + actix_0_5_7_features = f: updateFeatures f (rec { + actix_0_5_7.default = (f.actix_0_5_7.default or true); + actix_derive_0_2_0.default = true; + bitflags_1_0_3.default = true; + bytes_0_4_7.default = true; + crossbeam_channel_0_1_2.default = true; + failure_0_1_1.default = true; + futures_0_1_21.default = true; + libc_0_2_40.default = true; + log_0_4_1.default = true; + skeptic_0_13_3.default = true; + smallvec_0_6_1.default = true; + tokio_core_0_1_17.default = true; + tokio_io_0_1_6.default = true; + tokio_signal_0_1_5.default = true; + trust_dns_resolver_0_8_2.default = true; + uuid_0_6_3."v4" = true; + uuid_0_6_3.default = true; + }) [ actix_derive_0_2_0_features bitflags_1_0_3_features bytes_0_4_7_features crossbeam_channel_0_1_2_features failure_0_1_1_features futures_0_1_21_features libc_0_2_40_features log_0_4_1_features smallvec_0_6_1_features tokio_core_0_1_17_features tokio_io_0_1_6_features tokio_signal_0_1_5_features trust_dns_resolver_0_8_2_features uuid_0_6_3_features skeptic_0_13_3_features ]; + actix_web_0_6_7 = { features?(actix_web_0_6_7_features {}) }: actix_web_0_6_7_ { + dependencies = mapFeatures features ([ actix_0_5_7 base64_0_9_1 bitflags_1_0_3 byteorder_1_2_3 bytes_0_4_7 cookie_0_10_1 encoding_0_2_33 failure_0_1_1 futures_0_1_21 futures_cpupool_0_1_8 h2_0_1_7 http_0_1_5 http_range_0_1_1 httparse_1_2_4 language_tags_0_2_2 lazy_static_1_0_0 libc_0_2_40 log_0_4_1 mime_0_3_7 mime_guess_2_0_0_alpha_4 mio_0_6_14 net2_0_2_32 num_cpus_1_8_0 percent_encoding_1_0_1 rand_0_4_2 regex_1_0_0 serde_1_0_55 serde_json_1_0_17 serde_urlencoded_0_5_2 sha1_0_6_0 slab_0_4_0 smallvec_0_6_1 time_0_1_40 tokio_core_0_1_17 tokio_io_0_1_6 url_1_7_0 ] + ++ (if features.actix_web_0_6_7."brotli2" or false then [ brotli2_0_3_2 ] else []) + ++ (if features.actix_web_0_6_7."flate2" or false then [ flate2_1_0_1 ] else [])); + buildDependencies = mapFeatures features ([ version_check_0_1_3 ]); + features = mkFeatures (features.actix_web_0_6_7 or {}); + }; + actix_web_0_6_7_features = f: updateFeatures f (rec { + actix_0_5_7.default = true; + actix_web_0_6_7."brotli2" = + (f.actix_web_0_6_7."brotli2" or false) || + (f.actix_web_0_6_7.brotli or false) || + (actix_web_0_6_7.brotli or false); + actix_web_0_6_7."flate2-c" = + (f.actix_web_0_6_7."flate2-c" or false) || + (f.actix_web_0_6_7.default or false) || + (actix_web_0_6_7.default or false); + actix_web_0_6_7."native-tls" = + (f.actix_web_0_6_7."native-tls" or false) || + (f.actix_web_0_6_7.tls or false) || + (actix_web_0_6_7.tls or false); + actix_web_0_6_7."tokio-openssl" = + (f.actix_web_0_6_7."tokio-openssl" or false) || + (f.actix_web_0_6_7.alpn or false) || + (actix_web_0_6_7.alpn or false); + actix_web_0_6_7."tokio-tls" = + (f.actix_web_0_6_7."tokio-tls" or false) || + (f.actix_web_0_6_7.tls or false) || + (actix_web_0_6_7.tls or false); + actix_web_0_6_7.brotli = + (f.actix_web_0_6_7.brotli or false) || + (f.actix_web_0_6_7.default or false) || + (actix_web_0_6_7.default or false); + actix_web_0_6_7.default = (f.actix_web_0_6_7.default or true); + actix_web_0_6_7.openssl = + (f.actix_web_0_6_7.openssl or false) || + (f.actix_web_0_6_7.alpn or false) || + (actix_web_0_6_7.alpn or false); + actix_web_0_6_7.session = + (f.actix_web_0_6_7.session or false) || + (f.actix_web_0_6_7.default or false) || + (actix_web_0_6_7.default or false); + base64_0_9_1.default = true; + bitflags_1_0_3.default = true; + brotli2_0_3_2.default = true; + byteorder_1_2_3.default = true; + bytes_0_4_7.default = true; + cookie_0_10_1."percent-encode" = true; + cookie_0_10_1.default = true; + cookie_0_10_1.secure = + (f.cookie_0_10_1.secure or false) || + (actix_web_0_6_7.session or false) || + (f.actix_web_0_6_7.session or false); + encoding_0_2_33.default = true; + failure_0_1_1.default = true; + flate2_1_0_1."miniz-sys" = + (f.flate2_1_0_1."miniz-sys" or false) || + (actix_web_0_6_7."flate2-c" or false) || + (f.actix_web_0_6_7."flate2-c" or false); + flate2_1_0_1.default = (f.flate2_1_0_1.default or false); + flate2_1_0_1.rust_backend = + (f.flate2_1_0_1.rust_backend or false) || + (actix_web_0_6_7."flate2-rust" or false) || + (f.actix_web_0_6_7."flate2-rust" or false); + futures_0_1_21.default = true; + futures_cpupool_0_1_8.default = true; + h2_0_1_7.default = true; + http_0_1_5.default = true; + http_range_0_1_1.default = true; + httparse_1_2_4.default = true; + language_tags_0_2_2.default = true; + lazy_static_1_0_0.default = true; + libc_0_2_40.default = true; + log_0_4_1.default = true; + mime_0_3_7.default = true; + mime_guess_2_0_0_alpha_4.default = true; + mio_0_6_14.default = true; + net2_0_2_32.default = true; + num_cpus_1_8_0.default = true; + percent_encoding_1_0_1.default = true; + rand_0_4_2.default = true; + regex_1_0_0.default = true; + serde_1_0_55.default = true; + serde_json_1_0_17.default = true; + serde_urlencoded_0_5_2.default = true; + sha1_0_6_0.default = true; + slab_0_4_0.default = true; + smallvec_0_6_1.default = true; + time_0_1_40.default = true; + tokio_core_0_1_17.default = true; + tokio_io_0_1_6.default = true; + url_1_7_0.default = true; + url_1_7_0.query_encoding = true; + version_check_0_1_3.default = true; + }) [ actix_0_5_7_features base64_0_9_1_features bitflags_1_0_3_features brotli2_0_3_2_features byteorder_1_2_3_features bytes_0_4_7_features cookie_0_10_1_features encoding_0_2_33_features failure_0_1_1_features flate2_1_0_1_features futures_0_1_21_features futures_cpupool_0_1_8_features h2_0_1_7_features http_0_1_5_features http_range_0_1_1_features httparse_1_2_4_features language_tags_0_2_2_features lazy_static_1_0_0_features libc_0_2_40_features log_0_4_1_features mime_0_3_7_features mime_guess_2_0_0_alpha_4_features mio_0_6_14_features net2_0_2_32_features num_cpus_1_8_0_features percent_encoding_1_0_1_features rand_0_4_2_features regex_1_0_0_features serde_1_0_55_features serde_json_1_0_17_features serde_urlencoded_0_5_2_features sha1_0_6_0_features slab_0_4_0_features smallvec_0_6_1_features time_0_1_40_features tokio_core_0_1_17_features tokio_io_0_1_6_features url_1_7_0_features version_check_0_1_3_features ]; + actix_derive_0_2_0 = { features?(actix_derive_0_2_0_features {}) }: actix_derive_0_2_0_ { + dependencies = mapFeatures features ([ quote_0_3_15 rand_0_3_22 syn_0_11_11 ]); + buildDependencies = mapFeatures features ([ version_check_0_1_3 ]); + }; + actix_derive_0_2_0_features = f: updateFeatures f (rec { + actix_derive_0_2_0.default = (f.actix_derive_0_2_0.default or true); + quote_0_3_15.default = true; + rand_0_3_22.default = true; + syn_0_11_11.default = true; + syn_0_11_11.full = true; + version_check_0_1_3.default = true; + }) [ quote_0_3_15_features rand_0_3_22_features syn_0_11_11_features version_check_0_1_3_features ]; + adler32_1_0_2 = { features?(adler32_1_0_2_features {}) }: adler32_1_0_2_ {}; + adler32_1_0_2_features = f: updateFeatures f (rec { + adler32_1_0_2.default = (f.adler32_1_0_2.default or true); + }) []; + aho_corasick_0_6_4 = { features?(aho_corasick_0_6_4_features {}) }: aho_corasick_0_6_4_ { + dependencies = mapFeatures features ([ memchr_2_0_1 ]); + }; + aho_corasick_0_6_4_features = f: updateFeatures f (rec { + aho_corasick_0_6_4.default = (f.aho_corasick_0_6_4.default or true); + memchr_2_0_1.default = true; + }) [ memchr_2_0_1_features ]; + ansi_term_0_11_0 = { features?(ansi_term_0_11_0_features {}) }: ansi_term_0_11_0_ { + dependencies = (if kernel == "windows" then mapFeatures features ([ winapi_0_3_4 ]) else []); + }; + ansi_term_0_11_0_features = f: updateFeatures f (rec { + ansi_term_0_11_0.default = (f.ansi_term_0_11_0.default or true); + winapi_0_3_4.consoleapi = true; + winapi_0_3_4.default = true; + winapi_0_3_4.errhandlingapi = true; + winapi_0_3_4.processenv = true; + }) [ winapi_0_3_4_features ]; + antidote_1_0_0 = { features?(antidote_1_0_0_features {}) }: antidote_1_0_0_ {}; + antidote_1_0_0_features = f: updateFeatures f (rec { + antidote_1_0_0.default = (f.antidote_1_0_0.default or true); + }) []; + arrayvec_0_4_7 = { features?(arrayvec_0_4_7_features {}) }: arrayvec_0_4_7_ { + dependencies = mapFeatures features ([ nodrop_0_1_12 ]); + features = mkFeatures (features.arrayvec_0_4_7 or {}); + }; + arrayvec_0_4_7_features = f: updateFeatures f (rec { + arrayvec_0_4_7.default = (f.arrayvec_0_4_7.default or true); + arrayvec_0_4_7.serde = + (f.arrayvec_0_4_7.serde or false) || + (f.arrayvec_0_4_7."serde-1" or false) || + (arrayvec_0_4_7."serde-1" or false); + arrayvec_0_4_7.std = + (f.arrayvec_0_4_7.std or false) || + (f.arrayvec_0_4_7.default or false) || + (arrayvec_0_4_7.default or false); + nodrop_0_1_12.default = (f.nodrop_0_1_12.default or false); + }) [ nodrop_0_1_12_features ]; + atty_0_2_10 = { features?(atty_0_2_10_features {}) }: atty_0_2_10_ { + dependencies = (if kernel == "redox" then mapFeatures features ([ termion_1_5_1 ]) else []) + ++ (if (kernel == "linux" || kernel == "darwin") then mapFeatures features ([ libc_0_2_40 ]) else []) + ++ (if kernel == "windows" then mapFeatures features ([ winapi_0_3_4 ]) else []); + }; + atty_0_2_10_features = f: updateFeatures f (rec { + atty_0_2_10.default = (f.atty_0_2_10.default or true); + libc_0_2_40.default = (f.libc_0_2_40.default or false); + termion_1_5_1.default = true; + winapi_0_3_4.consoleapi = true; + winapi_0_3_4.default = true; + winapi_0_3_4.minwinbase = true; + winapi_0_3_4.minwindef = true; + winapi_0_3_4.processenv = true; + winapi_0_3_4.winbase = true; + }) [ termion_1_5_1_features libc_0_2_40_features winapi_0_3_4_features ]; + backtrace_0_2_3 = { features?(backtrace_0_2_3_features {}) }: backtrace_0_2_3_ { + dependencies = mapFeatures features ([ cfg_if_0_1_3 libc_0_2_40 rustc_demangle_0_1_8 ] + ++ (if features.backtrace_0_2_3."backtrace-sys" or false then [ backtrace_sys_0_1_16 ] else []) + ++ (if features.backtrace_0_2_3."dbghelp-sys" or false then [ dbghelp_sys_0_2_0 ] else []) + ++ (if features.backtrace_0_2_3."kernel32-sys" or false then [ kernel32_sys_0_2_2 ] else []) + ++ (if features.backtrace_0_2_3.winapi or false then [ winapi_0_2_8 ] else [])); + buildDependencies = mapFeatures features ([]); + features = mkFeatures (features.backtrace_0_2_3 or {}); + }; + backtrace_0_2_3_features = f: updateFeatures f (rec { + backtrace_0_2_3."backtrace-sys" = + (f.backtrace_0_2_3."backtrace-sys" or false) || + (f.backtrace_0_2_3.libbacktrace or false) || + (backtrace_0_2_3.libbacktrace or false); + backtrace_0_2_3."dbghelp-sys" = + (f.backtrace_0_2_3."dbghelp-sys" or false) || + (f.backtrace_0_2_3.dbghelp or false) || + (backtrace_0_2_3.dbghelp or false); + backtrace_0_2_3."kernel32-sys" = + (f.backtrace_0_2_3."kernel32-sys" or false) || + (f.backtrace_0_2_3.dbghelp or false) || + (backtrace_0_2_3.dbghelp or false); + backtrace_0_2_3."rustc-serialize" = + (f.backtrace_0_2_3."rustc-serialize" or false) || + (f.backtrace_0_2_3."serialize-rustc" or false) || + (backtrace_0_2_3."serialize-rustc" or false); + backtrace_0_2_3.dbghelp = + (f.backtrace_0_2_3.dbghelp or false) || + (f.backtrace_0_2_3.default or false) || + (backtrace_0_2_3.default or false); + backtrace_0_2_3.default = (f.backtrace_0_2_3.default or true); + backtrace_0_2_3.dladdr = + (f.backtrace_0_2_3.dladdr or false) || + (f.backtrace_0_2_3.default or false) || + (backtrace_0_2_3.default or false); + backtrace_0_2_3.libbacktrace = + (f.backtrace_0_2_3.libbacktrace or false) || + (f.backtrace_0_2_3.default or false) || + (backtrace_0_2_3.default or false); + backtrace_0_2_3.libunwind = + (f.backtrace_0_2_3.libunwind or false) || + (f.backtrace_0_2_3.default or false) || + (backtrace_0_2_3.default or false); + backtrace_0_2_3.serde = + (f.backtrace_0_2_3.serde or false) || + (f.backtrace_0_2_3."serialize-serde" or false) || + (backtrace_0_2_3."serialize-serde" or false); + backtrace_0_2_3.serde_codegen = + (f.backtrace_0_2_3.serde_codegen or false) || + (f.backtrace_0_2_3."serialize-serde" or false) || + (backtrace_0_2_3."serialize-serde" or false); + backtrace_0_2_3.winapi = + (f.backtrace_0_2_3.winapi or false) || + (f.backtrace_0_2_3.dbghelp or false) || + (backtrace_0_2_3.dbghelp or false); + backtrace_sys_0_1_16.default = true; + cfg_if_0_1_3.default = true; + dbghelp_sys_0_2_0.default = true; + kernel32_sys_0_2_2.default = true; + libc_0_2_40.default = true; + rustc_demangle_0_1_8.default = true; + winapi_0_2_8.default = true; + }) [ backtrace_sys_0_1_16_features cfg_if_0_1_3_features dbghelp_sys_0_2_0_features kernel32_sys_0_2_2_features libc_0_2_40_features rustc_demangle_0_1_8_features winapi_0_2_8_features ]; + backtrace_0_3_7 = { features?(backtrace_0_3_7_features {}) }: backtrace_0_3_7_ { + dependencies = mapFeatures features ([ cfg_if_0_1_3 rustc_demangle_0_1_8 ]) + ++ (if (kernel == "linux" || kernel == "darwin") && !(kernel == "fuchsia") && !(kernel == "emscripten") && !(kernel == "darwin") && !(kernel == "ios") then mapFeatures features ([ ] + ++ (if features.backtrace_0_3_7."backtrace-sys" or false then [ backtrace_sys_0_1_16 ] else [])) else []) + ++ (if (kernel == "linux" || kernel == "darwin") then mapFeatures features ([ libc_0_2_40 ]) else []) + ++ (if kernel == "windows" then mapFeatures features ([ ] + ++ (if features.backtrace_0_3_7.winapi or false then [ winapi_0_3_4 ] else [])) else []); + features = mkFeatures (features.backtrace_0_3_7 or {}); + }; + backtrace_0_3_7_features = f: updateFeatures f (rec { + backtrace_0_3_7."addr2line" = + (f.backtrace_0_3_7."addr2line" or false) || + (f.backtrace_0_3_7."gimli-symbolize" or false) || + (backtrace_0_3_7."gimli-symbolize" or false); + backtrace_0_3_7."backtrace-sys" = + (f.backtrace_0_3_7."backtrace-sys" or false) || + (f.backtrace_0_3_7.libbacktrace or false) || + (backtrace_0_3_7.libbacktrace or false); + backtrace_0_3_7."rustc-serialize" = + (f.backtrace_0_3_7."rustc-serialize" or false) || + (f.backtrace_0_3_7."serialize-rustc" or false) || + (backtrace_0_3_7."serialize-rustc" or false); + backtrace_0_3_7.coresymbolication = + (f.backtrace_0_3_7.coresymbolication or false) || + (f.backtrace_0_3_7.default or false) || + (backtrace_0_3_7.default or false); + backtrace_0_3_7.dbghelp = + (f.backtrace_0_3_7.dbghelp or false) || + (f.backtrace_0_3_7.default or false) || + (backtrace_0_3_7.default or false); + backtrace_0_3_7.default = (f.backtrace_0_3_7.default or true); + backtrace_0_3_7.dladdr = + (f.backtrace_0_3_7.dladdr or false) || + (f.backtrace_0_3_7.default or false) || + (backtrace_0_3_7.default or false); + backtrace_0_3_7.findshlibs = + (f.backtrace_0_3_7.findshlibs or false) || + (f.backtrace_0_3_7."gimli-symbolize" or false) || + (backtrace_0_3_7."gimli-symbolize" or false); + backtrace_0_3_7.gimli = + (f.backtrace_0_3_7.gimli or false) || + (f.backtrace_0_3_7."gimli-symbolize" or false) || + (backtrace_0_3_7."gimli-symbolize" or false); + backtrace_0_3_7.libbacktrace = + (f.backtrace_0_3_7.libbacktrace or false) || + (f.backtrace_0_3_7.default or false) || + (backtrace_0_3_7.default or false); + backtrace_0_3_7.libunwind = + (f.backtrace_0_3_7.libunwind or false) || + (f.backtrace_0_3_7.default or false) || + (backtrace_0_3_7.default or false); + backtrace_0_3_7.memmap = + (f.backtrace_0_3_7.memmap or false) || + (f.backtrace_0_3_7."gimli-symbolize" or false) || + (backtrace_0_3_7."gimli-symbolize" or false); + backtrace_0_3_7.object = + (f.backtrace_0_3_7.object or false) || + (f.backtrace_0_3_7."gimli-symbolize" or false) || + (backtrace_0_3_7."gimli-symbolize" or false); + backtrace_0_3_7.serde = + (f.backtrace_0_3_7.serde or false) || + (f.backtrace_0_3_7."serialize-serde" or false) || + (backtrace_0_3_7."serialize-serde" or false); + backtrace_0_3_7.serde_derive = + (f.backtrace_0_3_7.serde_derive or false) || + (f.backtrace_0_3_7."serialize-serde" or false) || + (backtrace_0_3_7."serialize-serde" or false); + backtrace_0_3_7.winapi = + (f.backtrace_0_3_7.winapi or false) || + (f.backtrace_0_3_7.dbghelp or false) || + (backtrace_0_3_7.dbghelp or false); + backtrace_sys_0_1_16.default = true; + cfg_if_0_1_3.default = true; + libc_0_2_40.default = true; + rustc_demangle_0_1_8.default = true; + winapi_0_3_4.dbghelp = true; + winapi_0_3_4.default = true; + winapi_0_3_4.minwindef = true; + winapi_0_3_4.processthreadsapi = true; + winapi_0_3_4.std = true; + winapi_0_3_4.winnt = true; + }) [ cfg_if_0_1_3_features rustc_demangle_0_1_8_features backtrace_sys_0_1_16_features libc_0_2_40_features winapi_0_3_4_features ]; + backtrace_sys_0_1_16 = { features?(backtrace_sys_0_1_16_features {}) }: backtrace_sys_0_1_16_ { + dependencies = mapFeatures features ([ libc_0_2_40 ]); + buildDependencies = mapFeatures features ([ cc_1_0_15 ]); + }; + backtrace_sys_0_1_16_features = f: updateFeatures f (rec { + backtrace_sys_0_1_16.default = (f.backtrace_sys_0_1_16.default or true); + cc_1_0_15.default = true; + libc_0_2_40.default = true; + }) [ libc_0_2_40_features cc_1_0_15_features ]; + base64_0_6_0 = { features?(base64_0_6_0_features {}) }: base64_0_6_0_ { + dependencies = mapFeatures features ([ byteorder_1_2_3 safemem_0_2_0 ]); + }; + base64_0_6_0_features = f: updateFeatures f (rec { + base64_0_6_0.default = (f.base64_0_6_0.default or true); + byteorder_1_2_3.default = true; + safemem_0_2_0.default = true; + }) [ byteorder_1_2_3_features safemem_0_2_0_features ]; + base64_0_9_1 = { features?(base64_0_9_1_features {}) }: base64_0_9_1_ { + dependencies = mapFeatures features ([ byteorder_1_2_3 safemem_0_2_0 ]); + }; + base64_0_9_1_features = f: updateFeatures f (rec { + base64_0_9_1.default = (f.base64_0_9_1.default or true); + byteorder_1_2_3.default = true; + safemem_0_2_0.default = true; + }) [ byteorder_1_2_3_features safemem_0_2_0_features ]; + bitflags_0_9_1 = { features?(bitflags_0_9_1_features {}) }: bitflags_0_9_1_ { + features = mkFeatures (features.bitflags_0_9_1 or {}); + }; + bitflags_0_9_1_features = f: updateFeatures f (rec { + bitflags_0_9_1.default = (f.bitflags_0_9_1.default or true); + bitflags_0_9_1.example_generated = + (f.bitflags_0_9_1.example_generated or false) || + (f.bitflags_0_9_1.default or false) || + (bitflags_0_9_1.default or false); + }) []; + bitflags_1_0_3 = { features?(bitflags_1_0_3_features {}) }: bitflags_1_0_3_ { + features = mkFeatures (features.bitflags_1_0_3 or {}); + }; + bitflags_1_0_3_features = f: updateFeatures f (rec { + bitflags_1_0_3.default = (f.bitflags_1_0_3.default or true); + }) []; + brotli_sys_0_3_2 = { features?(brotli_sys_0_3_2_features {}) }: brotli_sys_0_3_2_ { + dependencies = mapFeatures features ([ libc_0_2_40 ]); + buildDependencies = mapFeatures features ([ cc_1_0_15 ]); + }; + brotli_sys_0_3_2_features = f: updateFeatures f (rec { + brotli_sys_0_3_2.default = (f.brotli_sys_0_3_2.default or true); + cc_1_0_15.default = true; + libc_0_2_40.default = true; + }) [ libc_0_2_40_features cc_1_0_15_features ]; + brotli2_0_3_2 = { features?(brotli2_0_3_2_features {}) }: brotli2_0_3_2_ { + dependencies = mapFeatures features ([ brotli_sys_0_3_2 libc_0_2_40 ]); + }; + brotli2_0_3_2_features = f: updateFeatures f (rec { + brotli2_0_3_2.default = (f.brotli2_0_3_2.default or true); + brotli_sys_0_3_2.default = true; + libc_0_2_40.default = true; + }) [ brotli_sys_0_3_2_features libc_0_2_40_features ]; + build_const_0_2_1 = { features?(build_const_0_2_1_features {}) }: build_const_0_2_1_ { + features = mkFeatures (features.build_const_0_2_1 or {}); + }; + build_const_0_2_1_features = f: updateFeatures f (rec { + build_const_0_2_1.default = (f.build_const_0_2_1.default or true); + build_const_0_2_1.std = + (f.build_const_0_2_1.std or false) || + (f.build_const_0_2_1.default or false) || + (build_const_0_2_1.default or false); + }) []; + bytecount_0_3_1 = { features?(bytecount_0_3_1_features {}) }: bytecount_0_3_1_ { + dependencies = mapFeatures features ([]); + features = mkFeatures (features.bytecount_0_3_1 or {}); + }; + bytecount_0_3_1_features = f: updateFeatures f (rec { + bytecount_0_3_1."simd-accel" = + (f.bytecount_0_3_1."simd-accel" or false) || + (f.bytecount_0_3_1."avx-accel" or false) || + (bytecount_0_3_1."avx-accel" or false); + bytecount_0_3_1.default = (f.bytecount_0_3_1.default or true); + bytecount_0_3_1.simd = + (f.bytecount_0_3_1.simd or false) || + (f.bytecount_0_3_1."simd-accel" or false) || + (bytecount_0_3_1."simd-accel" or false); + }) []; + byteorder_1_2_3 = { features?(byteorder_1_2_3_features {}) }: byteorder_1_2_3_ { + features = mkFeatures (features.byteorder_1_2_3 or {}); + }; + byteorder_1_2_3_features = f: updateFeatures f (rec { + byteorder_1_2_3.default = (f.byteorder_1_2_3.default or true); + byteorder_1_2_3.std = + (f.byteorder_1_2_3.std or false) || + (f.byteorder_1_2_3.default or false) || + (byteorder_1_2_3.default or false); + }) []; + bytes_0_4_7 = { features?(bytes_0_4_7_features {}) }: bytes_0_4_7_ { + dependencies = mapFeatures features ([ byteorder_1_2_3 iovec_0_1_2 ]); + }; + bytes_0_4_7_features = f: updateFeatures f (rec { + byteorder_1_2_3.default = true; + bytes_0_4_7.default = (f.bytes_0_4_7.default or true); + iovec_0_1_2.default = true; + }) [ byteorder_1_2_3_features iovec_0_1_2_features ]; + cargo_metadata_0_5_4 = { features?(cargo_metadata_0_5_4_features {}) }: cargo_metadata_0_5_4_ { + dependencies = mapFeatures features ([ error_chain_0_11_0 semver_0_9_0 serde_1_0_55 serde_derive_1_0_55 serde_json_1_0_17 ]); + }; + cargo_metadata_0_5_4_features = f: updateFeatures f (rec { + cargo_metadata_0_5_4.default = (f.cargo_metadata_0_5_4.default or true); + error_chain_0_11_0.default = true; + semver_0_9_0.default = true; + semver_0_9_0.serde = true; + serde_1_0_55.default = true; + serde_derive_1_0_55.default = true; + serde_json_1_0_17.default = true; + }) [ error_chain_0_11_0_features semver_0_9_0_features serde_1_0_55_features serde_derive_1_0_55_features serde_json_1_0_17_features ]; + cc_1_0_15 = { features?(cc_1_0_15_features {}) }: cc_1_0_15_ { + dependencies = mapFeatures features ([]); + features = mkFeatures (features.cc_1_0_15 or {}); + }; + cc_1_0_15_features = f: updateFeatures f (rec { + cc_1_0_15.default = (f.cc_1_0_15.default or true); + cc_1_0_15.rayon = + (f.cc_1_0_15.rayon or false) || + (f.cc_1_0_15.parallel or false) || + (cc_1_0_15.parallel or false); + }) []; + cfg_if_0_1_3 = { features?(cfg_if_0_1_3_features {}) }: cfg_if_0_1_3_ {}; + cfg_if_0_1_3_features = f: updateFeatures f (rec { + cfg_if_0_1_3.default = (f.cfg_if_0_1_3.default or true); + }) []; + chrono_0_4_2 = { features?(chrono_0_4_2_features {}) }: chrono_0_4_2_ { + dependencies = mapFeatures features ([ num_integer_0_1_38 num_traits_0_2_4 ] + ++ (if features.chrono_0_4_2.serde or false then [ serde_1_0_55 ] else []) + ++ (if features.chrono_0_4_2.time or false then [ time_0_1_40 ] else [])); + features = mkFeatures (features.chrono_0_4_2 or {}); + }; + chrono_0_4_2_features = f: updateFeatures f (rec { + chrono_0_4_2.clock = + (f.chrono_0_4_2.clock or false) || + (f.chrono_0_4_2.default or false) || + (chrono_0_4_2.default or false); + chrono_0_4_2.default = (f.chrono_0_4_2.default or true); + chrono_0_4_2.time = + (f.chrono_0_4_2.time or false) || + (f.chrono_0_4_2.clock or false) || + (chrono_0_4_2.clock or false); + num_integer_0_1_38.default = (f.num_integer_0_1_38.default or false); + num_traits_0_2_4.default = (f.num_traits_0_2_4.default or false); + serde_1_0_55.default = true; + time_0_1_40.default = true; + }) [ num_integer_0_1_38_features num_traits_0_2_4_features serde_1_0_55_features time_0_1_40_features ]; + clap_2_31_2 = { features?(clap_2_31_2_features {}) }: clap_2_31_2_ { + dependencies = mapFeatures features ([ bitflags_1_0_3 textwrap_0_9_0 unicode_width_0_1_4 ] + ++ (if features.clap_2_31_2.atty or false then [ atty_0_2_10 ] else []) + ++ (if features.clap_2_31_2.strsim or false then [ strsim_0_7_0 ] else []) + ++ (if features.clap_2_31_2.vec_map or false then [ vec_map_0_8_1 ] else [])) + ++ (if !(kernel == "windows") then mapFeatures features ([ ] + ++ (if features.clap_2_31_2.ansi_term or false then [ ansi_term_0_11_0 ] else [])) else []); + features = mkFeatures (features.clap_2_31_2 or {}); + }; + clap_2_31_2_features = f: updateFeatures f (rec { + ansi_term_0_11_0.default = true; + atty_0_2_10.default = true; + bitflags_1_0_3.default = true; + clap_2_31_2."yaml-rust" = + (f.clap_2_31_2."yaml-rust" or false) || + (f.clap_2_31_2.yaml or false) || + (clap_2_31_2.yaml or false); + clap_2_31_2.ansi_term = + (f.clap_2_31_2.ansi_term or false) || + (f.clap_2_31_2.color or false) || + (clap_2_31_2.color or false); + clap_2_31_2.atty = + (f.clap_2_31_2.atty or false) || + (f.clap_2_31_2.color or false) || + (clap_2_31_2.color or false); + clap_2_31_2.clippy = + (f.clap_2_31_2.clippy or false) || + (f.clap_2_31_2.lints or false) || + (clap_2_31_2.lints or false); + clap_2_31_2.color = + (f.clap_2_31_2.color or false) || + (f.clap_2_31_2.default or false) || + (clap_2_31_2.default or false); + clap_2_31_2.default = (f.clap_2_31_2.default or true); + clap_2_31_2.strsim = + (f.clap_2_31_2.strsim or false) || + (f.clap_2_31_2.suggestions or false) || + (clap_2_31_2.suggestions or false); + clap_2_31_2.suggestions = + (f.clap_2_31_2.suggestions or false) || + (f.clap_2_31_2.default or false) || + (clap_2_31_2.default or false); + clap_2_31_2.term_size = + (f.clap_2_31_2.term_size or false) || + (f.clap_2_31_2.wrap_help or false) || + (clap_2_31_2.wrap_help or false); + clap_2_31_2.vec_map = + (f.clap_2_31_2.vec_map or false) || + (f.clap_2_31_2.default or false) || + (clap_2_31_2.default or false); + clap_2_31_2.yaml = + (f.clap_2_31_2.yaml or false) || + (f.clap_2_31_2.doc or false) || + (clap_2_31_2.doc or false); + strsim_0_7_0.default = true; + textwrap_0_9_0.default = true; + textwrap_0_9_0.term_size = + (f.textwrap_0_9_0.term_size or false) || + (clap_2_31_2.wrap_help or false) || + (f.clap_2_31_2.wrap_help or false); + unicode_width_0_1_4.default = true; + vec_map_0_8_1.default = true; + }) [ atty_0_2_10_features bitflags_1_0_3_features strsim_0_7_0_features textwrap_0_9_0_features unicode_width_0_1_4_features vec_map_0_8_1_features ansi_term_0_11_0_features ]; + comrak_0_2_12 = { features?(comrak_0_2_12_features {}) }: (comrak_0_2_12_ { + dependencies = mapFeatures features ([ entities_1_0_1 lazy_static_1_0_0 pest_1_0_6 pest_derive_1_0_7 regex_0_2_11 twoway_0_1_8 typed_arena_1_3_0 unicode_categories_0_1_1 ] + ++ (if features.comrak_0_2_12.clap or false then [ clap_2_31_2 ] else [])); + features = mkFeatures (features.comrak_0_2_12 or {}); + }).overrideAttrs (oldAttrs: rec { CARGO_PKG_DESCRIPTION = "dummy"; }); + comrak_0_2_12_features = f: updateFeatures f (rec { + clap_2_31_2.default = true; + comrak_0_2_12.clap = + (f.comrak_0_2_12.clap or false) || + (f.comrak_0_2_12.default or false) || + (comrak_0_2_12.default or false); + comrak_0_2_12.default = (f.comrak_0_2_12.default or true); + entities_1_0_1.default = true; + lazy_static_1_0_0.default = true; + pest_1_0_6.default = true; + pest_derive_1_0_7.default = true; + regex_0_2_11.default = true; + twoway_0_1_8.default = true; + typed_arena_1_3_0.default = true; + unicode_categories_0_1_1.default = true; + }) [ clap_2_31_2_features entities_1_0_1_features lazy_static_1_0_0_features pest_1_0_6_features pest_derive_1_0_7_features regex_0_2_11_features twoway_0_1_8_features typed_arena_1_3_0_features unicode_categories_0_1_1_features ]; + converse_0_1_0 = { features?(converse_0_1_0_features {}) }: converse_0_1_0_ { + dependencies = mapFeatures features ([ actix_0_5_7 actix_web_0_6_7 chrono_0_4_2 comrak_0_2_12 diesel_1_2_2 env_logger_0_5_10 failure_0_1_1 futures_0_1_21 hyper_0_11_27 log_0_4_1 md5_0_3_7 pq_sys_0_4_4 r2d2_0_8_2 rand_0_4_2 reqwest_0_8_5 serde_1_0_55 serde_derive_1_0_55 serde_json_1_0_17 tera_0_11_7 tokio_0_1_6 tokio_timer_0_2_3 url_1_7_0 url_serde_0_2_0 ]); + buildDependencies = mapFeatures features ([ pulldown_cmark_0_1_2 ]); + }; + converse_0_1_0_features = f: updateFeatures f (rec { + actix_0_5_7.default = true; + actix_web_0_6_7.default = true; + chrono_0_4_2.default = true; + chrono_0_4_2.serde = true; + comrak_0_2_12.default = true; + converse_0_1_0.default = (f.converse_0_1_0.default or true); + diesel_1_2_2."r2d2" = true; + diesel_1_2_2.chrono = true; + diesel_1_2_2.default = true; + diesel_1_2_2.postgres = true; + env_logger_0_5_10.default = true; + failure_0_1_1.default = true; + futures_0_1_21.default = true; + hyper_0_11_27.default = true; + log_0_4_1.default = true; + md5_0_3_7.default = true; + pq_sys_0_4_4.default = true; + pulldown_cmark_0_1_2.default = true; + r2d2_0_8_2.default = true; + rand_0_4_2.default = true; + reqwest_0_8_5.default = true; + serde_1_0_55.default = true; + serde_derive_1_0_55.default = true; + serde_json_1_0_17.default = true; + tera_0_11_7.default = true; + tokio_0_1_6.default = true; + tokio_timer_0_2_3.default = true; + url_1_7_0.default = true; + url_serde_0_2_0.default = true; + }) [ actix_0_5_7_features actix_web_0_6_7_features chrono_0_4_2_features comrak_0_2_12_features diesel_1_2_2_features env_logger_0_5_10_features failure_0_1_1_features futures_0_1_21_features hyper_0_11_27_features log_0_4_1_features md5_0_3_7_features pq_sys_0_4_4_features r2d2_0_8_2_features rand_0_4_2_features reqwest_0_8_5_features serde_1_0_55_features serde_derive_1_0_55_features serde_json_1_0_17_features tera_0_11_7_features tokio_0_1_6_features tokio_timer_0_2_3_features url_1_7_0_features url_serde_0_2_0_features pulldown_cmark_0_1_2_features ]; + cookie_0_10_1 = { features?(cookie_0_10_1_features {}) }: cookie_0_10_1_ { + dependencies = mapFeatures features ([ time_0_1_40 ] + ++ (if features.cookie_0_10_1."base64" or false then [ base64_0_6_0 ] else []) + ++ (if features.cookie_0_10_1.ring or false then [ ring_0_12_1 ] else []) + ++ (if features.cookie_0_10_1.url or false then [ url_1_7_0 ] else [])); + features = mkFeatures (features.cookie_0_10_1 or {}); + }; + cookie_0_10_1_features = f: updateFeatures f (rec { + base64_0_6_0.default = true; + cookie_0_10_1."base64" = + (f.cookie_0_10_1."base64" or false) || + (f.cookie_0_10_1.secure or false) || + (cookie_0_10_1.secure or false); + cookie_0_10_1.default = (f.cookie_0_10_1.default or true); + cookie_0_10_1.ring = + (f.cookie_0_10_1.ring or false) || + (f.cookie_0_10_1.secure or false) || + (cookie_0_10_1.secure or false); + cookie_0_10_1.url = + (f.cookie_0_10_1.url or false) || + (f.cookie_0_10_1."percent-encode" or false) || + (cookie_0_10_1."percent-encode" or false); + ring_0_12_1.default = true; + time_0_1_40.default = true; + url_1_7_0.default = true; + }) [ base64_0_6_0_features ring_0_12_1_features time_0_1_40_features url_1_7_0_features ]; + core_foundation_0_2_3 = { features?(core_foundation_0_2_3_features {}) }: core_foundation_0_2_3_ { + dependencies = mapFeatures features ([ core_foundation_sys_0_2_3 libc_0_2_40 ]); + }; + core_foundation_0_2_3_features = f: updateFeatures f (rec { + core_foundation_0_2_3.default = (f.core_foundation_0_2_3.default or true); + core_foundation_sys_0_2_3.default = true; + libc_0_2_40.default = true; + }) [ core_foundation_sys_0_2_3_features libc_0_2_40_features ]; + core_foundation_sys_0_2_3 = { features?(core_foundation_sys_0_2_3_features {}) }: core_foundation_sys_0_2_3_ { + dependencies = mapFeatures features ([ libc_0_2_40 ]); + }; + core_foundation_sys_0_2_3_features = f: updateFeatures f (rec { + core_foundation_sys_0_2_3.default = (f.core_foundation_sys_0_2_3.default or true); + libc_0_2_40.default = true; + }) [ libc_0_2_40_features ]; + crc_1_8_1 = { features?(crc_1_8_1_features {}) }: crc_1_8_1_ { + buildDependencies = mapFeatures features ([ build_const_0_2_1 ]); + features = mkFeatures (features.crc_1_8_1 or {}); + }; + crc_1_8_1_features = f: updateFeatures f (rec { + build_const_0_2_1.default = true; + crc_1_8_1.default = (f.crc_1_8_1.default or true); + crc_1_8_1.std = + (f.crc_1_8_1.std or false) || + (f.crc_1_8_1.default or false) || + (crc_1_8_1.default or false); + }) [ build_const_0_2_1_features ]; + crossbeam_channel_0_1_2 = { features?(crossbeam_channel_0_1_2_features {}) }: crossbeam_channel_0_1_2_ { + dependencies = mapFeatures features ([ crossbeam_epoch_0_2_0 crossbeam_utils_0_2_2 parking_lot_0_4_8 ]); + features = mkFeatures (features.crossbeam_channel_0_1_2 or {}); + }; + crossbeam_channel_0_1_2_features = f: updateFeatures f (rec { + crossbeam_channel_0_1_2.default = (f.crossbeam_channel_0_1_2.default or true); + crossbeam_epoch_0_2_0.default = true; + crossbeam_utils_0_2_2.default = true; + parking_lot_0_4_8.default = true; + }) [ crossbeam_epoch_0_2_0_features crossbeam_utils_0_2_2_features parking_lot_0_4_8_features ]; + crossbeam_deque_0_2_0 = { features?(crossbeam_deque_0_2_0_features {}) }: crossbeam_deque_0_2_0_ { + dependencies = mapFeatures features ([ crossbeam_epoch_0_3_1 crossbeam_utils_0_2_2 ]); + }; + crossbeam_deque_0_2_0_features = f: updateFeatures f (rec { + crossbeam_deque_0_2_0.default = (f.crossbeam_deque_0_2_0.default or true); + crossbeam_epoch_0_3_1.default = true; + crossbeam_utils_0_2_2.default = true; + }) [ crossbeam_epoch_0_3_1_features crossbeam_utils_0_2_2_features ]; + crossbeam_deque_0_3_1 = { features?(crossbeam_deque_0_3_1_features {}) }: crossbeam_deque_0_3_1_ { + dependencies = mapFeatures features ([ crossbeam_epoch_0_4_1 crossbeam_utils_0_3_2 ]); + }; + crossbeam_deque_0_3_1_features = f: updateFeatures f (rec { + crossbeam_deque_0_3_1.default = (f.crossbeam_deque_0_3_1.default or true); + crossbeam_epoch_0_4_1.default = true; + crossbeam_utils_0_3_2.default = true; + }) [ crossbeam_epoch_0_4_1_features crossbeam_utils_0_3_2_features ]; + crossbeam_epoch_0_2_0 = { features?(crossbeam_epoch_0_2_0_features {}) }: crossbeam_epoch_0_2_0_ { + dependencies = mapFeatures features ([ arrayvec_0_4_7 cfg_if_0_1_3 crossbeam_utils_0_2_2 memoffset_0_1_0 scopeguard_0_3_3 ] + ++ (if features.crossbeam_epoch_0_2_0.lazy_static or false then [ lazy_static_0_2_11 ] else [])); + features = mkFeatures (features.crossbeam_epoch_0_2_0 or {}); + }; + crossbeam_epoch_0_2_0_features = f: updateFeatures f (rec { + arrayvec_0_4_7.default = (f.arrayvec_0_4_7.default or false); + arrayvec_0_4_7.use_union = + (f.arrayvec_0_4_7.use_union or false) || + (crossbeam_epoch_0_2_0.nightly or false) || + (f.crossbeam_epoch_0_2_0.nightly or false); + cfg_if_0_1_3.default = true; + crossbeam_epoch_0_2_0.default = (f.crossbeam_epoch_0_2_0.default or true); + crossbeam_epoch_0_2_0.lazy_static = + (f.crossbeam_epoch_0_2_0.lazy_static or false) || + (f.crossbeam_epoch_0_2_0.use_std or false) || + (crossbeam_epoch_0_2_0.use_std or false); + crossbeam_epoch_0_2_0.use_std = + (f.crossbeam_epoch_0_2_0.use_std or false) || + (f.crossbeam_epoch_0_2_0.default or false) || + (crossbeam_epoch_0_2_0.default or false); + crossbeam_utils_0_2_2.default = (f.crossbeam_utils_0_2_2.default or false); + crossbeam_utils_0_2_2.use_std = + (f.crossbeam_utils_0_2_2.use_std or false) || + (crossbeam_epoch_0_2_0.use_std or false) || + (f.crossbeam_epoch_0_2_0.use_std or false); + lazy_static_0_2_11.default = true; + memoffset_0_1_0.default = (f.memoffset_0_1_0.default or false); + scopeguard_0_3_3.default = (f.scopeguard_0_3_3.default or false); + }) [ arrayvec_0_4_7_features cfg_if_0_1_3_features crossbeam_utils_0_2_2_features lazy_static_0_2_11_features memoffset_0_1_0_features scopeguard_0_3_3_features ]; + crossbeam_epoch_0_3_1 = { features?(crossbeam_epoch_0_3_1_features {}) }: crossbeam_epoch_0_3_1_ { + dependencies = mapFeatures features ([ arrayvec_0_4_7 cfg_if_0_1_3 crossbeam_utils_0_2_2 memoffset_0_2_1 nodrop_0_1_12 scopeguard_0_3_3 ] + ++ (if features.crossbeam_epoch_0_3_1.lazy_static or false then [ lazy_static_1_0_0 ] else [])); + features = mkFeatures (features.crossbeam_epoch_0_3_1 or {}); + }; + crossbeam_epoch_0_3_1_features = f: updateFeatures f (rec { + arrayvec_0_4_7.default = (f.arrayvec_0_4_7.default or false); + arrayvec_0_4_7.use_union = + (f.arrayvec_0_4_7.use_union or false) || + (crossbeam_epoch_0_3_1.nightly or false) || + (f.crossbeam_epoch_0_3_1.nightly or false); + cfg_if_0_1_3.default = true; + crossbeam_epoch_0_3_1.default = (f.crossbeam_epoch_0_3_1.default or true); + crossbeam_epoch_0_3_1.lazy_static = + (f.crossbeam_epoch_0_3_1.lazy_static or false) || + (f.crossbeam_epoch_0_3_1.use_std or false) || + (crossbeam_epoch_0_3_1.use_std or false); + crossbeam_epoch_0_3_1.use_std = + (f.crossbeam_epoch_0_3_1.use_std or false) || + (f.crossbeam_epoch_0_3_1.default or false) || + (crossbeam_epoch_0_3_1.default or false); + crossbeam_utils_0_2_2.default = (f.crossbeam_utils_0_2_2.default or false); + crossbeam_utils_0_2_2.use_std = + (f.crossbeam_utils_0_2_2.use_std or false) || + (crossbeam_epoch_0_3_1.use_std or false) || + (f.crossbeam_epoch_0_3_1.use_std or false); + lazy_static_1_0_0.default = true; + memoffset_0_2_1.default = true; + nodrop_0_1_12.default = (f.nodrop_0_1_12.default or false); + scopeguard_0_3_3.default = (f.scopeguard_0_3_3.default or false); + }) [ arrayvec_0_4_7_features cfg_if_0_1_3_features crossbeam_utils_0_2_2_features lazy_static_1_0_0_features memoffset_0_2_1_features nodrop_0_1_12_features scopeguard_0_3_3_features ]; + crossbeam_epoch_0_4_1 = { features?(crossbeam_epoch_0_4_1_features {}) }: crossbeam_epoch_0_4_1_ { + dependencies = mapFeatures features ([ arrayvec_0_4_7 cfg_if_0_1_3 crossbeam_utils_0_3_2 memoffset_0_2_1 scopeguard_0_3_3 ] + ++ (if features.crossbeam_epoch_0_4_1.lazy_static or false then [ lazy_static_1_0_0 ] else [])); + features = mkFeatures (features.crossbeam_epoch_0_4_1 or {}); + }; + crossbeam_epoch_0_4_1_features = f: updateFeatures f (rec { + arrayvec_0_4_7.default = (f.arrayvec_0_4_7.default or false); + arrayvec_0_4_7.use_union = + (f.arrayvec_0_4_7.use_union or false) || + (crossbeam_epoch_0_4_1.nightly or false) || + (f.crossbeam_epoch_0_4_1.nightly or false); + cfg_if_0_1_3.default = true; + crossbeam_epoch_0_4_1.default = (f.crossbeam_epoch_0_4_1.default or true); + crossbeam_epoch_0_4_1.lazy_static = + (f.crossbeam_epoch_0_4_1.lazy_static or false) || + (f.crossbeam_epoch_0_4_1.use_std or false) || + (crossbeam_epoch_0_4_1.use_std or false); + crossbeam_epoch_0_4_1.use_std = + (f.crossbeam_epoch_0_4_1.use_std or false) || + (f.crossbeam_epoch_0_4_1.default or false) || + (crossbeam_epoch_0_4_1.default or false); + crossbeam_utils_0_3_2.default = (f.crossbeam_utils_0_3_2.default or false); + crossbeam_utils_0_3_2.use_std = + (f.crossbeam_utils_0_3_2.use_std or false) || + (crossbeam_epoch_0_4_1.use_std or false) || + (f.crossbeam_epoch_0_4_1.use_std or false); + lazy_static_1_0_0.default = true; + memoffset_0_2_1.default = true; + scopeguard_0_3_3.default = (f.scopeguard_0_3_3.default or false); + }) [ arrayvec_0_4_7_features cfg_if_0_1_3_features crossbeam_utils_0_3_2_features lazy_static_1_0_0_features memoffset_0_2_1_features scopeguard_0_3_3_features ]; + crossbeam_utils_0_2_2 = { features?(crossbeam_utils_0_2_2_features {}) }: crossbeam_utils_0_2_2_ { + dependencies = mapFeatures features ([ cfg_if_0_1_3 ]); + features = mkFeatures (features.crossbeam_utils_0_2_2 or {}); + }; + crossbeam_utils_0_2_2_features = f: updateFeatures f (rec { + cfg_if_0_1_3.default = true; + crossbeam_utils_0_2_2.default = (f.crossbeam_utils_0_2_2.default or true); + crossbeam_utils_0_2_2.use_std = + (f.crossbeam_utils_0_2_2.use_std or false) || + (f.crossbeam_utils_0_2_2.default or false) || + (crossbeam_utils_0_2_2.default or false); + }) [ cfg_if_0_1_3_features ]; + crossbeam_utils_0_3_2 = { features?(crossbeam_utils_0_3_2_features {}) }: crossbeam_utils_0_3_2_ { + dependencies = mapFeatures features ([ cfg_if_0_1_3 ]); + features = mkFeatures (features.crossbeam_utils_0_3_2 or {}); + }; + crossbeam_utils_0_3_2_features = f: updateFeatures f (rec { + cfg_if_0_1_3.default = true; + crossbeam_utils_0_3_2.default = (f.crossbeam_utils_0_3_2.default or true); + crossbeam_utils_0_3_2.use_std = + (f.crossbeam_utils_0_3_2.use_std or false) || + (f.crossbeam_utils_0_3_2.default or false) || + (crossbeam_utils_0_3_2.default or false); + }) [ cfg_if_0_1_3_features ]; + dbghelp_sys_0_2_0 = { features?(dbghelp_sys_0_2_0_features {}) }: dbghelp_sys_0_2_0_ { + dependencies = mapFeatures features ([ winapi_0_2_8 ]); + buildDependencies = mapFeatures features ([ winapi_build_0_1_1 ]); + }; + dbghelp_sys_0_2_0_features = f: updateFeatures f (rec { + dbghelp_sys_0_2_0.default = (f.dbghelp_sys_0_2_0.default or true); + winapi_0_2_8.default = true; + winapi_build_0_1_1.default = true; + }) [ winapi_0_2_8_features winapi_build_0_1_1_features ]; + diesel_1_2_2 = { features?(diesel_1_2_2_features {}) }: diesel_1_2_2_ { + dependencies = mapFeatures features ([ byteorder_1_2_3 diesel_derives_1_2_0 ] + ++ (if features.diesel_1_2_2.bitflags or false then [ bitflags_1_0_3 ] else []) + ++ (if features.diesel_1_2_2.chrono or false then [ chrono_0_4_2 ] else []) + ++ (if features.diesel_1_2_2."pq-sys" or false then [ pq_sys_0_4_4 ] else []) + ++ (if features.diesel_1_2_2."r2d2" or false then [ r2d2_0_8_2 ] else [])); + features = mkFeatures (features.diesel_1_2_2 or {}); + }; + diesel_1_2_2_features = f: updateFeatures f (rec { + bitflags_1_0_3.default = true; + byteorder_1_2_3.default = true; + chrono_0_4_2.default = true; + diesel_1_2_2."128-column-tables" = + (f.diesel_1_2_2."128-column-tables" or false) || + (f.diesel_1_2_2."x128-column-tables" or false) || + (diesel_1_2_2."x128-column-tables" or false); + diesel_1_2_2."32-column-tables" = + (f.diesel_1_2_2."32-column-tables" or false) || + (f.diesel_1_2_2."64-column-tables" or false) || + (diesel_1_2_2."64-column-tables" or false) || + (f.diesel_1_2_2.default or false) || + (diesel_1_2_2.default or false) || + (f.diesel_1_2_2."large-tables" or false) || + (diesel_1_2_2."large-tables" or false) || + (f.diesel_1_2_2."x32-column-tables" or false) || + (diesel_1_2_2."x32-column-tables" or false); + diesel_1_2_2."64-column-tables" = + (f.diesel_1_2_2."64-column-tables" or false) || + (f.diesel_1_2_2."128-column-tables" or false) || + (diesel_1_2_2."128-column-tables" or false) || + (f.diesel_1_2_2."huge-tables" or false) || + (diesel_1_2_2."huge-tables" or false) || + (f.diesel_1_2_2."x64-column-tables" or false) || + (diesel_1_2_2."x64-column-tables" or false); + diesel_1_2_2."deprecated-time" = + (f.diesel_1_2_2."deprecated-time" or false) || + (f.diesel_1_2_2.extras or false) || + (diesel_1_2_2.extras or false); + diesel_1_2_2."libsqlite3-sys" = + (f.diesel_1_2_2."libsqlite3-sys" or false) || + (f.diesel_1_2_2.sqlite or false) || + (diesel_1_2_2.sqlite or false); + diesel_1_2_2."mysqlclient-sys" = + (f.diesel_1_2_2."mysqlclient-sys" or false) || + (f.diesel_1_2_2.mysql or false) || + (diesel_1_2_2.mysql or false); + diesel_1_2_2."network-address" = + (f.diesel_1_2_2."network-address" or false) || + (f.diesel_1_2_2.extras or false) || + (diesel_1_2_2.extras or false); + diesel_1_2_2."num-bigint" = + (f.diesel_1_2_2."num-bigint" or false) || + (f.diesel_1_2_2.numeric or false) || + (diesel_1_2_2.numeric or false); + diesel_1_2_2."num-integer" = + (f.diesel_1_2_2."num-integer" or false) || + (f.diesel_1_2_2.numeric or false) || + (diesel_1_2_2.numeric or false); + diesel_1_2_2."num-traits" = + (f.diesel_1_2_2."num-traits" or false) || + (f.diesel_1_2_2.numeric or false) || + (diesel_1_2_2.numeric or false); + diesel_1_2_2."pq-sys" = + (f.diesel_1_2_2."pq-sys" or false) || + (f.diesel_1_2_2.postgres or false) || + (diesel_1_2_2.postgres or false); + diesel_1_2_2."r2d2" = + (f.diesel_1_2_2."r2d2" or false) || + (f.diesel_1_2_2.extras or false) || + (diesel_1_2_2.extras or false); + diesel_1_2_2."with-deprecated" = + (f.diesel_1_2_2."with-deprecated" or false) || + (f.diesel_1_2_2.default or false) || + (diesel_1_2_2.default or false); + diesel_1_2_2.bigdecimal = + (f.diesel_1_2_2.bigdecimal or false) || + (f.diesel_1_2_2.numeric or false) || + (diesel_1_2_2.numeric or false); + diesel_1_2_2.bitflags = + (f.diesel_1_2_2.bitflags or false) || + (f.diesel_1_2_2.postgres or false) || + (diesel_1_2_2.postgres or false); + diesel_1_2_2.chrono = + (f.diesel_1_2_2.chrono or false) || + (f.diesel_1_2_2.extras or false) || + (diesel_1_2_2.extras or false); + diesel_1_2_2.clippy = + (f.diesel_1_2_2.clippy or false) || + (f.diesel_1_2_2.lint or false) || + (diesel_1_2_2.lint or false); + diesel_1_2_2.default = (f.diesel_1_2_2.default or true); + diesel_1_2_2.ipnetwork = + (f.diesel_1_2_2.ipnetwork or false) || + (f.diesel_1_2_2."network-address" or false) || + (diesel_1_2_2."network-address" or false); + diesel_1_2_2.libc = + (f.diesel_1_2_2.libc or false) || + (f.diesel_1_2_2."network-address" or false) || + (diesel_1_2_2."network-address" or false); + diesel_1_2_2.numeric = + (f.diesel_1_2_2.numeric or false) || + (f.diesel_1_2_2.extras or false) || + (diesel_1_2_2.extras or false); + diesel_1_2_2.serde_json = + (f.diesel_1_2_2.serde_json or false) || + (f.diesel_1_2_2.extras or false) || + (diesel_1_2_2.extras or false); + diesel_1_2_2.time = + (f.diesel_1_2_2.time or false) || + (f.diesel_1_2_2."deprecated-time" or false) || + (diesel_1_2_2."deprecated-time" or false); + diesel_1_2_2.url = + (f.diesel_1_2_2.url or false) || + (f.diesel_1_2_2.mysql or false) || + (diesel_1_2_2.mysql or false); + diesel_1_2_2.uuid = + (f.diesel_1_2_2.uuid or false) || + (f.diesel_1_2_2.extras or false) || + (diesel_1_2_2.extras or false); + diesel_derives_1_2_0.default = true; + diesel_derives_1_2_0.mysql = + (f.diesel_derives_1_2_0.mysql or false) || + (diesel_1_2_2.mysql or false) || + (f.diesel_1_2_2.mysql or false); + diesel_derives_1_2_0.nightly = + (f.diesel_derives_1_2_0.nightly or false) || + (diesel_1_2_2.unstable or false) || + (f.diesel_1_2_2.unstable or false); + diesel_derives_1_2_0.postgres = + (f.diesel_derives_1_2_0.postgres or false) || + (diesel_1_2_2.postgres or false) || + (f.diesel_1_2_2.postgres or false); + diesel_derives_1_2_0.sqlite = + (f.diesel_derives_1_2_0.sqlite or false) || + (diesel_1_2_2.sqlite or false) || + (f.diesel_1_2_2.sqlite or false); + pq_sys_0_4_4.default = true; + r2d2_0_8_2.default = true; + }) [ bitflags_1_0_3_features byteorder_1_2_3_features chrono_0_4_2_features diesel_derives_1_2_0_features pq_sys_0_4_4_features r2d2_0_8_2_features ]; + diesel_derives_1_2_0 = { features?(diesel_derives_1_2_0_features {}) }: diesel_derives_1_2_0_ { + dependencies = mapFeatures features ([ proc_macro2_0_2_3 quote_0_4_2 syn_0_12_15 ]); + features = mkFeatures (features.diesel_derives_1_2_0 or {}); + }; + diesel_derives_1_2_0_features = f: updateFeatures f (rec { + diesel_derives_1_2_0.clippy = + (f.diesel_derives_1_2_0.clippy or false) || + (f.diesel_derives_1_2_0.lint or false) || + (diesel_derives_1_2_0.lint or false); + diesel_derives_1_2_0.default = (f.diesel_derives_1_2_0.default or true); + proc_macro2_0_2_3.default = true; + proc_macro2_0_2_3.nightly = + (f.proc_macro2_0_2_3.nightly or false) || + (diesel_derives_1_2_0.nightly or false) || + (f.diesel_derives_1_2_0.nightly or false); + quote_0_4_2.default = true; + syn_0_12_15.default = true; + syn_0_12_15.fold = true; + syn_0_12_15.full = true; + }) [ proc_macro2_0_2_3_features quote_0_4_2_features syn_0_12_15_features ]; + dtoa_0_4_2 = { features?(dtoa_0_4_2_features {}) }: dtoa_0_4_2_ {}; + dtoa_0_4_2_features = f: updateFeatures f (rec { + dtoa_0_4_2.default = (f.dtoa_0_4_2.default or true); + }) []; + encoding_0_2_33 = { features?(encoding_0_2_33_features {}) }: encoding_0_2_33_ { + dependencies = mapFeatures features ([ encoding_index_japanese_1_20141219_5 encoding_index_korean_1_20141219_5 encoding_index_simpchinese_1_20141219_5 encoding_index_singlebyte_1_20141219_5 encoding_index_tradchinese_1_20141219_5 ]); + }; + encoding_0_2_33_features = f: updateFeatures f (rec { + encoding_0_2_33.default = (f.encoding_0_2_33.default or true); + encoding_index_japanese_1_20141219_5.default = true; + encoding_index_korean_1_20141219_5.default = true; + encoding_index_simpchinese_1_20141219_5.default = true; + encoding_index_singlebyte_1_20141219_5.default = true; + encoding_index_tradchinese_1_20141219_5.default = true; + }) [ encoding_index_japanese_1_20141219_5_features encoding_index_korean_1_20141219_5_features encoding_index_simpchinese_1_20141219_5_features encoding_index_singlebyte_1_20141219_5_features encoding_index_tradchinese_1_20141219_5_features ]; + encoding_index_japanese_1_20141219_5 = { features?(encoding_index_japanese_1_20141219_5_features {}) }: encoding_index_japanese_1_20141219_5_ { + dependencies = mapFeatures features ([ encoding_index_tests_0_1_4 ]); + }; + encoding_index_japanese_1_20141219_5_features = f: updateFeatures f (rec { + encoding_index_japanese_1_20141219_5.default = (f.encoding_index_japanese_1_20141219_5.default or true); + encoding_index_tests_0_1_4.default = true; + }) [ encoding_index_tests_0_1_4_features ]; + encoding_index_korean_1_20141219_5 = { features?(encoding_index_korean_1_20141219_5_features {}) }: encoding_index_korean_1_20141219_5_ { + dependencies = mapFeatures features ([ encoding_index_tests_0_1_4 ]); + }; + encoding_index_korean_1_20141219_5_features = f: updateFeatures f (rec { + encoding_index_korean_1_20141219_5.default = (f.encoding_index_korean_1_20141219_5.default or true); + encoding_index_tests_0_1_4.default = true; + }) [ encoding_index_tests_0_1_4_features ]; + encoding_index_simpchinese_1_20141219_5 = { features?(encoding_index_simpchinese_1_20141219_5_features {}) }: encoding_index_simpchinese_1_20141219_5_ { + dependencies = mapFeatures features ([ encoding_index_tests_0_1_4 ]); + }; + encoding_index_simpchinese_1_20141219_5_features = f: updateFeatures f (rec { + encoding_index_simpchinese_1_20141219_5.default = (f.encoding_index_simpchinese_1_20141219_5.default or true); + encoding_index_tests_0_1_4.default = true; + }) [ encoding_index_tests_0_1_4_features ]; + encoding_index_singlebyte_1_20141219_5 = { features?(encoding_index_singlebyte_1_20141219_5_features {}) }: encoding_index_singlebyte_1_20141219_5_ { + dependencies = mapFeatures features ([ encoding_index_tests_0_1_4 ]); + }; + encoding_index_singlebyte_1_20141219_5_features = f: updateFeatures f (rec { + encoding_index_singlebyte_1_20141219_5.default = (f.encoding_index_singlebyte_1_20141219_5.default or true); + encoding_index_tests_0_1_4.default = true; + }) [ encoding_index_tests_0_1_4_features ]; + encoding_index_tradchinese_1_20141219_5 = { features?(encoding_index_tradchinese_1_20141219_5_features {}) }: encoding_index_tradchinese_1_20141219_5_ { + dependencies = mapFeatures features ([ encoding_index_tests_0_1_4 ]); + }; + encoding_index_tradchinese_1_20141219_5_features = f: updateFeatures f (rec { + encoding_index_tests_0_1_4.default = true; + encoding_index_tradchinese_1_20141219_5.default = (f.encoding_index_tradchinese_1_20141219_5.default or true); + }) [ encoding_index_tests_0_1_4_features ]; + encoding_index_tests_0_1_4 = { features?(encoding_index_tests_0_1_4_features {}) }: encoding_index_tests_0_1_4_ {}; + encoding_index_tests_0_1_4_features = f: updateFeatures f (rec { + encoding_index_tests_0_1_4.default = (f.encoding_index_tests_0_1_4.default or true); + }) []; + encoding_rs_0_7_2 = { features?(encoding_rs_0_7_2_features {}) }: encoding_rs_0_7_2_ { + dependencies = mapFeatures features ([ cfg_if_0_1_3 ]); + features = mkFeatures (features.encoding_rs_0_7_2 or {}); + }; + encoding_rs_0_7_2_features = f: updateFeatures f (rec { + cfg_if_0_1_3.default = true; + encoding_rs_0_7_2.default = (f.encoding_rs_0_7_2.default or true); + encoding_rs_0_7_2.simd = + (f.encoding_rs_0_7_2.simd or false) || + (f.encoding_rs_0_7_2."simd-accel" or false) || + (encoding_rs_0_7_2."simd-accel" or false); + }) [ cfg_if_0_1_3_features ]; + entities_1_0_1 = { features?(entities_1_0_1_features {}) }: entities_1_0_1_ {}; + entities_1_0_1_features = f: updateFeatures f (rec { + entities_1_0_1.default = (f.entities_1_0_1.default or true); + }) []; + env_logger_0_5_10 = { features?(env_logger_0_5_10_features {}) }: env_logger_0_5_10_ { + dependencies = mapFeatures features ([ atty_0_2_10 humantime_1_1_1 log_0_4_1 termcolor_0_3_6 ] + ++ (if features.env_logger_0_5_10.regex or false then [ regex_1_0_0 ] else [])); + features = mkFeatures (features.env_logger_0_5_10 or {}); + }; + env_logger_0_5_10_features = f: updateFeatures f (rec { + atty_0_2_10.default = true; + env_logger_0_5_10.default = (f.env_logger_0_5_10.default or true); + env_logger_0_5_10.regex = + (f.env_logger_0_5_10.regex or false) || + (f.env_logger_0_5_10.default or false) || + (env_logger_0_5_10.default or false); + humantime_1_1_1.default = true; + log_0_4_1.default = true; + log_0_4_1.std = true; + regex_1_0_0.default = true; + termcolor_0_3_6.default = true; + }) [ atty_0_2_10_features humantime_1_1_1_features log_0_4_1_features regex_1_0_0_features termcolor_0_3_6_features ]; + error_chain_0_1_12 = { features?(error_chain_0_1_12_features {}) }: error_chain_0_1_12_ { + dependencies = mapFeatures features ([ backtrace_0_2_3 ]); + }; + error_chain_0_1_12_features = f: updateFeatures f (rec { + backtrace_0_2_3.default = true; + error_chain_0_1_12.default = (f.error_chain_0_1_12.default or true); + }) [ backtrace_0_2_3_features ]; + error_chain_0_8_1 = { features?(error_chain_0_8_1_features {}) }: error_chain_0_8_1_ { + dependencies = mapFeatures features ([ ] + ++ (if features.error_chain_0_8_1.backtrace or false then [ backtrace_0_3_7 ] else [])); + features = mkFeatures (features.error_chain_0_8_1 or {}); + }; + error_chain_0_8_1_features = f: updateFeatures f (rec { + backtrace_0_3_7.default = true; + error_chain_0_8_1.backtrace = + (f.error_chain_0_8_1.backtrace or false) || + (f.error_chain_0_8_1.default or false) || + (error_chain_0_8_1.default or false); + error_chain_0_8_1.default = (f.error_chain_0_8_1.default or true); + error_chain_0_8_1.example_generated = + (f.error_chain_0_8_1.example_generated or false) || + (f.error_chain_0_8_1.default or false) || + (error_chain_0_8_1.default or false); + }) [ backtrace_0_3_7_features ]; + error_chain_0_11_0 = { features?(error_chain_0_11_0_features {}) }: error_chain_0_11_0_ { + dependencies = mapFeatures features ([ ] + ++ (if features.error_chain_0_11_0.backtrace or false then [ backtrace_0_3_7 ] else [])); + features = mkFeatures (features.error_chain_0_11_0 or {}); + }; + error_chain_0_11_0_features = f: updateFeatures f (rec { + backtrace_0_3_7.default = true; + error_chain_0_11_0.backtrace = + (f.error_chain_0_11_0.backtrace or false) || + (f.error_chain_0_11_0.default or false) || + (error_chain_0_11_0.default or false); + error_chain_0_11_0.default = (f.error_chain_0_11_0.default or true); + error_chain_0_11_0.example_generated = + (f.error_chain_0_11_0.example_generated or false) || + (f.error_chain_0_11_0.default or false) || + (error_chain_0_11_0.default or false); + }) [ backtrace_0_3_7_features ]; + failure_0_1_1 = { features?(failure_0_1_1_features {}) }: failure_0_1_1_ { + dependencies = mapFeatures features ([ ] + ++ (if features.failure_0_1_1.backtrace or false then [ backtrace_0_3_7 ] else []) + ++ (if features.failure_0_1_1.failure_derive or false then [ failure_derive_0_1_1 ] else [])); + features = mkFeatures (features.failure_0_1_1 or {}); + }; + failure_0_1_1_features = f: updateFeatures f (rec { + backtrace_0_3_7.default = true; + failure_0_1_1.backtrace = + (f.failure_0_1_1.backtrace or false) || + (f.failure_0_1_1.std or false) || + (failure_0_1_1.std or false); + failure_0_1_1.default = (f.failure_0_1_1.default or true); + failure_0_1_1.derive = + (f.failure_0_1_1.derive or false) || + (f.failure_0_1_1.default or false) || + (failure_0_1_1.default or false); + failure_0_1_1.failure_derive = + (f.failure_0_1_1.failure_derive or false) || + (f.failure_0_1_1.derive or false) || + (failure_0_1_1.derive or false); + failure_0_1_1.std = + (f.failure_0_1_1.std or false) || + (f.failure_0_1_1.default or false) || + (failure_0_1_1.default or false); + failure_derive_0_1_1.default = true; + }) [ backtrace_0_3_7_features failure_derive_0_1_1_features ]; + failure_derive_0_1_1 = { features?(failure_derive_0_1_1_features {}) }: failure_derive_0_1_1_ { + dependencies = mapFeatures features ([ quote_0_3_15 syn_0_11_11 synstructure_0_6_1 ]); + features = mkFeatures (features.failure_derive_0_1_1 or {}); + }; + failure_derive_0_1_1_features = f: updateFeatures f (rec { + failure_derive_0_1_1.default = (f.failure_derive_0_1_1.default or true); + failure_derive_0_1_1.std = + (f.failure_derive_0_1_1.std or false) || + (f.failure_derive_0_1_1.default or false) || + (failure_derive_0_1_1.default or false); + quote_0_3_15.default = true; + syn_0_11_11.default = true; + synstructure_0_6_1.default = true; + }) [ quote_0_3_15_features syn_0_11_11_features synstructure_0_6_1_features ]; + flate2_1_0_1 = { features?(flate2_1_0_1_features {}) }: flate2_1_0_1_ { + dependencies = mapFeatures features ([ libc_0_2_40 ] + ++ (if features.flate2_1_0_1."miniz-sys" or false then [ miniz_sys_0_1_10 ] else [])); + features = mkFeatures (features.flate2_1_0_1 or {}); + }; + flate2_1_0_1_features = f: updateFeatures f (rec { + flate2_1_0_1."libz-sys" = + (f.flate2_1_0_1."libz-sys" or false) || + (f.flate2_1_0_1.zlib or false) || + (flate2_1_0_1.zlib or false); + flate2_1_0_1."miniz-sys" = + (f.flate2_1_0_1."miniz-sys" or false) || + (f.flate2_1_0_1.default or false) || + (flate2_1_0_1.default or false); + flate2_1_0_1."tokio-io" = + (f.flate2_1_0_1."tokio-io" or false) || + (f.flate2_1_0_1.tokio or false) || + (flate2_1_0_1.tokio or false); + flate2_1_0_1.default = (f.flate2_1_0_1.default or true); + flate2_1_0_1.futures = + (f.flate2_1_0_1.futures or false) || + (f.flate2_1_0_1.tokio or false) || + (flate2_1_0_1.tokio or false); + flate2_1_0_1.miniz_oxide_c_api = + (f.flate2_1_0_1.miniz_oxide_c_api or false) || + (f.flate2_1_0_1.rust_backend or false) || + (flate2_1_0_1.rust_backend or false); + libc_0_2_40.default = true; + miniz_sys_0_1_10.default = true; + }) [ libc_0_2_40_features miniz_sys_0_1_10_features ]; + fnv_1_0_6 = { features?(fnv_1_0_6_features {}) }: fnv_1_0_6_ {}; + fnv_1_0_6_features = f: updateFeatures f (rec { + fnv_1_0_6.default = (f.fnv_1_0_6.default or true); + }) []; + foreign_types_0_3_2 = { features?(foreign_types_0_3_2_features {}) }: foreign_types_0_3_2_ { + dependencies = mapFeatures features ([ foreign_types_shared_0_1_1 ]); + }; + foreign_types_0_3_2_features = f: updateFeatures f (rec { + foreign_types_0_3_2.default = (f.foreign_types_0_3_2.default or true); + foreign_types_shared_0_1_1.default = true; + }) [ foreign_types_shared_0_1_1_features ]; + foreign_types_shared_0_1_1 = { features?(foreign_types_shared_0_1_1_features {}) }: foreign_types_shared_0_1_1_ {}; + foreign_types_shared_0_1_1_features = f: updateFeatures f (rec { + foreign_types_shared_0_1_1.default = (f.foreign_types_shared_0_1_1.default or true); + }) []; + fuchsia_zircon_0_3_3 = { features?(fuchsia_zircon_0_3_3_features {}) }: fuchsia_zircon_0_3_3_ { + dependencies = mapFeatures features ([ bitflags_1_0_3 fuchsia_zircon_sys_0_3_3 ]); + }; + fuchsia_zircon_0_3_3_features = f: updateFeatures f (rec { + bitflags_1_0_3.default = true; + fuchsia_zircon_0_3_3.default = (f.fuchsia_zircon_0_3_3.default or true); + fuchsia_zircon_sys_0_3_3.default = true; + }) [ bitflags_1_0_3_features fuchsia_zircon_sys_0_3_3_features ]; + fuchsia_zircon_sys_0_3_3 = { features?(fuchsia_zircon_sys_0_3_3_features {}) }: fuchsia_zircon_sys_0_3_3_ {}; + fuchsia_zircon_sys_0_3_3_features = f: updateFeatures f (rec { + fuchsia_zircon_sys_0_3_3.default = (f.fuchsia_zircon_sys_0_3_3.default or true); + }) []; + futures_0_1_21 = { features?(futures_0_1_21_features {}) }: futures_0_1_21_ { + features = mkFeatures (features.futures_0_1_21 or {}); + }; + futures_0_1_21_features = f: updateFeatures f (rec { + futures_0_1_21."with-deprecated" = + (f.futures_0_1_21."with-deprecated" or false) || + (f.futures_0_1_21.default or false) || + (futures_0_1_21.default or false); + futures_0_1_21.default = (f.futures_0_1_21.default or true); + futures_0_1_21.use_std = + (f.futures_0_1_21.use_std or false) || + (f.futures_0_1_21.default or false) || + (futures_0_1_21.default or false); + }) []; + futures_cpupool_0_1_8 = { features?(futures_cpupool_0_1_8_features {}) }: futures_cpupool_0_1_8_ { + dependencies = mapFeatures features ([ futures_0_1_21 num_cpus_1_8_0 ]); + features = mkFeatures (features.futures_cpupool_0_1_8 or {}); + }; + futures_cpupool_0_1_8_features = f: updateFeatures f (rec { + futures_0_1_21."with-deprecated" = + (f.futures_0_1_21."with-deprecated" or false) || + (futures_cpupool_0_1_8."with-deprecated" or false) || + (f.futures_cpupool_0_1_8."with-deprecated" or false); + futures_0_1_21.default = (f.futures_0_1_21.default or false); + futures_0_1_21.use_std = true; + futures_cpupool_0_1_8."with-deprecated" = + (f.futures_cpupool_0_1_8."with-deprecated" or false) || + (f.futures_cpupool_0_1_8.default or false) || + (futures_cpupool_0_1_8.default or false); + futures_cpupool_0_1_8.default = (f.futures_cpupool_0_1_8.default or true); + num_cpus_1_8_0.default = true; + }) [ futures_0_1_21_features num_cpus_1_8_0_features ]; + gcc_0_3_54 = { features?(gcc_0_3_54_features {}) }: gcc_0_3_54_ { + dependencies = mapFeatures features ([]); + features = mkFeatures (features.gcc_0_3_54 or {}); + }; + gcc_0_3_54_features = f: updateFeatures f (rec { + gcc_0_3_54.default = (f.gcc_0_3_54.default or true); + gcc_0_3_54.rayon = + (f.gcc_0_3_54.rayon or false) || + (f.gcc_0_3_54.parallel or false) || + (gcc_0_3_54.parallel or false); + }) []; + getopts_0_2_17 = { features?(getopts_0_2_17_features {}) }: getopts_0_2_17_ {}; + getopts_0_2_17_features = f: updateFeatures f (rec { + getopts_0_2_17.default = (f.getopts_0_2_17.default or true); + }) []; + glob_0_2_11 = { features?(glob_0_2_11_features {}) }: glob_0_2_11_ {}; + glob_0_2_11_features = f: updateFeatures f (rec { + glob_0_2_11.default = (f.glob_0_2_11.default or true); + }) []; + h2_0_1_7 = { features?(h2_0_1_7_features {}) }: h2_0_1_7_ { + dependencies = mapFeatures features ([ byteorder_1_2_3 bytes_0_4_7 fnv_1_0_6 futures_0_1_21 http_0_1_5 indexmap_1_0_1 log_0_4_1 slab_0_4_0 string_0_1_0 tokio_io_0_1_6 ]); + features = mkFeatures (features.h2_0_1_7 or {}); + }; + h2_0_1_7_features = f: updateFeatures f (rec { + byteorder_1_2_3.default = true; + bytes_0_4_7.default = true; + fnv_1_0_6.default = true; + futures_0_1_21.default = true; + h2_0_1_7.default = (f.h2_0_1_7.default or true); + http_0_1_5.default = true; + indexmap_1_0_1.default = true; + log_0_4_1.default = true; + slab_0_4_0.default = true; + string_0_1_0.default = true; + tokio_io_0_1_6.default = true; + }) [ byteorder_1_2_3_features bytes_0_4_7_features fnv_1_0_6_features futures_0_1_21_features http_0_1_5_features indexmap_1_0_1_features log_0_4_1_features slab_0_4_0_features string_0_1_0_features tokio_io_0_1_6_features ]; + hostname_0_1_4 = { features?(hostname_0_1_4_features {}) }: hostname_0_1_4_ { + dependencies = (if (kernel == "linux" || kernel == "darwin") then mapFeatures features ([ libc_0_2_40 ]) else []) + ++ (if kernel == "windows" then mapFeatures features ([ winutil_0_1_1 ]) else []); + features = mkFeatures (features.hostname_0_1_4 or {}); + }; + hostname_0_1_4_features = f: updateFeatures f (rec { + hostname_0_1_4.default = (f.hostname_0_1_4.default or true); + libc_0_2_40.default = true; + winutil_0_1_1.default = true; + }) [ libc_0_2_40_features winutil_0_1_1_features ]; + http_0_1_5 = { features?(http_0_1_5_features {}) }: http_0_1_5_ { + dependencies = mapFeatures features ([ bytes_0_4_7 fnv_1_0_6 ]); + }; + http_0_1_5_features = f: updateFeatures f (rec { + bytes_0_4_7.default = true; + fnv_1_0_6.default = true; + http_0_1_5.default = (f.http_0_1_5.default or true); + }) [ bytes_0_4_7_features fnv_1_0_6_features ]; + http_range_0_1_1 = { features?(http_range_0_1_1_features {}) }: http_range_0_1_1_ {}; + http_range_0_1_1_features = f: updateFeatures f (rec { + http_range_0_1_1.default = (f.http_range_0_1_1.default or true); + }) []; + httparse_1_2_4 = { features?(httparse_1_2_4_features {}) }: httparse_1_2_4_ { + features = mkFeatures (features.httparse_1_2_4 or {}); + }; + httparse_1_2_4_features = f: updateFeatures f (rec { + httparse_1_2_4.default = (f.httparse_1_2_4.default or true); + httparse_1_2_4.std = + (f.httparse_1_2_4.std or false) || + (f.httparse_1_2_4.default or false) || + (httparse_1_2_4.default or false); + }) []; + humansize_1_1_0 = { features?(humansize_1_1_0_features {}) }: humansize_1_1_0_ {}; + humansize_1_1_0_features = f: updateFeatures f (rec { + humansize_1_1_0.default = (f.humansize_1_1_0.default or true); + }) []; + humantime_1_1_1 = { features?(humantime_1_1_1_features {}) }: humantime_1_1_1_ { + dependencies = mapFeatures features ([ quick_error_1_2_1 ]); + }; + humantime_1_1_1_features = f: updateFeatures f (rec { + humantime_1_1_1.default = (f.humantime_1_1_1.default or true); + quick_error_1_2_1.default = true; + }) [ quick_error_1_2_1_features ]; + hyper_0_11_27 = { features?(hyper_0_11_27_features {}) }: hyper_0_11_27_ { + dependencies = mapFeatures features ([ base64_0_9_1 bytes_0_4_7 futures_0_1_21 futures_cpupool_0_1_8 httparse_1_2_4 iovec_0_1_2 language_tags_0_2_2 log_0_4_1 mime_0_3_7 net2_0_2_32 percent_encoding_1_0_1 relay_0_1_1 time_0_1_40 tokio_core_0_1_17 tokio_io_0_1_6 tokio_service_0_1_0 unicase_2_1_0 want_0_0_4 ] + ++ (if features.hyper_0_11_27."tokio-proto" or false then [ tokio_proto_0_1_1 ] else [])); + features = mkFeatures (features.hyper_0_11_27 or {}); + }; + hyper_0_11_27_features = f: updateFeatures f (rec { + base64_0_9_1.default = true; + bytes_0_4_7.default = true; + futures_0_1_21.default = true; + futures_cpupool_0_1_8.default = true; + httparse_1_2_4.default = true; + hyper_0_11_27."server-proto" = + (f.hyper_0_11_27."server-proto" or false) || + (f.hyper_0_11_27.default or false) || + (hyper_0_11_27.default or false); + hyper_0_11_27."tokio-proto" = + (f.hyper_0_11_27."tokio-proto" or false) || + (f.hyper_0_11_27."server-proto" or false) || + (hyper_0_11_27."server-proto" or false); + hyper_0_11_27.default = (f.hyper_0_11_27.default or true); + hyper_0_11_27.http = + (f.hyper_0_11_27.http or false) || + (f.hyper_0_11_27.compat or false) || + (hyper_0_11_27.compat or false); + iovec_0_1_2.default = true; + language_tags_0_2_2.default = true; + log_0_4_1.default = true; + mime_0_3_7.default = true; + net2_0_2_32.default = true; + percent_encoding_1_0_1.default = true; + relay_0_1_1.default = true; + time_0_1_40.default = true; + tokio_core_0_1_17.default = true; + tokio_io_0_1_6.default = true; + tokio_proto_0_1_1.default = true; + tokio_service_0_1_0.default = true; + unicase_2_1_0.default = true; + want_0_0_4.default = true; + }) [ base64_0_9_1_features bytes_0_4_7_features futures_0_1_21_features futures_cpupool_0_1_8_features httparse_1_2_4_features iovec_0_1_2_features language_tags_0_2_2_features log_0_4_1_features mime_0_3_7_features net2_0_2_32_features percent_encoding_1_0_1_features relay_0_1_1_features time_0_1_40_features tokio_core_0_1_17_features tokio_io_0_1_6_features tokio_proto_0_1_1_features tokio_service_0_1_0_features unicase_2_1_0_features want_0_0_4_features ]; + hyper_tls_0_1_3 = { features?(hyper_tls_0_1_3_features {}) }: hyper_tls_0_1_3_ { + dependencies = mapFeatures features ([ futures_0_1_21 hyper_0_11_27 native_tls_0_1_5 tokio_core_0_1_17 tokio_io_0_1_6 tokio_service_0_1_0 tokio_tls_0_1_4 ]); + }; + hyper_tls_0_1_3_features = f: updateFeatures f (rec { + futures_0_1_21.default = true; + hyper_0_11_27.default = true; + hyper_tls_0_1_3.default = (f.hyper_tls_0_1_3.default or true); + native_tls_0_1_5.default = true; + tokio_core_0_1_17.default = true; + tokio_io_0_1_6.default = true; + tokio_service_0_1_0.default = true; + tokio_tls_0_1_4.default = true; + }) [ futures_0_1_21_features hyper_0_11_27_features native_tls_0_1_5_features tokio_core_0_1_17_features tokio_io_0_1_6_features tokio_service_0_1_0_features tokio_tls_0_1_4_features ]; + idna_0_1_4 = { features?(idna_0_1_4_features {}) }: idna_0_1_4_ { + dependencies = mapFeatures features ([ matches_0_1_6 unicode_bidi_0_3_4 unicode_normalization_0_1_7 ]); + }; + idna_0_1_4_features = f: updateFeatures f (rec { + idna_0_1_4.default = (f.idna_0_1_4.default or true); + matches_0_1_6.default = true; + unicode_bidi_0_3_4.default = true; + unicode_normalization_0_1_7.default = true; + }) [ matches_0_1_6_features unicode_bidi_0_3_4_features unicode_normalization_0_1_7_features ]; + indexmap_1_0_1 = { features?(indexmap_1_0_1_features {}) }: indexmap_1_0_1_ { + dependencies = mapFeatures features ([]); + features = mkFeatures (features.indexmap_1_0_1 or {}); + }; + indexmap_1_0_1_features = f: updateFeatures f (rec { + indexmap_1_0_1.default = (f.indexmap_1_0_1.default or true); + indexmap_1_0_1.serde = + (f.indexmap_1_0_1.serde or false) || + (f.indexmap_1_0_1."serde-1" or false) || + (indexmap_1_0_1."serde-1" or false); + }) []; + iovec_0_1_2 = { features?(iovec_0_1_2_features {}) }: iovec_0_1_2_ { + dependencies = (if (kernel == "linux" || kernel == "darwin") then mapFeatures features ([ libc_0_2_40 ]) else []) + ++ (if kernel == "windows" then mapFeatures features ([ winapi_0_2_8 ]) else []); + }; + iovec_0_1_2_features = f: updateFeatures f (rec { + iovec_0_1_2.default = (f.iovec_0_1_2.default or true); + libc_0_2_40.default = true; + winapi_0_2_8.default = true; + }) [ libc_0_2_40_features winapi_0_2_8_features ]; + ipconfig_0_1_6 = { features?(ipconfig_0_1_6_features {}) }: ipconfig_0_1_6_ { + dependencies = (if kernel == "windows" then mapFeatures features ([ error_chain_0_8_1 socket2_0_3_5 widestring_0_2_2 winapi_0_3_4 winreg_0_5_0 ]) else []); + }; + ipconfig_0_1_6_features = f: updateFeatures f (rec { + error_chain_0_8_1.default = true; + ipconfig_0_1_6.default = (f.ipconfig_0_1_6.default or true); + socket2_0_3_5.default = true; + widestring_0_2_2.default = true; + winapi_0_3_4.default = true; + winreg_0_5_0.default = true; + }) [ error_chain_0_8_1_features socket2_0_3_5_features widestring_0_2_2_features winapi_0_3_4_features winreg_0_5_0_features ]; + itoa_0_4_1 = { features?(itoa_0_4_1_features {}) }: itoa_0_4_1_ { + features = mkFeatures (features.itoa_0_4_1 or {}); + }; + itoa_0_4_1_features = f: updateFeatures f (rec { + itoa_0_4_1.default = (f.itoa_0_4_1.default or true); + itoa_0_4_1.std = + (f.itoa_0_4_1.std or false) || + (f.itoa_0_4_1.default or false) || + (itoa_0_4_1.default or false); + }) []; + kernel32_sys_0_2_2 = { features?(kernel32_sys_0_2_2_features {}) }: kernel32_sys_0_2_2_ { + dependencies = mapFeatures features ([ winapi_0_2_8 ]); + buildDependencies = mapFeatures features ([ winapi_build_0_1_1 ]); + }; + kernel32_sys_0_2_2_features = f: updateFeatures f (rec { + kernel32_sys_0_2_2.default = (f.kernel32_sys_0_2_2.default or true); + winapi_0_2_8.default = true; + winapi_build_0_1_1.default = true; + }) [ winapi_0_2_8_features winapi_build_0_1_1_features ]; + language_tags_0_2_2 = { features?(language_tags_0_2_2_features {}) }: language_tags_0_2_2_ { + dependencies = mapFeatures features ([]); + features = mkFeatures (features.language_tags_0_2_2 or {}); + }; + language_tags_0_2_2_features = f: updateFeatures f (rec { + language_tags_0_2_2.default = (f.language_tags_0_2_2.default or true); + language_tags_0_2_2.heapsize = + (f.language_tags_0_2_2.heapsize or false) || + (f.language_tags_0_2_2.heap_size or false) || + (language_tags_0_2_2.heap_size or false); + language_tags_0_2_2.heapsize_plugin = + (f.language_tags_0_2_2.heapsize_plugin or false) || + (f.language_tags_0_2_2.heap_size or false) || + (language_tags_0_2_2.heap_size or false); + }) []; + lazy_static_0_2_11 = { features?(lazy_static_0_2_11_features {}) }: lazy_static_0_2_11_ { + dependencies = mapFeatures features ([]); + features = mkFeatures (features.lazy_static_0_2_11 or {}); + }; + lazy_static_0_2_11_features = f: updateFeatures f (rec { + lazy_static_0_2_11.compiletest_rs = + (f.lazy_static_0_2_11.compiletest_rs or false) || + (f.lazy_static_0_2_11.compiletest or false) || + (lazy_static_0_2_11.compiletest or false); + lazy_static_0_2_11.default = (f.lazy_static_0_2_11.default or true); + lazy_static_0_2_11.nightly = + (f.lazy_static_0_2_11.nightly or false) || + (f.lazy_static_0_2_11.spin_no_std or false) || + (lazy_static_0_2_11.spin_no_std or false); + lazy_static_0_2_11.spin = + (f.lazy_static_0_2_11.spin or false) || + (f.lazy_static_0_2_11.spin_no_std or false) || + (lazy_static_0_2_11.spin_no_std or false); + }) []; + lazy_static_1_0_0 = { features?(lazy_static_1_0_0_features {}) }: lazy_static_1_0_0_ { + dependencies = mapFeatures features ([]); + features = mkFeatures (features.lazy_static_1_0_0 or {}); + }; + lazy_static_1_0_0_features = f: updateFeatures f (rec { + lazy_static_1_0_0.compiletest_rs = + (f.lazy_static_1_0_0.compiletest_rs or false) || + (f.lazy_static_1_0_0.compiletest or false) || + (lazy_static_1_0_0.compiletest or false); + lazy_static_1_0_0.default = (f.lazy_static_1_0_0.default or true); + lazy_static_1_0_0.nightly = + (f.lazy_static_1_0_0.nightly or false) || + (f.lazy_static_1_0_0.spin_no_std or false) || + (lazy_static_1_0_0.spin_no_std or false); + lazy_static_1_0_0.spin = + (f.lazy_static_1_0_0.spin or false) || + (f.lazy_static_1_0_0.spin_no_std or false) || + (lazy_static_1_0_0.spin_no_std or false); + }) []; + lazycell_0_6_0 = { features?(lazycell_0_6_0_features {}) }: lazycell_0_6_0_ { + dependencies = mapFeatures features ([]); + features = mkFeatures (features.lazycell_0_6_0 or {}); + }; + lazycell_0_6_0_features = f: updateFeatures f (rec { + lazycell_0_6_0.clippy = + (f.lazycell_0_6_0.clippy or false) || + (f.lazycell_0_6_0."nightly-testing" or false) || + (lazycell_0_6_0."nightly-testing" or false); + lazycell_0_6_0.default = (f.lazycell_0_6_0.default or true); + lazycell_0_6_0.nightly = + (f.lazycell_0_6_0.nightly or false) || + (f.lazycell_0_6_0."nightly-testing" or false) || + (lazycell_0_6_0."nightly-testing" or false); + }) []; + libc_0_2_40 = { features?(libc_0_2_40_features {}) }: libc_0_2_40_ { + features = mkFeatures (features.libc_0_2_40 or {}); + }; + libc_0_2_40_features = f: updateFeatures f (rec { + libc_0_2_40.default = (f.libc_0_2_40.default or true); + libc_0_2_40.use_std = + (f.libc_0_2_40.use_std or false) || + (f.libc_0_2_40.default or false) || + (libc_0_2_40.default or false); + }) []; + libflate_0_1_14 = { features?(libflate_0_1_14_features {}) }: libflate_0_1_14_ { + dependencies = mapFeatures features ([ adler32_1_0_2 byteorder_1_2_3 crc_1_8_1 ]); + }; + libflate_0_1_14_features = f: updateFeatures f (rec { + adler32_1_0_2.default = true; + byteorder_1_2_3.default = true; + crc_1_8_1.default = true; + libflate_0_1_14.default = (f.libflate_0_1_14.default or true); + }) [ adler32_1_0_2_features byteorder_1_2_3_features crc_1_8_1_features ]; + linked_hash_map_0_4_2 = { features?(linked_hash_map_0_4_2_features {}) }: linked_hash_map_0_4_2_ { + dependencies = mapFeatures features ([]); + features = mkFeatures (features.linked_hash_map_0_4_2 or {}); + }; + linked_hash_map_0_4_2_features = f: updateFeatures f (rec { + linked_hash_map_0_4_2.default = (f.linked_hash_map_0_4_2.default or true); + linked_hash_map_0_4_2.heapsize = + (f.linked_hash_map_0_4_2.heapsize or false) || + (f.linked_hash_map_0_4_2.heapsize_impl or false) || + (linked_hash_map_0_4_2.heapsize_impl or false); + linked_hash_map_0_4_2.serde = + (f.linked_hash_map_0_4_2.serde or false) || + (f.linked_hash_map_0_4_2.serde_impl or false) || + (linked_hash_map_0_4_2.serde_impl or false); + linked_hash_map_0_4_2.serde_test = + (f.linked_hash_map_0_4_2.serde_test or false) || + (f.linked_hash_map_0_4_2.serde_impl or false) || + (linked_hash_map_0_4_2.serde_impl or false); + }) []; + log_0_3_9 = { features?(log_0_3_9_features {}) }: log_0_3_9_ { + dependencies = mapFeatures features ([ log_0_4_1 ]); + features = mkFeatures (features.log_0_3_9 or {}); + }; + log_0_3_9_features = f: updateFeatures f (rec { + log_0_3_9.default = (f.log_0_3_9.default or true); + log_0_3_9.use_std = + (f.log_0_3_9.use_std or false) || + (f.log_0_3_9.default or false) || + (log_0_3_9.default or false); + log_0_4_1.default = true; + log_0_4_1.max_level_debug = + (f.log_0_4_1.max_level_debug or false) || + (log_0_3_9.max_level_debug or false) || + (f.log_0_3_9.max_level_debug or false); + log_0_4_1.max_level_error = + (f.log_0_4_1.max_level_error or false) || + (log_0_3_9.max_level_error or false) || + (f.log_0_3_9.max_level_error or false); + log_0_4_1.max_level_info = + (f.log_0_4_1.max_level_info or false) || + (log_0_3_9.max_level_info or false) || + (f.log_0_3_9.max_level_info or false); + log_0_4_1.max_level_off = + (f.log_0_4_1.max_level_off or false) || + (log_0_3_9.max_level_off or false) || + (f.log_0_3_9.max_level_off or false); + log_0_4_1.max_level_trace = + (f.log_0_4_1.max_level_trace or false) || + (log_0_3_9.max_level_trace or false) || + (f.log_0_3_9.max_level_trace or false); + log_0_4_1.max_level_warn = + (f.log_0_4_1.max_level_warn or false) || + (log_0_3_9.max_level_warn or false) || + (f.log_0_3_9.max_level_warn or false); + log_0_4_1.release_max_level_debug = + (f.log_0_4_1.release_max_level_debug or false) || + (log_0_3_9.release_max_level_debug or false) || + (f.log_0_3_9.release_max_level_debug or false); + log_0_4_1.release_max_level_error = + (f.log_0_4_1.release_max_level_error or false) || + (log_0_3_9.release_max_level_error or false) || + (f.log_0_3_9.release_max_level_error or false); + log_0_4_1.release_max_level_info = + (f.log_0_4_1.release_max_level_info or false) || + (log_0_3_9.release_max_level_info or false) || + (f.log_0_3_9.release_max_level_info or false); + log_0_4_1.release_max_level_off = + (f.log_0_4_1.release_max_level_off or false) || + (log_0_3_9.release_max_level_off or false) || + (f.log_0_3_9.release_max_level_off or false); + log_0_4_1.release_max_level_trace = + (f.log_0_4_1.release_max_level_trace or false) || + (log_0_3_9.release_max_level_trace or false) || + (f.log_0_3_9.release_max_level_trace or false); + log_0_4_1.release_max_level_warn = + (f.log_0_4_1.release_max_level_warn or false) || + (log_0_3_9.release_max_level_warn or false) || + (f.log_0_3_9.release_max_level_warn or false); + log_0_4_1.std = + (f.log_0_4_1.std or false) || + (log_0_3_9.use_std or false) || + (f.log_0_3_9.use_std or false); + }) [ log_0_4_1_features ]; + log_0_4_1 = { features?(log_0_4_1_features {}) }: log_0_4_1_ { + dependencies = mapFeatures features ([ cfg_if_0_1_3 ]); + features = mkFeatures (features.log_0_4_1 or {}); + }; + log_0_4_1_features = f: updateFeatures f (rec { + cfg_if_0_1_3.default = true; + log_0_4_1.default = (f.log_0_4_1.default or true); + }) [ cfg_if_0_1_3_features ]; + lru_cache_0_1_1 = { features?(lru_cache_0_1_1_features {}) }: lru_cache_0_1_1_ { + dependencies = mapFeatures features ([ linked_hash_map_0_4_2 ]); + features = mkFeatures (features.lru_cache_0_1_1 or {}); + }; + lru_cache_0_1_1_features = f: updateFeatures f (rec { + linked_hash_map_0_4_2.default = true; + linked_hash_map_0_4_2.heapsize_impl = + (f.linked_hash_map_0_4_2.heapsize_impl or false) || + (lru_cache_0_1_1.heapsize_impl or false) || + (f.lru_cache_0_1_1.heapsize_impl or false); + lru_cache_0_1_1.default = (f.lru_cache_0_1_1.default or true); + lru_cache_0_1_1.heapsize = + (f.lru_cache_0_1_1.heapsize or false) || + (f.lru_cache_0_1_1.heapsize_impl or false) || + (lru_cache_0_1_1.heapsize_impl or false); + }) [ linked_hash_map_0_4_2_features ]; + matches_0_1_6 = { features?(matches_0_1_6_features {}) }: matches_0_1_6_ {}; + matches_0_1_6_features = f: updateFeatures f (rec { + matches_0_1_6.default = (f.matches_0_1_6.default or true); + }) []; + md5_0_3_7 = { features?(md5_0_3_7_features {}) }: md5_0_3_7_ {}; + md5_0_3_7_features = f: updateFeatures f (rec { + md5_0_3_7.default = (f.md5_0_3_7.default or true); + }) []; + memchr_2_0_1 = { features?(memchr_2_0_1_features {}) }: memchr_2_0_1_ { + dependencies = mapFeatures features ([ ] + ++ (if features.memchr_2_0_1.libc or false then [ libc_0_2_40 ] else [])); + features = mkFeatures (features.memchr_2_0_1 or {}); + }; + memchr_2_0_1_features = f: updateFeatures f (rec { + libc_0_2_40.default = (f.libc_0_2_40.default or false); + libc_0_2_40.use_std = + (f.libc_0_2_40.use_std or false) || + (memchr_2_0_1.use_std or false) || + (f.memchr_2_0_1.use_std or false); + memchr_2_0_1.default = (f.memchr_2_0_1.default or true); + memchr_2_0_1.libc = + (f.memchr_2_0_1.libc or false) || + (f.memchr_2_0_1.default or false) || + (memchr_2_0_1.default or false) || + (f.memchr_2_0_1.use_std or false) || + (memchr_2_0_1.use_std or false); + memchr_2_0_1.use_std = + (f.memchr_2_0_1.use_std or false) || + (f.memchr_2_0_1.default or false) || + (memchr_2_0_1.default or false); + }) [ libc_0_2_40_features ]; + memoffset_0_1_0 = { features?(memoffset_0_1_0_features {}) }: memoffset_0_1_0_ { + features = mkFeatures (features.memoffset_0_1_0 or {}); + }; + memoffset_0_1_0_features = f: updateFeatures f (rec { + memoffset_0_1_0.default = (f.memoffset_0_1_0.default or true); + memoffset_0_1_0.std = + (f.memoffset_0_1_0.std or false) || + (f.memoffset_0_1_0.default or false) || + (memoffset_0_1_0.default or false); + }) []; + memoffset_0_2_1 = { features?(memoffset_0_2_1_features {}) }: memoffset_0_2_1_ {}; + memoffset_0_2_1_features = f: updateFeatures f (rec { + memoffset_0_2_1.default = (f.memoffset_0_2_1.default or true); + }) []; + mime_0_3_7 = { features?(mime_0_3_7_features {}) }: mime_0_3_7_ { + dependencies = mapFeatures features ([ unicase_2_1_0 ]); + }; + mime_0_3_7_features = f: updateFeatures f (rec { + mime_0_3_7.default = (f.mime_0_3_7.default or true); + unicase_2_1_0.default = true; + }) [ unicase_2_1_0_features ]; + mime_guess_2_0_0_alpha_4 = { features?(mime_guess_2_0_0_alpha_4_features {}) }: mime_guess_2_0_0_alpha_4_ { + dependencies = mapFeatures features ([ mime_0_3_7 phf_0_7_22 unicase_1_4_2 ]); + buildDependencies = mapFeatures features ([ phf_codegen_0_7_22 unicase_1_4_2 ]); + features = mkFeatures (features.mime_guess_2_0_0_alpha_4 or {}); + }; + mime_guess_2_0_0_alpha_4_features = f: updateFeatures f (rec { + mime_0_3_7.default = true; + mime_guess_2_0_0_alpha_4.default = (f.mime_guess_2_0_0_alpha_4.default or true); + phf_0_7_22.default = true; + phf_0_7_22.unicase = true; + phf_codegen_0_7_22.default = true; + unicase_1_4_2.default = true; + }) [ mime_0_3_7_features phf_0_7_22_features unicase_1_4_2_features phf_codegen_0_7_22_features unicase_1_4_2_features ]; + miniz_sys_0_1_10 = { features?(miniz_sys_0_1_10_features {}) }: miniz_sys_0_1_10_ { + dependencies = mapFeatures features ([ libc_0_2_40 ]); + buildDependencies = mapFeatures features ([ cc_1_0_15 ]); + }; + miniz_sys_0_1_10_features = f: updateFeatures f (rec { + cc_1_0_15.default = true; + libc_0_2_40.default = true; + miniz_sys_0_1_10.default = (f.miniz_sys_0_1_10.default or true); + }) [ libc_0_2_40_features cc_1_0_15_features ]; + mio_0_6_14 = { features?(mio_0_6_14_features {}) }: mio_0_6_14_ { + dependencies = mapFeatures features ([ iovec_0_1_2 lazycell_0_6_0 log_0_4_1 net2_0_2_32 slab_0_4_0 ]) + ++ (if kernel == "fuchsia" then mapFeatures features ([ fuchsia_zircon_0_3_3 fuchsia_zircon_sys_0_3_3 ]) else []) + ++ (if (kernel == "linux" || kernel == "darwin") then mapFeatures features ([ libc_0_2_40 ]) else []) + ++ (if kernel == "windows" then mapFeatures features ([ kernel32_sys_0_2_2 miow_0_2_1 winapi_0_2_8 ]) else []); + features = mkFeatures (features.mio_0_6_14 or {}); + }; + mio_0_6_14_features = f: updateFeatures f (rec { + fuchsia_zircon_0_3_3.default = true; + fuchsia_zircon_sys_0_3_3.default = true; + iovec_0_1_2.default = true; + kernel32_sys_0_2_2.default = true; + lazycell_0_6_0.default = true; + libc_0_2_40.default = true; + log_0_4_1.default = true; + mio_0_6_14."with-deprecated" = + (f.mio_0_6_14."with-deprecated" or false) || + (f.mio_0_6_14.default or false) || + (mio_0_6_14.default or false); + mio_0_6_14.default = (f.mio_0_6_14.default or true); + miow_0_2_1.default = true; + net2_0_2_32.default = true; + slab_0_4_0.default = true; + winapi_0_2_8.default = true; + }) [ iovec_0_1_2_features lazycell_0_6_0_features log_0_4_1_features net2_0_2_32_features slab_0_4_0_features fuchsia_zircon_0_3_3_features fuchsia_zircon_sys_0_3_3_features libc_0_2_40_features kernel32_sys_0_2_2_features miow_0_2_1_features winapi_0_2_8_features ]; + mio_uds_0_6_6 = { features?(mio_uds_0_6_6_features {}) }: mio_uds_0_6_6_ { + dependencies = (if (kernel == "linux" || kernel == "darwin") then mapFeatures features ([ iovec_0_1_2 libc_0_2_40 mio_0_6_14 ]) else []); + }; + mio_uds_0_6_6_features = f: updateFeatures f (rec { + iovec_0_1_2.default = true; + libc_0_2_40.default = true; + mio_0_6_14.default = true; + mio_uds_0_6_6.default = (f.mio_uds_0_6_6.default or true); + }) [ iovec_0_1_2_features libc_0_2_40_features mio_0_6_14_features ]; + miow_0_2_1 = { features?(miow_0_2_1_features {}) }: miow_0_2_1_ { + dependencies = mapFeatures features ([ kernel32_sys_0_2_2 net2_0_2_32 winapi_0_2_8 ws2_32_sys_0_2_1 ]); + }; + miow_0_2_1_features = f: updateFeatures f (rec { + kernel32_sys_0_2_2.default = true; + miow_0_2_1.default = (f.miow_0_2_1.default or true); + net2_0_2_32.default = (f.net2_0_2_32.default or false); + winapi_0_2_8.default = true; + ws2_32_sys_0_2_1.default = true; + }) [ kernel32_sys_0_2_2_features net2_0_2_32_features winapi_0_2_8_features ws2_32_sys_0_2_1_features ]; + native_tls_0_1_5 = { features?(native_tls_0_1_5_features {}) }: native_tls_0_1_5_ { + dependencies = mapFeatures features ([ lazy_static_0_2_11 ]) + ++ (if kernel == "darwin" || kernel == "ios" then mapFeatures features ([ libc_0_2_40 security_framework_0_1_16 security_framework_sys_0_1_16 tempdir_0_3_7 ]) else []) + ++ (if !(kernel == "windows" || kernel == "darwin" || kernel == "ios") then mapFeatures features ([ openssl_0_9_24 ]) else []) + ++ (if kernel == "windows" then mapFeatures features ([ schannel_0_1_12 ]) else []); + }; + native_tls_0_1_5_features = f: updateFeatures f (rec { + lazy_static_0_2_11.default = true; + libc_0_2_40.default = true; + native_tls_0_1_5.default = (f.native_tls_0_1_5.default or true); + openssl_0_9_24.default = true; + schannel_0_1_12.default = true; + security_framework_0_1_16."OSX_10_8" = true; + security_framework_0_1_16.default = true; + security_framework_sys_0_1_16.default = true; + tempdir_0_3_7.default = true; + }) [ lazy_static_0_2_11_features libc_0_2_40_features security_framework_0_1_16_features security_framework_sys_0_1_16_features tempdir_0_3_7_features openssl_0_9_24_features schannel_0_1_12_features ]; + net2_0_2_32 = { features?(net2_0_2_32_features {}) }: net2_0_2_32_ { + dependencies = mapFeatures features ([ cfg_if_0_1_3 ]) + ++ (if (kernel == "linux" || kernel == "darwin") then mapFeatures features ([ libc_0_2_40 ]) else []) + ++ (if kernel == "windows" then mapFeatures features ([ winapi_0_3_4 ]) else []) + ++ (if kernel == "i686-apple-darwin" then mapFeatures features ([ libc_0_2_40 ]) else []) + ++ (if kernel == "i686-unknown-linux-gnu" then mapFeatures features ([ libc_0_2_40 ]) else []) + ++ (if kernel == "x86_64-apple-darwin" then mapFeatures features ([ libc_0_2_40 ]) else []) + ++ (if kernel == "x86_64-unknown-linux-gnu" then mapFeatures features ([ libc_0_2_40 ]) else []); + features = mkFeatures (features.net2_0_2_32 or {}); + }; + net2_0_2_32_features = f: updateFeatures f (rec { + cfg_if_0_1_3.default = true; + libc_0_2_40.default = true; + net2_0_2_32.default = (f.net2_0_2_32.default or true); + net2_0_2_32.duration = + (f.net2_0_2_32.duration or false) || + (f.net2_0_2_32.default or false) || + (net2_0_2_32.default or false); + winapi_0_3_4."winsock2" = true; + winapi_0_3_4."ws2def" = true; + winapi_0_3_4."ws2ipdef" = true; + winapi_0_3_4."ws2tcpip" = true; + winapi_0_3_4.default = true; + winapi_0_3_4.handleapi = true; + }) [ cfg_if_0_1_3_features libc_0_2_40_features winapi_0_3_4_features libc_0_2_40_features libc_0_2_40_features libc_0_2_40_features libc_0_2_40_features ]; + nodrop_0_1_12 = { features?(nodrop_0_1_12_features {}) }: nodrop_0_1_12_ { + dependencies = mapFeatures features ([]); + features = mkFeatures (features.nodrop_0_1_12 or {}); + }; + nodrop_0_1_12_features = f: updateFeatures f (rec { + nodrop_0_1_12."nodrop-union" = + (f.nodrop_0_1_12."nodrop-union" or false) || + (f.nodrop_0_1_12.use_union or false) || + (nodrop_0_1_12.use_union or false); + nodrop_0_1_12.default = (f.nodrop_0_1_12.default or true); + nodrop_0_1_12.std = + (f.nodrop_0_1_12.std or false) || + (f.nodrop_0_1_12.default or false) || + (nodrop_0_1_12.default or false); + }) []; + num_integer_0_1_38 = { features?(num_integer_0_1_38_features {}) }: num_integer_0_1_38_ { + dependencies = mapFeatures features ([ num_traits_0_2_4 ]); + features = mkFeatures (features.num_integer_0_1_38 or {}); + }; + num_integer_0_1_38_features = f: updateFeatures f (rec { + num_integer_0_1_38.default = (f.num_integer_0_1_38.default or true); + num_integer_0_1_38.std = + (f.num_integer_0_1_38.std or false) || + (f.num_integer_0_1_38.default or false) || + (num_integer_0_1_38.default or false); + num_traits_0_2_4."i128" = + (f.num_traits_0_2_4."i128" or false) || + (num_integer_0_1_38."i128" or false) || + (f.num_integer_0_1_38."i128" or false); + num_traits_0_2_4.default = (f.num_traits_0_2_4.default or false); + num_traits_0_2_4.std = + (f.num_traits_0_2_4.std or false) || + (num_integer_0_1_38.std or false) || + (f.num_integer_0_1_38.std or false); + }) [ num_traits_0_2_4_features ]; + num_traits_0_2_4 = { features?(num_traits_0_2_4_features {}) }: num_traits_0_2_4_ { + features = mkFeatures (features.num_traits_0_2_4 or {}); + }; + num_traits_0_2_4_features = f: updateFeatures f (rec { + num_traits_0_2_4.default = (f.num_traits_0_2_4.default or true); + num_traits_0_2_4.std = + (f.num_traits_0_2_4.std or false) || + (f.num_traits_0_2_4.default or false) || + (num_traits_0_2_4.default or false); + }) []; + num_cpus_1_8_0 = { features?(num_cpus_1_8_0_features {}) }: num_cpus_1_8_0_ { + dependencies = mapFeatures features ([ libc_0_2_40 ]); + }; + num_cpus_1_8_0_features = f: updateFeatures f (rec { + libc_0_2_40.default = true; + num_cpus_1_8_0.default = (f.num_cpus_1_8_0.default or true); + }) [ libc_0_2_40_features ]; + openssl_0_9_24 = { features?(openssl_0_9_24_features {}) }: openssl_0_9_24_ { + dependencies = mapFeatures features ([ bitflags_0_9_1 foreign_types_0_3_2 lazy_static_1_0_0 libc_0_2_40 openssl_sys_0_9_30 ]); + features = mkFeatures (features.openssl_0_9_24 or {}); + }; + openssl_0_9_24_features = f: updateFeatures f (rec { + bitflags_0_9_1.default = true; + foreign_types_0_3_2.default = true; + lazy_static_1_0_0.default = true; + libc_0_2_40.default = true; + openssl_0_9_24.default = (f.openssl_0_9_24.default or true); + openssl_sys_0_9_30.default = true; + }) [ bitflags_0_9_1_features foreign_types_0_3_2_features lazy_static_1_0_0_features libc_0_2_40_features openssl_sys_0_9_30_features ]; + openssl_sys_0_9_30 = { features?(openssl_sys_0_9_30_features {}) }: openssl_sys_0_9_30_ { + dependencies = mapFeatures features ([ libc_0_2_40 ]) + ++ (if abi == "msvc" then mapFeatures features ([]) else []); + buildDependencies = mapFeatures features ([ cc_1_0_15 pkg_config_0_3_11 ]); + }; + openssl_sys_0_9_30_features = f: updateFeatures f (rec { + cc_1_0_15.default = true; + libc_0_2_40.default = true; + openssl_sys_0_9_30.default = (f.openssl_sys_0_9_30.default or true); + pkg_config_0_3_11.default = true; + }) [ libc_0_2_40_features cc_1_0_15_features pkg_config_0_3_11_features ]; + owning_ref_0_3_3 = { features?(owning_ref_0_3_3_features {}) }: owning_ref_0_3_3_ { + dependencies = mapFeatures features ([ stable_deref_trait_1_0_0 ]); + }; + owning_ref_0_3_3_features = f: updateFeatures f (rec { + owning_ref_0_3_3.default = (f.owning_ref_0_3_3.default or true); + stable_deref_trait_1_0_0.default = true; + }) [ stable_deref_trait_1_0_0_features ]; + parking_lot_0_4_8 = { features?(parking_lot_0_4_8_features {}) }: parking_lot_0_4_8_ { + dependencies = mapFeatures features ([ parking_lot_core_0_2_14 ] + ++ (if features.parking_lot_0_4_8.owning_ref or false then [ owning_ref_0_3_3 ] else [])); + features = mkFeatures (features.parking_lot_0_4_8 or {}); + }; + parking_lot_0_4_8_features = f: updateFeatures f (rec { + owning_ref_0_3_3.default = true; + parking_lot_0_4_8.default = (f.parking_lot_0_4_8.default or true); + parking_lot_0_4_8.owning_ref = + (f.parking_lot_0_4_8.owning_ref or false) || + (f.parking_lot_0_4_8.default or false) || + (parking_lot_0_4_8.default or false); + parking_lot_core_0_2_14.deadlock_detection = + (f.parking_lot_core_0_2_14.deadlock_detection or false) || + (parking_lot_0_4_8.deadlock_detection or false) || + (f.parking_lot_0_4_8.deadlock_detection or false); + parking_lot_core_0_2_14.default = true; + parking_lot_core_0_2_14.nightly = + (f.parking_lot_core_0_2_14.nightly or false) || + (parking_lot_0_4_8.nightly or false) || + (f.parking_lot_0_4_8.nightly or false); + }) [ owning_ref_0_3_3_features parking_lot_core_0_2_14_features ]; + parking_lot_core_0_2_14 = { features?(parking_lot_core_0_2_14_features {}) }: parking_lot_core_0_2_14_ { + dependencies = mapFeatures features ([ rand_0_4_2 smallvec_0_6_1 ]) + ++ (if (kernel == "linux" || kernel == "darwin") then mapFeatures features ([ libc_0_2_40 ]) else []) + ++ (if kernel == "windows" then mapFeatures features ([ winapi_0_3_4 ]) else []); + features = mkFeatures (features.parking_lot_core_0_2_14 or {}); + }; + parking_lot_core_0_2_14_features = f: updateFeatures f (rec { + libc_0_2_40.default = true; + parking_lot_core_0_2_14."thread-id" = + (f.parking_lot_core_0_2_14."thread-id" or false) || + (f.parking_lot_core_0_2_14.deadlock_detection or false) || + (parking_lot_core_0_2_14.deadlock_detection or false); + parking_lot_core_0_2_14.backtrace = + (f.parking_lot_core_0_2_14.backtrace or false) || + (f.parking_lot_core_0_2_14.deadlock_detection or false) || + (parking_lot_core_0_2_14.deadlock_detection or false); + parking_lot_core_0_2_14.default = (f.parking_lot_core_0_2_14.default or true); + parking_lot_core_0_2_14.petgraph = + (f.parking_lot_core_0_2_14.petgraph or false) || + (f.parking_lot_core_0_2_14.deadlock_detection or false) || + (parking_lot_core_0_2_14.deadlock_detection or false); + rand_0_4_2.default = true; + smallvec_0_6_1.default = true; + winapi_0_3_4.default = true; + winapi_0_3_4.errhandlingapi = true; + winapi_0_3_4.handleapi = true; + winapi_0_3_4.minwindef = true; + winapi_0_3_4.ntstatus = true; + winapi_0_3_4.winbase = true; + winapi_0_3_4.winerror = true; + winapi_0_3_4.winnt = true; + }) [ rand_0_4_2_features smallvec_0_6_1_features libc_0_2_40_features winapi_0_3_4_features ]; + percent_encoding_1_0_1 = { features?(percent_encoding_1_0_1_features {}) }: percent_encoding_1_0_1_ {}; + percent_encoding_1_0_1_features = f: updateFeatures f (rec { + percent_encoding_1_0_1.default = (f.percent_encoding_1_0_1.default or true); + }) []; + pest_1_0_6 = { features?(pest_1_0_6_features {}) }: pest_1_0_6_ {}; + pest_1_0_6_features = f: updateFeatures f (rec { + pest_1_0_6.default = (f.pest_1_0_6.default or true); + }) []; + pest_derive_1_0_7 = { features?(pest_derive_1_0_7_features {}) }: pest_derive_1_0_7_ { + dependencies = mapFeatures features ([ pest_1_0_6 quote_0_3_15 syn_0_11_11 ]); + }; + pest_derive_1_0_7_features = f: updateFeatures f (rec { + pest_1_0_6.default = true; + pest_derive_1_0_7.default = (f.pest_derive_1_0_7.default or true); + quote_0_3_15.default = true; + syn_0_11_11.default = true; + }) [ pest_1_0_6_features quote_0_3_15_features syn_0_11_11_features ]; + phf_0_7_22 = { features?(phf_0_7_22_features {}) }: phf_0_7_22_ { + dependencies = mapFeatures features ([ phf_shared_0_7_22 ]); + features = mkFeatures (features.phf_0_7_22 or {}); + }; + phf_0_7_22_features = f: updateFeatures f (rec { + phf_0_7_22.default = (f.phf_0_7_22.default or true); + phf_shared_0_7_22.core = + (f.phf_shared_0_7_22.core or false) || + (phf_0_7_22.core or false) || + (f.phf_0_7_22.core or false); + phf_shared_0_7_22.default = true; + phf_shared_0_7_22.unicase = + (f.phf_shared_0_7_22.unicase or false) || + (phf_0_7_22.unicase or false) || + (f.phf_0_7_22.unicase or false); + }) [ phf_shared_0_7_22_features ]; + phf_codegen_0_7_22 = { features?(phf_codegen_0_7_22_features {}) }: phf_codegen_0_7_22_ { + dependencies = mapFeatures features ([ phf_generator_0_7_22 phf_shared_0_7_22 ]); + }; + phf_codegen_0_7_22_features = f: updateFeatures f (rec { + phf_codegen_0_7_22.default = (f.phf_codegen_0_7_22.default or true); + phf_generator_0_7_22.default = true; + phf_shared_0_7_22.default = true; + }) [ phf_generator_0_7_22_features phf_shared_0_7_22_features ]; + phf_generator_0_7_22 = { features?(phf_generator_0_7_22_features {}) }: phf_generator_0_7_22_ { + dependencies = mapFeatures features ([ phf_shared_0_7_22 rand_0_4_2 ]); + }; + phf_generator_0_7_22_features = f: updateFeatures f (rec { + phf_generator_0_7_22.default = (f.phf_generator_0_7_22.default or true); + phf_shared_0_7_22.default = true; + rand_0_4_2.default = true; + }) [ phf_shared_0_7_22_features rand_0_4_2_features ]; + phf_shared_0_7_22 = { features?(phf_shared_0_7_22_features {}) }: phf_shared_0_7_22_ { + dependencies = mapFeatures features ([ siphasher_0_2_2 ] + ++ (if features.phf_shared_0_7_22.unicase or false then [ unicase_1_4_2 ] else [])); + features = mkFeatures (features.phf_shared_0_7_22 or {}); + }; + phf_shared_0_7_22_features = f: updateFeatures f (rec { + phf_shared_0_7_22.default = (f.phf_shared_0_7_22.default or true); + siphasher_0_2_2.default = true; + unicase_1_4_2.default = true; + }) [ siphasher_0_2_2_features unicase_1_4_2_features ]; + pkg_config_0_3_11 = { features?(pkg_config_0_3_11_features {}) }: pkg_config_0_3_11_ {}; + pkg_config_0_3_11_features = f: updateFeatures f (rec { + pkg_config_0_3_11.default = (f.pkg_config_0_3_11.default or true); + }) []; + pq_sys_0_4_4 = { features?(pq_sys_0_4_4_features {}) }: pq_sys_0_4_4_ { + dependencies = (if abi == "msvc" then mapFeatures features ([]) else []); + buildDependencies = mapFeatures features ([]); + }; + pq_sys_0_4_4_features = f: updateFeatures f (rec { + pq_sys_0_4_4.default = (f.pq_sys_0_4_4.default or true); + }) []; + proc_macro2_0_2_3 = { features?(proc_macro2_0_2_3_features {}) }: proc_macro2_0_2_3_ { + dependencies = mapFeatures features ([ unicode_xid_0_1_0 ]); + features = mkFeatures (features.proc_macro2_0_2_3 or {}); + }; + proc_macro2_0_2_3_features = f: updateFeatures f (rec { + proc_macro2_0_2_3."proc-macro" = + (f.proc_macro2_0_2_3."proc-macro" or false) || + (f.proc_macro2_0_2_3.default or false) || + (proc_macro2_0_2_3.default or false) || + (f.proc_macro2_0_2_3.nightly or false) || + (proc_macro2_0_2_3.nightly or false); + proc_macro2_0_2_3.default = (f.proc_macro2_0_2_3.default or true); + unicode_xid_0_1_0.default = true; + }) [ unicode_xid_0_1_0_features ]; + proc_macro2_0_3_8 = { features?(proc_macro2_0_3_8_features {}) }: proc_macro2_0_3_8_ { + dependencies = mapFeatures features ([ unicode_xid_0_1_0 ]); + features = mkFeatures (features.proc_macro2_0_3_8 or {}); + }; + proc_macro2_0_3_8_features = f: updateFeatures f (rec { + proc_macro2_0_3_8."proc-macro" = + (f.proc_macro2_0_3_8."proc-macro" or false) || + (f.proc_macro2_0_3_8.default or false) || + (proc_macro2_0_3_8.default or false) || + (f.proc_macro2_0_3_8.nightly or false) || + (proc_macro2_0_3_8.nightly or false); + proc_macro2_0_3_8.default = (f.proc_macro2_0_3_8.default or true); + unicode_xid_0_1_0.default = true; + }) [ unicode_xid_0_1_0_features ]; + pulldown_cmark_0_1_2 = { features?(pulldown_cmark_0_1_2_features {}) }: pulldown_cmark_0_1_2_ { + dependencies = mapFeatures features ([ bitflags_0_9_1 ] + ++ (if features.pulldown_cmark_0_1_2.getopts or false then [ getopts_0_2_17 ] else [])); + features = mkFeatures (features.pulldown_cmark_0_1_2 or {}); + }; + pulldown_cmark_0_1_2_features = f: updateFeatures f (rec { + bitflags_0_9_1.default = true; + getopts_0_2_17.default = true; + pulldown_cmark_0_1_2.default = (f.pulldown_cmark_0_1_2.default or true); + pulldown_cmark_0_1_2.getopts = + (f.pulldown_cmark_0_1_2.getopts or false) || + (f.pulldown_cmark_0_1_2.default or false) || + (pulldown_cmark_0_1_2.default or false); + }) [ bitflags_0_9_1_features getopts_0_2_17_features ]; + quick_error_1_2_1 = { features?(quick_error_1_2_1_features {}) }: quick_error_1_2_1_ {}; + quick_error_1_2_1_features = f: updateFeatures f (rec { + quick_error_1_2_1.default = (f.quick_error_1_2_1.default or true); + }) []; + quote_0_3_15 = { features?(quote_0_3_15_features {}) }: quote_0_3_15_ {}; + quote_0_3_15_features = f: updateFeatures f (rec { + quote_0_3_15.default = (f.quote_0_3_15.default or true); + }) []; + quote_0_4_2 = { features?(quote_0_4_2_features {}) }: quote_0_4_2_ { + dependencies = mapFeatures features ([ proc_macro2_0_2_3 ]); + }; + quote_0_4_2_features = f: updateFeatures f (rec { + proc_macro2_0_2_3.default = true; + quote_0_4_2.default = (f.quote_0_4_2.default or true); + }) [ proc_macro2_0_2_3_features ]; + quote_0_5_2 = { features?(quote_0_5_2_features {}) }: quote_0_5_2_ { + dependencies = mapFeatures features ([ proc_macro2_0_3_8 ]); + features = mkFeatures (features.quote_0_5_2 or {}); + }; + quote_0_5_2_features = f: updateFeatures f (rec { + proc_macro2_0_3_8."proc-macro" = + (f.proc_macro2_0_3_8."proc-macro" or false) || + (quote_0_5_2."proc-macro" or false) || + (f.quote_0_5_2."proc-macro" or false); + proc_macro2_0_3_8.default = (f.proc_macro2_0_3_8.default or false); + quote_0_5_2."proc-macro" = + (f.quote_0_5_2."proc-macro" or false) || + (f.quote_0_5_2.default or false) || + (quote_0_5_2.default or false); + quote_0_5_2.default = (f.quote_0_5_2.default or true); + }) [ proc_macro2_0_3_8_features ]; + r2d2_0_8_2 = { features?(r2d2_0_8_2_features {}) }: r2d2_0_8_2_ { + dependencies = mapFeatures features ([ antidote_1_0_0 log_0_4_1 scheduled_thread_pool_0_2_0 ]); + }; + r2d2_0_8_2_features = f: updateFeatures f (rec { + antidote_1_0_0.default = true; + log_0_4_1.default = true; + r2d2_0_8_2.default = (f.r2d2_0_8_2.default or true); + scheduled_thread_pool_0_2_0.default = true; + }) [ antidote_1_0_0_features log_0_4_1_features scheduled_thread_pool_0_2_0_features ]; + rand_0_3_22 = { features?(rand_0_3_22_features {}) }: rand_0_3_22_ { + dependencies = mapFeatures features ([ libc_0_2_40 rand_0_4_2 ]) + ++ (if kernel == "fuchsia" then mapFeatures features ([ fuchsia_zircon_0_3_3 ]) else []); + features = mkFeatures (features.rand_0_3_22 or {}); + }; + rand_0_3_22_features = f: updateFeatures f (rec { + fuchsia_zircon_0_3_3.default = true; + libc_0_2_40.default = true; + rand_0_3_22."i128_support" = + (f.rand_0_3_22."i128_support" or false) || + (f.rand_0_3_22.nightly or false) || + (rand_0_3_22.nightly or false); + rand_0_3_22.default = (f.rand_0_3_22.default or true); + rand_0_4_2.default = true; + }) [ libc_0_2_40_features rand_0_4_2_features fuchsia_zircon_0_3_3_features ]; + rand_0_4_2 = { features?(rand_0_4_2_features {}) }: rand_0_4_2_ { + dependencies = (if kernel == "fuchsia" then mapFeatures features ([ fuchsia_zircon_0_3_3 ]) else []) + ++ (if (kernel == "linux" || kernel == "darwin") then mapFeatures features ([ ] + ++ (if features.rand_0_4_2.libc or false then [ libc_0_2_40 ] else [])) else []) + ++ (if kernel == "windows" then mapFeatures features ([ winapi_0_3_4 ]) else []); + features = mkFeatures (features.rand_0_4_2 or {}); + }; + rand_0_4_2_features = f: updateFeatures f (rec { + fuchsia_zircon_0_3_3.default = true; + libc_0_2_40.default = true; + rand_0_4_2."i128_support" = + (f.rand_0_4_2."i128_support" or false) || + (f.rand_0_4_2.nightly or false) || + (rand_0_4_2.nightly or false); + rand_0_4_2.default = (f.rand_0_4_2.default or true); + rand_0_4_2.libc = + (f.rand_0_4_2.libc or false) || + (f.rand_0_4_2.std or false) || + (rand_0_4_2.std or false); + rand_0_4_2.std = + (f.rand_0_4_2.std or false) || + (f.rand_0_4_2.default or false) || + (rand_0_4_2.default or false); + winapi_0_3_4.default = true; + winapi_0_3_4.minwindef = true; + winapi_0_3_4.ntsecapi = true; + winapi_0_3_4.profileapi = true; + winapi_0_3_4.winnt = true; + }) [ fuchsia_zircon_0_3_3_features libc_0_2_40_features winapi_0_3_4_features ]; + rayon_0_8_2 = { features?(rayon_0_8_2_features {}) }: rayon_0_8_2_ { + dependencies = mapFeatures features ([ rayon_core_1_4_0 ]); + }; + rayon_0_8_2_features = f: updateFeatures f (rec { + rayon_0_8_2.default = (f.rayon_0_8_2.default or true); + rayon_core_1_4_0.default = true; + }) [ rayon_core_1_4_0_features ]; + rayon_core_1_4_0 = { features?(rayon_core_1_4_0_features {}) }: rayon_core_1_4_0_ { + dependencies = mapFeatures features ([ crossbeam_deque_0_2_0 lazy_static_1_0_0 libc_0_2_40 num_cpus_1_8_0 rand_0_4_2 ]); + }; + rayon_core_1_4_0_features = f: updateFeatures f (rec { + crossbeam_deque_0_2_0.default = true; + lazy_static_1_0_0.default = true; + libc_0_2_40.default = true; + num_cpus_1_8_0.default = true; + rand_0_4_2.default = true; + rayon_core_1_4_0.default = (f.rayon_core_1_4_0.default or true); + }) [ crossbeam_deque_0_2_0_features lazy_static_1_0_0_features libc_0_2_40_features num_cpus_1_8_0_features rand_0_4_2_features ]; + redox_syscall_0_1_37 = { features?(redox_syscall_0_1_37_features {}) }: redox_syscall_0_1_37_ {}; + redox_syscall_0_1_37_features = f: updateFeatures f (rec { + redox_syscall_0_1_37.default = (f.redox_syscall_0_1_37.default or true); + }) []; + redox_termios_0_1_1 = { features?(redox_termios_0_1_1_features {}) }: redox_termios_0_1_1_ { + dependencies = mapFeatures features ([ redox_syscall_0_1_37 ]); + }; + redox_termios_0_1_1_features = f: updateFeatures f (rec { + redox_syscall_0_1_37.default = true; + redox_termios_0_1_1.default = (f.redox_termios_0_1_1.default or true); + }) [ redox_syscall_0_1_37_features ]; + regex_0_2_11 = { features?(regex_0_2_11_features {}) }: regex_0_2_11_ { + dependencies = mapFeatures features ([ aho_corasick_0_6_4 memchr_2_0_1 regex_syntax_0_5_6 thread_local_0_3_5 utf8_ranges_1_0_0 ]); + features = mkFeatures (features.regex_0_2_11 or {}); + }; + regex_0_2_11_features = f: updateFeatures f (rec { + aho_corasick_0_6_4.default = true; + memchr_2_0_1.default = true; + regex_0_2_11.default = (f.regex_0_2_11.default or true); + regex_0_2_11.pattern = + (f.regex_0_2_11.pattern or false) || + (f.regex_0_2_11.unstable or false) || + (regex_0_2_11.unstable or false); + regex_syntax_0_5_6.default = true; + thread_local_0_3_5.default = true; + utf8_ranges_1_0_0.default = true; + }) [ aho_corasick_0_6_4_features memchr_2_0_1_features regex_syntax_0_5_6_features thread_local_0_3_5_features utf8_ranges_1_0_0_features ]; + regex_1_0_0 = { features?(regex_1_0_0_features {}) }: regex_1_0_0_ { + dependencies = mapFeatures features ([ aho_corasick_0_6_4 memchr_2_0_1 regex_syntax_0_6_0 thread_local_0_3_5 utf8_ranges_1_0_0 ]); + features = mkFeatures (features.regex_1_0_0 or {}); + }; + regex_1_0_0_features = f: updateFeatures f (rec { + aho_corasick_0_6_4.default = true; + memchr_2_0_1.default = true; + regex_1_0_0.default = (f.regex_1_0_0.default or true); + regex_1_0_0.pattern = + (f.regex_1_0_0.pattern or false) || + (f.regex_1_0_0.unstable or false) || + (regex_1_0_0.unstable or false); + regex_1_0_0.use_std = + (f.regex_1_0_0.use_std or false) || + (f.regex_1_0_0.default or false) || + (regex_1_0_0.default or false); + regex_syntax_0_6_0.default = true; + thread_local_0_3_5.default = true; + utf8_ranges_1_0_0.default = true; + }) [ aho_corasick_0_6_4_features memchr_2_0_1_features regex_syntax_0_6_0_features thread_local_0_3_5_features utf8_ranges_1_0_0_features ]; + regex_syntax_0_5_6 = { features?(regex_syntax_0_5_6_features {}) }: regex_syntax_0_5_6_ { + dependencies = mapFeatures features ([ ucd_util_0_1_1 ]); + }; + regex_syntax_0_5_6_features = f: updateFeatures f (rec { + regex_syntax_0_5_6.default = (f.regex_syntax_0_5_6.default or true); + ucd_util_0_1_1.default = true; + }) [ ucd_util_0_1_1_features ]; + regex_syntax_0_6_0 = { features?(regex_syntax_0_6_0_features {}) }: regex_syntax_0_6_0_ { + dependencies = mapFeatures features ([ ucd_util_0_1_1 ]); + }; + regex_syntax_0_6_0_features = f: updateFeatures f (rec { + regex_syntax_0_6_0.default = (f.regex_syntax_0_6_0.default or true); + ucd_util_0_1_1.default = true; + }) [ ucd_util_0_1_1_features ]; + relay_0_1_1 = { features?(relay_0_1_1_features {}) }: relay_0_1_1_ { + dependencies = mapFeatures features ([ futures_0_1_21 ]); + }; + relay_0_1_1_features = f: updateFeatures f (rec { + futures_0_1_21.default = true; + relay_0_1_1.default = (f.relay_0_1_1.default or true); + }) [ futures_0_1_21_features ]; + remove_dir_all_0_5_1 = { features?(remove_dir_all_0_5_1_features {}) }: remove_dir_all_0_5_1_ { + dependencies = (if kernel == "windows" then mapFeatures features ([ winapi_0_3_4 ]) else []); + }; + remove_dir_all_0_5_1_features = f: updateFeatures f (rec { + remove_dir_all_0_5_1.default = (f.remove_dir_all_0_5_1.default or true); + winapi_0_3_4.default = true; + winapi_0_3_4.errhandlingapi = true; + winapi_0_3_4.fileapi = true; + winapi_0_3_4.std = true; + winapi_0_3_4.winbase = true; + winapi_0_3_4.winerror = true; + }) [ winapi_0_3_4_features ]; + reqwest_0_8_5 = { features?(reqwest_0_8_5_features {}) }: reqwest_0_8_5_ { + dependencies = mapFeatures features ([ bytes_0_4_7 encoding_rs_0_7_2 futures_0_1_21 hyper_0_11_27 hyper_tls_0_1_3 libflate_0_1_14 log_0_4_1 mime_guess_2_0_0_alpha_4 native_tls_0_1_5 serde_1_0_55 serde_json_1_0_17 serde_urlencoded_0_5_2 tokio_core_0_1_17 tokio_io_0_1_6 tokio_tls_0_1_4 url_1_7_0 uuid_0_5_1 ]); + features = mkFeatures (features.reqwest_0_8_5 or {}); + }; + reqwest_0_8_5_features = f: updateFeatures f (rec { + bytes_0_4_7.default = true; + encoding_rs_0_7_2.default = true; + futures_0_1_21.default = true; + hyper_0_11_27.default = true; + hyper_tls_0_1_3.default = true; + libflate_0_1_14.default = true; + log_0_4_1.default = true; + mime_guess_2_0_0_alpha_4.default = true; + native_tls_0_1_5.default = true; + reqwest_0_8_5.default = (f.reqwest_0_8_5.default or true); + serde_1_0_55.default = true; + serde_json_1_0_17.default = true; + serde_urlencoded_0_5_2.default = true; + tokio_core_0_1_17.default = true; + tokio_io_0_1_6.default = true; + tokio_tls_0_1_4.default = true; + url_1_7_0.default = true; + uuid_0_5_1."v4" = true; + uuid_0_5_1.default = true; + }) [ bytes_0_4_7_features encoding_rs_0_7_2_features futures_0_1_21_features hyper_0_11_27_features hyper_tls_0_1_3_features libflate_0_1_14_features log_0_4_1_features mime_guess_2_0_0_alpha_4_features native_tls_0_1_5_features serde_1_0_55_features serde_json_1_0_17_features serde_urlencoded_0_5_2_features tokio_core_0_1_17_features tokio_io_0_1_6_features tokio_tls_0_1_4_features url_1_7_0_features uuid_0_5_1_features ]; + resolv_conf_0_6_0 = { features?(resolv_conf_0_6_0_features {}) }: resolv_conf_0_6_0_ { + dependencies = mapFeatures features ([ quick_error_1_2_1 ] + ++ (if features.resolv_conf_0_6_0.hostname or false then [ hostname_0_1_4 ] else [])); + features = mkFeatures (features.resolv_conf_0_6_0 or {}); + }; + resolv_conf_0_6_0_features = f: updateFeatures f (rec { + hostname_0_1_4.default = true; + quick_error_1_2_1.default = true; + resolv_conf_0_6_0.default = (f.resolv_conf_0_6_0.default or true); + resolv_conf_0_6_0.hostname = + (f.resolv_conf_0_6_0.hostname or false) || + (f.resolv_conf_0_6_0.system or false) || + (resolv_conf_0_6_0.system or false); + }) [ hostname_0_1_4_features quick_error_1_2_1_features ]; + ring_0_12_1 = { features?(ring_0_12_1_features {}) }: ring_0_12_1_ { + dependencies = mapFeatures features ([ libc_0_2_40 untrusted_0_5_1 ]) + ++ (if kernel == "redox" || (kernel == "linux" || kernel == "darwin") && !(kernel == "darwin" || kernel == "ios") then mapFeatures features ([ lazy_static_0_2_11 ]) else []); + buildDependencies = mapFeatures features ([ gcc_0_3_54 rayon_0_8_2 ]); + features = mkFeatures (features.ring_0_12_1 or {}); + }; + ring_0_12_1_features = f: updateFeatures f (rec { + gcc_0_3_54.default = true; + lazy_static_0_2_11.default = true; + libc_0_2_40.default = true; + rayon_0_8_2.default = true; + ring_0_12_1.default = (f.ring_0_12_1.default or true); + ring_0_12_1.dev_urandom_fallback = + (f.ring_0_12_1.dev_urandom_fallback or false) || + (f.ring_0_12_1.default or false) || + (ring_0_12_1.default or false); + ring_0_12_1.use_heap = + (f.ring_0_12_1.use_heap or false) || + (f.ring_0_12_1.default or false) || + (ring_0_12_1.default or false) || + (f.ring_0_12_1.rsa_signing or false) || + (ring_0_12_1.rsa_signing or false); + untrusted_0_5_1.default = true; + }) [ libc_0_2_40_features untrusted_0_5_1_features gcc_0_3_54_features rayon_0_8_2_features lazy_static_0_2_11_features ]; + rustc_demangle_0_1_8 = { features?(rustc_demangle_0_1_8_features {}) }: rustc_demangle_0_1_8_ {}; + rustc_demangle_0_1_8_features = f: updateFeatures f (rec { + rustc_demangle_0_1_8.default = (f.rustc_demangle_0_1_8.default or true); + }) []; + safemem_0_2_0 = { features?(safemem_0_2_0_features {}) }: safemem_0_2_0_ {}; + safemem_0_2_0_features = f: updateFeatures f (rec { + safemem_0_2_0.default = (f.safemem_0_2_0.default or true); + }) []; + same_file_1_0_2 = { features?(same_file_1_0_2_features {}) }: same_file_1_0_2_ { + dependencies = (if kernel == "windows" then mapFeatures features ([ winapi_0_3_4 ]) else []); + }; + same_file_1_0_2_features = f: updateFeatures f (rec { + same_file_1_0_2.default = (f.same_file_1_0_2.default or true); + winapi_0_3_4.default = true; + winapi_0_3_4.fileapi = true; + winapi_0_3_4.minwindef = true; + winapi_0_3_4.processenv = true; + winapi_0_3_4.std = true; + winapi_0_3_4.winbase = true; + }) [ winapi_0_3_4_features ]; + schannel_0_1_12 = { features?(schannel_0_1_12_features {}) }: schannel_0_1_12_ { + dependencies = mapFeatures features ([ lazy_static_1_0_0 winapi_0_3_4 ]); + }; + schannel_0_1_12_features = f: updateFeatures f (rec { + lazy_static_1_0_0.default = true; + schannel_0_1_12.default = (f.schannel_0_1_12.default or true); + winapi_0_3_4.default = true; + winapi_0_3_4.lmcons = true; + winapi_0_3_4.minschannel = true; + winapi_0_3_4.schannel = true; + winapi_0_3_4.securitybaseapi = true; + winapi_0_3_4.sysinfoapi = true; + winapi_0_3_4.timezoneapi = true; + winapi_0_3_4.winbase = true; + winapi_0_3_4.wincrypt = true; + winapi_0_3_4.winerror = true; + }) [ lazy_static_1_0_0_features winapi_0_3_4_features ]; + scheduled_thread_pool_0_2_0 = { features?(scheduled_thread_pool_0_2_0_features {}) }: scheduled_thread_pool_0_2_0_ { + dependencies = mapFeatures features ([ antidote_1_0_0 ]); + }; + scheduled_thread_pool_0_2_0_features = f: updateFeatures f (rec { + antidote_1_0_0.default = true; + scheduled_thread_pool_0_2_0.default = (f.scheduled_thread_pool_0_2_0.default or true); + }) [ antidote_1_0_0_features ]; + scoped_tls_0_1_2 = { features?(scoped_tls_0_1_2_features {}) }: scoped_tls_0_1_2_ { + features = mkFeatures (features.scoped_tls_0_1_2 or {}); + }; + scoped_tls_0_1_2_features = f: updateFeatures f (rec { + scoped_tls_0_1_2.default = (f.scoped_tls_0_1_2.default or true); + }) []; + scopeguard_0_3_3 = { features?(scopeguard_0_3_3_features {}) }: scopeguard_0_3_3_ { + features = mkFeatures (features.scopeguard_0_3_3 or {}); + }; + scopeguard_0_3_3_features = f: updateFeatures f (rec { + scopeguard_0_3_3.default = (f.scopeguard_0_3_3.default or true); + scopeguard_0_3_3.use_std = + (f.scopeguard_0_3_3.use_std or false) || + (f.scopeguard_0_3_3.default or false) || + (scopeguard_0_3_3.default or false); + }) []; + security_framework_0_1_16 = { features?(security_framework_0_1_16_features {}) }: security_framework_0_1_16_ { + dependencies = mapFeatures features ([ core_foundation_0_2_3 core_foundation_sys_0_2_3 libc_0_2_40 security_framework_sys_0_1_16 ]); + features = mkFeatures (features.security_framework_0_1_16 or {}); + }; + security_framework_0_1_16_features = f: updateFeatures f (rec { + core_foundation_0_2_3.default = true; + core_foundation_sys_0_2_3.default = true; + libc_0_2_40.default = true; + security_framework_0_1_16."OSX_10_10" = + (f.security_framework_0_1_16."OSX_10_10" or false) || + (f.security_framework_0_1_16."OSX_10_11" or false) || + (security_framework_0_1_16."OSX_10_11" or false); + security_framework_0_1_16."OSX_10_11" = + (f.security_framework_0_1_16."OSX_10_11" or false) || + (f.security_framework_0_1_16."OSX_10_12" or false) || + (security_framework_0_1_16."OSX_10_12" or false); + security_framework_0_1_16."OSX_10_8" = + (f.security_framework_0_1_16."OSX_10_8" or false) || + (f.security_framework_0_1_16."OSX_10_9" or false) || + (security_framework_0_1_16."OSX_10_9" or false); + security_framework_0_1_16."OSX_10_9" = + (f.security_framework_0_1_16."OSX_10_9" or false) || + (f.security_framework_0_1_16."OSX_10_10" or false) || + (security_framework_0_1_16."OSX_10_10" or false); + security_framework_0_1_16.default = (f.security_framework_0_1_16.default or true); + security_framework_sys_0_1_16."OSX_10_10" = + (f.security_framework_sys_0_1_16."OSX_10_10" or false) || + (security_framework_0_1_16."OSX_10_10" or false) || + (f.security_framework_0_1_16."OSX_10_10" or false); + security_framework_sys_0_1_16."OSX_10_11" = + (f.security_framework_sys_0_1_16."OSX_10_11" or false) || + (security_framework_0_1_16."OSX_10_11" or false) || + (f.security_framework_0_1_16."OSX_10_11" or false) || + (security_framework_0_1_16."OSX_10_12" or false) || + (f.security_framework_0_1_16."OSX_10_12" or false); + security_framework_sys_0_1_16."OSX_10_8" = + (f.security_framework_sys_0_1_16."OSX_10_8" or false) || + (security_framework_0_1_16."OSX_10_8" or false) || + (f.security_framework_0_1_16."OSX_10_8" or false); + security_framework_sys_0_1_16."OSX_10_9" = + (f.security_framework_sys_0_1_16."OSX_10_9" or false) || + (security_framework_0_1_16."OSX_10_9" or false) || + (f.security_framework_0_1_16."OSX_10_9" or false); + security_framework_sys_0_1_16.default = true; + }) [ core_foundation_0_2_3_features core_foundation_sys_0_2_3_features libc_0_2_40_features security_framework_sys_0_1_16_features ]; + security_framework_sys_0_1_16 = { features?(security_framework_sys_0_1_16_features {}) }: security_framework_sys_0_1_16_ { + dependencies = mapFeatures features ([ core_foundation_sys_0_2_3 libc_0_2_40 ]); + features = mkFeatures (features.security_framework_sys_0_1_16 or {}); + }; + security_framework_sys_0_1_16_features = f: updateFeatures f (rec { + core_foundation_sys_0_2_3.default = true; + libc_0_2_40.default = true; + security_framework_sys_0_1_16."OSX_10_10" = + (f.security_framework_sys_0_1_16."OSX_10_10" or false) || + (f.security_framework_sys_0_1_16."OSX_10_11" or false) || + (security_framework_sys_0_1_16."OSX_10_11" or false); + security_framework_sys_0_1_16."OSX_10_11" = + (f.security_framework_sys_0_1_16."OSX_10_11" or false) || + (f.security_framework_sys_0_1_16."OSX_10_12" or false) || + (security_framework_sys_0_1_16."OSX_10_12" or false); + security_framework_sys_0_1_16."OSX_10_8" = + (f.security_framework_sys_0_1_16."OSX_10_8" or false) || + (f.security_framework_sys_0_1_16."OSX_10_9" or false) || + (security_framework_sys_0_1_16."OSX_10_9" or false); + security_framework_sys_0_1_16."OSX_10_9" = + (f.security_framework_sys_0_1_16."OSX_10_9" or false) || + (f.security_framework_sys_0_1_16."OSX_10_10" or false) || + (security_framework_sys_0_1_16."OSX_10_10" or false); + security_framework_sys_0_1_16.default = (f.security_framework_sys_0_1_16.default or true); + }) [ core_foundation_sys_0_2_3_features libc_0_2_40_features ]; + semver_0_9_0 = { features?(semver_0_9_0_features {}) }: semver_0_9_0_ { + dependencies = mapFeatures features ([ semver_parser_0_7_0 ] + ++ (if features.semver_0_9_0.serde or false then [ serde_1_0_55 ] else [])); + features = mkFeatures (features.semver_0_9_0 or {}); + }; + semver_0_9_0_features = f: updateFeatures f (rec { + semver_0_9_0.default = (f.semver_0_9_0.default or true); + semver_0_9_0.serde = + (f.semver_0_9_0.serde or false) || + (f.semver_0_9_0.ci or false) || + (semver_0_9_0.ci or false); + semver_parser_0_7_0.default = true; + serde_1_0_55.default = true; + }) [ semver_parser_0_7_0_features serde_1_0_55_features ]; + semver_parser_0_7_0 = { features?(semver_parser_0_7_0_features {}) }: semver_parser_0_7_0_ {}; + semver_parser_0_7_0_features = f: updateFeatures f (rec { + semver_parser_0_7_0.default = (f.semver_parser_0_7_0.default or true); + }) []; + serde_1_0_55 = { features?(serde_1_0_55_features {}) }: serde_1_0_55_ { + dependencies = mapFeatures features ([]); + features = mkFeatures (features.serde_1_0_55 or {}); + }; + serde_1_0_55_features = f: updateFeatures f (rec { + serde_1_0_55.default = (f.serde_1_0_55.default or true); + serde_1_0_55.serde_derive = + (f.serde_1_0_55.serde_derive or false) || + (f.serde_1_0_55.derive or false) || + (serde_1_0_55.derive or false); + serde_1_0_55.std = + (f.serde_1_0_55.std or false) || + (f.serde_1_0_55.default or false) || + (serde_1_0_55.default or false); + serde_1_0_55.unstable = + (f.serde_1_0_55.unstable or false) || + (f.serde_1_0_55.alloc or false) || + (serde_1_0_55.alloc or false); + }) []; + serde_derive_1_0_55 = { features?(serde_derive_1_0_55_features {}) }: serde_derive_1_0_55_ { + dependencies = mapFeatures features ([ proc_macro2_0_3_8 quote_0_5_2 syn_0_13_10 ]); + features = mkFeatures (features.serde_derive_1_0_55 or {}); + }; + serde_derive_1_0_55_features = f: updateFeatures f (rec { + proc_macro2_0_3_8.default = true; + quote_0_5_2.default = true; + serde_derive_1_0_55.default = (f.serde_derive_1_0_55.default or true); + syn_0_13_10.default = true; + syn_0_13_10.visit = true; + }) [ proc_macro2_0_3_8_features quote_0_5_2_features syn_0_13_10_features ]; + serde_json_1_0_17 = { features?(serde_json_1_0_17_features {}) }: serde_json_1_0_17_ { + dependencies = mapFeatures features ([ dtoa_0_4_2 itoa_0_4_1 serde_1_0_55 ]); + features = mkFeatures (features.serde_json_1_0_17 or {}); + }; + serde_json_1_0_17_features = f: updateFeatures f (rec { + dtoa_0_4_2.default = true; + itoa_0_4_1.default = true; + serde_1_0_55.default = true; + serde_json_1_0_17."linked-hash-map" = + (f.serde_json_1_0_17."linked-hash-map" or false) || + (f.serde_json_1_0_17.preserve_order or false) || + (serde_json_1_0_17.preserve_order or false); + serde_json_1_0_17.default = (f.serde_json_1_0_17.default or true); + }) [ dtoa_0_4_2_features itoa_0_4_1_features serde_1_0_55_features ]; + serde_urlencoded_0_5_2 = { features?(serde_urlencoded_0_5_2_features {}) }: serde_urlencoded_0_5_2_ { + dependencies = mapFeatures features ([ dtoa_0_4_2 itoa_0_4_1 serde_1_0_55 url_1_7_0 ]); + }; + serde_urlencoded_0_5_2_features = f: updateFeatures f (rec { + dtoa_0_4_2.default = true; + itoa_0_4_1.default = true; + serde_1_0_55.default = true; + serde_urlencoded_0_5_2.default = (f.serde_urlencoded_0_5_2.default or true); + url_1_7_0.default = true; + }) [ dtoa_0_4_2_features itoa_0_4_1_features serde_1_0_55_features url_1_7_0_features ]; + sha1_0_6_0 = { features?(sha1_0_6_0_features {}) }: sha1_0_6_0_ { + dependencies = mapFeatures features ([]); + features = mkFeatures (features.sha1_0_6_0 or {}); + }; + sha1_0_6_0_features = f: updateFeatures f (rec { + sha1_0_6_0.default = (f.sha1_0_6_0.default or true); + }) []; + siphasher_0_2_2 = { features?(siphasher_0_2_2_features {}) }: siphasher_0_2_2_ { + dependencies = mapFeatures features ([]); + }; + siphasher_0_2_2_features = f: updateFeatures f (rec { + siphasher_0_2_2.default = (f.siphasher_0_2_2.default or true); + }) []; + skeptic_0_13_3 = { features?(skeptic_0_13_3_features {}) }: skeptic_0_13_3_ { + dependencies = mapFeatures features ([ bytecount_0_3_1 cargo_metadata_0_5_4 error_chain_0_11_0 glob_0_2_11 pulldown_cmark_0_1_2 serde_json_1_0_17 tempdir_0_3_7 walkdir_2_1_4 ]); + }; + skeptic_0_13_3_features = f: updateFeatures f (rec { + bytecount_0_3_1.default = true; + cargo_metadata_0_5_4.default = true; + error_chain_0_11_0.default = (f.error_chain_0_11_0.default or false); + glob_0_2_11.default = true; + pulldown_cmark_0_1_2.default = (f.pulldown_cmark_0_1_2.default or false); + serde_json_1_0_17.default = true; + skeptic_0_13_3.default = (f.skeptic_0_13_3.default or true); + tempdir_0_3_7.default = true; + walkdir_2_1_4.default = true; + }) [ bytecount_0_3_1_features cargo_metadata_0_5_4_features error_chain_0_11_0_features glob_0_2_11_features pulldown_cmark_0_1_2_features serde_json_1_0_17_features tempdir_0_3_7_features walkdir_2_1_4_features ]; + slab_0_3_0 = { features?(slab_0_3_0_features {}) }: slab_0_3_0_ {}; + slab_0_3_0_features = f: updateFeatures f (rec { + slab_0_3_0.default = (f.slab_0_3_0.default or true); + }) []; + slab_0_4_0 = { features?(slab_0_4_0_features {}) }: slab_0_4_0_ {}; + slab_0_4_0_features = f: updateFeatures f (rec { + slab_0_4_0.default = (f.slab_0_4_0.default or true); + }) []; + slug_0_1_3 = { features?(slug_0_1_3_features {}) }: slug_0_1_3_ { + dependencies = mapFeatures features ([ unidecode_0_3_0 ]); + }; + slug_0_1_3_features = f: updateFeatures f (rec { + slug_0_1_3.default = (f.slug_0_1_3.default or true); + unidecode_0_3_0.default = true; + }) [ unidecode_0_3_0_features ]; + smallvec_0_2_1 = { features?(smallvec_0_2_1_features {}) }: smallvec_0_2_1_ {}; + smallvec_0_2_1_features = f: updateFeatures f (rec { + smallvec_0_2_1.default = (f.smallvec_0_2_1.default or true); + }) []; + smallvec_0_6_1 = { features?(smallvec_0_6_1_features {}) }: smallvec_0_6_1_ { + dependencies = mapFeatures features ([]); + features = mkFeatures (features.smallvec_0_6_1 or {}); + }; + smallvec_0_6_1_features = f: updateFeatures f (rec { + smallvec_0_6_1.default = (f.smallvec_0_6_1.default or true); + smallvec_0_6_1.std = + (f.smallvec_0_6_1.std or false) || + (f.smallvec_0_6_1.default or false) || + (smallvec_0_6_1.default or false); + }) []; + socket2_0_3_5 = { features?(socket2_0_3_5_features {}) }: socket2_0_3_5_ { + dependencies = (if (kernel == "linux" || kernel == "darwin") then mapFeatures features ([ cfg_if_0_1_3 libc_0_2_40 ]) else []) + ++ (if kernel == "windows" then mapFeatures features ([ winapi_0_3_4 ]) else []); + features = mkFeatures (features.socket2_0_3_5 or {}); + }; + socket2_0_3_5_features = f: updateFeatures f (rec { + cfg_if_0_1_3.default = true; + libc_0_2_40.default = true; + socket2_0_3_5.default = (f.socket2_0_3_5.default or true); + winapi_0_3_4."ws2def" = true; + winapi_0_3_4."ws2ipdef" = true; + winapi_0_3_4."ws2tcpip" = true; + winapi_0_3_4.default = true; + winapi_0_3_4.handleapi = true; + winapi_0_3_4.minwindef = true; + }) [ cfg_if_0_1_3_features libc_0_2_40_features winapi_0_3_4_features ]; + stable_deref_trait_1_0_0 = { features?(stable_deref_trait_1_0_0_features {}) }: stable_deref_trait_1_0_0_ { + features = mkFeatures (features.stable_deref_trait_1_0_0 or {}); + }; + stable_deref_trait_1_0_0_features = f: updateFeatures f (rec { + stable_deref_trait_1_0_0.default = (f.stable_deref_trait_1_0_0.default or true); + stable_deref_trait_1_0_0.std = + (f.stable_deref_trait_1_0_0.std or false) || + (f.stable_deref_trait_1_0_0.default or false) || + (stable_deref_trait_1_0_0.default or false); + }) []; + string_0_1_0 = { features?(string_0_1_0_features {}) }: string_0_1_0_ {}; + string_0_1_0_features = f: updateFeatures f (rec { + string_0_1_0.default = (f.string_0_1_0.default or true); + }) []; + strsim_0_7_0 = { features?(strsim_0_7_0_features {}) }: strsim_0_7_0_ {}; + strsim_0_7_0_features = f: updateFeatures f (rec { + strsim_0_7_0.default = (f.strsim_0_7_0.default or true); + }) []; + syn_0_11_11 = { features?(syn_0_11_11_features {}) }: syn_0_11_11_ { + dependencies = mapFeatures features ([ ] + ++ (if features.syn_0_11_11.quote or false then [ quote_0_3_15 ] else []) + ++ (if features.syn_0_11_11.synom or false then [ synom_0_11_3 ] else []) + ++ (if features.syn_0_11_11."unicode-xid" or false then [ unicode_xid_0_0_4 ] else [])); + features = mkFeatures (features.syn_0_11_11 or {}); + }; + syn_0_11_11_features = f: updateFeatures f (rec { + quote_0_3_15.default = true; + syn_0_11_11."unicode-xid" = + (f.syn_0_11_11."unicode-xid" or false) || + (f.syn_0_11_11.parsing or false) || + (syn_0_11_11.parsing or false); + syn_0_11_11.default = (f.syn_0_11_11.default or true); + syn_0_11_11.parsing = + (f.syn_0_11_11.parsing or false) || + (f.syn_0_11_11.default or false) || + (syn_0_11_11.default or false); + syn_0_11_11.printing = + (f.syn_0_11_11.printing or false) || + (f.syn_0_11_11.default or false) || + (syn_0_11_11.default or false); + syn_0_11_11.quote = + (f.syn_0_11_11.quote or false) || + (f.syn_0_11_11.printing or false) || + (syn_0_11_11.printing or false); + syn_0_11_11.synom = + (f.syn_0_11_11.synom or false) || + (f.syn_0_11_11.parsing or false) || + (syn_0_11_11.parsing or false); + synom_0_11_3.default = true; + unicode_xid_0_0_4.default = true; + }) [ quote_0_3_15_features synom_0_11_3_features unicode_xid_0_0_4_features ]; + syn_0_12_15 = { features?(syn_0_12_15_features {}) }: syn_0_12_15_ { + dependencies = mapFeatures features ([ proc_macro2_0_2_3 unicode_xid_0_1_0 ] + ++ (if features.syn_0_12_15.quote or false then [ quote_0_4_2 ] else [])); + features = mkFeatures (features.syn_0_12_15 or {}); + }; + syn_0_12_15_features = f: updateFeatures f (rec { + proc_macro2_0_2_3.default = true; + quote_0_4_2.default = true; + syn_0_12_15."clone-impls" = + (f.syn_0_12_15."clone-impls" or false) || + (f.syn_0_12_15.default or false) || + (syn_0_12_15.default or false); + syn_0_12_15.default = (f.syn_0_12_15.default or true); + syn_0_12_15.derive = + (f.syn_0_12_15.derive or false) || + (f.syn_0_12_15.default or false) || + (syn_0_12_15.default or false); + syn_0_12_15.parsing = + (f.syn_0_12_15.parsing or false) || + (f.syn_0_12_15.default or false) || + (syn_0_12_15.default or false); + syn_0_12_15.printing = + (f.syn_0_12_15.printing or false) || + (f.syn_0_12_15.default or false) || + (syn_0_12_15.default or false); + syn_0_12_15.quote = + (f.syn_0_12_15.quote or false) || + (f.syn_0_12_15.printing or false) || + (syn_0_12_15.printing or false); + unicode_xid_0_1_0.default = true; + }) [ proc_macro2_0_2_3_features quote_0_4_2_features unicode_xid_0_1_0_features ]; + syn_0_13_10 = { features?(syn_0_13_10_features {}) }: syn_0_13_10_ { + dependencies = mapFeatures features ([ proc_macro2_0_3_8 unicode_xid_0_1_0 ] + ++ (if features.syn_0_13_10.quote or false then [ quote_0_5_2 ] else [])); + features = mkFeatures (features.syn_0_13_10 or {}); + }; + syn_0_13_10_features = f: updateFeatures f (rec { + proc_macro2_0_3_8."proc-macro" = + (f.proc_macro2_0_3_8."proc-macro" or false) || + (syn_0_13_10."proc-macro" or false) || + (f.syn_0_13_10."proc-macro" or false); + proc_macro2_0_3_8.default = (f.proc_macro2_0_3_8.default or false); + quote_0_5_2."proc-macro" = + (f.quote_0_5_2."proc-macro" or false) || + (syn_0_13_10."proc-macro" or false) || + (f.syn_0_13_10."proc-macro" or false); + quote_0_5_2.default = (f.quote_0_5_2.default or false); + syn_0_13_10."clone-impls" = + (f.syn_0_13_10."clone-impls" or false) || + (f.syn_0_13_10.default or false) || + (syn_0_13_10.default or false); + syn_0_13_10."proc-macro" = + (f.syn_0_13_10."proc-macro" or false) || + (f.syn_0_13_10.default or false) || + (syn_0_13_10.default or false); + syn_0_13_10.default = (f.syn_0_13_10.default or true); + syn_0_13_10.derive = + (f.syn_0_13_10.derive or false) || + (f.syn_0_13_10.default or false) || + (syn_0_13_10.default or false); + syn_0_13_10.parsing = + (f.syn_0_13_10.parsing or false) || + (f.syn_0_13_10.default or false) || + (syn_0_13_10.default or false); + syn_0_13_10.printing = + (f.syn_0_13_10.printing or false) || + (f.syn_0_13_10.default or false) || + (syn_0_13_10.default or false); + syn_0_13_10.quote = + (f.syn_0_13_10.quote or false) || + (f.syn_0_13_10.printing or false) || + (syn_0_13_10.printing or false); + unicode_xid_0_1_0.default = true; + }) [ proc_macro2_0_3_8_features quote_0_5_2_features unicode_xid_0_1_0_features ]; + synom_0_11_3 = { features?(synom_0_11_3_features {}) }: synom_0_11_3_ { + dependencies = mapFeatures features ([ unicode_xid_0_0_4 ]); + }; + synom_0_11_3_features = f: updateFeatures f (rec { + synom_0_11_3.default = (f.synom_0_11_3.default or true); + unicode_xid_0_0_4.default = true; + }) [ unicode_xid_0_0_4_features ]; + synstructure_0_6_1 = { features?(synstructure_0_6_1_features {}) }: synstructure_0_6_1_ { + dependencies = mapFeatures features ([ quote_0_3_15 syn_0_11_11 ]); + features = mkFeatures (features.synstructure_0_6_1 or {}); + }; + synstructure_0_6_1_features = f: updateFeatures f (rec { + quote_0_3_15.default = true; + syn_0_11_11.default = true; + syn_0_11_11.visit = true; + synstructure_0_6_1.default = (f.synstructure_0_6_1.default or true); + }) [ quote_0_3_15_features syn_0_11_11_features ]; + take_0_1_0 = { features?(take_0_1_0_features {}) }: take_0_1_0_ {}; + take_0_1_0_features = f: updateFeatures f (rec { + take_0_1_0.default = (f.take_0_1_0.default or true); + }) []; + tempdir_0_3_7 = { features?(tempdir_0_3_7_features {}) }: tempdir_0_3_7_ { + dependencies = mapFeatures features ([ rand_0_4_2 remove_dir_all_0_5_1 ]); + }; + tempdir_0_3_7_features = f: updateFeatures f (rec { + rand_0_4_2.default = true; + remove_dir_all_0_5_1.default = true; + tempdir_0_3_7.default = (f.tempdir_0_3_7.default or true); + }) [ rand_0_4_2_features remove_dir_all_0_5_1_features ]; + tera_0_11_7 = { features?(tera_0_11_7_features {}) }: tera_0_11_7_ { + dependencies = mapFeatures features ([ chrono_0_4_2 error_chain_0_11_0 glob_0_2_11 humansize_1_1_0 lazy_static_1_0_0 pest_1_0_6 pest_derive_1_0_7 regex_0_2_11 serde_1_0_55 serde_json_1_0_17 slug_0_1_3 url_1_7_0 ]); + }; + tera_0_11_7_features = f: updateFeatures f (rec { + chrono_0_4_2.default = true; + error_chain_0_11_0.default = true; + glob_0_2_11.default = true; + humansize_1_1_0.default = true; + lazy_static_1_0_0.default = true; + pest_1_0_6.default = true; + pest_derive_1_0_7.default = true; + regex_0_2_11.default = true; + serde_1_0_55.default = true; + serde_json_1_0_17.default = true; + slug_0_1_3.default = true; + tera_0_11_7.default = (f.tera_0_11_7.default or true); + url_1_7_0.default = true; + }) [ chrono_0_4_2_features error_chain_0_11_0_features glob_0_2_11_features humansize_1_1_0_features lazy_static_1_0_0_features pest_1_0_6_features pest_derive_1_0_7_features regex_0_2_11_features serde_1_0_55_features serde_json_1_0_17_features slug_0_1_3_features url_1_7_0_features ]; + termcolor_0_3_6 = { features?(termcolor_0_3_6_features {}) }: termcolor_0_3_6_ { + dependencies = (if kernel == "windows" then mapFeatures features ([ wincolor_0_1_6 ]) else []); + }; + termcolor_0_3_6_features = f: updateFeatures f (rec { + termcolor_0_3_6.default = (f.termcolor_0_3_6.default or true); + wincolor_0_1_6.default = true; + }) [ wincolor_0_1_6_features ]; + termion_1_5_1 = { features?(termion_1_5_1_features {}) }: termion_1_5_1_ { + dependencies = (if !(kernel == "redox") then mapFeatures features ([ libc_0_2_40 ]) else []) + ++ (if kernel == "redox" then mapFeatures features ([ redox_syscall_0_1_37 redox_termios_0_1_1 ]) else []); + }; + termion_1_5_1_features = f: updateFeatures f (rec { + libc_0_2_40.default = true; + redox_syscall_0_1_37.default = true; + redox_termios_0_1_1.default = true; + termion_1_5_1.default = (f.termion_1_5_1.default or true); + }) [ libc_0_2_40_features redox_syscall_0_1_37_features redox_termios_0_1_1_features ]; + textwrap_0_9_0 = { features?(textwrap_0_9_0_features {}) }: textwrap_0_9_0_ { + dependencies = mapFeatures features ([ unicode_width_0_1_4 ]); + }; + textwrap_0_9_0_features = f: updateFeatures f (rec { + textwrap_0_9_0.default = (f.textwrap_0_9_0.default or true); + unicode_width_0_1_4.default = true; + }) [ unicode_width_0_1_4_features ]; + thread_local_0_3_5 = { features?(thread_local_0_3_5_features {}) }: thread_local_0_3_5_ { + dependencies = mapFeatures features ([ lazy_static_1_0_0 unreachable_1_0_0 ]); + }; + thread_local_0_3_5_features = f: updateFeatures f (rec { + lazy_static_1_0_0.default = true; + thread_local_0_3_5.default = (f.thread_local_0_3_5.default or true); + unreachable_1_0_0.default = true; + }) [ lazy_static_1_0_0_features unreachable_1_0_0_features ]; + time_0_1_40 = { features?(time_0_1_40_features {}) }: time_0_1_40_ { + dependencies = mapFeatures features ([ libc_0_2_40 ]) + ++ (if kernel == "redox" then mapFeatures features ([ redox_syscall_0_1_37 ]) else []) + ++ (if kernel == "windows" then mapFeatures features ([ winapi_0_3_4 ]) else []); + }; + time_0_1_40_features = f: updateFeatures f (rec { + libc_0_2_40.default = true; + redox_syscall_0_1_37.default = true; + time_0_1_40.default = (f.time_0_1_40.default or true); + winapi_0_3_4.default = true; + winapi_0_3_4.minwinbase = true; + winapi_0_3_4.minwindef = true; + winapi_0_3_4.ntdef = true; + winapi_0_3_4.profileapi = true; + winapi_0_3_4.std = true; + winapi_0_3_4.sysinfoapi = true; + winapi_0_3_4.timezoneapi = true; + }) [ libc_0_2_40_features redox_syscall_0_1_37_features winapi_0_3_4_features ]; + tokio_0_1_6 = { features?(tokio_0_1_6_features {}) }: tokio_0_1_6_ { + dependencies = mapFeatures features ([ futures_0_1_21 mio_0_6_14 tokio_executor_0_1_2 tokio_fs_0_1_0 tokio_io_0_1_6 tokio_reactor_0_1_1 tokio_tcp_0_1_0 tokio_threadpool_0_1_3 tokio_timer_0_2_3 tokio_udp_0_1_0 ]); + }; + tokio_0_1_6_features = f: updateFeatures f (rec { + futures_0_1_21.default = true; + mio_0_6_14.default = true; + tokio_0_1_6.default = (f.tokio_0_1_6.default or true); + tokio_executor_0_1_2.default = true; + tokio_fs_0_1_0.default = true; + tokio_io_0_1_6.default = true; + tokio_reactor_0_1_1.default = true; + tokio_tcp_0_1_0.default = true; + tokio_threadpool_0_1_3.default = true; + tokio_timer_0_2_3.default = true; + tokio_udp_0_1_0.default = true; + }) [ futures_0_1_21_features mio_0_6_14_features tokio_executor_0_1_2_features tokio_fs_0_1_0_features tokio_io_0_1_6_features tokio_reactor_0_1_1_features tokio_tcp_0_1_0_features tokio_threadpool_0_1_3_features tokio_timer_0_2_3_features tokio_udp_0_1_0_features ]; + tokio_core_0_1_17 = { features?(tokio_core_0_1_17_features {}) }: tokio_core_0_1_17_ { + dependencies = mapFeatures features ([ bytes_0_4_7 futures_0_1_21 iovec_0_1_2 log_0_4_1 mio_0_6_14 scoped_tls_0_1_2 tokio_0_1_6 tokio_executor_0_1_2 tokio_io_0_1_6 tokio_reactor_0_1_1 tokio_timer_0_2_3 ]); + }; + tokio_core_0_1_17_features = f: updateFeatures f (rec { + bytes_0_4_7.default = true; + futures_0_1_21.default = true; + iovec_0_1_2.default = true; + log_0_4_1.default = true; + mio_0_6_14.default = true; + scoped_tls_0_1_2.default = true; + tokio_0_1_6.default = true; + tokio_core_0_1_17.default = (f.tokio_core_0_1_17.default or true); + tokio_executor_0_1_2.default = true; + tokio_io_0_1_6.default = true; + tokio_reactor_0_1_1.default = true; + tokio_timer_0_2_3.default = true; + }) [ bytes_0_4_7_features futures_0_1_21_features iovec_0_1_2_features log_0_4_1_features mio_0_6_14_features scoped_tls_0_1_2_features tokio_0_1_6_features tokio_executor_0_1_2_features tokio_io_0_1_6_features tokio_reactor_0_1_1_features tokio_timer_0_2_3_features ]; + tokio_executor_0_1_2 = { features?(tokio_executor_0_1_2_features {}) }: tokio_executor_0_1_2_ { + dependencies = mapFeatures features ([ futures_0_1_21 ]); + features = mkFeatures (features.tokio_executor_0_1_2 or {}); + }; + tokio_executor_0_1_2_features = f: updateFeatures f (rec { + futures_0_1_21.default = true; + tokio_executor_0_1_2."futures2" = + (f.tokio_executor_0_1_2."futures2" or false) || + (f.tokio_executor_0_1_2."unstable-futures" or false) || + (tokio_executor_0_1_2."unstable-futures" or false); + tokio_executor_0_1_2.default = (f.tokio_executor_0_1_2.default or true); + }) [ futures_0_1_21_features ]; + tokio_fs_0_1_0 = { features?(tokio_fs_0_1_0_features {}) }: tokio_fs_0_1_0_ { + dependencies = mapFeatures features ([ futures_0_1_21 tokio_io_0_1_6 tokio_threadpool_0_1_3 ]); + }; + tokio_fs_0_1_0_features = f: updateFeatures f (rec { + futures_0_1_21.default = true; + tokio_fs_0_1_0.default = (f.tokio_fs_0_1_0.default or true); + tokio_io_0_1_6.default = true; + tokio_threadpool_0_1_3.default = true; + }) [ futures_0_1_21_features tokio_io_0_1_6_features tokio_threadpool_0_1_3_features ]; + tokio_io_0_1_6 = { features?(tokio_io_0_1_6_features {}) }: tokio_io_0_1_6_ { + dependencies = mapFeatures features ([ bytes_0_4_7 futures_0_1_21 log_0_4_1 ]); + }; + tokio_io_0_1_6_features = f: updateFeatures f (rec { + bytes_0_4_7.default = true; + futures_0_1_21.default = true; + log_0_4_1.default = true; + tokio_io_0_1_6.default = (f.tokio_io_0_1_6.default or true); + }) [ bytes_0_4_7_features futures_0_1_21_features log_0_4_1_features ]; + tokio_proto_0_1_1 = { features?(tokio_proto_0_1_1_features {}) }: tokio_proto_0_1_1_ { + dependencies = mapFeatures features ([ futures_0_1_21 log_0_3_9 net2_0_2_32 rand_0_3_22 slab_0_3_0 smallvec_0_2_1 take_0_1_0 tokio_core_0_1_17 tokio_io_0_1_6 tokio_service_0_1_0 ]); + }; + tokio_proto_0_1_1_features = f: updateFeatures f (rec { + futures_0_1_21.default = true; + log_0_3_9.default = true; + net2_0_2_32.default = true; + rand_0_3_22.default = true; + slab_0_3_0.default = true; + smallvec_0_2_1.default = true; + take_0_1_0.default = true; + tokio_core_0_1_17.default = true; + tokio_io_0_1_6.default = true; + tokio_proto_0_1_1.default = (f.tokio_proto_0_1_1.default or true); + tokio_service_0_1_0.default = true; + }) [ futures_0_1_21_features log_0_3_9_features net2_0_2_32_features rand_0_3_22_features slab_0_3_0_features smallvec_0_2_1_features take_0_1_0_features tokio_core_0_1_17_features tokio_io_0_1_6_features tokio_service_0_1_0_features ]; + tokio_reactor_0_1_1 = { features?(tokio_reactor_0_1_1_features {}) }: tokio_reactor_0_1_1_ { + dependencies = mapFeatures features ([ futures_0_1_21 log_0_4_1 mio_0_6_14 slab_0_4_0 tokio_executor_0_1_2 tokio_io_0_1_6 ]); + features = mkFeatures (features.tokio_reactor_0_1_1 or {}); + }; + tokio_reactor_0_1_1_features = f: updateFeatures f (rec { + futures_0_1_21.default = true; + log_0_4_1.default = true; + mio_0_6_14.default = true; + slab_0_4_0.default = true; + tokio_executor_0_1_2.default = true; + tokio_io_0_1_6.default = true; + tokio_reactor_0_1_1."futures2" = + (f.tokio_reactor_0_1_1."futures2" or false) || + (f.tokio_reactor_0_1_1."unstable-futures" or false) || + (tokio_reactor_0_1_1."unstable-futures" or false); + tokio_reactor_0_1_1.default = (f.tokio_reactor_0_1_1.default or true); + }) [ futures_0_1_21_features log_0_4_1_features mio_0_6_14_features slab_0_4_0_features tokio_executor_0_1_2_features tokio_io_0_1_6_features ]; + tokio_service_0_1_0 = { features?(tokio_service_0_1_0_features {}) }: tokio_service_0_1_0_ { + dependencies = mapFeatures features ([ futures_0_1_21 ]); + }; + tokio_service_0_1_0_features = f: updateFeatures f (rec { + futures_0_1_21.default = true; + tokio_service_0_1_0.default = (f.tokio_service_0_1_0.default or true); + }) [ futures_0_1_21_features ]; + tokio_signal_0_1_5 = { features?(tokio_signal_0_1_5_features {}) }: tokio_signal_0_1_5_ { + dependencies = mapFeatures features ([ futures_0_1_21 mio_0_6_14 tokio_core_0_1_17 tokio_io_0_1_6 ]) + ++ (if (kernel == "linux" || kernel == "darwin") then mapFeatures features ([ libc_0_2_40 mio_uds_0_6_6 ]) else []) + ++ (if kernel == "windows" then mapFeatures features ([ winapi_0_3_4 ]) else []); + }; + tokio_signal_0_1_5_features = f: updateFeatures f (rec { + futures_0_1_21.default = true; + libc_0_2_40.default = true; + mio_0_6_14.default = true; + mio_uds_0_6_6.default = true; + tokio_core_0_1_17.default = true; + tokio_io_0_1_6.default = true; + tokio_signal_0_1_5.default = (f.tokio_signal_0_1_5.default or true); + winapi_0_3_4.default = true; + winapi_0_3_4.minwindef = true; + winapi_0_3_4.wincon = true; + }) [ futures_0_1_21_features mio_0_6_14_features tokio_core_0_1_17_features tokio_io_0_1_6_features libc_0_2_40_features mio_uds_0_6_6_features winapi_0_3_4_features ]; + tokio_tcp_0_1_0 = { features?(tokio_tcp_0_1_0_features {}) }: tokio_tcp_0_1_0_ { + dependencies = mapFeatures features ([ bytes_0_4_7 futures_0_1_21 iovec_0_1_2 mio_0_6_14 tokio_io_0_1_6 tokio_reactor_0_1_1 ]); + features = mkFeatures (features.tokio_tcp_0_1_0 or {}); + }; + tokio_tcp_0_1_0_features = f: updateFeatures f (rec { + bytes_0_4_7.default = true; + futures_0_1_21.default = true; + iovec_0_1_2.default = true; + mio_0_6_14.default = true; + tokio_io_0_1_6.default = true; + tokio_reactor_0_1_1.default = true; + tokio_tcp_0_1_0."futures2" = + (f.tokio_tcp_0_1_0."futures2" or false) || + (f.tokio_tcp_0_1_0."unstable-futures" or false) || + (tokio_tcp_0_1_0."unstable-futures" or false); + tokio_tcp_0_1_0.default = (f.tokio_tcp_0_1_0.default or true); + }) [ bytes_0_4_7_features futures_0_1_21_features iovec_0_1_2_features mio_0_6_14_features tokio_io_0_1_6_features tokio_reactor_0_1_1_features ]; + tokio_threadpool_0_1_3 = { features?(tokio_threadpool_0_1_3_features {}) }: tokio_threadpool_0_1_3_ { + dependencies = mapFeatures features ([ crossbeam_deque_0_3_1 futures_0_1_21 log_0_4_1 num_cpus_1_8_0 rand_0_4_2 tokio_executor_0_1_2 ]); + }; + tokio_threadpool_0_1_3_features = f: updateFeatures f (rec { + crossbeam_deque_0_3_1.default = true; + futures_0_1_21.default = true; + log_0_4_1.default = true; + num_cpus_1_8_0.default = true; + rand_0_4_2.default = true; + tokio_executor_0_1_2.default = true; + tokio_threadpool_0_1_3.default = (f.tokio_threadpool_0_1_3.default or true); + }) [ crossbeam_deque_0_3_1_features futures_0_1_21_features log_0_4_1_features num_cpus_1_8_0_features rand_0_4_2_features tokio_executor_0_1_2_features ]; + tokio_timer_0_2_3 = { features?(tokio_timer_0_2_3_features {}) }: tokio_timer_0_2_3_ { + dependencies = mapFeatures features ([ futures_0_1_21 tokio_executor_0_1_2 ]); + }; + tokio_timer_0_2_3_features = f: updateFeatures f (rec { + futures_0_1_21.default = true; + tokio_executor_0_1_2.default = true; + tokio_timer_0_2_3.default = (f.tokio_timer_0_2_3.default or true); + }) [ futures_0_1_21_features tokio_executor_0_1_2_features ]; + tokio_tls_0_1_4 = { features?(tokio_tls_0_1_4_features {}) }: tokio_tls_0_1_4_ { + dependencies = mapFeatures features ([ futures_0_1_21 native_tls_0_1_5 tokio_core_0_1_17 tokio_io_0_1_6 ]) + ++ (if !(kernel == "darwin") && !(kernel == "windows") && !(kernel == "ios") then mapFeatures features ([]) else []) + ++ (if kernel == "darwin" || kernel == "ios" then mapFeatures features ([]) else []) + ++ (if kernel == "windows" then mapFeatures features ([]) else []); + }; + tokio_tls_0_1_4_features = f: updateFeatures f (rec { + futures_0_1_21.default = true; + native_tls_0_1_5.default = true; + tokio_core_0_1_17.default = true; + tokio_io_0_1_6.default = true; + tokio_tls_0_1_4.default = (f.tokio_tls_0_1_4.default or true); + }) [ futures_0_1_21_features native_tls_0_1_5_features tokio_core_0_1_17_features tokio_io_0_1_6_features ]; + tokio_udp_0_1_0 = { features?(tokio_udp_0_1_0_features {}) }: tokio_udp_0_1_0_ { + dependencies = mapFeatures features ([ bytes_0_4_7 futures_0_1_21 log_0_4_1 mio_0_6_14 tokio_io_0_1_6 tokio_reactor_0_1_1 ]); + features = mkFeatures (features.tokio_udp_0_1_0 or {}); + }; + tokio_udp_0_1_0_features = f: updateFeatures f (rec { + bytes_0_4_7.default = true; + futures_0_1_21.default = true; + log_0_4_1.default = true; + mio_0_6_14.default = true; + tokio_io_0_1_6.default = true; + tokio_reactor_0_1_1.default = true; + tokio_udp_0_1_0."futures2" = + (f.tokio_udp_0_1_0."futures2" or false) || + (f.tokio_udp_0_1_0."unstable-futures" or false) || + (tokio_udp_0_1_0."unstable-futures" or false); + tokio_udp_0_1_0.default = (f.tokio_udp_0_1_0.default or true); + }) [ bytes_0_4_7_features futures_0_1_21_features log_0_4_1_features mio_0_6_14_features tokio_io_0_1_6_features tokio_reactor_0_1_1_features ]; + trust_dns_proto_0_3_3 = { features?(trust_dns_proto_0_3_3_features {}) }: trust_dns_proto_0_3_3_ { + dependencies = mapFeatures features ([ byteorder_1_2_3 error_chain_0_1_12 futures_0_1_21 idna_0_1_4 lazy_static_1_0_0 log_0_4_1 rand_0_4_2 tokio_core_0_1_17 tokio_io_0_1_6 url_1_7_0 ]); + features = mkFeatures (features.trust_dns_proto_0_3_3 or {}); + }; + trust_dns_proto_0_3_3_features = f: updateFeatures f (rec { + byteorder_1_2_3.default = true; + error_chain_0_1_12.default = (f.error_chain_0_1_12.default or false); + futures_0_1_21.default = true; + idna_0_1_4.default = true; + lazy_static_1_0_0.default = true; + log_0_4_1.default = true; + rand_0_4_2.default = true; + tokio_core_0_1_17.default = true; + tokio_io_0_1_6.default = true; + trust_dns_proto_0_3_3."data-encoding" = + (f.trust_dns_proto_0_3_3."data-encoding" or false) || + (f.trust_dns_proto_0_3_3.dnssec or false) || + (trust_dns_proto_0_3_3.dnssec or false); + trust_dns_proto_0_3_3.default = (f.trust_dns_proto_0_3_3.default or true); + trust_dns_proto_0_3_3.dnssec = + (f.trust_dns_proto_0_3_3.dnssec or false) || + (f.trust_dns_proto_0_3_3."dnssec-openssl" or false) || + (trust_dns_proto_0_3_3."dnssec-openssl" or false) || + (f.trust_dns_proto_0_3_3."dnssec-ring" or false) || + (trust_dns_proto_0_3_3."dnssec-ring" or false); + trust_dns_proto_0_3_3.openssl = + (f.trust_dns_proto_0_3_3.openssl or false) || + (f.trust_dns_proto_0_3_3."dnssec-openssl" or false) || + (trust_dns_proto_0_3_3."dnssec-openssl" or false); + trust_dns_proto_0_3_3.ring = + (f.trust_dns_proto_0_3_3.ring or false) || + (f.trust_dns_proto_0_3_3."dnssec-ring" or false) || + (trust_dns_proto_0_3_3."dnssec-ring" or false); + trust_dns_proto_0_3_3.untrusted = + (f.trust_dns_proto_0_3_3.untrusted or false) || + (f.trust_dns_proto_0_3_3."dnssec-ring" or false) || + (trust_dns_proto_0_3_3."dnssec-ring" or false); + url_1_7_0.default = true; + }) [ byteorder_1_2_3_features error_chain_0_1_12_features futures_0_1_21_features idna_0_1_4_features lazy_static_1_0_0_features log_0_4_1_features rand_0_4_2_features tokio_core_0_1_17_features tokio_io_0_1_6_features url_1_7_0_features ]; + trust_dns_resolver_0_8_2 = { features?(trust_dns_resolver_0_8_2_features {}) }: trust_dns_resolver_0_8_2_ { + dependencies = mapFeatures features ([ error_chain_0_1_12 futures_0_1_21 lazy_static_1_0_0 log_0_4_1 lru_cache_0_1_1 resolv_conf_0_6_0 tokio_core_0_1_17 trust_dns_proto_0_3_3 ]) + ++ (if kernel == "windows" then mapFeatures features ([ ipconfig_0_1_6 ]) else []); + features = mkFeatures (features.trust_dns_resolver_0_8_2 or {}); + }; + trust_dns_resolver_0_8_2_features = f: updateFeatures f (rec { + error_chain_0_1_12.default = (f.error_chain_0_1_12.default or false); + futures_0_1_21.default = true; + ipconfig_0_1_6.default = true; + lazy_static_1_0_0.default = true; + log_0_4_1.default = true; + lru_cache_0_1_1.default = true; + resolv_conf_0_6_0.default = true; + resolv_conf_0_6_0.system = true; + tokio_core_0_1_17.default = true; + trust_dns_proto_0_3_3."dnssec-openssl" = + (f.trust_dns_proto_0_3_3."dnssec-openssl" or false) || + (trust_dns_resolver_0_8_2."dnssec-openssl" or false) || + (f.trust_dns_resolver_0_8_2."dnssec-openssl" or false); + trust_dns_proto_0_3_3."dnssec-ring" = + (f.trust_dns_proto_0_3_3."dnssec-ring" or false) || + (trust_dns_resolver_0_8_2."dnssec-ring" or false) || + (f.trust_dns_resolver_0_8_2."dnssec-ring" or false); + trust_dns_proto_0_3_3.default = true; + trust_dns_resolver_0_8_2.default = (f.trust_dns_resolver_0_8_2.default or true); + trust_dns_resolver_0_8_2.dnssec = + (f.trust_dns_resolver_0_8_2.dnssec or false) || + (f.trust_dns_resolver_0_8_2."dnssec-openssl" or false) || + (trust_dns_resolver_0_8_2."dnssec-openssl" or false) || + (f.trust_dns_resolver_0_8_2."dnssec-ring" or false) || + (trust_dns_resolver_0_8_2."dnssec-ring" or false); + }) [ error_chain_0_1_12_features futures_0_1_21_features lazy_static_1_0_0_features log_0_4_1_features lru_cache_0_1_1_features resolv_conf_0_6_0_features tokio_core_0_1_17_features trust_dns_proto_0_3_3_features ipconfig_0_1_6_features ]; + try_lock_0_1_0 = { features?(try_lock_0_1_0_features {}) }: try_lock_0_1_0_ {}; + try_lock_0_1_0_features = f: updateFeatures f (rec { + try_lock_0_1_0.default = (f.try_lock_0_1_0.default or true); + }) []; + twoway_0_1_8 = { features?(twoway_0_1_8_features {}) }: twoway_0_1_8_ { + dependencies = mapFeatures features ([ memchr_2_0_1 ]); + features = mkFeatures (features.twoway_0_1_8 or {}); + }; + twoway_0_1_8_features = f: updateFeatures f (rec { + memchr_2_0_1.default = (f.memchr_2_0_1.default or false); + memchr_2_0_1.use_std = + (f.memchr_2_0_1.use_std or false) || + (twoway_0_1_8.use_std or false) || + (f.twoway_0_1_8.use_std or false); + twoway_0_1_8."galil-seiferas" = + (f.twoway_0_1_8."galil-seiferas" or false) || + (f.twoway_0_1_8.benchmarks or false) || + (twoway_0_1_8.benchmarks or false); + twoway_0_1_8."test-set" = + (f.twoway_0_1_8."test-set" or false) || + (f.twoway_0_1_8.all or false) || + (twoway_0_1_8.all or false); + twoway_0_1_8."unchecked-index" = + (f.twoway_0_1_8."unchecked-index" or false) || + (f.twoway_0_1_8.benchmarks or false) || + (twoway_0_1_8.benchmarks or false) || + (f.twoway_0_1_8.pcmp or false) || + (twoway_0_1_8.pcmp or false); + twoway_0_1_8.default = (f.twoway_0_1_8.default or true); + twoway_0_1_8.jetscii = + (f.twoway_0_1_8.jetscii or false) || + (f.twoway_0_1_8.all or false) || + (twoway_0_1_8.all or false); + twoway_0_1_8.pattern = + (f.twoway_0_1_8.pattern or false) || + (f.twoway_0_1_8.all or false) || + (twoway_0_1_8.all or false) || + (f.twoway_0_1_8.benchmarks or false) || + (twoway_0_1_8.benchmarks or false); + twoway_0_1_8.pcmp = + (f.twoway_0_1_8.pcmp or false) || + (f.twoway_0_1_8.all or false) || + (twoway_0_1_8.all or false); + twoway_0_1_8.use_std = + (f.twoway_0_1_8.use_std or false) || + (f.twoway_0_1_8.default or false) || + (twoway_0_1_8.default or false); + }) [ memchr_2_0_1_features ]; + typed_arena_1_3_0 = { features?(typed_arena_1_3_0_features {}) }: typed_arena_1_3_0_ {}; + typed_arena_1_3_0_features = f: updateFeatures f (rec { + typed_arena_1_3_0.default = (f.typed_arena_1_3_0.default or true); + }) []; + ucd_util_0_1_1 = { features?(ucd_util_0_1_1_features {}) }: ucd_util_0_1_1_ {}; + ucd_util_0_1_1_features = f: updateFeatures f (rec { + ucd_util_0_1_1.default = (f.ucd_util_0_1_1.default or true); + }) []; + unicase_1_4_2 = { features?(unicase_1_4_2_features {}) }: unicase_1_4_2_ { + dependencies = mapFeatures features ([]); + buildDependencies = mapFeatures features ([ version_check_0_1_3 ]); + features = mkFeatures (features.unicase_1_4_2 or {}); + }; + unicase_1_4_2_features = f: updateFeatures f (rec { + unicase_1_4_2.default = (f.unicase_1_4_2.default or true); + unicase_1_4_2.heapsize = + (f.unicase_1_4_2.heapsize or false) || + (f.unicase_1_4_2.heap_size or false) || + (unicase_1_4_2.heap_size or false); + unicase_1_4_2.heapsize_plugin = + (f.unicase_1_4_2.heapsize_plugin or false) || + (f.unicase_1_4_2.heap_size or false) || + (unicase_1_4_2.heap_size or false); + version_check_0_1_3.default = true; + }) [ version_check_0_1_3_features ]; + unicase_2_1_0 = { features?(unicase_2_1_0_features {}) }: unicase_2_1_0_ { + buildDependencies = mapFeatures features ([ version_check_0_1_3 ]); + features = mkFeatures (features.unicase_2_1_0 or {}); + }; + unicase_2_1_0_features = f: updateFeatures f (rec { + unicase_2_1_0.default = (f.unicase_2_1_0.default or true); + version_check_0_1_3.default = true; + }) [ version_check_0_1_3_features ]; + unicode_bidi_0_3_4 = { features?(unicode_bidi_0_3_4_features {}) }: unicode_bidi_0_3_4_ { + dependencies = mapFeatures features ([ matches_0_1_6 ]); + features = mkFeatures (features.unicode_bidi_0_3_4 or {}); + }; + unicode_bidi_0_3_4_features = f: updateFeatures f (rec { + matches_0_1_6.default = true; + unicode_bidi_0_3_4.default = (f.unicode_bidi_0_3_4.default or true); + unicode_bidi_0_3_4.flame = + (f.unicode_bidi_0_3_4.flame or false) || + (f.unicode_bidi_0_3_4.flame_it or false) || + (unicode_bidi_0_3_4.flame_it or false); + unicode_bidi_0_3_4.flamer = + (f.unicode_bidi_0_3_4.flamer or false) || + (f.unicode_bidi_0_3_4.flame_it or false) || + (unicode_bidi_0_3_4.flame_it or false); + unicode_bidi_0_3_4.serde = + (f.unicode_bidi_0_3_4.serde or false) || + (f.unicode_bidi_0_3_4.with_serde or false) || + (unicode_bidi_0_3_4.with_serde or false); + }) [ matches_0_1_6_features ]; + unicode_normalization_0_1_7 = { features?(unicode_normalization_0_1_7_features {}) }: unicode_normalization_0_1_7_ {}; + unicode_normalization_0_1_7_features = f: updateFeatures f (rec { + unicode_normalization_0_1_7.default = (f.unicode_normalization_0_1_7.default or true); + }) []; + unicode_width_0_1_4 = { features?(unicode_width_0_1_4_features {}) }: unicode_width_0_1_4_ { + features = mkFeatures (features.unicode_width_0_1_4 or {}); + }; + unicode_width_0_1_4_features = f: updateFeatures f (rec { + unicode_width_0_1_4.default = (f.unicode_width_0_1_4.default or true); + }) []; + unicode_xid_0_0_4 = { features?(unicode_xid_0_0_4_features {}) }: unicode_xid_0_0_4_ { + features = mkFeatures (features.unicode_xid_0_0_4 or {}); + }; + unicode_xid_0_0_4_features = f: updateFeatures f (rec { + unicode_xid_0_0_4.default = (f.unicode_xid_0_0_4.default or true); + }) []; + unicode_xid_0_1_0 = { features?(unicode_xid_0_1_0_features {}) }: unicode_xid_0_1_0_ { + features = mkFeatures (features.unicode_xid_0_1_0 or {}); + }; + unicode_xid_0_1_0_features = f: updateFeatures f (rec { + unicode_xid_0_1_0.default = (f.unicode_xid_0_1_0.default or true); + }) []; + unicode_categories_0_1_1 = { features?(unicode_categories_0_1_1_features {}) }: unicode_categories_0_1_1_ {}; + unicode_categories_0_1_1_features = f: updateFeatures f (rec { + unicode_categories_0_1_1.default = (f.unicode_categories_0_1_1.default or true); + }) []; + unidecode_0_3_0 = { features?(unidecode_0_3_0_features {}) }: unidecode_0_3_0_ {}; + unidecode_0_3_0_features = f: updateFeatures f (rec { + unidecode_0_3_0.default = (f.unidecode_0_3_0.default or true); + }) []; + unreachable_1_0_0 = { features?(unreachable_1_0_0_features {}) }: unreachable_1_0_0_ { + dependencies = mapFeatures features ([ void_1_0_2 ]); + }; + unreachable_1_0_0_features = f: updateFeatures f (rec { + unreachable_1_0_0.default = (f.unreachable_1_0_0.default or true); + void_1_0_2.default = (f.void_1_0_2.default or false); + }) [ void_1_0_2_features ]; + untrusted_0_5_1 = { features?(untrusted_0_5_1_features {}) }: untrusted_0_5_1_ {}; + untrusted_0_5_1_features = f: updateFeatures f (rec { + untrusted_0_5_1.default = (f.untrusted_0_5_1.default or true); + }) []; + url_1_7_0 = { features?(url_1_7_0_features {}) }: url_1_7_0_ { + dependencies = mapFeatures features ([ idna_0_1_4 matches_0_1_6 percent_encoding_1_0_1 ] + ++ (if features.url_1_7_0.encoding or false then [ encoding_0_2_33 ] else [])); + features = mkFeatures (features.url_1_7_0 or {}); + }; + url_1_7_0_features = f: updateFeatures f (rec { + encoding_0_2_33.default = true; + idna_0_1_4.default = true; + matches_0_1_6.default = true; + percent_encoding_1_0_1.default = true; + url_1_7_0.default = (f.url_1_7_0.default or true); + url_1_7_0.encoding = + (f.url_1_7_0.encoding or false) || + (f.url_1_7_0.query_encoding or false) || + (url_1_7_0.query_encoding or false); + url_1_7_0.heapsize = + (f.url_1_7_0.heapsize or false) || + (f.url_1_7_0.heap_size or false) || + (url_1_7_0.heap_size or false); + }) [ encoding_0_2_33_features idna_0_1_4_features matches_0_1_6_features percent_encoding_1_0_1_features ]; + url_serde_0_2_0 = { features?(url_serde_0_2_0_features {}) }: url_serde_0_2_0_ { + dependencies = mapFeatures features ([ serde_1_0_55 url_1_7_0 ]); + }; + url_serde_0_2_0_features = f: updateFeatures f (rec { + serde_1_0_55.default = true; + url_1_7_0.default = true; + url_serde_0_2_0.default = (f.url_serde_0_2_0.default or true); + }) [ serde_1_0_55_features url_1_7_0_features ]; + utf8_ranges_1_0_0 = { features?(utf8_ranges_1_0_0_features {}) }: utf8_ranges_1_0_0_ {}; + utf8_ranges_1_0_0_features = f: updateFeatures f (rec { + utf8_ranges_1_0_0.default = (f.utf8_ranges_1_0_0.default or true); + }) []; + uuid_0_5_1 = { features?(uuid_0_5_1_features {}) }: uuid_0_5_1_ { + dependencies = mapFeatures features ([ ] + ++ (if features.uuid_0_5_1.rand or false then [ rand_0_3_22 ] else [])); + features = mkFeatures (features.uuid_0_5_1 or {}); + }; + uuid_0_5_1_features = f: updateFeatures f (rec { + rand_0_3_22.default = true; + uuid_0_5_1."md5" = + (f.uuid_0_5_1."md5" or false) || + (f.uuid_0_5_1."v3" or false) || + (uuid_0_5_1."v3" or false); + uuid_0_5_1."sha1" = + (f.uuid_0_5_1."sha1" or false) || + (f.uuid_0_5_1."v5" or false) || + (uuid_0_5_1."v5" or false); + uuid_0_5_1.default = (f.uuid_0_5_1.default or true); + uuid_0_5_1.rand = + (f.uuid_0_5_1.rand or false) || + (f.uuid_0_5_1."v1" or false) || + (uuid_0_5_1."v1" or false) || + (f.uuid_0_5_1."v4" or false) || + (uuid_0_5_1."v4" or false); + }) [ rand_0_3_22_features ]; + uuid_0_6_3 = { features?(uuid_0_6_3_features {}) }: uuid_0_6_3_ { + dependencies = mapFeatures features ([ cfg_if_0_1_3 ] + ++ (if features.uuid_0_6_3.rand or false then [ rand_0_4_2 ] else [])); + features = mkFeatures (features.uuid_0_6_3 or {}); + }; + uuid_0_6_3_features = f: updateFeatures f (rec { + cfg_if_0_1_3.default = true; + rand_0_4_2.default = true; + uuid_0_6_3."md5" = + (f.uuid_0_6_3."md5" or false) || + (f.uuid_0_6_3."v3" or false) || + (uuid_0_6_3."v3" or false); + uuid_0_6_3."sha1" = + (f.uuid_0_6_3."sha1" or false) || + (f.uuid_0_6_3."v5" or false) || + (uuid_0_6_3."v5" or false); + uuid_0_6_3."v1" = + (f.uuid_0_6_3."v1" or false) || + (f.uuid_0_6_3.playground or false) || + (uuid_0_6_3.playground or false); + uuid_0_6_3."v3" = + (f.uuid_0_6_3."v3" or false) || + (f.uuid_0_6_3.playground or false) || + (uuid_0_6_3.playground or false); + uuid_0_6_3."v4" = + (f.uuid_0_6_3."v4" or false) || + (f.uuid_0_6_3.playground or false) || + (uuid_0_6_3.playground or false); + uuid_0_6_3."v5" = + (f.uuid_0_6_3."v5" or false) || + (f.uuid_0_6_3.playground or false) || + (uuid_0_6_3.playground or false); + uuid_0_6_3.default = (f.uuid_0_6_3.default or true); + uuid_0_6_3.rand = + (f.uuid_0_6_3.rand or false) || + (f.uuid_0_6_3."v3" or false) || + (uuid_0_6_3."v3" or false) || + (f.uuid_0_6_3."v4" or false) || + (uuid_0_6_3."v4" or false) || + (f.uuid_0_6_3."v5" or false) || + (uuid_0_6_3."v5" or false); + uuid_0_6_3.serde = + (f.uuid_0_6_3.serde or false) || + (f.uuid_0_6_3.playground or false) || + (uuid_0_6_3.playground or false); + uuid_0_6_3.std = + (f.uuid_0_6_3.std or false) || + (f.uuid_0_6_3.default or false) || + (uuid_0_6_3.default or false) || + (f.uuid_0_6_3.use_std or false) || + (uuid_0_6_3.use_std or false); + }) [ cfg_if_0_1_3_features rand_0_4_2_features ]; + vcpkg_0_2_3 = { features?(vcpkg_0_2_3_features {}) }: vcpkg_0_2_3_ {}; + vcpkg_0_2_3_features = f: updateFeatures f (rec { + vcpkg_0_2_3.default = (f.vcpkg_0_2_3.default or true); + }) []; + vec_map_0_8_1 = { features?(vec_map_0_8_1_features {}) }: vec_map_0_8_1_ { + dependencies = mapFeatures features ([]); + features = mkFeatures (features.vec_map_0_8_1 or {}); + }; + vec_map_0_8_1_features = f: updateFeatures f (rec { + vec_map_0_8_1.default = (f.vec_map_0_8_1.default or true); + vec_map_0_8_1.serde = + (f.vec_map_0_8_1.serde or false) || + (f.vec_map_0_8_1.eders or false) || + (vec_map_0_8_1.eders or false); + }) []; + version_check_0_1_3 = { features?(version_check_0_1_3_features {}) }: version_check_0_1_3_ {}; + version_check_0_1_3_features = f: updateFeatures f (rec { + version_check_0_1_3.default = (f.version_check_0_1_3.default or true); + }) []; + void_1_0_2 = { features?(void_1_0_2_features {}) }: void_1_0_2_ { + features = mkFeatures (features.void_1_0_2 or {}); + }; + void_1_0_2_features = f: updateFeatures f (rec { + void_1_0_2.default = (f.void_1_0_2.default or true); + void_1_0_2.std = + (f.void_1_0_2.std or false) || + (f.void_1_0_2.default or false) || + (void_1_0_2.default or false); + }) []; + walkdir_2_1_4 = { features?(walkdir_2_1_4_features {}) }: walkdir_2_1_4_ { + dependencies = mapFeatures features ([ same_file_1_0_2 ]) + ++ (if kernel == "windows" then mapFeatures features ([ winapi_0_3_4 ]) else []); + }; + walkdir_2_1_4_features = f: updateFeatures f (rec { + same_file_1_0_2.default = true; + walkdir_2_1_4.default = (f.walkdir_2_1_4.default or true); + winapi_0_3_4.default = true; + winapi_0_3_4.std = true; + winapi_0_3_4.winnt = true; + }) [ same_file_1_0_2_features winapi_0_3_4_features ]; + want_0_0_4 = { features?(want_0_0_4_features {}) }: want_0_0_4_ { + dependencies = mapFeatures features ([ futures_0_1_21 log_0_4_1 try_lock_0_1_0 ]); + }; + want_0_0_4_features = f: updateFeatures f (rec { + futures_0_1_21.default = true; + log_0_4_1.default = true; + try_lock_0_1_0.default = true; + want_0_0_4.default = (f.want_0_0_4.default or true); + }) [ futures_0_1_21_features log_0_4_1_features try_lock_0_1_0_features ]; + widestring_0_2_2 = { features?(widestring_0_2_2_features {}) }: widestring_0_2_2_ {}; + widestring_0_2_2_features = f: updateFeatures f (rec { + widestring_0_2_2.default = (f.widestring_0_2_2.default or true); + }) []; + winapi_0_2_8 = { features?(winapi_0_2_8_features {}) }: winapi_0_2_8_ {}; + winapi_0_2_8_features = f: updateFeatures f (rec { + winapi_0_2_8.default = (f.winapi_0_2_8.default or true); + }) []; + winapi_0_3_4 = { features?(winapi_0_3_4_features {}) }: winapi_0_3_4_ { + dependencies = (if kernel == "i686-pc-windows-gnu" then mapFeatures features ([ winapi_i686_pc_windows_gnu_0_4_0 ]) else []) + ++ (if kernel == "x86_64-pc-windows-gnu" then mapFeatures features ([ winapi_x86_64_pc_windows_gnu_0_4_0 ]) else []); + features = mkFeatures (features.winapi_0_3_4 or {}); + }; + winapi_0_3_4_features = f: updateFeatures f (rec { + winapi_0_3_4.default = (f.winapi_0_3_4.default or true); + winapi_i686_pc_windows_gnu_0_4_0.default = true; + winapi_x86_64_pc_windows_gnu_0_4_0.default = true; + }) [ winapi_i686_pc_windows_gnu_0_4_0_features winapi_x86_64_pc_windows_gnu_0_4_0_features ]; + winapi_build_0_1_1 = { features?(winapi_build_0_1_1_features {}) }: winapi_build_0_1_1_ {}; + winapi_build_0_1_1_features = f: updateFeatures f (rec { + winapi_build_0_1_1.default = (f.winapi_build_0_1_1.default or true); + }) []; + winapi_i686_pc_windows_gnu_0_4_0 = { features?(winapi_i686_pc_windows_gnu_0_4_0_features {}) }: winapi_i686_pc_windows_gnu_0_4_0_ {}; + winapi_i686_pc_windows_gnu_0_4_0_features = f: updateFeatures f (rec { + winapi_i686_pc_windows_gnu_0_4_0.default = (f.winapi_i686_pc_windows_gnu_0_4_0.default or true); + }) []; + winapi_x86_64_pc_windows_gnu_0_4_0 = { features?(winapi_x86_64_pc_windows_gnu_0_4_0_features {}) }: winapi_x86_64_pc_windows_gnu_0_4_0_ {}; + winapi_x86_64_pc_windows_gnu_0_4_0_features = f: updateFeatures f (rec { + winapi_x86_64_pc_windows_gnu_0_4_0.default = (f.winapi_x86_64_pc_windows_gnu_0_4_0.default or true); + }) []; + wincolor_0_1_6 = { features?(wincolor_0_1_6_features {}) }: wincolor_0_1_6_ { + dependencies = mapFeatures features ([ winapi_0_3_4 ]); + }; + wincolor_0_1_6_features = f: updateFeatures f (rec { + winapi_0_3_4.consoleapi = true; + winapi_0_3_4.default = true; + winapi_0_3_4.minwindef = true; + winapi_0_3_4.processenv = true; + winapi_0_3_4.winbase = true; + winapi_0_3_4.wincon = true; + wincolor_0_1_6.default = (f.wincolor_0_1_6.default or true); + }) [ winapi_0_3_4_features ]; + winreg_0_5_0 = { features?(winreg_0_5_0_features {}) }: winreg_0_5_0_ { + dependencies = mapFeatures features ([ winapi_0_3_4 ]); + features = mkFeatures (features.winreg_0_5_0 or {}); + }; + winreg_0_5_0_features = f: updateFeatures f (rec { + winapi_0_3_4."ktmw32" = + (f.winapi_0_3_4."ktmw32" or false) || + (winreg_0_5_0.transactions or false) || + (f.winreg_0_5_0.transactions or false); + winapi_0_3_4.default = true; + winapi_0_3_4.handleapi = true; + winapi_0_3_4.minwindef = true; + winapi_0_3_4.winerror = true; + winapi_0_3_4.winnt = true; + winapi_0_3_4.winreg = true; + winreg_0_5_0.default = (f.winreg_0_5_0.default or true); + winreg_0_5_0.serde = + (f.winreg_0_5_0.serde or false) || + (f.winreg_0_5_0."serialization-serde" or false) || + (winreg_0_5_0."serialization-serde" or false); + winreg_0_5_0.transactions = + (f.winreg_0_5_0.transactions or false) || + (f.winreg_0_5_0."serialization-serde" or false) || + (winreg_0_5_0."serialization-serde" or false); + }) [ winapi_0_3_4_features ]; + winutil_0_1_1 = { features?(winutil_0_1_1_features {}) }: winutil_0_1_1_ { + dependencies = (if kernel == "windows" then mapFeatures features ([ winapi_0_3_4 ]) else []); + }; + winutil_0_1_1_features = f: updateFeatures f (rec { + winapi_0_3_4."wow64apiset" = true; + winapi_0_3_4.default = true; + winapi_0_3_4.processthreadsapi = true; + winapi_0_3_4.winbase = true; + winutil_0_1_1.default = (f.winutil_0_1_1.default or true); + }) [ winapi_0_3_4_features ]; + ws2_32_sys_0_2_1 = { features?(ws2_32_sys_0_2_1_features {}) }: ws2_32_sys_0_2_1_ { + dependencies = mapFeatures features ([ winapi_0_2_8 ]); + buildDependencies = mapFeatures features ([ winapi_build_0_1_1 ]); + }; + ws2_32_sys_0_2_1_features = f: updateFeatures f (rec { + winapi_0_2_8.default = true; + winapi_build_0_1_1.default = true; + ws2_32_sys_0_2_1.default = (f.ws2_32_sys_0_2_1.default or true); + }) [ winapi_0_2_8_features winapi_build_0_1_1_features ]; +} From ab3f7d888ad9de74d6161ae56deeb4cc396a89b5 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Fri, 18 May 2018 22:28:55 +0200 Subject: [PATCH 135/163] chore(cargo): Bump actix-web to >0.6 --- Cargo.lock | 9 +++++---- Cargo.toml | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 5259e980e..f03b571a7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -22,7 +22,7 @@ dependencies = [ [[package]] name = "actix-web" -version = "0.5.8" +version = "0.6.7" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "actix 0.5.7 (registry+https://github.com/rust-lang/crates.io-index)", @@ -52,11 +52,12 @@ dependencies = [ "num_cpus 1.8.0 (registry+https://github.com/rust-lang/crates.io-index)", "percent-encoding 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", "rand 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", - "regex 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", + "regex 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", "serde 1.0.55 (registry+https://github.com/rust-lang/crates.io-index)", "serde_json 1.0.17 (registry+https://github.com/rust-lang/crates.io-index)", "serde_urlencoded 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)", "sha1 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)", + "slab 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", "smallvec 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)", "time 0.1.40 (registry+https://github.com/rust-lang/crates.io-index)", "tokio-core 0.1.17 (registry+https://github.com/rust-lang/crates.io-index)", @@ -293,7 +294,7 @@ name = "converse" version = "0.1.0" dependencies = [ "actix 0.5.7 (registry+https://github.com/rust-lang/crates.io-index)", - "actix-web 0.5.8 (registry+https://github.com/rust-lang/crates.io-index)", + "actix-web 0.6.7 (registry+https://github.com/rust-lang/crates.io-index)", "chrono 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", "comrak 0.2.12 (registry+https://github.com/rust-lang/crates.io-index)", "diesel 1.2.2 (registry+https://github.com/rust-lang/crates.io-index)", @@ -2126,7 +2127,7 @@ dependencies = [ [metadata] "checksum actix 0.5.7 (registry+https://github.com/rust-lang/crates.io-index)" = "7f01f05bfb6e77d47a04752efdac401e0e20b49130ac673cde367cda8eb7c92c" -"checksum actix-web 0.5.8 (registry+https://github.com/rust-lang/crates.io-index)" = "a38d2eba3736d9d58cd3115aae25386cfac43b2482376c14581e0cb30a0d20c1" +"checksum actix-web 0.6.7 (registry+https://github.com/rust-lang/crates.io-index)" = "ed40e344fc684ad0aeae72effef4f0d1a900daeacf59681a686518550103409b" "checksum actix_derive 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "c4b1dc922654b9aca7a8a31eab875fde804fa9fbd67f220f2e457787b23590f2" "checksum adler32 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = "6cbd0b9af8587c72beadc9f72d35b9fbb070982c9e6203e46e93f10df25f8f45" "checksum aho-corasick 0.6.4 (registry+https://github.com/rust-lang/crates.io-index)" = "d6531d44de723825aa81398a6415283229725a00fa30713812ab9323faa82fc4" diff --git a/Cargo.toml b/Cargo.toml index 22714c824..cf29e52d3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,7 +6,7 @@ license = "AGPL-3.0-or-later" [dependencies] actix = "0.5" -actix-web = "0.5" +actix-web = "0.6" env_logger = "0.5" diesel = { version = "1.2", features = ["postgres", "chrono", "r2d2"]} chrono = { version = "0.4", features = ["serde"] } From cda66c4cd3bf2f6f7a466a9e2246c95a5305bfa9 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Fri, 18 May 2018 23:28:59 +0200 Subject: [PATCH 136/163] feat(templates): Add syntax highlighting for code via highlight.js Includes a static distribution of highlight.js for syntax highlighting. A sane set of languages has been chosen. --- src/main.rs | 11 +++++ static/highlight.css | 99 +++++++++++++++++++++++++++++++++++++++++++ static/highlight.js | 2 + templates/thread.html | 3 ++ 4 files changed, 115 insertions(+) create mode 100644 static/highlight.css create mode 100644 static/highlight.js diff --git a/src/main.rs b/src/main.rs index 11dcf8481..ce605af90 100644 --- a/src/main.rs +++ b/src/main.rs @@ -78,6 +78,7 @@ use oidc::OidcExecutor; use rand::{OsRng, Rng}; use render::Renderer; use std::env; +use std::path::PathBuf; use tera::Tera; fn config(name: &str) -> String { @@ -173,6 +174,15 @@ fn start_http_server(base_url: String, let bind_host = config_default("CONVERSE_BIND_HOST", "127.0.0.1:4567"); let key = gen_session_key(); let require_login = config_default("REQUIRE_LOGIN", "true".into()) == "true"; + let static_dir = env::var("CONVERSE_STATIC_DIR") + .map(PathBuf::from) + .or_else(|_| env::current_dir().map(|mut p| { + p.push("static"); + p + })) + .expect("Could not determine static file directory"); + + info!("Serving static files from {:?}", static_dir); server::new(move || { let state = AppState { @@ -191,6 +201,7 @@ fn start_http_server(base_url: String, let app = App::with_state(state) .middleware(Logger::default()) .middleware(identity) + .handler("/static", fs::StaticFiles::new(static_dir.clone())) .resource("/", |r| r.method(Method::GET).with(forum_index)) .resource("/thread/new", |r| r.method(Method::GET).with(new_thread)) .resource("/thread/submit", |r| r.method(Method::POST).with3(submit_thread)) diff --git a/static/highlight.css b/static/highlight.css new file mode 100644 index 000000000..791932b87 --- /dev/null +++ b/static/highlight.css @@ -0,0 +1,99 @@ +/* + +github.com style (c) Vasily Polovnyov + +*/ + +.hljs { + display: block; + overflow-x: auto; + padding: 0.5em; + color: #333; + background: #f8f8f8; +} + +.hljs-comment, +.hljs-quote { + color: #998; + font-style: italic; +} + +.hljs-keyword, +.hljs-selector-tag, +.hljs-subst { + color: #333; + font-weight: bold; +} + +.hljs-number, +.hljs-literal, +.hljs-variable, +.hljs-template-variable, +.hljs-tag .hljs-attr { + color: #008080; +} + +.hljs-string, +.hljs-doctag { + color: #d14; +} + +.hljs-title, +.hljs-section, +.hljs-selector-id { + color: #900; + font-weight: bold; +} + +.hljs-subst { + font-weight: normal; +} + +.hljs-type, +.hljs-class .hljs-title { + color: #458; + font-weight: bold; +} + +.hljs-tag, +.hljs-name, +.hljs-attribute { + color: #000080; + font-weight: normal; +} + +.hljs-regexp, +.hljs-link { + color: #009926; +} + +.hljs-symbol, +.hljs-bullet { + color: #990073; +} + +.hljs-built_in, +.hljs-builtin-name { + color: #0086b3; +} + +.hljs-meta { + color: #999; + font-weight: bold; +} + +.hljs-deletion { + background: #fdd; +} + +.hljs-addition { + background: #dfd; +} + +.hljs-emphasis { + font-style: italic; +} + +.hljs-strong { + font-weight: bold; +} diff --git a/static/highlight.js b/static/highlight.js new file mode 100644 index 000000000..9ca7d97ba --- /dev/null +++ b/static/highlight.js @@ -0,0 +1,2 @@ +/*! highlight.js v9.12.0 | BSD3 License | git.io/hljslicense */ +!function(e){var n="object"==typeof window&&window||"object"==typeof self&&self;"undefined"!=typeof exports?e(exports):n&&(n.hljs=e({}),"function"==typeof define&&define.amd&&define([],function(){return n.hljs}))}(function(e){function n(e){return e.replace(/&/g,"&").replace(//g,">")}function t(e){return e.nodeName.toLowerCase()}function r(e,n){var t=e&&e.exec(n);return t&&0===t.index}function a(e){return k.test(e)}function i(e){var n,t,r,i,o=e.className+" ";if(o+=e.parentNode?e.parentNode.className:"",t=B.exec(o))return w(t[1])?t[1]:"no-highlight";for(o=o.split(/\s+/),n=0,r=o.length;r>n;n++)if(i=o[n],a(i)||w(i))return i}function o(e){var n,t={},r=Array.prototype.slice.call(arguments,1);for(n in e)t[n]=e[n];return r.forEach(function(e){for(n in e)t[n]=e[n]}),t}function u(e){var n=[];return function r(e,a){for(var i=e.firstChild;i;i=i.nextSibling)3===i.nodeType?a+=i.nodeValue.length:1===i.nodeType&&(n.push({event:"start",offset:a,node:i}),a=r(i,a),t(i).match(/br|hr|img|input/)||n.push({event:"stop",offset:a,node:i}));return a}(e,0),n}function c(e,r,a){function i(){return e.length&&r.length?e[0].offset!==r[0].offset?e[0].offset"}function u(e){s+=""}function c(e){("start"===e.event?o:u)(e.node)}for(var l=0,s="",f=[];e.length||r.length;){var g=i();if(s+=n(a.substring(l,g[0].offset)),l=g[0].offset,g===e){f.reverse().forEach(u);do c(g.splice(0,1)[0]),g=i();while(g===e&&g.length&&g[0].offset===l);f.reverse().forEach(o)}else"start"===g[0].event?f.push(g[0].node):f.pop(),c(g.splice(0,1)[0])}return s+n(a.substr(l))}function l(e){return e.v&&!e.cached_variants&&(e.cached_variants=e.v.map(function(n){return o(e,{v:null},n)})),e.cached_variants||e.eW&&[o(e)]||[e]}function s(e){function n(e){return e&&e.source||e}function t(t,r){return new RegExp(n(t),"m"+(e.cI?"i":"")+(r?"g":""))}function r(a,i){if(!a.compiled){if(a.compiled=!0,a.k=a.k||a.bK,a.k){var o={},u=function(n,t){e.cI&&(t=t.toLowerCase()),t.split(" ").forEach(function(e){var t=e.split("|");o[t[0]]=[n,t[1]?Number(t[1]):1]})};"string"==typeof a.k?u("keyword",a.k):x(a.k).forEach(function(e){u(e,a.k[e])}),a.k=o}a.lR=t(a.l||/\w+/,!0),i&&(a.bK&&(a.b="\\b("+a.bK.split(" ").join("|")+")\\b"),a.b||(a.b=/\B|\b/),a.bR=t(a.b),a.e||a.eW||(a.e=/\B|\b/),a.e&&(a.eR=t(a.e)),a.tE=n(a.e)||"",a.eW&&i.tE&&(a.tE+=(a.e?"|":"")+i.tE)),a.i&&(a.iR=t(a.i)),null==a.r&&(a.r=1),a.c||(a.c=[]),a.c=Array.prototype.concat.apply([],a.c.map(function(e){return l("self"===e?a:e)})),a.c.forEach(function(e){r(e,a)}),a.starts&&r(a.starts,i);var c=a.c.map(function(e){return e.bK?"\\.?("+e.b+")\\.?":e.b}).concat([a.tE,a.i]).map(n).filter(Boolean);a.t=c.length?t(c.join("|"),!0):{exec:function(){return null}}}}r(e)}function f(e,t,a,i){function o(e,n){var t,a;for(t=0,a=n.c.length;a>t;t++)if(r(n.c[t].bR,e))return n.c[t]}function u(e,n){if(r(e.eR,n)){for(;e.endsParent&&e.parent;)e=e.parent;return e}return e.eW?u(e.parent,n):void 0}function c(e,n){return!a&&r(n.iR,e)}function l(e,n){var t=N.cI?n[0].toLowerCase():n[0];return e.k.hasOwnProperty(t)&&e.k[t]}function p(e,n,t,r){var a=r?"":I.classPrefix,i='',i+n+o}function h(){var e,t,r,a;if(!E.k)return n(k);for(a="",t=0,E.lR.lastIndex=0,r=E.lR.exec(k);r;)a+=n(k.substring(t,r.index)),e=l(E,r),e?(B+=e[1],a+=p(e[0],n(r[0]))):a+=n(r[0]),t=E.lR.lastIndex,r=E.lR.exec(k);return a+n(k.substr(t))}function d(){var e="string"==typeof E.sL;if(e&&!y[E.sL])return n(k);var t=e?f(E.sL,k,!0,x[E.sL]):g(k,E.sL.length?E.sL:void 0);return E.r>0&&(B+=t.r),e&&(x[E.sL]=t.top),p(t.language,t.value,!1,!0)}function b(){L+=null!=E.sL?d():h(),k=""}function v(e){L+=e.cN?p(e.cN,"",!0):"",E=Object.create(e,{parent:{value:E}})}function m(e,n){if(k+=e,null==n)return b(),0;var t=o(n,E);if(t)return t.skip?k+=n:(t.eB&&(k+=n),b(),t.rB||t.eB||(k=n)),v(t,n),t.rB?0:n.length;var r=u(E,n);if(r){var a=E;a.skip?k+=n:(a.rE||a.eE||(k+=n),b(),a.eE&&(k=n));do E.cN&&(L+=C),E.skip||(B+=E.r),E=E.parent;while(E!==r.parent);return r.starts&&v(r.starts,""),a.rE?0:n.length}if(c(n,E))throw new Error('Illegal lexeme "'+n+'" for mode "'+(E.cN||"")+'"');return k+=n,n.length||1}var N=w(e);if(!N)throw new Error('Unknown language: "'+e+'"');s(N);var R,E=i||N,x={},L="";for(R=E;R!==N;R=R.parent)R.cN&&(L=p(R.cN,"",!0)+L);var k="",B=0;try{for(var M,j,O=0;;){if(E.t.lastIndex=O,M=E.t.exec(t),!M)break;j=m(t.substring(O,M.index),M[0]),O=M.index+j}for(m(t.substr(O)),R=E;R.parent;R=R.parent)R.cN&&(L+=C);return{r:B,value:L,language:e,top:E}}catch(T){if(T.message&&-1!==T.message.indexOf("Illegal"))return{r:0,value:n(t)};throw T}}function g(e,t){t=t||I.languages||x(y);var r={r:0,value:n(e)},a=r;return t.filter(w).forEach(function(n){var t=f(n,e,!1);t.language=n,t.r>a.r&&(a=t),t.r>r.r&&(a=r,r=t)}),a.language&&(r.second_best=a),r}function p(e){return I.tabReplace||I.useBR?e.replace(M,function(e,n){return I.useBR&&"\n"===e?"
    ":I.tabReplace?n.replace(/\t/g,I.tabReplace):""}):e}function h(e,n,t){var r=n?L[n]:t,a=[e.trim()];return e.match(/\bhljs\b/)||a.push("hljs"),-1===e.indexOf(r)&&a.push(r),a.join(" ").trim()}function d(e){var n,t,r,o,l,s=i(e);a(s)||(I.useBR?(n=document.createElementNS("http://www.w3.org/1999/xhtml","div"),n.innerHTML=e.innerHTML.replace(/\n/g,"").replace(//g,"\n")):n=e,l=n.textContent,r=s?f(s,l,!0):g(l),t=u(n),t.length&&(o=document.createElementNS("http://www.w3.org/1999/xhtml","div"),o.innerHTML=r.value,r.value=c(t,u(o),l)),r.value=p(r.value),e.innerHTML=r.value,e.className=h(e.className,s,r.language),e.result={language:r.language,re:r.r},r.second_best&&(e.second_best={language:r.second_best.language,re:r.second_best.r}))}function b(e){I=o(I,e)}function v(){if(!v.called){v.called=!0;var e=document.querySelectorAll("pre code");E.forEach.call(e,d)}}function m(){addEventListener("DOMContentLoaded",v,!1),addEventListener("load",v,!1)}function N(n,t){var r=y[n]=t(e);r.aliases&&r.aliases.forEach(function(e){L[e]=n})}function R(){return x(y)}function w(e){return e=(e||"").toLowerCase(),y[e]||y[L[e]]}var E=[],x=Object.keys,y={},L={},k=/^(no-?highlight|plain|text)$/i,B=/\blang(?:uage)?-([\w-]+)\b/i,M=/((^(<[^>]+>|\t|)+|(?:\n)))/gm,C="
    ",I={classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:void 0};return e.highlight=f,e.highlightAuto=g,e.fixMarkup=p,e.highlightBlock=d,e.configure=b,e.initHighlighting=v,e.initHighlightingOnLoad=m,e.registerLanguage=N,e.listLanguages=R,e.getLanguage=w,e.inherit=o,e.IR="[a-zA-Z]\\w*",e.UIR="[a-zA-Z_]\\w*",e.NR="\\b\\d+(\\.\\d+)?",e.CNR="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",e.BNR="\\b(0b[01]+)",e.RSR="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",e.BE={b:"\\\\[\\s\\S]",r:0},e.ASM={cN:"string",b:"'",e:"'",i:"\\n",c:[e.BE]},e.QSM={cN:"string",b:'"',e:'"',i:"\\n",c:[e.BE]},e.PWM={b:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},e.C=function(n,t,r){var a=e.inherit({cN:"comment",b:n,e:t,c:[]},r||{});return a.c.push(e.PWM),a.c.push({cN:"doctag",b:"(?:TODO|FIXME|NOTE|BUG|XXX):",r:0}),a},e.CLCM=e.C("//","$"),e.CBCM=e.C("/\\*","\\*/"),e.HCM=e.C("#","$"),e.NM={cN:"number",b:e.NR,r:0},e.CNM={cN:"number",b:e.CNR,r:0},e.BNM={cN:"number",b:e.BNR,r:0},e.CSSNM={cN:"number",b:e.NR+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",r:0},e.RM={cN:"regexp",b:/\//,e:/\/[gimuy]*/,i:/\n/,c:[e.BE,{b:/\[/,e:/\]/,r:0,c:[e.BE]}]},e.TM={cN:"title",b:e.IR,r:0},e.UTM={cN:"title",b:e.UIR,r:0},e.METHOD_GUARD={b:"\\.\\s*"+e.UIR,r:0},e});hljs.registerLanguage("erlang",function(e){var r="[a-z'][a-zA-Z0-9_']*",c="("+r+":"+r+"|"+r+")",b={keyword:"after and andalso|10 band begin bnot bor bsl bzr bxor case catch cond div end fun if let not of orelse|10 query receive rem try when xor",literal:"false true"},i=e.C("%","$"),n={cN:"number",b:"\\b(\\d+#[a-fA-F0-9]+|\\d+(\\.\\d+)?([eE][-+]?\\d+)?)",r:0},a={b:"fun\\s+"+r+"/\\d+"},d={b:c+"\\(",e:"\\)",rB:!0,r:0,c:[{b:c,r:0},{b:"\\(",e:"\\)",eW:!0,rE:!0,r:0}]},o={b:"{",e:"}",r:0},t={b:"\\b_([A-Z][A-Za-z0-9_]*)?",r:0},f={b:"[A-Z][a-zA-Z0-9_]*",r:0},l={b:"#"+e.UIR,r:0,rB:!0,c:[{b:"#"+e.UIR,r:0},{b:"{",e:"}",r:0}]},s={bK:"fun receive if try case",e:"end",k:b};s.c=[i,a,e.inherit(e.ASM,{cN:""}),s,d,e.QSM,n,o,t,f,l];var u=[i,a,s,d,e.QSM,n,o,t,f,l];d.c[1].c=u,o.c=u,l.c[1].c=u;var h={cN:"params",b:"\\(",e:"\\)",c:u};return{aliases:["erl"],k:b,i:"(",rB:!0,i:"\\(|#|//|/\\*|\\\\|:|;",c:[h,e.inherit(e.TM,{b:r})],starts:{e:";|\\.",k:b,c:u}},i,{b:"^-",e:"\\.",r:0,eE:!0,rB:!0,l:"-"+e.IR,k:"-module -record -undef -export -ifdef -ifndef -author -copyright -doc -vsn -import -include -include_lib -compile -define -else -endif -file -behaviour -behavior -spec",c:[h]},n,e.QSM,l,t,f,o,{b:/\.$/}]}});hljs.registerLanguage("cs",function(e){var i={keyword:"abstract as base bool break byte case catch char checked const continue decimal default delegate do double enum event explicit extern finally fixed float for foreach goto if implicit in int interface internal is lock long nameof object operator out override params private protected public readonly ref sbyte sealed short sizeof stackalloc static string struct switch this try typeof uint ulong unchecked unsafe ushort using virtual void volatile while add alias ascending async await by descending dynamic equals from get global group into join let on orderby partial remove select set value var where yield",literal:"null false true"},t={cN:"string",b:'@"',e:'"',c:[{b:'""'}]},r=e.inherit(t,{i:/\n/}),a={cN:"subst",b:"{",e:"}",k:i},c=e.inherit(a,{i:/\n/}),n={cN:"string",b:/\$"/,e:'"',i:/\n/,c:[{b:"{{"},{b:"}}"},e.BE,c]},s={cN:"string",b:/\$@"/,e:'"',c:[{b:"{{"},{b:"}}"},{b:'""'},a]},o=e.inherit(s,{i:/\n/,c:[{b:"{{"},{b:"}}"},{b:'""'},c]});a.c=[s,n,t,e.ASM,e.QSM,e.CNM,e.CBCM],c.c=[o,n,r,e.ASM,e.QSM,e.CNM,e.inherit(e.CBCM,{i:/\n/})];var l={v:[s,n,t,e.ASM,e.QSM]},b=e.IR+"(<"+e.IR+"(\\s*,\\s*"+e.IR+")*>)?(\\[\\])?";return{aliases:["csharp"],k:i,i:/::/,c:[e.C("///","$",{rB:!0,c:[{cN:"doctag",v:[{b:"///",r:0},{b:""},{b:""}]}]}),e.CLCM,e.CBCM,{cN:"meta",b:"#",e:"$",k:{"meta-keyword":"if else elif endif define undef warning error line region endregion pragma checksum"}},l,e.CNM,{bK:"class interface",e:/[{;=]/,i:/[^\s:]/,c:[e.TM,e.CLCM,e.CBCM]},{bK:"namespace",e:/[{;=]/,i:/[^\s:]/,c:[e.inherit(e.TM,{b:"[a-zA-Z](\\.?\\w)*"}),e.CLCM,e.CBCM]},{cN:"meta",b:"^\\s*\\[",eB:!0,e:"\\]",eE:!0,c:[{cN:"meta-string",b:/"/,e:/"/}]},{bK:"new return throw await else",r:0},{cN:"function",b:"("+b+"\\s+)+"+e.IR+"\\s*\\(",rB:!0,e:/[{;=]/,eE:!0,k:i,c:[{b:e.IR+"\\s*\\(",rB:!0,c:[e.TM],r:0},{cN:"params",b:/\(/,e:/\)/,eB:!0,eE:!0,k:i,r:0,c:[l,e.CNM,e.CBCM]},e.CLCM,e.CBCM]}]}});hljs.registerLanguage("json",function(e){var i={literal:"true false null"},n=[e.QSM,e.CNM],r={e:",",eW:!0,eE:!0,c:n,k:i},t={b:"{",e:"}",c:[{cN:"attr",b:/"/,e:/"/,c:[e.BE],i:"\\n"},e.inherit(r,{b:/:/})],i:"\\S"},c={b:"\\[",e:"\\]",c:[e.inherit(r)],i:"\\S"};return n.splice(n.length,0,t,c),{c:n,k:i,i:"\\S"}});hljs.registerLanguage("swift",function(e){var i={keyword:"__COLUMN__ __FILE__ __FUNCTION__ __LINE__ as as! as? associativity break case catch class continue convenience default defer deinit didSet do dynamic dynamicType else enum extension fallthrough false fileprivate final for func get guard if import in indirect infix init inout internal is lazy left let mutating nil none nonmutating open operator optional override postfix precedence prefix private protocol Protocol public repeat required rethrows return right self Self set static struct subscript super switch throw throws true try try! try? Type typealias unowned var weak where while willSet",literal:"true false nil",built_in:"abs advance alignof alignofValue anyGenerator assert assertionFailure bridgeFromObjectiveC bridgeFromObjectiveCUnconditional bridgeToObjectiveC bridgeToObjectiveCUnconditional c contains count countElements countLeadingZeros debugPrint debugPrintln distance dropFirst dropLast dump encodeBitsAsWords enumerate equal fatalError filter find getBridgedObjectiveCType getVaList indices insertionSort isBridgedToObjectiveC isBridgedVerbatimToObjectiveC isUniquelyReferenced isUniquelyReferencedNonObjC join lazy lexicographicalCompare map max maxElement min minElement numericCast overlaps partition posix precondition preconditionFailure print println quickSort readLine reduce reflect reinterpretCast reverse roundUpToAlignment sizeof sizeofValue sort split startsWith stride strideof strideofValue swap toString transcode underestimateCount unsafeAddressOf unsafeBitCast unsafeDowncast unsafeUnwrap unsafeReflect withExtendedLifetime withObjectAtPlusZero withUnsafePointer withUnsafePointerToObject withUnsafeMutablePointer withUnsafeMutablePointers withUnsafePointer withUnsafePointers withVaList zip"},t={cN:"type",b:"\\b[A-Z][\\wÀ-ʸ']*",r:0},n=e.C("/\\*","\\*/",{c:["self"]}),r={cN:"subst",b:/\\\(/,e:"\\)",k:i,c:[]},a={cN:"number",b:"\\b([\\d_]+(\\.[\\deE_]+)?|0x[a-fA-F0-9_]+(\\.[a-fA-F0-9p_]+)?|0b[01_]+|0o[0-7_]+)\\b",r:0},o=e.inherit(e.QSM,{c:[r,e.BE]});return r.c=[a],{k:i,c:[o,e.CLCM,n,t,a,{cN:"function",bK:"func",e:"{",eE:!0,c:[e.inherit(e.TM,{b:/[A-Za-z$_][0-9A-Za-z$_]*/}),{b://},{cN:"params",b:/\(/,e:/\)/,endsParent:!0,k:i,c:["self",a,o,e.CBCM,{b:":"}],i:/["']/}],i:/\[|%/},{cN:"class",bK:"struct protocol class extension enum",k:i,e:"\\{",eE:!0,c:[e.inherit(e.TM,{b:/[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/})]},{cN:"meta",b:"(@warn_unused_result|@exported|@lazy|@noescape|@NSCopying|@NSManaged|@objc|@convention|@required|@noreturn|@IBAction|@IBDesignable|@IBInspectable|@IBOutlet|@infix|@prefix|@postfix|@autoclosure|@testable|@available|@nonobjc|@NSApplicationMain|@UIApplicationMain)"},{bK:"import",e:/$/,c:[e.CLCM,n]}]}});hljs.registerLanguage("elixir",function(e){var r="[a-zA-Z_][a-zA-Z0-9_]*(\\!|\\?)?",n="[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",b="and false then defined module in return redo retry end for true self when next until do begin unless nil break not case cond alias while ensure or include use alias fn quote",c={cN:"subst",b:"#\\{",e:"}",l:r,k:b},a={cN:"string",c:[e.BE,c],v:[{b:/'/,e:/'/},{b:/"/,e:/"/}]},i={cN:"function",bK:"def defp defmacro",e:/\B\b/,c:[e.inherit(e.TM,{b:r,endsParent:!0})]},l=e.inherit(i,{cN:"class",bK:"defimpl defmodule defprotocol defrecord",e:/\bdo\b|$|;/}),s=[a,e.HCM,l,i,{cN:"symbol",b:":(?!\\s)",c:[a,{b:n}],r:0},{cN:"symbol",b:r+":",r:0},{cN:"number",b:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",r:0},{cN:"variable",b:"(\\$\\W)|((\\$|\\@\\@?)(\\w+))"},{b:"->"},{b:"("+e.RSR+")\\s*",c:[e.HCM,{cN:"regexp",i:"\\n",c:[e.BE,c],v:[{b:"/",e:"/[a-z]*"},{b:"%r\\[",e:"\\][a-z]*"}]}],r:0}];return c.c=s,{l:r,k:b,c:s}});hljs.registerLanguage("bash",function(e){var t={cN:"variable",v:[{b:/\$[\w\d#@][\w\d_]*/},{b:/\$\{(.*?)}/}]},s={cN:"string",b:/"/,e:/"/,c:[e.BE,t,{cN:"variable",b:/\$\(/,e:/\)/,c:[e.BE]}]},a={cN:"string",b:/'/,e:/'/};return{aliases:["sh","zsh"],l:/\b-?[a-z\._]+\b/,k:{keyword:"if then else elif fi for while in do done case esac function",literal:"true false",built_in:"break cd continue eval exec exit export getopts hash pwd readonly return shift test times trap umask unset alias bind builtin caller command declare echo enable help let local logout mapfile printf read readarray source type typeset ulimit unalias set shopt autoload bg bindkey bye cap chdir clone comparguments compcall compctl compdescribe compfiles compgroups compquote comptags comptry compvalues dirs disable disown echotc echoti emulate fc fg float functions getcap getln history integer jobs kill limit log noglob popd print pushd pushln rehash sched setcap setopt stat suspend ttyctl unfunction unhash unlimit unsetopt vared wait whence where which zcompile zformat zftp zle zmodload zparseopts zprof zpty zregexparse zsocket zstyle ztcp",_:"-ne -eq -lt -gt -f -d -e -s -l -a"},c:[{cN:"meta",b:/^#![^\n]+sh\s*$/,r:10},{cN:"function",b:/\w[\w\d_]*\s*\(\s*\)\s*\{/,rB:!0,c:[e.inherit(e.TM,{b:/\w[\w\d_]*/})],r:0},e.HCM,s,a,t]}});hljs.registerLanguage("erlang-repl",function(e){return{k:{built_in:"spawn spawn_link self",keyword:"after and andalso|10 band begin bnot bor bsl bsr bxor case catch cond div end fun if let not of or orelse|10 query receive rem try when xor"},c:[{cN:"meta",b:"^[0-9]+> ",r:10},e.C("%","$"),{cN:"number",b:"\\b(\\d+#[a-fA-F0-9]+|\\d+(\\.\\d+)?([eE][-+]?\\d+)?)",r:0},e.ASM,e.QSM,{b:"\\?(::)?([A-Z]\\w*(::)?)+"},{b:"->"},{b:"ok"},{b:"!"},{b:"(\\b[a-z'][a-zA-Z0-9_']*:[a-z'][a-zA-Z0-9_']*)|(\\b[a-z'][a-zA-Z0-9_']*)",r:0},{b:"[A-Z][a-zA-Z0-9_']*",r:0}]}});hljs.registerLanguage("elm",function(e){var i={v:[e.C("--","$"),e.C("{-","-}",{c:["self"]})]},t={cN:"type",b:"\\b[A-Z][\\w']*",r:0},c={b:"\\(",e:"\\)",i:'"',c:[{cN:"type",b:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},i]},n={b:"{",e:"}",c:c.c};return{k:"let in if then else case of where module import exposing type alias as infix infixl infixr port effect command subscription",c:[{bK:"port effect module",e:"exposing",k:"port effect module where command subscription exposing",c:[c,i],i:"\\W\\.|;"},{b:"import",e:"$",k:"import as exposing",c:[c,i],i:"\\W\\.|;"},{b:"type",e:"$",k:"type alias",c:[t,c,n,i]},{bK:"infix infixl infixr",e:"$",c:[e.CNM,i]},{b:"port",e:"$",k:"port",c:[i]},e.QSM,e.CNM,t,e.inherit(e.TM,{b:"^[_a-z][\\w']*"}),i,{b:"->|<-"}],i:/;/}});hljs.registerLanguage("clojure",function(e){var t={"builtin-name":"def defonce cond apply if-not if-let if not not= = < > <= >= == + / * - rem quot neg? pos? delay? symbol? keyword? true? false? integer? empty? coll? list? set? ifn? fn? associative? sequential? sorted? counted? reversible? number? decimal? class? distinct? isa? float? rational? reduced? ratio? odd? even? char? seq? vector? string? map? nil? contains? zero? instance? not-every? not-any? libspec? -> ->> .. . inc compare do dotimes mapcat take remove take-while drop letfn drop-last take-last drop-while while intern condp case reduced cycle split-at split-with repeat replicate iterate range merge zipmap declare line-seq sort comparator sort-by dorun doall nthnext nthrest partition eval doseq await await-for let agent atom send send-off release-pending-sends add-watch mapv filterv remove-watch agent-error restart-agent set-error-handler error-handler set-error-mode! error-mode shutdown-agents quote var fn loop recur throw try monitor-enter monitor-exit defmacro defn defn- macroexpand macroexpand-1 for dosync and or when when-not when-let comp juxt partial sequence memoize constantly complement identity assert peek pop doto proxy defstruct first rest cons defprotocol cast coll deftype defrecord last butlast sigs reify second ffirst fnext nfirst nnext defmulti defmethod meta with-meta ns in-ns create-ns import refer keys select-keys vals key val rseq name namespace promise into transient persistent! conj! assoc! dissoc! pop! disj! use class type num float double short byte boolean bigint biginteger bigdec print-method print-dup throw-if printf format load compile get-in update-in pr pr-on newline flush read slurp read-line subvec with-open memfn time re-find re-groups rand-int rand mod locking assert-valid-fdecl alias resolve ref deref refset swap! reset! set-validator! compare-and-set! alter-meta! reset-meta! commute get-validator alter ref-set ref-history-count ref-min-history ref-max-history ensure sync io! new next conj set! to-array future future-call into-array aset gen-class reduce map filter find empty hash-map hash-set sorted-map sorted-map-by sorted-set sorted-set-by vec vector seq flatten reverse assoc dissoc list disj get union difference intersection extend extend-type extend-protocol int nth delay count concat chunk chunk-buffer chunk-append chunk-first chunk-rest max min dec unchecked-inc-int unchecked-inc unchecked-dec-inc unchecked-dec unchecked-negate unchecked-add-int unchecked-add unchecked-subtract-int unchecked-subtract chunk-next chunk-cons chunked-seq? prn vary-meta lazy-seq spread list* str find-keyword keyword symbol gensym force rationalize"},r="a-zA-Z_\\-!.?+*=<>&#'",n="["+r+"]["+r+"0-9/;:]*",a="[-+]?\\d+(\\.\\d+)?",o={b:n,r:0},s={cN:"number",b:a,r:0},c=e.inherit(e.QSM,{i:null}),i=e.C(";","$",{r:0}),d={cN:"literal",b:/\b(true|false|nil)\b/},l={b:"[\\[\\{]",e:"[\\]\\}]"},m={cN:"comment",b:"\\^"+n},p=e.C("\\^\\{","\\}"),u={cN:"symbol",b:"[:]{1,2}"+n},f={b:"\\(",e:"\\)"},h={eW:!0,r:0},y={k:t,l:n,cN:"name",b:n,starts:h},b=[f,c,m,p,i,u,l,s,d,o];return f.c=[e.C("comment",""),y,h],h.c=b,l.c=b,p.c=[l],{aliases:["clj"],i:/\S/,c:[f,c,m,p,i,u,l,s,d]}});hljs.registerLanguage("dns",function(d){return{aliases:["bind","zone"],k:{keyword:"IN A AAAA AFSDB APL CAA CDNSKEY CDS CERT CNAME DHCID DLV DNAME DNSKEY DS HIP IPSECKEY KEY KX LOC MX NAPTR NS NSEC NSEC3 NSEC3PARAM PTR RRSIG RP SIG SOA SRV SSHFP TA TKEY TLSA TSIG TXT"},c:[d.C(";","$",{r:0}),{cN:"meta",b:/^\$(TTL|GENERATE|INCLUDE|ORIGIN)\b/},{cN:"number",b:"((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))\\b"},{cN:"number",b:"((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]).){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\b"},d.inherit(d.NM,{b:/\b\d+[dhwm]?/})]}});hljs.registerLanguage("dockerfile",function(e){return{aliases:["docker"],cI:!0,k:"from maintainer expose env arg user onbuild stopsignal",c:[e.HCM,e.ASM,e.QSM,e.NM,{bK:"run cmd entrypoint volume add copy workdir label healthcheck shell",starts:{e:/[^\\]\n/,sL:"bash"}}],i:"`]+/}]}]}]};return{aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist"],cI:!0,c:[{cN:"meta",b:"",r:10,c:[{b:"\\[",e:"\\]"}]},s.C("",{r:10}),{b:"<\\!\\[CDATA\\[",e:"\\]\\]>",r:10},{b:/<\?(php)?/,e:/\?>/,sL:"php",c:[{b:"/\\*",e:"\\*/",skip:!0}]},{cN:"tag",b:"|$)",e:">",k:{name:"style"},c:[t],starts:{e:"",rE:!0,sL:["css","xml"]}},{cN:"tag",b:"|$)",e:">",k:{name:"script"},c:[t],starts:{e:"",rE:!0,sL:["actionscript","javascript","handlebars","xml"]}},{cN:"meta",v:[{b:/<\?xml/,e:/\?>/,r:10},{b:/<\?\w+/,e:/\?>/}]},{cN:"tag",b:"",c:[{cN:"name",b:/[^\/><\s]+/,r:0},t]}]}});hljs.registerLanguage("nginx",function(e){var r={cN:"variable",v:[{b:/\$\d+/},{b:/\$\{/,e:/}/},{b:"[\\$\\@]"+e.UIR}]},b={eW:!0,l:"[a-z/_]+",k:{literal:"on off yes no true false none blocked debug info notice warn error crit select break last permanent redirect kqueue rtsig epoll poll /dev/poll"},r:0,i:"=>",c:[e.HCM,{cN:"string",c:[e.BE,r],v:[{b:/"/,e:/"/},{b:/'/,e:/'/}]},{b:"([a-z]+):/",e:"\\s",eW:!0,eE:!0,c:[r]},{cN:"regexp",c:[e.BE,r],v:[{b:"\\s\\^",e:"\\s|{|;",rE:!0},{b:"~\\*?\\s+",e:"\\s|{|;",rE:!0},{b:"\\*(\\.[a-z\\-]+)+"},{b:"([a-z\\-]+\\.)+\\*"}]},{cN:"number",b:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{cN:"number",b:"\\b\\d+[kKmMgGdshdwy]*\\b",r:0},r]};return{aliases:["nginxconf"],c:[e.HCM,{b:e.UIR+"\\s+{",rB:!0,e:"{",c:[{cN:"section",b:e.UIR}],r:0},{b:e.UIR+"\\s",e:";|{",rB:!0,c:[{cN:"attribute",b:e.UIR,starts:b}],r:0}],i:"[^\\s\\}]"}});hljs.registerLanguage("ruby",function(e){var b="[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",r={keyword:"and then defined module in return redo if BEGIN retry end for self when next until do begin unless END rescue else break undef not super class case require yield alias while ensure elsif or include attr_reader attr_writer attr_accessor",literal:"true false nil"},c={cN:"doctag",b:"@[A-Za-z]+"},a={b:"#<",e:">"},s=[e.C("#","$",{c:[c]}),e.C("^\\=begin","^\\=end",{c:[c],r:10}),e.C("^__END__","\\n$")],n={cN:"subst",b:"#\\{",e:"}",k:r},t={cN:"string",c:[e.BE,n],v:[{b:/'/,e:/'/},{b:/"/,e:/"/},{b:/`/,e:/`/},{b:"%[qQwWx]?\\(",e:"\\)"},{b:"%[qQwWx]?\\[",e:"\\]"},{b:"%[qQwWx]?{",e:"}"},{b:"%[qQwWx]?<",e:">"},{b:"%[qQwWx]?/",e:"/"},{b:"%[qQwWx]?%",e:"%"},{b:"%[qQwWx]?-",e:"-"},{b:"%[qQwWx]?\\|",e:"\\|"},{b:/\B\?(\\\d{1,3}|\\x[A-Fa-f0-9]{1,2}|\\u[A-Fa-f0-9]{4}|\\?\S)\b/},{b:/<<(-?)\w+$/,e:/^\s*\w+$/}]},i={cN:"params",b:"\\(",e:"\\)",endsParent:!0,k:r},d=[t,a,{cN:"class",bK:"class module",e:"$|;",i:/=/,c:[e.inherit(e.TM,{b:"[A-Za-z_]\\w*(::\\w+)*(\\?|\\!)?"}),{b:"<\\s*",c:[{b:"("+e.IR+"::)?"+e.IR}]}].concat(s)},{cN:"function",bK:"def",e:"$|;",c:[e.inherit(e.TM,{b:b}),i].concat(s)},{b:e.IR+"::"},{cN:"symbol",b:e.UIR+"(\\!|\\?)?:",r:0},{cN:"symbol",b:":(?!\\s)",c:[t,{b:b}],r:0},{cN:"number",b:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",r:0},{b:"(\\$\\W)|((\\$|\\@\\@?)(\\w+))"},{cN:"params",b:/\|/,e:/\|/,k:r},{b:"("+e.RSR+"|unless)\\s*",k:"unless",c:[a,{cN:"regexp",c:[e.BE,n],i:/\n/,v:[{b:"/",e:"/[a-z]*"},{b:"%r{",e:"}[a-z]*"},{b:"%r\\(",e:"\\)[a-z]*"},{b:"%r!",e:"![a-z]*"},{b:"%r\\[",e:"\\][a-z]*"}]}].concat(s),r:0}].concat(s);n.c=d,i.c=d;var l="[>?]>",o="[\\w#]+\\(\\w+\\):\\d+:\\d+>",u="(\\w+-)?\\d+\\.\\d+\\.\\d(p\\d+)?[^>]+>",w=[{b:/^\s*=>/,starts:{e:"$",c:d}},{cN:"meta",b:"^("+l+"|"+o+"|"+u+")",starts:{e:"$",c:d}}];return{aliases:["rb","gemspec","podspec","thor","irb"],k:r,i:/\/\*/,c:s.concat(w).concat(d)}});hljs.registerLanguage("lua",function(e){var t="\\[=*\\[",a="\\]=*\\]",r={b:t,e:a,c:["self"]},n=[e.C("--(?!"+t+")","$"),e.C("--"+t,a,{c:[r],r:10})];return{l:e.UIR,k:{literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstringmodule next pairs pcall print rawequal rawget rawset require select setfenvsetmetatable tonumber tostring type unpack xpcall arg selfcoroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},c:n.concat([{cN:"function",bK:"function",e:"\\)",c:[e.inherit(e.TM,{b:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{cN:"params",b:"\\(",eW:!0,c:n}].concat(n)},e.CNM,e.ASM,e.QSM,{cN:"string",b:t,e:a,c:[r],r:5}])}});hljs.registerLanguage("shell",function(s){return{aliases:["console"],c:[{cN:"meta",b:"^\\s{0,3}[\\w\\d\\[\\]()@-]*[>%$#]",starts:{e:"$",sL:"bash"}}]}});hljs.registerLanguage("scheme",function(e){var t="[^\\(\\)\\[\\]\\{\\}\",'`;#|\\\\\\s]+",r="(\\-|\\+)?\\d+([./]\\d+)?",a=r+"[+\\-]"+r+"i",i={"builtin-name":"case-lambda call/cc class define-class exit-handler field import inherit init-field interface let*-values let-values let/ec mixin opt-lambda override protect provide public rename require require-for-syntax syntax syntax-case syntax-error unit/sig unless when with-syntax and begin call-with-current-continuation call-with-input-file call-with-output-file case cond define define-syntax delay do dynamic-wind else for-each if lambda let let* let-syntax letrec letrec-syntax map or syntax-rules ' * + , ,@ - ... / ; < <= = => > >= ` abs acos angle append apply asin assoc assq assv atan boolean? caar cadr call-with-input-file call-with-output-file call-with-values car cdddar cddddr cdr ceiling char->integer char-alphabetic? char-ci<=? char-ci=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string=? string>? string? substring symbol->string symbol? tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?"},n={cN:"meta",b:"^#!",e:"$"},c={cN:"literal",b:"(#t|#f|#\\\\"+t+"|#\\\\.)"},l={cN:"number",v:[{b:r,r:0},{b:a,r:0},{b:"#b[0-1]+(/[0-1]+)?"},{b:"#o[0-7]+(/[0-7]+)?"},{b:"#x[0-9a-f]+(/[0-9a-f]+)?"}]},s=e.QSM,o=[e.C(";","$",{r:0}),e.C("#\\|","\\|#")],u={b:t,r:0},p={cN:"symbol",b:"'"+t},d={eW:!0,r:0},m={v:[{b:/'/},{b:"`"}],c:[{b:"\\(",e:"\\)",c:["self",c,s,l,u,p]}]},g={cN:"name",b:t,l:t,k:i},h={b:/lambda/,eW:!0,rB:!0,c:[g,{b:/\(/,e:/\)/,endsParent:!0,c:[u]}]},b={v:[{b:"\\(",e:"\\)"},{b:"\\[",e:"\\]"}],c:[h,g,d]};return d.c=[c,l,s,u,p,m,b].concat(o),{i:/\S/,c:[n,l,s,p,m,b].concat(o)}});hljs.registerLanguage("sql",function(e){var t=e.C("--","$");return{cI:!0,i:/[<>{}*#]/,c:[{bK:"begin end start commit rollback savepoint lock alter create drop rename call delete do handler insert load replace select truncate update set show pragma grant merge describe use explain help declare prepare execute deallocate release unlock purge reset change stop analyze cache flush optimize repair kill install uninstall checksum restore check backup revoke comment",e:/;/,eW:!0,l:/[\w\.]+/,k:{keyword:"abort abs absolute acc acce accep accept access accessed accessible account acos action activate add addtime admin administer advanced advise aes_decrypt aes_encrypt after agent aggregate ali alia alias allocate allow alter always analyze ancillary and any anydata anydataset anyschema anytype apply archive archived archivelog are as asc ascii asin assembly assertion associate asynchronous at atan atn2 attr attri attrib attribu attribut attribute attributes audit authenticated authentication authid authors auto autoallocate autodblink autoextend automatic availability avg backup badfile basicfile before begin beginning benchmark between bfile bfile_base big bigfile bin binary_double binary_float binlog bit_and bit_count bit_length bit_or bit_xor bitmap blob_base block blocksize body both bound buffer_cache buffer_pool build bulk by byte byteordermark bytes cache caching call calling cancel capacity cascade cascaded case cast catalog category ceil ceiling chain change changed char_base char_length character_length characters characterset charindex charset charsetform charsetid check checksum checksum_agg child choose chr chunk class cleanup clear client clob clob_base clone close cluster_id cluster_probability cluster_set clustering coalesce coercibility col collate collation collect colu colum column column_value columns columns_updated comment commit compact compatibility compiled complete composite_limit compound compress compute concat concat_ws concurrent confirm conn connec connect connect_by_iscycle connect_by_isleaf connect_by_root connect_time connection consider consistent constant constraint constraints constructor container content contents context contributors controlfile conv convert convert_tz corr corr_k corr_s corresponding corruption cos cost count count_big counted covar_pop covar_samp cpu_per_call cpu_per_session crc32 create creation critical cross cube cume_dist curdate current current_date current_time current_timestamp current_user cursor curtime customdatum cycle data database databases datafile datafiles datalength date_add date_cache date_format date_sub dateadd datediff datefromparts datename datepart datetime2fromparts day day_to_second dayname dayofmonth dayofweek dayofyear days db_role_change dbtimezone ddl deallocate declare decode decompose decrement decrypt deduplicate def defa defau defaul default defaults deferred defi defin define degrees delayed delegate delete delete_all delimited demand dense_rank depth dequeue des_decrypt des_encrypt des_key_file desc descr descri describ describe descriptor deterministic diagnostics difference dimension direct_load directory disable disable_all disallow disassociate discardfile disconnect diskgroup distinct distinctrow distribute distributed div do document domain dotnet double downgrade drop dumpfile duplicate duration each edition editionable editions element ellipsis else elsif elt empty enable enable_all enclosed encode encoding encrypt end end-exec endian enforced engine engines enqueue enterprise entityescaping eomonth error errors escaped evalname evaluate event eventdata events except exception exceptions exchange exclude excluding execu execut execute exempt exists exit exp expire explain export export_set extended extent external external_1 external_2 externally extract failed failed_login_attempts failover failure far fast feature_set feature_value fetch field fields file file_name_convert filesystem_like_logging final finish first first_value fixed flash_cache flashback floor flush following follows for forall force form forma format found found_rows freelist freelists freepools fresh from from_base64 from_days ftp full function general generated get get_format get_lock getdate getutcdate global global_name globally go goto grant grants greatest group group_concat group_id grouping grouping_id groups gtid_subtract guarantee guard handler hash hashkeys having hea head headi headin heading heap help hex hierarchy high high_priority hosts hour http id ident_current ident_incr ident_seed identified identity idle_time if ifnull ignore iif ilike ilm immediate import in include including increment index indexes indexing indextype indicator indices inet6_aton inet6_ntoa inet_aton inet_ntoa infile initial initialized initially initrans inmemory inner innodb input insert install instance instantiable instr interface interleaved intersect into invalidate invisible is is_free_lock is_ipv4 is_ipv4_compat is_not is_not_null is_used_lock isdate isnull isolation iterate java join json json_exists keep keep_duplicates key keys kill language large last last_day last_insert_id last_value lax lcase lead leading least leaves left len lenght length less level levels library like like2 like4 likec limit lines link list listagg little ln load load_file lob lobs local localtime localtimestamp locate locator lock locked log log10 log2 logfile logfiles logging logical logical_reads_per_call logoff logon logs long loop low low_priority lower lpad lrtrim ltrim main make_set makedate maketime managed management manual map mapping mask master master_pos_wait match matched materialized max maxextents maximize maxinstances maxlen maxlogfiles maxloghistory maxlogmembers maxsize maxtrans md5 measures median medium member memcompress memory merge microsecond mid migration min minextents minimum mining minus minute minvalue missing mod mode model modification modify module monitoring month months mount move movement multiset mutex name name_const names nan national native natural nav nchar nclob nested never new newline next nextval no no_write_to_binlog noarchivelog noaudit nobadfile nocheck nocompress nocopy nocycle nodelay nodiscardfile noentityescaping noguarantee nokeep nologfile nomapping nomaxvalue nominimize nominvalue nomonitoring none noneditionable nonschema noorder nopr nopro noprom nopromp noprompt norely noresetlogs noreverse normal norowdependencies noschemacheck noswitch not nothing notice notrim novalidate now nowait nth_value nullif nulls num numb numbe nvarchar nvarchar2 object ocicoll ocidate ocidatetime ociduration ociinterval ociloblocator ocinumber ociref ocirefcursor ocirowid ocistring ocitype oct octet_length of off offline offset oid oidindex old on online only opaque open operations operator optimal optimize option optionally or oracle oracle_date oradata ord ordaudio orddicom orddoc order ordimage ordinality ordvideo organization orlany orlvary out outer outfile outline output over overflow overriding package pad parallel parallel_enable parameters parent parse partial partition partitions pascal passing password password_grace_time password_lock_time password_reuse_max password_reuse_time password_verify_function patch path patindex pctincrease pctthreshold pctused pctversion percent percent_rank percentile_cont percentile_disc performance period period_add period_diff permanent physical pi pipe pipelined pivot pluggable plugin policy position post_transaction pow power pragma prebuilt precedes preceding precision prediction prediction_cost prediction_details prediction_probability prediction_set prepare present preserve prior priority private private_sga privileges procedural procedure procedure_analyze processlist profiles project prompt protection public publishingservername purge quarter query quick quiesce quota quotename radians raise rand range rank raw read reads readsize rebuild record records recover recovery recursive recycle redo reduced ref reference referenced references referencing refresh regexp_like register regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy reject rekey relational relative relaylog release release_lock relies_on relocate rely rem remainder rename repair repeat replace replicate replication required reset resetlogs resize resource respect restore restricted result result_cache resumable resume retention return returning returns reuse reverse revoke right rlike role roles rollback rolling rollup round row row_count rowdependencies rowid rownum rows rtrim rules safe salt sample save savepoint sb1 sb2 sb4 scan schema schemacheck scn scope scroll sdo_georaster sdo_topo_geometry search sec_to_time second section securefile security seed segment select self sequence sequential serializable server servererror session session_user sessions_per_user set sets settings sha sha1 sha2 share shared shared_pool short show shrink shutdown si_averagecolor si_colorhistogram si_featurelist si_positionalcolor si_stillimage si_texture siblings sid sign sin size size_t sizes skip slave sleep smalldatetimefromparts smallfile snapshot some soname sort soundex source space sparse spfile split sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_small_result sql_variant_property sqlcode sqldata sqlerror sqlname sqlstate sqrt square standalone standby start starting startup statement static statistics stats_binomial_test stats_crosstab stats_ks_test stats_mode stats_mw_test stats_one_way_anova stats_t_test_ stats_t_test_indep stats_t_test_one stats_t_test_paired stats_wsr_test status std stddev stddev_pop stddev_samp stdev stop storage store stored str str_to_date straight_join strcmp strict string struct stuff style subdate subpartition subpartitions substitutable substr substring subtime subtring_index subtype success sum suspend switch switchoffset switchover sync synchronous synonym sys sys_xmlagg sysasm sysaux sysdate sysdatetimeoffset sysdba sysoper system system_user sysutcdatetime table tables tablespace tan tdo template temporary terminated tertiary_weights test than then thread through tier ties time time_format time_zone timediff timefromparts timeout timestamp timestampadd timestampdiff timezone_abbr timezone_minute timezone_region to to_base64 to_date to_days to_seconds todatetimeoffset trace tracking transaction transactional translate translation treat trigger trigger_nestlevel triggers trim truncate try_cast try_convert try_parse type ub1 ub2 ub4 ucase unarchived unbounded uncompress under undo unhex unicode uniform uninstall union unique unix_timestamp unknown unlimited unlock unpivot unrecoverable unsafe unsigned until untrusted unusable unused update updated upgrade upped upper upsert url urowid usable usage use use_stored_outlines user user_data user_resources users using utc_date utc_timestamp uuid uuid_short validate validate_password_strength validation valist value values var var_samp varcharc vari varia variab variabl variable variables variance varp varraw varrawc varray verify version versions view virtual visible void wait wallet warning warnings week weekday weekofyear wellformed when whene whenev wheneve whenever where while whitespace with within without work wrapped xdb xml xmlagg xmlattributes xmlcast xmlcolattval xmlelement xmlexists xmlforest xmlindex xmlnamespaces xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltype xor year year_to_month years yearweek",literal:"true false null",built_in:"array bigint binary bit blob boolean char character date dec decimal float int int8 integer interval number numeric real record serial serial8 smallint text varchar varying void"},c:[{cN:"string",b:"'",e:"'",c:[e.BE,{b:"''"}]},{cN:"string",b:'"',e:'"',c:[e.BE,{b:'""'}]},{cN:"string",b:"`",e:"`",c:[e.BE]},e.CNM,e.CBCM,t]},e.CBCM,t]}});hljs.registerLanguage("typescript",function(e){var r={keyword:"in if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const class public private protected get set super static implements enum export import declare type namespace abstract as from extends async await",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document any number boolean string void Promise"};return{aliases:["ts"],k:r,c:[{cN:"meta",b:/^\s*['"]use strict['"]/},e.ASM,e.QSM,{cN:"string",b:"`",e:"`",c:[e.BE,{cN:"subst",b:"\\$\\{",e:"\\}"}]},e.CLCM,e.CBCM,{cN:"number",v:[{b:"\\b(0[bB][01]+)"},{b:"\\b(0[oO][0-7]+)"},{b:e.CNR}],r:0},{b:"("+e.RSR+"|\\b(case|return|throw)\\b)\\s*",k:"return throw case",c:[e.CLCM,e.CBCM,e.RM,{cN:"function",b:"(\\(.*?\\)|"+e.IR+")\\s*=>",rB:!0,e:"\\s*=>",c:[{cN:"params",v:[{b:e.IR},{b:/\(\s*\)/},{b:/\(/,e:/\)/,eB:!0,eE:!0,k:r,c:["self",e.CLCM,e.CBCM]}]}]}],r:0},{cN:"function",b:"function",e:/[\{;]/,eE:!0,k:r,c:["self",e.inherit(e.TM,{b:/[A-Za-z$_][0-9A-Za-z$_]*/}),{cN:"params",b:/\(/,e:/\)/,eB:!0,eE:!0,k:r,c:[e.CLCM,e.CBCM],i:/["'\(]/}],i:/%/,r:0},{bK:"constructor",e:/\{/,eE:!0,c:["self",{cN:"params",b:/\(/,e:/\)/,eB:!0,eE:!0,k:r,c:[e.CLCM,e.CBCM],i:/["'\(]/}]},{b:/module\./,k:{built_in:"module"},r:0},{bK:"module",e:/\{/,eE:!0},{bK:"interface",e:/\{/,eE:!0,k:"interface extends"},{b:/\$[(.]/},{b:"\\."+e.IR,r:0},{cN:"meta",b:"@[A-Za-z]+"}]}});hljs.registerLanguage("lisp",function(b){var e="[a-zA-Z_\\-\\+\\*\\/\\<\\=\\>\\&\\#][a-zA-Z0-9_\\-\\+\\*\\/\\<\\=\\>\\&\\#!]*",c="\\|[^]*?\\|",r="(\\-|\\+)?\\d+(\\.\\d+|\\/\\d+)?((d|e|f|l|s|D|E|F|L|S)(\\+|\\-)?\\d+)?",a={cN:"meta",b:"^#!",e:"$"},l={cN:"literal",b:"\\b(t{1}|nil)\\b"},n={cN:"number",v:[{b:r,r:0},{b:"#(b|B)[0-1]+(/[0-1]+)?"},{b:"#(o|O)[0-7]+(/[0-7]+)?"},{b:"#(x|X)[0-9a-fA-F]+(/[0-9a-fA-F]+)?"},{b:"#(c|C)\\("+r+" +"+r,e:"\\)"}]},i=b.inherit(b.QSM,{i:null}),t=b.C(";","$",{r:0}),s={b:"\\*",e:"\\*"},u={cN:"symbol",b:"[:&]"+e},d={b:e,r:0},f={b:c},m={b:"\\(",e:"\\)",c:["self",l,i,n,d]},o={c:[n,i,s,u,m,d],v:[{b:"['`]\\(",e:"\\)"},{b:"\\(quote ",e:"\\)",k:{name:"quote"}},{b:"'"+c}]},v={v:[{b:"'"+e},{b:"#'"+e+"(::"+e+")*"}]},N={b:"\\(\\s*",e:"\\)"},A={eW:!0,r:0};return N.c=[{cN:"name",v:[{b:e},{b:c}]},A],A.c=[o,v,N,l,n,i,t,s,u,f,d],{i:/\S/,c:[n,a,l,i,t,o,v,N,d]}});hljs.registerLanguage("javascript",function(e){var r="[A-Za-z$_][0-9A-Za-z$_]*",t={keyword:"in of if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await static import from as",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Promise"},a={cN:"number",v:[{b:"\\b(0[bB][01]+)"},{b:"\\b(0[oO][0-7]+)"},{b:e.CNR}],r:0},n={cN:"subst",b:"\\$\\{",e:"\\}",k:t,c:[]},c={cN:"string",b:"`",e:"`",c:[e.BE,n]};n.c=[e.ASM,e.QSM,c,a,e.RM];var s=n.c.concat([e.CBCM,e.CLCM]);return{aliases:["js","jsx"],k:t,c:[{cN:"meta",r:10,b:/^\s*['"]use (strict|asm)['"]/},{cN:"meta",b:/^#!/,e:/$/},e.ASM,e.QSM,c,e.CLCM,e.CBCM,a,{b:/[{,]\s*/,r:0,c:[{b:r+"\\s*:",rB:!0,r:0,c:[{cN:"attr",b:r,r:0}]}]},{b:"("+e.RSR+"|\\b(case|return|throw)\\b)\\s*",k:"return throw case",c:[e.CLCM,e.CBCM,e.RM,{cN:"function",b:"(\\(.*?\\)|"+r+")\\s*=>",rB:!0,e:"\\s*=>",c:[{cN:"params",v:[{b:r},{b:/\(\s*\)/},{b:/\(/,e:/\)/,eB:!0,eE:!0,k:t,c:s}]}]},{b://,sL:"xml",c:[{b:/<\w+\s*\/>/,skip:!0},{b:/<\w+/,e:/(\/\w+|\w+\/)>/,skip:!0,c:[{b:/<\w+\s*\/>/,skip:!0},"self"]}]}],r:0},{cN:"function",bK:"function",e:/\{/,eE:!0,c:[e.inherit(e.TM,{b:r}),{cN:"params",b:/\(/,e:/\)/,eB:!0,eE:!0,c:s}],i:/\[|%/},{b:/\$[(.]/},e.METHOD_GUARD,{cN:"class",bK:"class",e:/[{;=]/,eE:!0,i:/[:"\[\]]/,c:[{bK:"extends"},e.UTM]},{bK:"constructor",e:/\{/,eE:!0}],i:/#(?!!)/}});hljs.registerLanguage("java",function(e){var a="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",t=a+"(<"+a+"(\\s*,\\s*"+a+")*>)?",r="false synchronized int abstract float private char boolean static null if const for true while long strictfp finally protected import native final void enum else break transient catch instanceof byte super volatile case assert short package default double public try this switch continue throws protected public private module requires exports do",s="\\b(0[bB]([01]+[01_]+[01]+|[01]+)|0[xX]([a-fA-F0-9]+[a-fA-F0-9_]+[a-fA-F0-9]+|[a-fA-F0-9]+)|(([\\d]+[\\d_]+[\\d]+|[\\d]+)(\\.([\\d]+[\\d_]+[\\d]+|[\\d]+))?|\\.([\\d]+[\\d_]+[\\d]+|[\\d]+))([eE][-+]?\\d+)?)[lLfF]?",c={cN:"number",b:s,r:0};return{aliases:["jsp"],k:r,i:/<\/|#/,c:[e.C("/\\*\\*","\\*/",{r:0,c:[{b:/\w+@/,r:0},{cN:"doctag",b:"@[A-Za-z]+"}]}),e.CLCM,e.CBCM,e.ASM,e.QSM,{cN:"class",bK:"class interface",e:/[{;=]/,eE:!0,k:"class interface",i:/[:"\[\]]/,c:[{bK:"extends implements"},e.UTM]},{bK:"new throw return else",r:0},{cN:"function",b:"("+t+"\\s+)+"+e.UIR+"\\s*\\(",rB:!0,e:/[{;=]/,eE:!0,k:r,c:[{b:e.UIR+"\\s*\\(",rB:!0,r:0,c:[e.UTM]},{cN:"params",b:/\(/,e:/\)/,k:r,r:0,c:[e.ASM,e.QSM,e.CNM,e.CBCM]},e.CLCM,e.CBCM]},c,{cN:"meta",b:"@[A-Za-z]+"}]}});hljs.registerLanguage("clojure-repl",function(e){return{c:[{cN:"meta",b:/^([\w.-]+|\s*#_)=>/,starts:{e:/$/,sL:"clojure"}}]}});hljs.registerLanguage("cpp",function(t){var e={cN:"keyword",b:"\\b[a-z\\d_]*_t\\b"},r={cN:"string",v:[{b:'(u8?|U)?L?"',e:'"',i:"\\n",c:[t.BE]},{b:'(u8?|U)?R"',e:'"',c:[t.BE]},{b:"'\\\\?.",e:"'",i:"."}]},s={cN:"number",v:[{b:"\\b(0b[01']+)"},{b:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{b:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],r:0},i={cN:"meta",b:/#\s*[a-z]+\b/,e:/$/,k:{"meta-keyword":"if else elif endif define undef warning error line pragma ifdef ifndef include"},c:[{b:/\\\n/,r:0},t.inherit(r,{cN:"meta-string"}),{cN:"meta-string",b:/<[^\n>]*>/,e:/$/,i:"\\n"},t.CLCM,t.CBCM]},a=t.IR+"\\s*\\(",c={keyword:"int float while private char catch import module export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const for static_cast|10 union namespace unsigned long volatile static protected bool template mutable if public friend do goto auto void enum else break extern using asm case typeid short reinterpret_cast|10 default double register explicit signed typename try this switch continue inline delete alignof constexpr decltype noexcept static_assert thread_local restrict _Bool complex _Complex _Imaginary atomic_bool atomic_char atomic_schar atomic_uchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_ulong atomic_llong atomic_ullong new throw return and or not",built_in:"std string cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap array shared_ptr abort abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr",literal:"true false nullptr NULL"},n=[e,t.CLCM,t.CBCM,s,r];return{aliases:["c","cc","h","c++","h++","hpp"],k:c,i:"",k:c,c:["self",e]},{b:t.IR+"::",k:c},{v:[{b:/=/,e:/;/},{b:/\(/,e:/\)/},{bK:"new throw return else",e:/;/}],k:c,c:n.concat([{b:/\(/,e:/\)/,k:c,c:n.concat(["self"]),r:0}]),r:0},{cN:"function",b:"("+t.IR+"[\\*&\\s]+)+"+a,rB:!0,e:/[{;=]/,eE:!0,k:c,i:/[^\w\s\*&]/,c:[{b:a,rB:!0,c:[t.TM],r:0},{cN:"params",b:/\(/,e:/\)/,k:c,r:0,c:[t.CLCM,t.CBCM,r,s,e]},t.CLCM,t.CBCM,i]},{cN:"class",bK:"class struct",e:/[{;:]/,c:[{b://,c:["self"]},t.TM]}]),exports:{preprocessor:i,strings:r,k:c}}});hljs.registerLanguage("kotlin",function(e){var t={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit initinterface annotation data sealed internal infix operator out by constructor super trait volatile transient native default",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},r={cN:"keyword",b:/\b(break|continue|return|this)\b/,starts:{c:[{cN:"symbol",b:/@\w+/}]}},i={cN:"symbol",b:e.UIR+"@"},n={cN:"subst",b:"\\${",e:"}",c:[e.ASM,e.CNM]},a={cN:"variable",b:"\\$"+e.UIR},c={cN:"string",v:[{b:'"""',e:'"""',c:[a,n]},{b:"'",e:"'",i:/\n/,c:[e.BE]},{b:'"',e:'"',i:/\n/,c:[e.BE,a,n]}]},s={cN:"meta",b:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UIR+")?"},o={cN:"meta",b:"@"+e.UIR,c:[{b:/\(/,e:/\)/,c:[e.inherit(c,{cN:"meta-string"})]}]};return{k:t,c:[e.C("/\\*\\*","\\*/",{r:0,c:[{cN:"doctag",b:"@[A-Za-z]+"}]}),e.CLCM,e.CBCM,r,i,s,o,{cN:"function",bK:"fun",e:"[(]|$",rB:!0,eE:!0,k:t,i:/fun\s+(<.*>)?[^\s\(]+(\s+[^\s\(]+)\s*=/,r:5,c:[{b:e.UIR+"\\s*\\(",rB:!0,r:0,c:[e.UTM]},{cN:"type",b://,k:"reified",r:0},{cN:"params",b:/\(/,e:/\)/,endsParent:!0,k:t,r:0,c:[{b:/:/,e:/[=,\/]/,eW:!0,c:[{cN:"type",b:e.UIR},e.CLCM,e.CBCM],r:0},e.CLCM,e.CBCM,s,o,c,e.CNM]},e.CBCM]},{cN:"class",bK:"class interface trait",e:/[:\{(]|$/,eE:!0,i:"extends implements",c:[{bK:"public protected internal private constructor"},e.UTM,{cN:"type",b://,eB:!0,eE:!0,r:0},{cN:"type",b:/[,:]\s*/,e:/[<\(,]|$/,eB:!0,rE:!0},s,o]},c,{cN:"meta",b:"^#!/usr/bin/env",e:"$",i:"\n"},e.CNM]}});hljs.registerLanguage("http",function(e){var t="HTTP/[0-9\\.]+";return{aliases:["https"],i:"\\S",c:[{b:"^"+t,e:"$",c:[{cN:"number",b:"\\b\\d{3}\\b"}]},{b:"^[A-Z]+ (.*?) "+t+"$",rB:!0,e:"$",c:[{cN:"string",b:" ",e:" ",eB:!0,eE:!0},{b:t},{cN:"keyword",b:"[A-Z]+"}]},{cN:"attribute",b:"^\\w",e:": ",eE:!0,i:"\\n|\\s|=",starts:{e:"$",r:0}},{b:"\\n\\n",starts:{sL:[],eW:!0}}]}});hljs.registerLanguage("makefile",function(e){var i={cN:"variable",v:[{b:"\\$\\("+e.UIR+"\\)",c:[e.BE]},{b:/\$[@%"}]}});hljs.registerLanguage("haskell",function(e){var i={v:[e.C("--","$"),e.C("{-","-}",{c:["self"]})]},a={cN:"meta",b:"{-#",e:"#-}"},l={cN:"meta",b:"^#",e:"$"},c={cN:"type",b:"\\b[A-Z][\\w']*",r:0},n={b:"\\(",e:"\\)",i:'"',c:[a,l,{cN:"type",b:"\\b[A-Z][\\w]*(\\((\\.\\.|,|\\w+)\\))?"},e.inherit(e.TM,{b:"[_a-z][\\w']*"}),i]},s={b:"{",e:"}",c:n.c};return{aliases:["hs"],k:"let in if then else case of where do module import hiding qualified type data newtype deriving class instance as default infix infixl infixr foreign export ccall stdcall cplusplus jvm dotnet safe unsafe family forall mdo proc rec",c:[{bK:"module",e:"where",k:"module where",c:[n,i],i:"\\W\\.|;"},{b:"\\bimport\\b",e:"$",k:"import qualified as hiding",c:[n,i],i:"\\W\\.|;"},{cN:"class",b:"^(\\s*)?(class|instance)\\b",e:"where",k:"class family instance where",c:[c,n,i]},{cN:"class",b:"\\b(data|(new)?type)\\b",e:"$",k:"data family type newtype deriving",c:[a,c,n,s,i]},{bK:"default",e:"$",c:[c,n,i]},{bK:"infix infixl infixr",e:"$",c:[e.CNM,i]},{b:"\\bforeign\\b",e:"$",k:"foreign import export ccall stdcall cplusplus jvm dotnet safe unsafe",c:[c,e.QSM,i]},{cN:"meta",b:"#!\\/usr\\/bin\\/env runhaskell",e:"$"},a,l,e.QSM,e.CNM,c,e.inherit(e.TM,{b:"^[_a-z][\\w']*"}),i,{b:"->|<-"}]}});hljs.registerLanguage("nix",function(e){var r={keyword:"rec with let in inherit assert if else then",literal:"true false or and null",built_in:"import abort baseNameOf dirOf isNull builtins map removeAttrs throw toString derivation"},t={cN:"subst",b:/\$\{/,e:/}/,k:r},i={b:/[a-zA-Z0-9-_]+(\s*=)/,rB:!0,r:0,c:[{cN:"attr",b:/\S+/}]},s={cN:"string",c:[t],v:[{b:"''",e:"''"},{b:'"',e:'"'}]},a=[e.NM,e.HCM,e.CBCM,s,i];return t.c=a,{aliases:["nixos"],k:r,c:a}});hljs.registerLanguage("diff",function(e){return{aliases:["patch"],c:[{cN:"meta",r:10,v:[{b:/^@@ +\-\d+,\d+ +\+\d+,\d+ +@@$/},{b:/^\*\*\* +\d+,\d+ +\*\*\*\*$/},{b:/^\-\-\- +\d+,\d+ +\-\-\-\-$/}]},{cN:"comment",v:[{b:/Index: /,e:/$/},{b:/={3,}/,e:/$/},{b:/^\-{3}/,e:/$/},{b:/^\*{3} /,e:/$/},{b:/^\+{3}/,e:/$/},{b:/\*{5}/,e:/\*{5}$/}]},{cN:"addition",b:"^\\+",e:"$"},{cN:"deletion",b:"^\\-",e:"$"},{cN:"addition",b:"^\\!",e:"$"}]}});hljs.registerLanguage("go",function(e){var t={keyword:"break default func interface select case map struct chan else goto package switch const fallthrough if range type continue for import return var go defer bool byte complex64 complex128 float32 float64 int8 int16 int32 int64 string uint8 uint16 uint32 uint64 int uint uintptr rune",literal:"true false iota nil",built_in:"append cap close complex copy imag len make new panic print println real recover delete"};return{aliases:["golang"],k:t,i:"",sL:"xml",r:0},{cN:"bullet",b:"^([*+-]|(\\d+\\.))\\s+"},{cN:"strong",b:"[*_]{2}.+?[*_]{2}"},{cN:"emphasis",v:[{b:"\\*.+?\\*"},{b:"_.+?_",r:0}]},{cN:"quote",b:"^>\\s+",e:"$"},{cN:"code",v:[{b:"^```w*s*$",e:"^```s*$"},{b:"`.+?`"},{b:"^( {4}| )",e:"$",r:0}]},{b:"^[-\\*]{3,}",e:"$"},{b:"\\[.+?\\][\\(\\[].*?[\\)\\]]",rB:!0,c:[{cN:"string",b:"\\[",e:"\\]",eB:!0,rE:!0,r:0},{cN:"link",b:"\\]\\(",e:"\\)",eB:!0,eE:!0},{cN:"symbol",b:"\\]\\[",e:"\\]",eB:!0,eE:!0}],r:10},{b:/^\[[^\n]+\]:/,rB:!0,c:[{cN:"symbol",b:/\[/,e:/\]/,eB:!0,eE:!0},{cN:"link",b:/:\s*/,e:/$/,eB:!0}]}]}});hljs.initHighlightingOnLoad(); diff --git a/templates/thread.html b/templates/thread.html index 906f21ee6..957a39d8c 100644 --- a/templates/thread.html +++ b/templates/thread.html @@ -9,6 +9,9 @@ Converse: {{ title | safe }} + + +
    From 98f9c5dd9436a4e184c2989976a9c7db64780195 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sat, 19 May 2018 00:11:10 +0200 Subject: [PATCH 137/163] refactor(handlers): Embed static files into binary --- src/handlers.rs | 23 ++++++++++++++++++++++- src/main.rs | 16 ++++------------ 2 files changed, 26 insertions(+), 13 deletions(-) diff --git a/src/handlers.rs b/src/handlers.rs index df03940b1..e5f21849f 100644 --- a/src/handlers.rs +++ b/src/handlers.rs @@ -24,13 +24,15 @@ //! project root. use actix::prelude::*; -use actix_web; use actix_web::*; +use actix_web::http::Method; use actix_web::middleware::identity::RequestIdentity; use actix_web::middleware::{Started, Middleware}; +use actix_web; use db::*; use errors::ConverseError; use futures::Future; +use mime_guess::guess_mime_type; use models::*; use oidc::*; use render::*; @@ -296,6 +298,25 @@ pub fn callback(state: State, .responder() } +/// This is an extension trait to enable easy serving of embedded +/// static content. +/// +/// It is intended to be called with `include_bytes!()` when setting +/// up the actix-web application. +pub trait EmbeddedFile { + fn static_file(self, path: &'static str, content: &'static [u8]) -> Self; +} + +impl EmbeddedFile for App { + fn static_file(self, path: &'static str, content: &'static [u8]) -> Self { + self.route(path, Method::GET, move |_: HttpRequest<_>| { + let mime = format!("{}", guess_mime_type(path)); + HttpResponse::Ok() + .content_type(mime.as_str()) + .body(content) + }) + } +} /// Middleware used to enforce logins unceremoniously. pub struct RequireLogin; diff --git a/src/main.rs b/src/main.rs index ce605af90..9ca3c8552 100644 --- a/src/main.rs +++ b/src/main.rs @@ -36,6 +36,7 @@ extern crate env_logger; extern crate futures; extern crate hyper; extern crate md5; +extern crate mime_guess; extern crate r2d2; extern crate rand; extern crate reqwest; @@ -78,7 +79,6 @@ use oidc::OidcExecutor; use rand::{OsRng, Rng}; use render::Renderer; use std::env; -use std::path::PathBuf; use tera::Tera; fn config(name: &str) -> String { @@ -174,15 +174,6 @@ fn start_http_server(base_url: String, let bind_host = config_default("CONVERSE_BIND_HOST", "127.0.0.1:4567"); let key = gen_session_key(); let require_login = config_default("REQUIRE_LOGIN", "true".into()) == "true"; - let static_dir = env::var("CONVERSE_STATIC_DIR") - .map(PathBuf::from) - .or_else(|_| env::current_dir().map(|mut p| { - p.push("static"); - p - })) - .expect("Could not determine static file directory"); - - info!("Serving static files from {:?}", static_dir); server::new(move || { let state = AppState { @@ -201,7 +192,6 @@ fn start_http_server(base_url: String, let app = App::with_state(state) .middleware(Logger::default()) .middleware(identity) - .handler("/static", fs::StaticFiles::new(static_dir.clone())) .resource("/", |r| r.method(Method::GET).with(forum_index)) .resource("/thread/new", |r| r.method(Method::GET).with(new_thread)) .resource("/thread/submit", |r| r.method(Method::POST).with3(submit_thread)) @@ -211,7 +201,9 @@ fn start_http_server(base_url: String, .resource("/post/edit", |r| r.method(Method::POST).with3(edit_post)) .resource("/search", |r| r.method(Method::GET).with2(search_forum)) .resource("/oidc/login", |r| r.method(Method::GET).with(login)) - .resource("/oidc/callback", |r| r.method(Method::POST).with3(callback)); + .resource("/oidc/callback", |r| r.method(Method::POST).with3(callback)) + .static_file("/static/highlight.css", include_bytes!("../static/highlight.css")) + .static_file("/static/highlight.js", include_bytes!("../static/highlight.js")); if require_login { app.middleware(RequireLogin) From 157029fc567fe064940f19d7f420e1ca50f2b294 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sat, 19 May 2018 00:17:58 +0200 Subject: [PATCH 138/163] chore(build): Bump dependencies requires for mime-packages --- Cargo.lock | 33 +++++++-------- Cargo.nix | 118 +++++++++++++++++++++++++++-------------------------- Cargo.toml | 29 ++++++------- 3 files changed, 92 insertions(+), 88 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index f03b571a7..0fede8622 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -53,7 +53,7 @@ dependencies = [ "percent-encoding 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", "rand 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", "regex 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "serde 1.0.55 (registry+https://github.com/rust-lang/crates.io-index)", + "serde 1.0.56 (registry+https://github.com/rust-lang/crates.io-index)", "serde_json 1.0.17 (registry+https://github.com/rust-lang/crates.io-index)", "serde_urlencoded 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)", "sha1 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -233,8 +233,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "error-chain 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)", "semver 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", - "serde 1.0.55 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_derive 1.0.55 (registry+https://github.com/rust-lang/crates.io-index)", + "serde 1.0.56 (registry+https://github.com/rust-lang/crates.io-index)", + "serde_derive 1.0.56 (registry+https://github.com/rust-lang/crates.io-index)", "serde_json 1.0.17 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -255,7 +255,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "num-integer 0.1.38 (registry+https://github.com/rust-lang/crates.io-index)", "num-traits 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)", - "serde 1.0.55 (registry+https://github.com/rust-lang/crates.io-index)", + "serde 1.0.56 (registry+https://github.com/rust-lang/crates.io-index)", "time 0.1.40 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -304,13 +304,14 @@ dependencies = [ "hyper 0.11.27 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", "md5 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)", + "mime_guess 2.0.0-alpha.4 (registry+https://github.com/rust-lang/crates.io-index)", "pq-sys 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)", "pulldown-cmark 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", "r2d2 0.8.2 (registry+https://github.com/rust-lang/crates.io-index)", "rand 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", "reqwest 0.8.5 (registry+https://github.com/rust-lang/crates.io-index)", - "serde 1.0.55 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_derive 1.0.55 (registry+https://github.com/rust-lang/crates.io-index)", + "serde 1.0.56 (registry+https://github.com/rust-lang/crates.io-index)", + "serde_derive 1.0.56 (registry+https://github.com/rust-lang/crates.io-index)", "serde_json 1.0.17 (registry+https://github.com/rust-lang/crates.io-index)", "tera 0.11.7 (registry+https://github.com/rust-lang/crates.io-index)", "tokio 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1331,7 +1332,7 @@ dependencies = [ "log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", "mime_guess 2.0.0-alpha.4 (registry+https://github.com/rust-lang/crates.io-index)", "native-tls 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", - "serde 1.0.55 (registry+https://github.com/rust-lang/crates.io-index)", + "serde 1.0.56 (registry+https://github.com/rust-lang/crates.io-index)", "serde_json 1.0.17 (registry+https://github.com/rust-lang/crates.io-index)", "serde_urlencoded 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)", "tokio-core 0.1.17 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1433,7 +1434,7 @@ version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "semver-parser 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", - "serde 1.0.55 (registry+https://github.com/rust-lang/crates.io-index)", + "serde 1.0.56 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -1443,12 +1444,12 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "serde" -version = "1.0.55" +version = "1.0.56" source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "serde_derive" -version = "1.0.55" +version = "1.0.56" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "proc-macro2 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1463,7 +1464,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "dtoa 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", "itoa 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", - "serde 1.0.55 (registry+https://github.com/rust-lang/crates.io-index)", + "serde 1.0.56 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -1473,7 +1474,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "dtoa 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", "itoa 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", - "serde 1.0.55 (registry+https://github.com/rust-lang/crates.io-index)", + "serde 1.0.56 (registry+https://github.com/rust-lang/crates.io-index)", "url 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -1629,7 +1630,7 @@ dependencies = [ "pest 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", "pest_derive 1.0.7 (registry+https://github.com/rust-lang/crates.io-index)", "regex 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", - "serde 1.0.55 (registry+https://github.com/rust-lang/crates.io-index)", + "serde 1.0.56 (registry+https://github.com/rust-lang/crates.io-index)", "serde_json 1.0.17 (registry+https://github.com/rust-lang/crates.io-index)", "slug 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", "url 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1993,7 +1994,7 @@ name = "url_serde" version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ - "serde 1.0.55 (registry+https://github.com/rust-lang/crates.io-index)", + "serde 1.0.56 (registry+https://github.com/rust-lang/crates.io-index)", "url 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -2286,8 +2287,8 @@ dependencies = [ "checksum security-framework-sys 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)" = "5421621e836278a0b139268f36eee0dc7e389b784dc3f79d8f11aabadf41bead" "checksum semver 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)" = "1d7eb9ef2c18661902cc47e535f9bc51b78acd254da71d375c2f6720d9a40403" "checksum semver-parser 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3" -"checksum serde 1.0.55 (registry+https://github.com/rust-lang/crates.io-index)" = "97f6a6c3caba0cf8f883b53331791036404ce3c1bd895961cf8bb2f8cecfd84b" -"checksum serde_derive 1.0.55 (registry+https://github.com/rust-lang/crates.io-index)" = "f51b0ef935cf8a41a77bce553da1f8751a739b7ad82dd73669475a22e6ecedb0" +"checksum serde 1.0.56 (registry+https://github.com/rust-lang/crates.io-index)" = "490a3394c94953e6f2613b5c7bd58a4dc02e914b313a750311dcd3a230cd50e9" +"checksum serde_derive 1.0.56 (registry+https://github.com/rust-lang/crates.io-index)" = "20ea26d857f7763659029de788973b82431ec660b62e4ad9f7bf471701048663" "checksum serde_json 1.0.17 (registry+https://github.com/rust-lang/crates.io-index)" = "f3ad6d546e765177cf3dded3c2e424a8040f870083a0e64064746b958ece9cb1" "checksum serde_urlencoded 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)" = "e703cef904312097cfceab9ce131ff6bbe09e8c964a0703345a5f49238757bc1" "checksum sha1 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)" = "2579985fda508104f7587689507983eadd6a6e84dd35d6d115361f530916fa0d" diff --git a/Cargo.nix b/Cargo.nix index f834daf8a..4de17736a 100644 --- a/Cargo.nix +++ b/Cargo.nix @@ -1203,18 +1203,19 @@ rec { sha256 = "1da66c8413yakx0y15k8c055yna5lyb6fr0fw9318kdwkrk5k12h"; inherit dependencies buildDependencies features; }; - serde_1_0_55_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + serde_1_0_56_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { crateName = "serde"; - version = "1.0.55"; + version = "1.0.56"; authors = [ "Erick Tryzelaar " "David Tolnay " ]; - sha256 = "1vpslfs3j8xbl3srmzppa34h0908q0sj4hyrmlrpklhldii5vbqh"; + sha256 = "1w0yl4bk9lbah6z79gpxd7yr2a6pdw26vv9n0373ybdak4i82vyp"; + build = "build.rs"; inherit dependencies buildDependencies features; }; - serde_derive_1_0_55_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + serde_derive_1_0_56_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { crateName = "serde_derive"; - version = "1.0.55"; + version = "1.0.56"; authors = [ "Erick Tryzelaar " "David Tolnay " ]; - sha256 = "1ggcidzgi51l3lsdf8gg46ivn61py8rnrf6garpcxwmdbfcc8lgk"; + sha256 = "0j945f9m2dbkc4b41ibhazpyalz98qm3bw2zja356f88z7riaxxc"; procMacro = true; inherit dependencies buildDependencies features; }; @@ -1813,7 +1814,7 @@ rec { uuid_0_6_3.default = true; }) [ actix_derive_0_2_0_features bitflags_1_0_3_features bytes_0_4_7_features crossbeam_channel_0_1_2_features failure_0_1_1_features futures_0_1_21_features libc_0_2_40_features log_0_4_1_features smallvec_0_6_1_features tokio_core_0_1_17_features tokio_io_0_1_6_features tokio_signal_0_1_5_features trust_dns_resolver_0_8_2_features uuid_0_6_3_features skeptic_0_13_3_features ]; actix_web_0_6_7 = { features?(actix_web_0_6_7_features {}) }: actix_web_0_6_7_ { - dependencies = mapFeatures features ([ actix_0_5_7 base64_0_9_1 bitflags_1_0_3 byteorder_1_2_3 bytes_0_4_7 cookie_0_10_1 encoding_0_2_33 failure_0_1_1 futures_0_1_21 futures_cpupool_0_1_8 h2_0_1_7 http_0_1_5 http_range_0_1_1 httparse_1_2_4 language_tags_0_2_2 lazy_static_1_0_0 libc_0_2_40 log_0_4_1 mime_0_3_7 mime_guess_2_0_0_alpha_4 mio_0_6_14 net2_0_2_32 num_cpus_1_8_0 percent_encoding_1_0_1 rand_0_4_2 regex_1_0_0 serde_1_0_55 serde_json_1_0_17 serde_urlencoded_0_5_2 sha1_0_6_0 slab_0_4_0 smallvec_0_6_1 time_0_1_40 tokio_core_0_1_17 tokio_io_0_1_6 url_1_7_0 ] + dependencies = mapFeatures features ([ actix_0_5_7 base64_0_9_1 bitflags_1_0_3 byteorder_1_2_3 bytes_0_4_7 cookie_0_10_1 encoding_0_2_33 failure_0_1_1 futures_0_1_21 futures_cpupool_0_1_8 h2_0_1_7 http_0_1_5 http_range_0_1_1 httparse_1_2_4 language_tags_0_2_2 lazy_static_1_0_0 libc_0_2_40 log_0_4_1 mime_0_3_7 mime_guess_2_0_0_alpha_4 mio_0_6_14 net2_0_2_32 num_cpus_1_8_0 percent_encoding_1_0_1 rand_0_4_2 regex_1_0_0 serde_1_0_56 serde_json_1_0_17 serde_urlencoded_0_5_2 sha1_0_6_0 slab_0_4_0 smallvec_0_6_1 time_0_1_40 tokio_core_0_1_17 tokio_io_0_1_6 url_1_7_0 ] ++ (if features.actix_web_0_6_7."brotli2" or false then [ brotli2_0_3_2 ] else []) ++ (if features.actix_web_0_6_7."flate2" or false then [ flate2_1_0_1 ] else [])); buildDependencies = mapFeatures features ([ version_check_0_1_3 ]); @@ -1894,7 +1895,7 @@ rec { percent_encoding_1_0_1.default = true; rand_0_4_2.default = true; regex_1_0_0.default = true; - serde_1_0_55.default = true; + serde_1_0_56.default = true; serde_json_1_0_17.default = true; serde_urlencoded_0_5_2.default = true; sha1_0_6_0.default = true; @@ -1906,7 +1907,7 @@ rec { url_1_7_0.default = true; url_1_7_0.query_encoding = true; version_check_0_1_3.default = true; - }) [ actix_0_5_7_features base64_0_9_1_features bitflags_1_0_3_features brotli2_0_3_2_features byteorder_1_2_3_features bytes_0_4_7_features cookie_0_10_1_features encoding_0_2_33_features failure_0_1_1_features flate2_1_0_1_features futures_0_1_21_features futures_cpupool_0_1_8_features h2_0_1_7_features http_0_1_5_features http_range_0_1_1_features httparse_1_2_4_features language_tags_0_2_2_features lazy_static_1_0_0_features libc_0_2_40_features log_0_4_1_features mime_0_3_7_features mime_guess_2_0_0_alpha_4_features mio_0_6_14_features net2_0_2_32_features num_cpus_1_8_0_features percent_encoding_1_0_1_features rand_0_4_2_features regex_1_0_0_features serde_1_0_55_features serde_json_1_0_17_features serde_urlencoded_0_5_2_features sha1_0_6_0_features slab_0_4_0_features smallvec_0_6_1_features time_0_1_40_features tokio_core_0_1_17_features tokio_io_0_1_6_features url_1_7_0_features version_check_0_1_3_features ]; + }) [ actix_0_5_7_features base64_0_9_1_features bitflags_1_0_3_features brotli2_0_3_2_features byteorder_1_2_3_features bytes_0_4_7_features cookie_0_10_1_features encoding_0_2_33_features failure_0_1_1_features flate2_1_0_1_features futures_0_1_21_features futures_cpupool_0_1_8_features h2_0_1_7_features http_0_1_5_features http_range_0_1_1_features httparse_1_2_4_features language_tags_0_2_2_features lazy_static_1_0_0_features libc_0_2_40_features log_0_4_1_features mime_0_3_7_features mime_guess_2_0_0_alpha_4_features mio_0_6_14_features net2_0_2_32_features num_cpus_1_8_0_features percent_encoding_1_0_1_features rand_0_4_2_features regex_1_0_0_features serde_1_0_56_features serde_json_1_0_17_features serde_urlencoded_0_5_2_features sha1_0_6_0_features slab_0_4_0_features smallvec_0_6_1_features time_0_1_40_features tokio_core_0_1_17_features tokio_io_0_1_6_features url_1_7_0_features version_check_0_1_3_features ]; actix_derive_0_2_0 = { features?(actix_derive_0_2_0_features {}) }: actix_derive_0_2_0_ { dependencies = mapFeatures features ([ quote_0_3_15 rand_0_3_22 syn_0_11_11 ]); buildDependencies = mapFeatures features ([ version_check_0_1_3 ]); @@ -2223,17 +2224,17 @@ rec { iovec_0_1_2.default = true; }) [ byteorder_1_2_3_features iovec_0_1_2_features ]; cargo_metadata_0_5_4 = { features?(cargo_metadata_0_5_4_features {}) }: cargo_metadata_0_5_4_ { - dependencies = mapFeatures features ([ error_chain_0_11_0 semver_0_9_0 serde_1_0_55 serde_derive_1_0_55 serde_json_1_0_17 ]); + dependencies = mapFeatures features ([ error_chain_0_11_0 semver_0_9_0 serde_1_0_56 serde_derive_1_0_56 serde_json_1_0_17 ]); }; cargo_metadata_0_5_4_features = f: updateFeatures f (rec { cargo_metadata_0_5_4.default = (f.cargo_metadata_0_5_4.default or true); error_chain_0_11_0.default = true; semver_0_9_0.default = true; semver_0_9_0.serde = true; - serde_1_0_55.default = true; - serde_derive_1_0_55.default = true; + serde_1_0_56.default = true; + serde_derive_1_0_56.default = true; serde_json_1_0_17.default = true; - }) [ error_chain_0_11_0_features semver_0_9_0_features serde_1_0_55_features serde_derive_1_0_55_features serde_json_1_0_17_features ]; + }) [ error_chain_0_11_0_features semver_0_9_0_features serde_1_0_56_features serde_derive_1_0_56_features serde_json_1_0_17_features ]; cc_1_0_15 = { features?(cc_1_0_15_features {}) }: cc_1_0_15_ { dependencies = mapFeatures features ([]); features = mkFeatures (features.cc_1_0_15 or {}); @@ -2251,7 +2252,7 @@ rec { }) []; chrono_0_4_2 = { features?(chrono_0_4_2_features {}) }: chrono_0_4_2_ { dependencies = mapFeatures features ([ num_integer_0_1_38 num_traits_0_2_4 ] - ++ (if features.chrono_0_4_2.serde or false then [ serde_1_0_55 ] else []) + ++ (if features.chrono_0_4_2.serde or false then [ serde_1_0_56 ] else []) ++ (if features.chrono_0_4_2.time or false then [ time_0_1_40 ] else [])); features = mkFeatures (features.chrono_0_4_2 or {}); }; @@ -2267,9 +2268,9 @@ rec { (chrono_0_4_2.clock or false); num_integer_0_1_38.default = (f.num_integer_0_1_38.default or false); num_traits_0_2_4.default = (f.num_traits_0_2_4.default or false); - serde_1_0_55.default = true; + serde_1_0_56.default = true; time_0_1_40.default = true; - }) [ num_integer_0_1_38_features num_traits_0_2_4_features serde_1_0_55_features time_0_1_40_features ]; + }) [ num_integer_0_1_38_features num_traits_0_2_4_features serde_1_0_56_features time_0_1_40_features ]; clap_2_31_2 = { features?(clap_2_31_2_features {}) }: clap_2_31_2_ { dependencies = mapFeatures features ([ bitflags_1_0_3 textwrap_0_9_0 unicode_width_0_1_4 ] ++ (if features.clap_2_31_2.atty or false then [ atty_0_2_10 ] else []) @@ -2355,7 +2356,7 @@ rec { unicode_categories_0_1_1.default = true; }) [ clap_2_31_2_features entities_1_0_1_features lazy_static_1_0_0_features pest_1_0_6_features pest_derive_1_0_7_features regex_0_2_11_features twoway_0_1_8_features typed_arena_1_3_0_features unicode_categories_0_1_1_features ]; converse_0_1_0 = { features?(converse_0_1_0_features {}) }: converse_0_1_0_ { - dependencies = mapFeatures features ([ actix_0_5_7 actix_web_0_6_7 chrono_0_4_2 comrak_0_2_12 diesel_1_2_2 env_logger_0_5_10 failure_0_1_1 futures_0_1_21 hyper_0_11_27 log_0_4_1 md5_0_3_7 pq_sys_0_4_4 r2d2_0_8_2 rand_0_4_2 reqwest_0_8_5 serde_1_0_55 serde_derive_1_0_55 serde_json_1_0_17 tera_0_11_7 tokio_0_1_6 tokio_timer_0_2_3 url_1_7_0 url_serde_0_2_0 ]); + dependencies = mapFeatures features ([ actix_0_5_7 actix_web_0_6_7 chrono_0_4_2 comrak_0_2_12 diesel_1_2_2 env_logger_0_5_10 failure_0_1_1 futures_0_1_21 hyper_0_11_27 log_0_4_1 md5_0_3_7 mime_guess_2_0_0_alpha_4 pq_sys_0_4_4 r2d2_0_8_2 rand_0_4_2 reqwest_0_8_5 serde_1_0_56 serde_derive_1_0_56 serde_json_1_0_17 tera_0_11_7 tokio_0_1_6 tokio_timer_0_2_3 url_1_7_0 url_serde_0_2_0 ]); buildDependencies = mapFeatures features ([ pulldown_cmark_0_1_2 ]); }; converse_0_1_0_features = f: updateFeatures f (rec { @@ -2375,20 +2376,21 @@ rec { hyper_0_11_27.default = true; log_0_4_1.default = true; md5_0_3_7.default = true; + mime_guess_2_0_0_alpha_4.default = true; pq_sys_0_4_4.default = true; pulldown_cmark_0_1_2.default = true; r2d2_0_8_2.default = true; rand_0_4_2.default = true; reqwest_0_8_5.default = true; - serde_1_0_55.default = true; - serde_derive_1_0_55.default = true; + serde_1_0_56.default = true; + serde_derive_1_0_56.default = true; serde_json_1_0_17.default = true; tera_0_11_7.default = true; tokio_0_1_6.default = true; tokio_timer_0_2_3.default = true; url_1_7_0.default = true; url_serde_0_2_0.default = true; - }) [ actix_0_5_7_features actix_web_0_6_7_features chrono_0_4_2_features comrak_0_2_12_features diesel_1_2_2_features env_logger_0_5_10_features failure_0_1_1_features futures_0_1_21_features hyper_0_11_27_features log_0_4_1_features md5_0_3_7_features pq_sys_0_4_4_features r2d2_0_8_2_features rand_0_4_2_features reqwest_0_8_5_features serde_1_0_55_features serde_derive_1_0_55_features serde_json_1_0_17_features tera_0_11_7_features tokio_0_1_6_features tokio_timer_0_2_3_features url_1_7_0_features url_serde_0_2_0_features pulldown_cmark_0_1_2_features ]; + }) [ actix_0_5_7_features actix_web_0_6_7_features chrono_0_4_2_features comrak_0_2_12_features diesel_1_2_2_features env_logger_0_5_10_features failure_0_1_1_features futures_0_1_21_features hyper_0_11_27_features log_0_4_1_features md5_0_3_7_features mime_guess_2_0_0_alpha_4_features pq_sys_0_4_4_features r2d2_0_8_2_features rand_0_4_2_features reqwest_0_8_5_features serde_1_0_56_features serde_derive_1_0_56_features serde_json_1_0_17_features tera_0_11_7_features tokio_0_1_6_features tokio_timer_0_2_3_features url_1_7_0_features url_serde_0_2_0_features pulldown_cmark_0_1_2_features ]; cookie_0_10_1 = { features?(cookie_0_10_1_features {}) }: cookie_0_10_1_ { dependencies = mapFeatures features ([ time_0_1_40 ] ++ (if features.cookie_0_10_1."base64" or false then [ base64_0_6_0 ] else []) @@ -3985,7 +3987,7 @@ rec { winapi_0_3_4.winerror = true; }) [ winapi_0_3_4_features ]; reqwest_0_8_5 = { features?(reqwest_0_8_5_features {}) }: reqwest_0_8_5_ { - dependencies = mapFeatures features ([ bytes_0_4_7 encoding_rs_0_7_2 futures_0_1_21 hyper_0_11_27 hyper_tls_0_1_3 libflate_0_1_14 log_0_4_1 mime_guess_2_0_0_alpha_4 native_tls_0_1_5 serde_1_0_55 serde_json_1_0_17 serde_urlencoded_0_5_2 tokio_core_0_1_17 tokio_io_0_1_6 tokio_tls_0_1_4 url_1_7_0 uuid_0_5_1 ]); + dependencies = mapFeatures features ([ bytes_0_4_7 encoding_rs_0_7_2 futures_0_1_21 hyper_0_11_27 hyper_tls_0_1_3 libflate_0_1_14 log_0_4_1 mime_guess_2_0_0_alpha_4 native_tls_0_1_5 serde_1_0_56 serde_json_1_0_17 serde_urlencoded_0_5_2 tokio_core_0_1_17 tokio_io_0_1_6 tokio_tls_0_1_4 url_1_7_0 uuid_0_5_1 ]); features = mkFeatures (features.reqwest_0_8_5 or {}); }; reqwest_0_8_5_features = f: updateFeatures f (rec { @@ -3999,7 +4001,7 @@ rec { mime_guess_2_0_0_alpha_4.default = true; native_tls_0_1_5.default = true; reqwest_0_8_5.default = (f.reqwest_0_8_5.default or true); - serde_1_0_55.default = true; + serde_1_0_56.default = true; serde_json_1_0_17.default = true; serde_urlencoded_0_5_2.default = true; tokio_core_0_1_17.default = true; @@ -4008,7 +4010,7 @@ rec { url_1_7_0.default = true; uuid_0_5_1."v4" = true; uuid_0_5_1.default = true; - }) [ bytes_0_4_7_features encoding_rs_0_7_2_features futures_0_1_21_features hyper_0_11_27_features hyper_tls_0_1_3_features libflate_0_1_14_features log_0_4_1_features mime_guess_2_0_0_alpha_4_features native_tls_0_1_5_features serde_1_0_55_features serde_json_1_0_17_features serde_urlencoded_0_5_2_features tokio_core_0_1_17_features tokio_io_0_1_6_features tokio_tls_0_1_4_features url_1_7_0_features uuid_0_5_1_features ]; + }) [ bytes_0_4_7_features encoding_rs_0_7_2_features futures_0_1_21_features hyper_0_11_27_features hyper_tls_0_1_3_features libflate_0_1_14_features log_0_4_1_features mime_guess_2_0_0_alpha_4_features native_tls_0_1_5_features serde_1_0_56_features serde_json_1_0_17_features serde_urlencoded_0_5_2_features tokio_core_0_1_17_features tokio_io_0_1_6_features tokio_tls_0_1_4_features url_1_7_0_features uuid_0_5_1_features ]; resolv_conf_0_6_0 = { features?(resolv_conf_0_6_0_features {}) }: resolv_conf_0_6_0_ { dependencies = mapFeatures features ([ quick_error_1_2_1 ] ++ (if features.resolv_conf_0_6_0.hostname or false then [ hostname_0_1_4 ] else [])); @@ -4179,7 +4181,7 @@ rec { }) [ core_foundation_sys_0_2_3_features libc_0_2_40_features ]; semver_0_9_0 = { features?(semver_0_9_0_features {}) }: semver_0_9_0_ { dependencies = mapFeatures features ([ semver_parser_0_7_0 ] - ++ (if features.semver_0_9_0.serde or false then [ serde_1_0_55 ] else [])); + ++ (if features.semver_0_9_0.serde or false then [ serde_1_0_56 ] else [])); features = mkFeatures (features.semver_0_9_0 or {}); }; semver_0_9_0_features = f: updateFeatures f (rec { @@ -4189,66 +4191,66 @@ rec { (f.semver_0_9_0.ci or false) || (semver_0_9_0.ci or false); semver_parser_0_7_0.default = true; - serde_1_0_55.default = true; - }) [ semver_parser_0_7_0_features serde_1_0_55_features ]; + serde_1_0_56.default = true; + }) [ semver_parser_0_7_0_features serde_1_0_56_features ]; semver_parser_0_7_0 = { features?(semver_parser_0_7_0_features {}) }: semver_parser_0_7_0_ {}; semver_parser_0_7_0_features = f: updateFeatures f (rec { semver_parser_0_7_0.default = (f.semver_parser_0_7_0.default or true); }) []; - serde_1_0_55 = { features?(serde_1_0_55_features {}) }: serde_1_0_55_ { + serde_1_0_56 = { features?(serde_1_0_56_features {}) }: serde_1_0_56_ { dependencies = mapFeatures features ([]); - features = mkFeatures (features.serde_1_0_55 or {}); + features = mkFeatures (features.serde_1_0_56 or {}); }; - serde_1_0_55_features = f: updateFeatures f (rec { - serde_1_0_55.default = (f.serde_1_0_55.default or true); - serde_1_0_55.serde_derive = - (f.serde_1_0_55.serde_derive or false) || - (f.serde_1_0_55.derive or false) || - (serde_1_0_55.derive or false); - serde_1_0_55.std = - (f.serde_1_0_55.std or false) || - (f.serde_1_0_55.default or false) || - (serde_1_0_55.default or false); - serde_1_0_55.unstable = - (f.serde_1_0_55.unstable or false) || - (f.serde_1_0_55.alloc or false) || - (serde_1_0_55.alloc or false); + serde_1_0_56_features = f: updateFeatures f (rec { + serde_1_0_56.default = (f.serde_1_0_56.default or true); + serde_1_0_56.serde_derive = + (f.serde_1_0_56.serde_derive or false) || + (f.serde_1_0_56.derive or false) || + (serde_1_0_56.derive or false); + serde_1_0_56.std = + (f.serde_1_0_56.std or false) || + (f.serde_1_0_56.default or false) || + (serde_1_0_56.default or false); + serde_1_0_56.unstable = + (f.serde_1_0_56.unstable or false) || + (f.serde_1_0_56.alloc or false) || + (serde_1_0_56.alloc or false); }) []; - serde_derive_1_0_55 = { features?(serde_derive_1_0_55_features {}) }: serde_derive_1_0_55_ { + serde_derive_1_0_56 = { features?(serde_derive_1_0_56_features {}) }: serde_derive_1_0_56_ { dependencies = mapFeatures features ([ proc_macro2_0_3_8 quote_0_5_2 syn_0_13_10 ]); - features = mkFeatures (features.serde_derive_1_0_55 or {}); + features = mkFeatures (features.serde_derive_1_0_56 or {}); }; - serde_derive_1_0_55_features = f: updateFeatures f (rec { + serde_derive_1_0_56_features = f: updateFeatures f (rec { proc_macro2_0_3_8.default = true; quote_0_5_2.default = true; - serde_derive_1_0_55.default = (f.serde_derive_1_0_55.default or true); + serde_derive_1_0_56.default = (f.serde_derive_1_0_56.default or true); syn_0_13_10.default = true; syn_0_13_10.visit = true; }) [ proc_macro2_0_3_8_features quote_0_5_2_features syn_0_13_10_features ]; serde_json_1_0_17 = { features?(serde_json_1_0_17_features {}) }: serde_json_1_0_17_ { - dependencies = mapFeatures features ([ dtoa_0_4_2 itoa_0_4_1 serde_1_0_55 ]); + dependencies = mapFeatures features ([ dtoa_0_4_2 itoa_0_4_1 serde_1_0_56 ]); features = mkFeatures (features.serde_json_1_0_17 or {}); }; serde_json_1_0_17_features = f: updateFeatures f (rec { dtoa_0_4_2.default = true; itoa_0_4_1.default = true; - serde_1_0_55.default = true; + serde_1_0_56.default = true; serde_json_1_0_17."linked-hash-map" = (f.serde_json_1_0_17."linked-hash-map" or false) || (f.serde_json_1_0_17.preserve_order or false) || (serde_json_1_0_17.preserve_order or false); serde_json_1_0_17.default = (f.serde_json_1_0_17.default or true); - }) [ dtoa_0_4_2_features itoa_0_4_1_features serde_1_0_55_features ]; + }) [ dtoa_0_4_2_features itoa_0_4_1_features serde_1_0_56_features ]; serde_urlencoded_0_5_2 = { features?(serde_urlencoded_0_5_2_features {}) }: serde_urlencoded_0_5_2_ { - dependencies = mapFeatures features ([ dtoa_0_4_2 itoa_0_4_1 serde_1_0_55 url_1_7_0 ]); + dependencies = mapFeatures features ([ dtoa_0_4_2 itoa_0_4_1 serde_1_0_56 url_1_7_0 ]); }; serde_urlencoded_0_5_2_features = f: updateFeatures f (rec { dtoa_0_4_2.default = true; itoa_0_4_1.default = true; - serde_1_0_55.default = true; + serde_1_0_56.default = true; serde_urlencoded_0_5_2.default = (f.serde_urlencoded_0_5_2.default or true); url_1_7_0.default = true; - }) [ dtoa_0_4_2_features itoa_0_4_1_features serde_1_0_55_features url_1_7_0_features ]; + }) [ dtoa_0_4_2_features itoa_0_4_1_features serde_1_0_56_features url_1_7_0_features ]; sha1_0_6_0 = { features?(sha1_0_6_0_features {}) }: sha1_0_6_0_ { dependencies = mapFeatures features ([]); features = mkFeatures (features.sha1_0_6_0 or {}); @@ -4477,7 +4479,7 @@ rec { tempdir_0_3_7.default = (f.tempdir_0_3_7.default or true); }) [ rand_0_4_2_features remove_dir_all_0_5_1_features ]; tera_0_11_7 = { features?(tera_0_11_7_features {}) }: tera_0_11_7_ { - dependencies = mapFeatures features ([ chrono_0_4_2 error_chain_0_11_0 glob_0_2_11 humansize_1_1_0 lazy_static_1_0_0 pest_1_0_6 pest_derive_1_0_7 regex_0_2_11 serde_1_0_55 serde_json_1_0_17 slug_0_1_3 url_1_7_0 ]); + dependencies = mapFeatures features ([ chrono_0_4_2 error_chain_0_11_0 glob_0_2_11 humansize_1_1_0 lazy_static_1_0_0 pest_1_0_6 pest_derive_1_0_7 regex_0_2_11 serde_1_0_56 serde_json_1_0_17 slug_0_1_3 url_1_7_0 ]); }; tera_0_11_7_features = f: updateFeatures f (rec { chrono_0_4_2.default = true; @@ -4488,12 +4490,12 @@ rec { pest_1_0_6.default = true; pest_derive_1_0_7.default = true; regex_0_2_11.default = true; - serde_1_0_55.default = true; + serde_1_0_56.default = true; serde_json_1_0_17.default = true; slug_0_1_3.default = true; tera_0_11_7.default = (f.tera_0_11_7.default or true); url_1_7_0.default = true; - }) [ chrono_0_4_2_features error_chain_0_11_0_features glob_0_2_11_features humansize_1_1_0_features lazy_static_1_0_0_features pest_1_0_6_features pest_derive_1_0_7_features regex_0_2_11_features serde_1_0_55_features serde_json_1_0_17_features slug_0_1_3_features url_1_7_0_features ]; + }) [ chrono_0_4_2_features error_chain_0_11_0_features glob_0_2_11_features humansize_1_1_0_features lazy_static_1_0_0_features pest_1_0_6_features pest_derive_1_0_7_features regex_0_2_11_features serde_1_0_56_features serde_json_1_0_17_features slug_0_1_3_features url_1_7_0_features ]; termcolor_0_3_6 = { features?(termcolor_0_3_6_features {}) }: termcolor_0_3_6_ { dependencies = (if kernel == "windows" then mapFeatures features ([ wincolor_0_1_6 ]) else []); }; @@ -4965,13 +4967,13 @@ rec { (url_1_7_0.heap_size or false); }) [ encoding_0_2_33_features idna_0_1_4_features matches_0_1_6_features percent_encoding_1_0_1_features ]; url_serde_0_2_0 = { features?(url_serde_0_2_0_features {}) }: url_serde_0_2_0_ { - dependencies = mapFeatures features ([ serde_1_0_55 url_1_7_0 ]); + dependencies = mapFeatures features ([ serde_1_0_56 url_1_7_0 ]); }; url_serde_0_2_0_features = f: updateFeatures f (rec { - serde_1_0_55.default = true; + serde_1_0_56.default = true; url_1_7_0.default = true; url_serde_0_2_0.default = (f.url_serde_0_2_0.default or true); - }) [ serde_1_0_55_features url_1_7_0_features ]; + }) [ serde_1_0_56_features url_1_7_0_features ]; utf8_ranges_1_0_0 = { features?(utf8_ranges_1_0_0_features {}) }: utf8_ranges_1_0_0_ {}; utf8_ranges_1_0_0_features = f: updateFeatures f (rec { utf8_ranges_1_0_0.default = (f.utf8_ranges_1_0_0.default or true); diff --git a/Cargo.toml b/Cargo.toml index cf29e52d3..76bf1a060 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,27 +7,28 @@ license = "AGPL-3.0-or-later" [dependencies] actix = "0.5" actix-web = "0.6" -env_logger = "0.5" -diesel = { version = "1.2", features = ["postgres", "chrono", "r2d2"]} chrono = { version = "0.4", features = ["serde"] } -log = "0.4" -r2d2 = "0.8" +comrak = "0.2" +diesel = { version = "1.2", features = ["postgres", "chrono", "r2d2"]} +env_logger = "0.5" +failure = "0.1" futures = "0.1" -tera = "0.11" +hyper = "0.11" +log = "0.4" +md5 = "0.3.7" +mime_guess = "2.0.0-alpha" +pq-sys = "=0.4.4" +r2d2 = "0.8" +rand = "0.4" +reqwest = "0.8" serde = "1.0" serde_derive = "1.0" -failure = "0.1" -url = "1.7" -url_serde = "0.2" -reqwest = "0.8" serde_json = "1.0" -hyper = "0.11" -rand = "0.4" -comrak = "0.2" -md5 = "0.3.7" +tera = "0.11" tokio = "0.1" tokio-timer = "0.2" -pq-sys = "=0.4.4" +url = "1.7" +url_serde = "0.2" [build-dependencies] pulldown-cmark = "0.1" From d0d3777eaab9c1be13e68db3171040288ad94dd6 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sat, 19 May 2018 00:52:46 +0200 Subject: [PATCH 139/163] fix(gitattributes): Fix generated derivation file name --- .gitattributes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitattributes b/.gitattributes index 219e4a736..40b467c26 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1 @@ -Carnix.nix linguist-generated=true +Cargo.nix linguist-generated=true From eaf1c46ba8515323c9d86c6fa2daa828f41e791c Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 20 May 2018 14:12:07 +0200 Subject: [PATCH 140/163] feat(templates): Add new MDL based index page --- src/main.rs | 3 +- static/styles.css | 92 +++++++++++++++++++++++++++++++++++++++++ templates/index.html | 98 ++++++++++++++++++++++++++++---------------- 3 files changed, 157 insertions(+), 36 deletions(-) create mode 100644 static/styles.css diff --git a/src/main.rs b/src/main.rs index 9ca3c8552..4db4ab5cc 100644 --- a/src/main.rs +++ b/src/main.rs @@ -203,7 +203,8 @@ fn start_http_server(base_url: String, .resource("/oidc/login", |r| r.method(Method::GET).with(login)) .resource("/oidc/callback", |r| r.method(Method::POST).with3(callback)) .static_file("/static/highlight.css", include_bytes!("../static/highlight.css")) - .static_file("/static/highlight.js", include_bytes!("../static/highlight.js")); + .static_file("/static/highlight.js", include_bytes!("../static/highlight.js")) + .static_file("/static/styles.css", include_bytes!("../static/styles.css")); if require_login { app.middleware(RequireLogin) diff --git a/static/styles.css b/static/styles.css new file mode 100644 index 000000000..9e0ea7c69 --- /dev/null +++ b/static/styles.css @@ -0,0 +1,92 @@ +* :not(.material-icons) { + font-family: 'Ubuntu', sans-serif !important; +} + +.cvs-title, .thread-link { + text-decoration: none; +} + +.thread-list-item:hover { + background-color: #f5f5f5; +} + +.thread-link { + padding: 5px; + padding-top: 10px; +} + +.thread-title { + padding-right: 15vw; +} + +.search-field { + margin-right: 15px; + max-width: 200px; +} + +.thread-author { + font-style: italic; + font-size: 85%; +} + +@media only screen and (min-width: 768px) { + .converse main { + padding-top: 10px; + padding-bottom: 10px; + } +} + +.mdl-list__item-text-body { + max-height: 40px; +} + +.mdl-list__item-primary-content:after { + border-bottom: 1px solid rgba(0,0,0,.13); + content:""; + position: absolute; + width: 80%; +} + +html, body { + margin: 0; + padding: 0; +} +.converse .mdl-layout__header-row { + padding-left: 40px; +} +.converse .mdl-layout.is-small-screen .mdl-layout__header-row h3 { + font-size: inherit; +} +.converse .mdl-card { + height: auto; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-flex-direction: column; + -ms-flex-direction: column; + flex-direction: column; +} +.converse .mdl-card > * { + height: auto; +} +.converse .mdl-card .mdl-card__supporting-text { + margin: 40px; + -webkit-flex-grow: 1; + -ms-flex-positive: 1; + flex-grow: 1; + padding: 0; + color: inherit; + width: calc(100% - 80px); +} +.mdl-demo.converse .mdl-card__supporting-text h4 { + margin-top: 0; + margin-bottom: 20px; +} +.converse .mdl-card__actions { + margin: 0; + padding: 4px 40px; + color: inherit; +} +.converse section.section--center { + max-width: 860px; +} diff --git a/templates/index.html b/templates/index.html index 024d0aef5..12369d379 100644 --- a/templates/index.html +++ b/templates/index.html @@ -2,44 +2,72 @@ - - - - - Converse Index + + Converse: Index + + + + + + + + + - -
    - -
    -
    -
    -
    - + From 0febe676b223e47d80bfb3dec183c0a40842e4f3 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Mon, 21 May 2018 15:09:38 +0200 Subject: [PATCH 141/163] fix(static): Let monospaced fonts be monospaced. --- static/styles.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/styles.css b/static/styles.css index 9e0ea7c69..520159293 100644 --- a/static/styles.css +++ b/static/styles.css @@ -1,4 +1,4 @@ -* :not(.material-icons) { +* :not(.material-icons) :not(code) { font-family: 'Ubuntu', sans-serif !important; } From dbd207c452124a8fb5cb57d1a50ce513dbc6a4ea Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Mon, 21 May 2018 15:10:13 +0200 Subject: [PATCH 142/163] feat(templates): Add new MDL-based post editing page --- templates/post.html | 157 ++++++++++++++++++++++++-------------------- 1 file changed, 85 insertions(+), 72 deletions(-) diff --git a/templates/post.html b/templates/post.html index bdc725c94..db6b00959 100644 --- a/templates/post.html +++ b/templates/post.html @@ -14,90 +14,103 @@ - - - - - Converse Index + + Converse: Post + + + + + + + + + - -
    - -
    -
    -
    - {%- for alert in alerts %} -
    {{ alert }}
    - {% endfor -%} - - {%- if mode == "NewThread" %} -
    Create a new thread
    - {% elif mode == "PostReply" %} -
    Respond to thread '{{ title }}'
    - {% elif mode == "EditPost" %} -
    Edit your post
    - {% endif -%} -
    -
    - {% if mode == "NewThread" %} -
    - {% elif mode == "PostReply" %} - - {% elif mode == "EditPost" %} - - {% endif %} - {% if mode == "PostReply" %} - - {% elif mode == "EditPost" %} - - {% endif %} - + +
    + + + +
    +
    +
    +
    {% if mode == "NewThread" %} -
    -
    - Title: -
    - -
    + + {% elif mode == "PostReply" %} + + {% elif mode == "EditPost" %} + {% endif %} + {% if mode == "PostReply" %} + + {% elif mode == "EditPost" %} + + {% endif %} +
    + {%- for alert in alerts %} + + {{ alert }}  + + {% endfor -%} -
    -
    -
    - Post: + {% if mode == "NewThread" %} +
    + + +
    + {% endif %} +
    + +
    -
    -
    -

    - Remember that you can use Markdown when - writing your posts: -

    -

    *italic text*

    -

    **bold text**

    -

    ~strikethrough text~

    -

    [link text](https://some.link.com/)

    -

    ![image text](https://foo.com/thing.jpg)

    -

    Use * or - to enumerate lists.

    -

    See Markdown documentation for more information!

    +
    +
    + +
    +
    +
    + Quick Markdown primer:
    - - +
    +

    + Remember that you can use Markdown when + writing your posts: +

    +

    *italic text*

    +

    **bold text**

    +

    ~strikethrough text~

    +

    [link text](https://some.link.com/)

    +

    ![image text](https://foo.com/thing.jpg)

    +

    Use * or - to enumerate lists.

    +

    See Markdown documentation for more information!

    +
    +
    +
    +
    -
    + From 92591142bd056a7f146647ab88cb1c3107b7467f Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Mon, 21 May 2018 21:28:19 +0200 Subject: [PATCH 143/163] fix(static): Fix non-display of material icons --- static/styles.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/styles.css b/static/styles.css index 520159293..27f05be72 100644 --- a/static/styles.css +++ b/static/styles.css @@ -1,4 +1,4 @@ -* :not(.material-icons) :not(code) { +* :not(.material-icons, code) { font-family: 'Ubuntu', sans-serif !important; } From fa32b9f70050901b1be11e649ed28bba047132ce Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Mon, 21 May 2018 23:16:49 +0200 Subject: [PATCH 144/163] fix(static): Set monospaced fonts appropriately I'm not web enough to make the `not`-selector thing work. --- static/styles.css | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/static/styles.css b/static/styles.css index 27f05be72..510a25ded 100644 --- a/static/styles.css +++ b/static/styles.css @@ -1,5 +1,9 @@ -* :not(.material-icons, code) { - font-family: 'Ubuntu', sans-serif !important; +* :not(.material-icons) { + font-family: 'Ubuntu', sans-serif; +} + +code, pre, code * { + font-family: 'Ubuntu Mono', monospace !important; } .cvs-title, .thread-link { From 0bfc8fbf8b652d79ce43df2d1a492dfe539d967e Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Mon, 21 May 2018 23:17:14 +0200 Subject: [PATCH 145/163] fix(static): Attach thread index divider to correct element --- static/styles.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/styles.css b/static/styles.css index 510a25ded..929e61b60 100644 --- a/static/styles.css +++ b/static/styles.css @@ -44,7 +44,7 @@ code, pre, code * { max-height: 40px; } -.mdl-list__item-primary-content:after { +.thread-divider:after { border-bottom: 1px solid rgba(0,0,0,.13); content:""; position: absolute; From fb9ea437e9fd47d2b4cb432ad6fc576d4a08614f Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Mon, 21 May 2018 23:17:34 +0200 Subject: [PATCH 146/163] feat(templates): Add new thread view with MDL design --- static/styles.css | 37 +++++++++ templates/index.html | 1 - templates/thread.html | 171 ++++++++++++++++++++++++++---------------- 3 files changed, 142 insertions(+), 67 deletions(-) diff --git a/static/styles.css b/static/styles.css index 929e61b60..66b3200fd 100644 --- a/static/styles.css +++ b/static/styles.css @@ -94,3 +94,40 @@ html, body { .converse section.section--center { max-width: 860px; } +.converse .mdl-card .avatar-card { + margin-left: auto; + margin-right: auto; + margin-top: 30px; +} +.mobile-avatar { + width: 30px; + border-radius: 8px; + margin-bottom: 5px; +} +.mobile-date { + text-decoration: none; +} +.converse .mdl-card .post-box { + margin: 20px; +} +.converse .mdl-card .post-actions { + display: flex; + padding-right: 5px; +} +.post-action { + margin: 5px; + margin-bottom: 10px; +} +.converse section.post-section { + padding: 5px; +} +.post-date { + text-decoration: none; + font-size: 80%; +} +.mdl-layout__content { + flex: 1 0 auto; +} +.converse .reply-box { + padding-top: 10px; +} diff --git a/templates/index.html b/templates/index.html index 12369d379..c10493899 100644 --- a/templates/index.html +++ b/templates/index.html @@ -44,7 +44,6 @@ {% for thread in threads -%}
  • - + +
  • +
    +
    + {% for post in posts -%} +
    + {# card to display avatars on desktop #} +
    +
    + +
    + {{ post.author_name }} +
    +
    + {# card for main post content #} +
    + {# card section for displaying user & post information on mobile #} +
    + +  {{ post.author_name }} posted on + {{ post.posted }} +
    + {# card section to display post date on desktop #} + + {# card section for actual post content #} +
    {{ post.body | safe }}
    + {# card section for post actions #} +
    +
    + + {#%- TODO if post.editable %#} + + {#% endif -%#} + + {% if post.editable %} + + edit + Edit post + + {% endif %} + +
    +
    +
    + {% endfor %} + + {# section for writing a response on the same page #} +
    +
    +
    + + +
    +
    + + +
    + +
    +
    +
    +
    +
    +
    - - {% for post in posts -%} -
    -
    - - {{ post.author_name }} -
    - -
    {{ post.body | safe }}
    - -
    - - {{ post.posted }} - - -
    - {%- if post.editable %} - Edit - {% endif -%} - Quote -
    -
    -
    - {%- endfor %} - -
    -
    - - -
    - -
    - -
    -
    -
    -
    -
    -
    - + + From ef15752b590c1db56311bb9fae509c087ee3fbd5 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Mon, 21 May 2018 23:18:33 +0200 Subject: [PATCH 147/163] chore(build): Don't run Travis build in containers According to a Github thread[1] this causes a significant speedup. [1]: https://github.com/travis-ci/travis-ci/issues/6604#issuecomment-357486807 --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index d8cc8efa4..2a8d1543c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1 +1,2 @@ language: nix +sudo: true From ff697ff7925066dcad27f383e0cd1a76d2342b80 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Mon, 21 May 2018 23:50:02 +0200 Subject: [PATCH 148/163] feat(templates): Add new MDL-themed search result view --- static/styles.css | 6 +++ templates/search.html | 106 +++++++++++++++++++++++++----------------- 2 files changed, 69 insertions(+), 43 deletions(-) diff --git a/static/styles.css b/static/styles.css index 66b3200fd..b2a16b7a6 100644 --- a/static/styles.css +++ b/static/styles.css @@ -131,3 +131,9 @@ html, body { .converse .reply-box { padding-top: 10px; } +.search-result { + margin: 8px; +} +.search-result .mdl-button { + margin: 3px; +} diff --git a/templates/search.html b/templates/search.html index 35193fb61..0ff49e508 100644 --- a/templates/search.html +++ b/templates/search.html @@ -1,47 +1,67 @@ - - - - - - - Converse Index - - -
    - -
    -
    -
    -
    -

    Search results for '{{ query }}':

    + + + + Converse: Search results + + + + + + + + + + + +
    +
    +
    + Converse +
    +
    +
    + + + +
    +
    +   + + + +
    +
    +
    +
    +
    +

    Search results for '{{ query }}':

    +
    + {% for result in results %} +
    +
    +

    Posted in '{{ result.title }}' by {{ result.author }}:

    +

    {{ result.headline | safe }}

    +
    +
    +
    + + arrow_forward + +
    +
    + {% endfor %} +
    +
    +
    -
    - -
    - + + From d90dc2d77fd813257e24a45456cb6b10791999e6 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Tue, 22 May 2018 10:17:34 +0200 Subject: [PATCH 149/163] fix(templates): Fix layout of user info on desktop view --- static/styles.css | 10 ++++++++-- templates/thread.html | 5 ++--- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/static/styles.css b/static/styles.css index b2a16b7a6..b57fd899e 100644 --- a/static/styles.css +++ b/static/styles.css @@ -95,10 +95,16 @@ html, body { max-width: 860px; } .converse .mdl-card .avatar-card { - margin-left: auto; - margin-right: auto; + display: flex; + flex-direction: column; + text-align: center; margin-top: 30px; } +.desktop-avatar { + width: 80px; + margin-right: auto; + margin-left: auto; +} .mobile-avatar { width: 30px; border-radius: 8px; diff --git a/templates/thread.html b/templates/thread.html index c3902a456..bd6d031bc 100644 --- a/templates/thread.html +++ b/templates/thread.html @@ -38,9 +38,8 @@ {# card to display avatars on desktop #}
    - -
    - {{ post.author_name }} + +

    {{ post.author_name }}

    {# card for main post content #} From f5badb97d333ffbc2d294cbff3afda0bd4879b56 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Tue, 22 May 2018 18:35:35 +0200 Subject: [PATCH 150/163] refactor(templates): Use Askama for index template --- src/errors.rs | 12 ++++++++++++ src/main.rs | 10 ++++++---- src/render.rs | 34 ++++++++++++++++++++++------------ templates/index.html | 10 +++++----- 4 files changed, 45 insertions(+), 21 deletions(-) diff --git a/src/errors.rs b/src/errors.rs index c4c2be198..05642d0a8 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -28,6 +28,7 @@ use actix_web::http::StatusCode; // Modules with foreign errors: use actix; use actix_web; +use askama; use diesel; use r2d2; use reqwest; @@ -50,6 +51,9 @@ pub enum ConverseError { #[fail(display = "a template rendering error occured: {}", reason)] Template { reason: String }, + #[fail(display = "a template rendering error occured: {}", reason)] + Askama { reason: String }, + #[fail(display = "error occured during request handling: {}", error)] ActixWeb { error: actix_web::Error }, @@ -88,6 +92,14 @@ impl From for ConverseError { } } +impl From for ConverseError { + fn from(error: askama::Error) -> ConverseError { + ConverseError::Askama { + reason: format!("{}", error), + } + } +} + impl From for ConverseError { fn from(error: actix::MailboxError) -> ConverseError { ConverseError::Actix { error: Box::new(error) } diff --git a/src/main.rs b/src/main.rs index 4db4ab5cc..c68b75229 100644 --- a/src/main.rs +++ b/src/main.rs @@ -16,18 +16,21 @@ // License along with this program. If not, see // . +#[macro_use] +extern crate askama; + #[macro_use] extern crate diesel; +#[macro_use] +extern crate failure; + #[macro_use] extern crate log; #[macro_use] extern crate serde_derive; -#[macro_use] -extern crate failure; - extern crate actix; extern crate actix_web; extern crate chrono; @@ -137,7 +140,6 @@ fn start_renderer() -> Addr { // location-dependent. // Drawback is that template changes require recompilation ... tera.add_raw_templates(vec![ - ("index.html", include_str!("../templates/index.html")), ("post.html", include_str!("../templates/post.html")), ("search.html", include_str!("../templates/search.html")), ("thread.html", include_str!("../templates/thread.html")), diff --git a/src/render.rs b/src/render.rs index 63a89d99e..ff8bd3ab8 100644 --- a/src/render.rs +++ b/src/render.rs @@ -21,10 +21,12 @@ //! them. use actix::prelude::*; +use askama::Template; use errors::*; +use std::fmt; use md5; use models::*; -use tera::{escape_html, Context, Tera}; +use tera::{escape_html, Tera}; use chrono::prelude::{DateTime, Utc}; use comrak::{ComrakOptions, markdown_to_html}; @@ -39,11 +41,11 @@ impl Actor for Renderer { /// Represents a data formatted for human consumption #[derive(Debug, Serialize)] -struct FormattedDate(String); +struct FormattedDate(DateTime); -impl From> for FormattedDate { - fn from(date: DateTime) -> Self { - FormattedDate(format!("{}", date.format("%a %d %B %Y, %R"))) +impl fmt::Display for FormattedDate { + fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { + write!(f, "{}", self.0.format("%a %d %B %Y, %R")) } } @@ -63,6 +65,12 @@ struct IndexThread { post_author: String, } +#[derive(Template)] +#[template(path = "index.html")] +struct IndexPageTemplate { + threads: Vec, +} + impl Handler for Renderer { type Result = Result; @@ -71,17 +79,19 @@ impl Handler for Renderer { .into_iter() .map(|thread| IndexThread { id: thread.thread_id, - title: escape_html(&thread.title), + title: thread.title, // escape_html(&thread.title), sticky: thread.sticky, - posted: thread.posted.into(), + posted: FormattedDate(thread.posted), author_name: thread.thread_author, post_author: thread.post_author, }) .collect(); - let mut ctx = Context::new(); - ctx.add("threads", &threads); - Ok(self.tera.render("index.html", &ctx)?) + let tpl = IndexPageTemplate { + threads + }; + + tpl.render().map_err(|e| e.into()) } } @@ -98,7 +108,7 @@ message!(ThreadPage, Result); struct RenderablePost { id: i32, body: String, - posted: FormattedDate, + posted: String, // FormattedDate, author_name: String, author_gravatar: String, editable: bool, @@ -127,7 +137,7 @@ fn prepare_thread(comrak: &ComrakOptions, page: ThreadPage) -> RenderableThreadP RenderablePost { id: post.id, body: markdown_to_html(&post.body, comrak), - posted: post.posted.into(), + posted: format!("{}", FormattedDate(post.posted)), // post.posted.into(), author_name: post.author_name.clone(), author_gravatar: md5_hex(post.author_email.as_bytes()), editable, diff --git a/templates/index.html b/templates/index.html index c10493899..bff734bda 100644 --- a/templates/index.html +++ b/templates/index.html @@ -41,21 +41,21 @@
    From 94d5e02bb3672db49e4fa2590eab8b7e58440f61 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Tue, 22 May 2018 18:35:49 +0200 Subject: [PATCH 151/163] chore(cargo): Add dependency on Askama --- Cargo.lock | 83 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ Cargo.toml | 2 ++ 2 files changed, 85 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index 0fede8622..1a7478076 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -111,6 +111,63 @@ dependencies = [ "nodrop 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)", ] +[[package]] +name = "askama" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "askama_derive 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)", + "askama_shared 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "askama" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "askama_derive 0.6.4 (registry+https://github.com/rust-lang/crates.io-index)", + "askama_shared 0.6.2 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "askama_derive" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "askama_shared 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)", + "syn 0.11.11 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "askama_derive" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "askama_shared 0.6.2 (registry+https://github.com/rust-lang/crates.io-index)", + "nom 3.2.1 (registry+https://github.com/rust-lang/crates.io-index)", + "quote 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)", + "syn 0.13.10 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "askama_shared" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "error-chain 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)", + "nom 3.2.1 (registry+https://github.com/rust-lang/crates.io-index)", + "quote 0.3.15 (registry+https://github.com/rust-lang/crates.io-index)", + "syn 0.11.11 (registry+https://github.com/rust-lang/crates.io-index)", +] + +[[package]] +name = "askama_shared" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "error-chain 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)", +] + [[package]] name = "atty" version = "0.2.10" @@ -295,6 +352,8 @@ version = "0.1.0" dependencies = [ "actix 0.5.7 (registry+https://github.com/rust-lang/crates.io-index)", "actix-web 0.6.7 (registry+https://github.com/rust-lang/crates.io-index)", + "askama 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)", + "askama 0.6.4 (registry+https://github.com/rust-lang/crates.io-index)", "chrono 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", "comrak 0.2.12 (registry+https://github.com/rust-lang/crates.io-index)", "diesel 1.2.2 (registry+https://github.com/rust-lang/crates.io-index)", @@ -894,6 +953,14 @@ name = "md5" version = "0.3.7" source = "registry+https://github.com/rust-lang/crates.io-index" +[[package]] +name = "memchr" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", +] + [[package]] name = "memchr" version = "2.0.1" @@ -1008,6 +1075,14 @@ name = "nodrop" version = "0.1.12" source = "registry+https://github.com/rust-lang/crates.io-index" +[[package]] +name = "nom" +version = "3.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "memchr 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", +] + [[package]] name = "num-integer" version = "0.1.38" @@ -2135,6 +2210,12 @@ dependencies = [ "checksum ansi_term 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ee49baf6cb617b853aa8d93bf420db2383fab46d314482ca2803b40d5fde979b" "checksum antidote 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "34fde25430d87a9388dadbe6e34d7f72a462c8b43ac8d309b42b0a8505d7e2a5" "checksum arrayvec 0.4.7 (registry+https://github.com/rust-lang/crates.io-index)" = "a1e964f9e24d588183fcb43503abda40d288c8657dfc27311516ce2f05675aef" +"checksum askama 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)" = "f7a512bda67cd1fec46d53a2bf9d8a152230357a1e2c56d6467f9b6b4c5265bb" +"checksum askama 0.6.4 (registry+https://github.com/rust-lang/crates.io-index)" = "a57e2df69b9fdc5ec981be522d8aff87bd90947b68864f30bf34570e6c5b227a" +"checksum askama_derive 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)" = "d832e1c03d4ea2dee7358380d806f5487327b2ca833d1a250a9d8b3b1ce3f5ba" +"checksum askama_derive 0.6.4 (registry+https://github.com/rust-lang/crates.io-index)" = "284fd159afab7796f2d15a442bdba4af7e085f8389196b03115018993202fe4e" +"checksum askama_shared 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)" = "d722d31c71ed727ade159d64aab7019be0df6363338e83c4751ac5af1730c562" +"checksum askama_shared 0.6.2 (registry+https://github.com/rust-lang/crates.io-index)" = "72764966f241ed1143792ec29805df7eec322800b2b402781d86339e66f512b6" "checksum atty 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)" = "2fc4a1aa4c24c0718a250f0681885c1af91419d242f29eb8f2ab28502d80dbd1" "checksum backtrace 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "346d7644f0b5f9bc73082d3b2236b69a05fd35cce0cfa3724e184e6a5c9e2a2f" "checksum backtrace 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)" = "8ea58cd16fd6c9d120b5bcb01d63883ae4cc7ba2aed35c1841b862a3c7ef6639" @@ -2224,6 +2305,7 @@ dependencies = [ "checksum lru-cache 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "4d06ff7ff06f729ce5f4e227876cb88d10bc59cd4ae1e09fbb2bde15c850dc21" "checksum matches 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = "100aabe6b8ff4e4a7e32c1c13523379802df0772b82466207ac25b013f193376" "checksum md5 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)" = "daa1004633f76cdcd5a9d83ffcfe615e30ca7a2a638fcc8b8039a2dac21289d7" +"checksum memchr 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = "148fab2e51b4f1cfc66da2a7c32981d1d3c083a803978268bb11fe4b86925e7a" "checksum memchr 2.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "796fba70e76612589ed2ce7f45282f5af869e0fdd7cc6199fa1aa1f1d591ba9d" "checksum memoffset 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "e163e5baece1a039e71e75b074de17a9b4114982aa109921fc20253bdf91a53c" "checksum memoffset 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "0f9dc261e2b62d7a622bf416ea3c5245cdd5d9a7fcc428c0d06804dfce1775b3" @@ -2236,6 +2318,7 @@ dependencies = [ "checksum native-tls 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "f74dbadc8b43df7864539cedb7bc91345e532fdd913cfdc23ad94f4d2d40fbc0" "checksum net2 0.2.32 (registry+https://github.com/rust-lang/crates.io-index)" = "9044faf1413a1057267be51b5afba8eb1090bd2231c693664aa1db716fe1eae0" "checksum nodrop 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)" = "9a2228dca57108069a5262f2ed8bd2e82496d2e074a06d1ccc7ce1687b6ae0a2" +"checksum nom 3.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "05aec50c70fd288702bcd93284a8444607f3292dbdf2a30de5ea5dcdbe72287b" "checksum num-integer 0.1.38 (registry+https://github.com/rust-lang/crates.io-index)" = "6ac0ea58d64a89d9d6b7688031b3be9358d6c919badcf7fbb0527ccfd891ee45" "checksum num-traits 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)" = "775393e285254d2f5004596d69bb8bc1149754570dcc08cf30cabeba67955e28" "checksum num_cpus 1.8.0 (registry+https://github.com/rust-lang/crates.io-index)" = "c51a3322e4bca9d212ad9a158a02abc6934d005490c054a2778df73a70aa0a30" diff --git a/Cargo.toml b/Cargo.toml index 76bf1a060..0320ba8c3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,6 +7,7 @@ license = "AGPL-3.0-or-later" [dependencies] actix = "0.5" actix-web = "0.6" +askama = "0.6" chrono = { version = "0.4", features = ["serde"] } comrak = "0.2" diesel = { version = "1.2", features = ["postgres", "chrono", "r2d2"]} @@ -32,3 +33,4 @@ url_serde = "0.2" [build-dependencies] pulldown-cmark = "0.1" +askama = "0.5" From 69583b1236fd329cdc223f2d2a52ff313269d1d1 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Tue, 22 May 2018 18:56:22 +0200 Subject: [PATCH 152/163] refactor(templates): Move thread page template to Askama --- src/main.rs | 1 - src/render.rs | 11 ++++++----- templates/index.html | 2 +- templates/thread.html | 24 ++++++++++-------------- 4 files changed, 17 insertions(+), 21 deletions(-) diff --git a/src/main.rs b/src/main.rs index c68b75229..3c533515b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -142,7 +142,6 @@ fn start_renderer() -> Addr { tera.add_raw_templates(vec![ ("post.html", include_str!("../templates/post.html")), ("search.html", include_str!("../templates/search.html")), - ("thread.html", include_str!("../templates/thread.html")), ]).expect("Could not compile templates"); let comrak = comrak::ComrakOptions{ diff --git a/src/render.rs b/src/render.rs index ff8bd3ab8..cfae2ad81 100644 --- a/src/render.rs +++ b/src/render.rs @@ -108,7 +108,7 @@ message!(ThreadPage, Result); struct RenderablePost { id: i32, body: String, - posted: String, // FormattedDate, + posted: FormattedDate, author_name: String, author_gravatar: String, editable: bool, @@ -116,7 +116,8 @@ struct RenderablePost { /// This structure represents the transformed thread data with /// Markdown rendering and other changes applied. -#[derive(Debug, Serialize)] +#[derive(Template)] +#[template(path = "thread.html")] struct RenderableThreadPage { id: i32, title: String, @@ -137,7 +138,7 @@ fn prepare_thread(comrak: &ComrakOptions, page: ThreadPage) -> RenderableThreadP RenderablePost { id: post.id, body: markdown_to_html(&post.body, comrak), - posted: format!("{}", FormattedDate(post.posted)), // post.posted.into(), + posted: FormattedDate(post.posted), author_name: post.author_name.clone(), author_gravatar: md5_hex(post.author_email.as_bytes()), editable, @@ -147,7 +148,7 @@ fn prepare_thread(comrak: &ComrakOptions, page: ThreadPage) -> RenderableThreadP RenderableThreadPage { posts, id: page.thread.id, - title: escape_html(&page.thread.title), + title: page.thread.title, } } @@ -156,7 +157,7 @@ impl Handler for Renderer { fn handle(&mut self, msg: ThreadPage, _: &mut Self::Context) -> Self::Result { let renderable = prepare_thread(&self.comrak, msg); - Ok(self.tera.render("thread.html", &renderable)?) + renderable.render().map_err(|e| e.into()) } } diff --git a/templates/index.html b/templates/index.html index bff734bda..7151c3390 100644 --- a/templates/index.html +++ b/templates/index.html @@ -24,7 +24,7 @@
    - +
      diff --git a/templates/thread.html b/templates/thread.html index bd6d031bc..28ccd79d2 100644 --- a/templates/thread.html +++ b/templates/thread.html @@ -3,7 +3,7 @@ - Converse: {{ title | safe }} + Converse: {{ title }} @@ -23,7 +23,7 @@
    - Converse: {{ title | safe }} + Converse: {{ title }}
    {{ thread.title }} by {{ thread.author_name }} diff --git a/templates/thread.html b/templates/thread.html index 28ccd79d2..295cf8fcd 100644 --- a/templates/thread.html +++ b/templates/thread.html @@ -78,6 +78,11 @@
    + {% if closed %} +
    + This thread is closed and can no longer be responded to. +
    + {% else %} @@ -91,6 +96,7 @@
    + {% endif %}
    From c2a551146d04e5e69192cdf3799684f2f9be5104 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Fri, 25 May 2018 18:46:44 +0200 Subject: [PATCH 160/163] fix(build): Add Askama build script --- build.rs | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 build.rs diff --git a/build.rs b/build.rs new file mode 100644 index 000000000..89e3e6b1a --- /dev/null +++ b/build.rs @@ -0,0 +1,5 @@ +extern crate askama; + +fn main() { + askama::rerun_if_templates_changed(); +} From a14ece6af3a2d0f03af072c337ef50e311a79066 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sat, 26 May 2018 10:53:31 +0200 Subject: [PATCH 161/163] feat(errors): Introduce error variant for thread closing (other minor change: log the user ID when invalid post editing requests were constructed) --- src/errors.rs | 16 ++++++++++++---- src/handlers.rs | 10 ++++++++-- 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/src/errors.rs b/src/errors.rs index 3f00a2976..c73379f0c 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -56,8 +56,11 @@ pub enum ConverseError { #[fail(display = "error occured running timer: {}", error)] Timer { error: tokio_timer::Error }, - #[fail(display = "user does not have permission to edit post {}", id)] - PostEditForbidden { id: i32 }, + #[fail(display = "user {} does not have permission to edit post {}", user, id)] + PostEditForbidden { user: i32, id: i32 }, + + #[fail(display = "thread {} is closed and can not be responded to", id)] + ThreadClosed { id: i32 }, // This variant is used as a catch-all for wrapping // actix-web-compatible response errors, such as the errors it @@ -119,7 +122,12 @@ impl From for ConverseError { impl ResponseError for ConverseError { fn error_response(&self) -> HttpResponse { // Everything is mapped to internal server errors for now. - HttpResponse::build(StatusCode::INTERNAL_SERVER_ERROR) - .body(format!("An error occured: {}", self)) + match *self { + ConverseError::ThreadClosed { id } => HttpResponse::SeeOther() + .header("Location", format!("/thread/{}#edit-post", id)) + .finish(), + _ => HttpResponse::build(StatusCode::INTERNAL_SERVER_ERROR) + .body(format!("An error occured: {}", self)) + } } } diff --git a/src/handlers.rs b/src/handlers.rs index e5f21849f..1c3d020e7 100644 --- a/src/handlers.rs +++ b/src/handlers.rs @@ -207,7 +207,10 @@ pub fn edit_form(state: State, return Ok(post); } - Err(ConverseError::PostEditForbidden { id: post.id }) + Err(ConverseError::PostEditForbidden { + user: user_id, + id: post.id, + }) }) .and_then(move |post| { let edit_msg = EditPostPage { @@ -236,7 +239,10 @@ pub fn edit_post(state: State, if user_id != 1 && post.user_id == user_id { Ok(()) } else { - Err(ConverseError::PostEditForbidden { id: post.id }) + Err(ConverseError::PostEditForbidden { + user: user_id, + id: post.id, + }) } }) .and_then(move |_| state.db.send(update.0).from_err()) From 8901d5d73a50ce2d426aece1f8ab0ff0216278ef Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 27 May 2018 14:12:31 +0200 Subject: [PATCH 162/163] feat(db): Prevent responses to closed threads This concludes the thread-closing implementation! --- src/db.rs | 13 +++++++++++++ src/errors.rs | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/src/db.rs b/src/db.rs index bfbdd193c..3c44172b1 100644 --- a/src/db.rs +++ b/src/db.rs @@ -208,6 +208,19 @@ impl Handler for DbExecutor { let conn = self.0.get()?; + let closed: bool = { + use schema::threads::dsl::*; + threads.select(closed) + .find(msg.0.thread_id) + .first(&conn)? + }; + + if closed { + return Err(ConverseError::ThreadClosed { + id: msg.0.thread_id + }) + } + Ok(diesel::insert_into(posts::table) .values(&msg.0) .get_result(&conn)?) diff --git a/src/errors.rs b/src/errors.rs index c73379f0c..dd0e12c04 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -124,7 +124,7 @@ impl ResponseError for ConverseError { // Everything is mapped to internal server errors for now. match *self { ConverseError::ThreadClosed { id } => HttpResponse::SeeOther() - .header("Location", format!("/thread/{}#edit-post", id)) + .header("Location", format!("/thread/{}#post-reply", id)) .finish(), _ => HttpResponse::build(StatusCode::INTERNAL_SERVER_ERROR) .body(format!("An error occured: {}", self)) From 09168021e7405f6b83798d0b43aa6e69e744ae87 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Mon, 5 Apr 2021 16:50:13 +0200 Subject: [PATCH 163/163] chore: Relicense under GPL-3.0 --- LICENSE | 141 ++++++++++++++++++++++++++---------------------- src/db.rs | 14 ++--- src/errors.rs | 14 ++--- src/handlers.rs | 14 ++--- src/main.rs | 14 ++--- src/models.rs | 14 ++--- src/oidc.rs | 14 ++--- src/render.rs | 14 ++--- src/schema.rs | 14 ++--- 9 files changed, 133 insertions(+), 120 deletions(-) diff --git a/LICENSE b/LICENSE index be3f7b28e..f288702d2 100644 --- a/LICENSE +++ b/LICENSE @@ -1,5 +1,5 @@ - GNU AFFERO GENERAL PUBLIC LICENSE - Version 3, 19 November 2007 + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies @@ -7,15 +7,17 @@ Preamble - The GNU Affero General Public License is a free, copyleft license for -software and other kinds of works, specifically designed to ensure -cooperation with the community in the case of network server software. + The GNU General Public License is a free, copyleft license for +software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, -our General Public Licenses are intended to guarantee your freedom to +the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free -software for all its users. +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you @@ -24,34 +26,44 @@ them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. - Developers that use our General Public Licenses protect your rights -with two steps: (1) assert copyright on the software, and (2) offer -you this License which gives you legal permission to copy, distribute -and/or modify the software. + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. - A secondary benefit of defending all users' freedom is that -improvements made in alternate versions of the program, if they -receive widespread use, become available for other developers to -incorporate. Many developers of free software are heartened and -encouraged by the resulting cooperation. However, in the case of -software used on network servers, this result may fail to come about. -The GNU General Public License permits making a modified version and -letting the public access it on a server without ever releasing its -source code to the public. + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. - The GNU Affero General Public License is designed specifically to -ensure that, in such cases, the modified source code becomes available -to the community. It requires the operator of a network server to -provide the source code of the modified version running there to the -users of that server. Therefore, public use of a modified version, on -a publicly accessible server, gives the public access to the source -code of the modified version. + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. - An older license, called the Affero General Public License and -published by Affero, was designed to accomplish similar goals. This is -a different license, not a version of the Affero GPL, but Affero has -released a new version of the Affero GPL which permits relicensing under -this license. + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. @@ -60,7 +72,7 @@ modification follow. 0. Definitions. - "This License" refers to version 3 of the GNU Affero General Public License. + "This License" refers to version 3 of the GNU General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. @@ -537,45 +549,35 @@ to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. - 13. Remote Network Interaction; Use with the GNU General Public License. - - Notwithstanding any other provision of this License, if you modify the -Program, your modified version must prominently offer all users -interacting with it remotely through a computer network (if your version -supports such interaction) an opportunity to receive the Corresponding -Source of your version by providing access to the Corresponding Source -from a network server at no charge, through some standard or customary -means of facilitating copying of software. This Corresponding Source -shall include the Corresponding Source for any work covered by version 3 -of the GNU General Public License that is incorporated pursuant to the -following paragraph. + 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed -under version 3 of the GNU General Public License into a single +under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, -but the work with which it is combined will remain governed by version -3 of the GNU General Public License. +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of -the GNU Affero General Public License from time to time. Such new versions -will be similar in spirit to the present version, but may differ in detail to +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the -Program specifies that a certain numbered version of the GNU Affero General +Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the -GNU Affero General Public License, you may choose any version ever published +GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future -versions of the GNU Affero General Public License can be used, that proxy's +versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. @@ -633,29 +635,40 @@ the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software: you can redistribute it and/or modify - it under the terms of the GNU Affero General Public License as published by + it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. + GNU General Public License for more details. - You should have received a copy of the GNU Affero General Public License + You should have received a copy of the GNU General Public License along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. - If your software can interact with users remotely through a computer -network, you should also make sure that it provides a way for users to -get its source. For example, if your program is a web application, its -interface could display a "Source" link that leads users to an archive -of the code. There are many ways you could offer source, and different -solutions will be better for different programs; see section 13 for the -specific requirements. + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. -For more information on this, and how to apply and follow the GNU AGPL, see +For more information on this, and how to apply and follow the GNU GPL, see . + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. diff --git a/src/db.rs b/src/db.rs index 3c44172b1..e20349944 100644 --- a/src/db.rs +++ b/src/db.rs @@ -1,20 +1,20 @@ -// Copyright (C) 2018 Vincent Ambo +// Copyright (C) 2018-2021 Vincent Ambo // // This file is part of Converse. // -// Converse is free software: you can redistribute it and/or modify it -// under the terms of the GNU Affero General Public License as +// This program is free software: you can redistribute it and/or +// modify it under the terms of the GNU General Public License as // published by the Free Software Foundation, either version 3 of the // License, or (at your option) any later version. // // This program is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Affero General Public License for more details. +// General Public License for more details. // -// You should have received a copy of the GNU Affero General Public -// License along with this program. If not, see -// . +// You should have received a copy of the GNU General Public License +// along with this program. If not, see +// . //! This module implements the database connection actor. diff --git a/src/errors.rs b/src/errors.rs index dd0e12c04..95b2366ce 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -1,20 +1,20 @@ -// Copyright (C) 2018 Vincent Ambo +// Copyright (C) 2018-2021 Vincent Ambo // // This file is part of Converse. // -// Converse is free software: you can redistribute it and/or modify it -// under the terms of the GNU Affero General Public License as +// This program is free software: you can redistribute it and/or +// modify it under the terms of the GNU General Public License as // published by the Free Software Foundation, either version 3 of the // License, or (at your option) any later version. // // This program is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Affero General Public License for more details. +// General Public License for more details. // -// You should have received a copy of the GNU Affero General Public -// License along with this program. If not, see -// . +// You should have received a copy of the GNU General Public License +// along with this program. If not, see +// . //! This module defines custom error types using the `failure`-crate. //! Links to foreign error types (such as database connection errors) diff --git a/src/handlers.rs b/src/handlers.rs index 1c3d020e7..efdffb3f9 100644 --- a/src/handlers.rs +++ b/src/handlers.rs @@ -1,20 +1,20 @@ -// Copyright (C) 2018 Vincent Ambo +// Copyright (C) 2018-2021 Vincent Ambo // // This file is part of Converse. // -// Converse is free software: you can redistribute it and/or modify it -// under the terms of the GNU Affero General Public License as +// This program is free software: you can redistribute it and/or +// modify it under the terms of the GNU General Public License as // published by the Free Software Foundation, either version 3 of the // License, or (at your option) any later version. // // This program is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Affero General Public License for more details. +// General Public License for more details. // -// You should have received a copy of the GNU Affero General Public -// License along with this program. If not, see -// . +// You should have received a copy of the GNU General Public License +// along with this program. If not, see +// . //! This module contains the implementation of converse's actix-web //! HTTP handlers. diff --git a/src/main.rs b/src/main.rs index 47bfb0b36..55d84b981 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,20 +1,20 @@ -// Copyright (C) 2018 Vincent Ambo +// Copyright (C) 2018-2021 Vincent Ambo // // This file is part of Converse. // -// Converse is free software: you can redistribute it and/or modify it -// under the terms of the GNU Affero General Public License as +// This program is free software: you can redistribute it and/or +// modify it under the terms of the GNU General Public License as // published by the Free Software Foundation, either version 3 of the // License, or (at your option) any later version. // // This program is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Affero General Public License for more details. +// General Public License for more details. // -// You should have received a copy of the GNU Affero General Public -// License along with this program. If not, see -// . +// You should have received a copy of the GNU General Public License +// along with this program. If not, see +// . #[macro_use] extern crate askama; diff --git a/src/models.rs b/src/models.rs index eab90b30f..96eed419d 100644 --- a/src/models.rs +++ b/src/models.rs @@ -1,20 +1,20 @@ -// Copyright (C) 2018 Vincent Ambo +// Copyright (C) 2018-2021 Vincent Ambo // // This file is part of Converse. // -// Converse is free software: you can redistribute it and/or modify it -// under the terms of the GNU Affero General Public License as +// This program is free software: you can redistribute it and/or +// modify it under the terms of the GNU General Public License as // published by the Free Software Foundation, either version 3 of the // License, or (at your option) any later version. // // This program is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Affero General Public License for more details. +// General Public License for more details. // -// You should have received a copy of the GNU Affero General Public -// License along with this program. If not, see -// . +// You should have received a copy of the GNU General Public License +// along with this program. If not, see +// . use chrono::prelude::{DateTime, Utc}; use schema::{users, threads, posts, simple_posts}; diff --git a/src/oidc.rs b/src/oidc.rs index 23d82e0fa..970aeb92a 100644 --- a/src/oidc.rs +++ b/src/oidc.rs @@ -1,20 +1,20 @@ -// Copyright (C) 2018 Vincent Ambo +// Copyright (C) 2018-2021 Vincent Ambo // // This file is part of Converse. // -// Converse is free software: you can redistribute it and/or modify it -// under the terms of the GNU Affero General Public License as +// This program is free software: you can redistribute it and/or +// modify it under the terms of the GNU General Public License as // published by the Free Software Foundation, either version 3 of the // License, or (at your option) any later version. // // This program is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Affero General Public License for more details. +// General Public License for more details. // -// You should have received a copy of the GNU Affero General Public -// License along with this program. If not, see -// . +// You should have received a copy of the GNU General Public License +// along with this program. If not, see +// . //! This module provides authentication via OIDC compliant //! authentication sources. diff --git a/src/render.rs b/src/render.rs index c209384b7..025a369ba 100644 --- a/src/render.rs +++ b/src/render.rs @@ -1,20 +1,20 @@ -// Copyright (C) 2018 Vincent Ambo +// Copyright (C) 2018-2021 Vincent Ambo // // This file is part of Converse. // -// Converse is free software: you can redistribute it and/or modify it -// under the terms of the GNU Affero General Public License as +// This program is free software: you can redistribute it and/or +// modify it under the terms of the GNU General Public License as // published by the Free Software Foundation, either version 3 of the // License, or (at your option) any later version. // // This program is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Affero General Public License for more details. +// General Public License for more details. // -// You should have received a copy of the GNU Affero General Public -// License along with this program. If not, see -// . +// You should have received a copy of the GNU General Public License +// along with this program. If not, see +// . //! This module defines a rendering actor used for processing Converse //! data into whatever format is needed by the templates and rendering diff --git a/src/schema.rs b/src/schema.rs index 683aa6055..7de6d1366 100644 --- a/src/schema.rs +++ b/src/schema.rs @@ -1,20 +1,20 @@ -// Copyright (C) 2018 Vincent Ambo +// Copyright (C) 2018-2021 Vincent Ambo // // This file is part of Converse. // -// Converse is free software: you can redistribute it and/or modify it -// under the terms of the GNU Affero General Public License as +// This program is free software: you can redistribute it and/or +// modify it under the terms of the GNU General Public License as // published by the Free Software Foundation, either version 3 of the // License, or (at your option) any later version. // // This program is distributed in the hope that it will be useful, but // WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Affero General Public License for more details. +// General Public License for more details. // -// You should have received a copy of the GNU Affero General Public -// License along with this program. If not, see -// . +// You should have received a copy of the GNU General Public License +// along with this program. If not, see +// . table! { posts (id) {