├── .gitignore ├── Cargo.lock ├── Cargo.toml ├── README.md └── src └── main.rs /.gitignore: -------------------------------------------------------------------------------- 1 | target/ 2 | **/*.rs.bk 3 | .idea -------------------------------------------------------------------------------- /Cargo.lock: -------------------------------------------------------------------------------- 1 | [[package]] 2 | name = "adler32" 3 | version = "1.0.2" 4 | source = "registry+https://github.com/rust-lang/crates.io-index" 5 | 6 | [[package]] 7 | name = "arrayvec" 8 | version = "0.4.7" 9 | source = "registry+https://github.com/rust-lang/crates.io-index" 10 | dependencies = [ 11 | "nodrop 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)", 12 | ] 13 | 14 | [[package]] 15 | name = "base64" 16 | version = "0.9.0" 17 | source = "registry+https://github.com/rust-lang/crates.io-index" 18 | dependencies = [ 19 | "byteorder 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 20 | "safemem 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", 21 | ] 22 | 23 | [[package]] 24 | name = "bitflags" 25 | version = "0.9.1" 26 | source = "registry+https://github.com/rust-lang/crates.io-index" 27 | 28 | [[package]] 29 | name = "bitflags" 30 | version = "1.0.1" 31 | source = "registry+https://github.com/rust-lang/crates.io-index" 32 | 33 | [[package]] 34 | name = "build_const" 35 | version = "0.2.0" 36 | source = "registry+https://github.com/rust-lang/crates.io-index" 37 | 38 | [[package]] 39 | name = "byteorder" 40 | version = "1.2.1" 41 | source = "registry+https://github.com/rust-lang/crates.io-index" 42 | 43 | [[package]] 44 | name = "bytes" 45 | version = "0.4.6" 46 | source = "registry+https://github.com/rust-lang/crates.io-index" 47 | dependencies = [ 48 | "byteorder 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 49 | "iovec 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 50 | ] 51 | 52 | [[package]] 53 | name = "cc" 54 | version = "1.0.9" 55 | source = "registry+https://github.com/rust-lang/crates.io-index" 56 | 57 | [[package]] 58 | name = "cfg-if" 59 | version = "0.1.2" 60 | source = "registry+https://github.com/rust-lang/crates.io-index" 61 | 62 | [[package]] 63 | name = "core-foundation" 64 | version = "0.2.3" 65 | source = "registry+https://github.com/rust-lang/crates.io-index" 66 | dependencies = [ 67 | "core-foundation-sys 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", 68 | "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", 69 | ] 70 | 71 | [[package]] 72 | name = "core-foundation-sys" 73 | version = "0.2.3" 74 | source = "registry+https://github.com/rust-lang/crates.io-index" 75 | dependencies = [ 76 | "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", 77 | ] 78 | 79 | [[package]] 80 | name = "crc" 81 | version = "1.7.0" 82 | source = "registry+https://github.com/rust-lang/crates.io-index" 83 | dependencies = [ 84 | "build_const 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", 85 | ] 86 | 87 | [[package]] 88 | name = "crossbeam-deque" 89 | version = "0.3.0" 90 | source = "registry+https://github.com/rust-lang/crates.io-index" 91 | dependencies = [ 92 | "crossbeam-epoch 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", 93 | "crossbeam-utils 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", 94 | ] 95 | 96 | [[package]] 97 | name = "crossbeam-epoch" 98 | version = "0.4.1" 99 | source = "registry+https://github.com/rust-lang/crates.io-index" 100 | dependencies = [ 101 | "arrayvec 0.4.7 (registry+https://github.com/rust-lang/crates.io-index)", 102 | "cfg-if 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 103 | "crossbeam-utils 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)", 104 | "lazy_static 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", 105 | "memoffset 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 106 | "scopeguard 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", 107 | ] 108 | 109 | [[package]] 110 | name = "crossbeam-utils" 111 | version = "0.2.2" 112 | source = "registry+https://github.com/rust-lang/crates.io-index" 113 | dependencies = [ 114 | "cfg-if 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 115 | ] 116 | 117 | [[package]] 118 | name = "crossbeam-utils" 119 | version = "0.3.2" 120 | source = "registry+https://github.com/rust-lang/crates.io-index" 121 | dependencies = [ 122 | "cfg-if 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 123 | ] 124 | 125 | [[package]] 126 | name = "dtoa" 127 | version = "0.4.2" 128 | source = "registry+https://github.com/rust-lang/crates.io-index" 129 | 130 | [[package]] 131 | name = "encoding_rs" 132 | version = "0.7.2" 133 | source = "registry+https://github.com/rust-lang/crates.io-index" 134 | dependencies = [ 135 | "cfg-if 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 136 | ] 137 | 138 | [[package]] 139 | name = "foreign-types" 140 | version = "0.3.2" 141 | source = "registry+https://github.com/rust-lang/crates.io-index" 142 | dependencies = [ 143 | "foreign-types-shared 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 144 | ] 145 | 146 | [[package]] 147 | name = "foreign-types-shared" 148 | version = "0.1.1" 149 | source = "registry+https://github.com/rust-lang/crates.io-index" 150 | 151 | [[package]] 152 | name = "fuchsia-zircon" 153 | version = "0.3.3" 154 | source = "registry+https://github.com/rust-lang/crates.io-index" 155 | dependencies = [ 156 | "bitflags 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", 157 | "fuchsia-zircon-sys 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", 158 | ] 159 | 160 | [[package]] 161 | name = "fuchsia-zircon-sys" 162 | version = "0.3.3" 163 | source = "registry+https://github.com/rust-lang/crates.io-index" 164 | 165 | [[package]] 166 | name = "futures" 167 | version = "0.1.20" 168 | source = "registry+https://github.com/rust-lang/crates.io-index" 169 | 170 | [[package]] 171 | name = "futures-cpupool" 172 | version = "0.1.8" 173 | source = "registry+https://github.com/rust-lang/crates.io-index" 174 | dependencies = [ 175 | "futures 0.1.20 (registry+https://github.com/rust-lang/crates.io-index)", 176 | "num_cpus 1.8.0 (registry+https://github.com/rust-lang/crates.io-index)", 177 | ] 178 | 179 | [[package]] 180 | name = "httparse" 181 | version = "1.2.4" 182 | source = "registry+https://github.com/rust-lang/crates.io-index" 183 | 184 | [[package]] 185 | name = "hyper" 186 | version = "0.11.24" 187 | source = "registry+https://github.com/rust-lang/crates.io-index" 188 | dependencies = [ 189 | "base64 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", 190 | "bytes 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", 191 | "futures 0.1.20 (registry+https://github.com/rust-lang/crates.io-index)", 192 | "futures-cpupool 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)", 193 | "httparse 1.2.4 (registry+https://github.com/rust-lang/crates.io-index)", 194 | "iovec 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 195 | "language-tags 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", 196 | "log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", 197 | "mime 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", 198 | "percent-encoding 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", 199 | "relay 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 200 | "time 0.1.39 (registry+https://github.com/rust-lang/crates.io-index)", 201 | "tokio-core 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)", 202 | "tokio-io 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", 203 | "tokio-proto 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 204 | "tokio-service 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", 205 | "unicase 2.1.0 (registry+https://github.com/rust-lang/crates.io-index)", 206 | ] 207 | 208 | [[package]] 209 | name = "hyper-tls" 210 | version = "0.1.3" 211 | source = "registry+https://github.com/rust-lang/crates.io-index" 212 | dependencies = [ 213 | "futures 0.1.20 (registry+https://github.com/rust-lang/crates.io-index)", 214 | "hyper 0.11.24 (registry+https://github.com/rust-lang/crates.io-index)", 215 | "native-tls 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", 216 | "tokio-core 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)", 217 | "tokio-io 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", 218 | "tokio-service 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", 219 | "tokio-tls 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", 220 | ] 221 | 222 | [[package]] 223 | name = "idna" 224 | version = "0.1.4" 225 | source = "registry+https://github.com/rust-lang/crates.io-index" 226 | dependencies = [ 227 | "matches 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", 228 | "unicode-bidi 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", 229 | "unicode-normalization 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", 230 | ] 231 | 232 | [[package]] 233 | name = "iovec" 234 | version = "0.1.2" 235 | source = "registry+https://github.com/rust-lang/crates.io-index" 236 | dependencies = [ 237 | "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", 238 | "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", 239 | ] 240 | 241 | [[package]] 242 | name = "itoa" 243 | version = "0.3.4" 244 | source = "registry+https://github.com/rust-lang/crates.io-index" 245 | 246 | [[package]] 247 | name = "itoa" 248 | version = "0.4.1" 249 | source = "registry+https://github.com/rust-lang/crates.io-index" 250 | 251 | [[package]] 252 | name = "kernel32-sys" 253 | version = "0.2.2" 254 | source = "registry+https://github.com/rust-lang/crates.io-index" 255 | dependencies = [ 256 | "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", 257 | "winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 258 | ] 259 | 260 | [[package]] 261 | name = "language-tags" 262 | version = "0.2.2" 263 | source = "registry+https://github.com/rust-lang/crates.io-index" 264 | 265 | [[package]] 266 | name = "lazy_static" 267 | version = "0.2.11" 268 | source = "registry+https://github.com/rust-lang/crates.io-index" 269 | 270 | [[package]] 271 | name = "lazy_static" 272 | version = "1.0.0" 273 | source = "registry+https://github.com/rust-lang/crates.io-index" 274 | 275 | [[package]] 276 | name = "lazycell" 277 | version = "0.6.0" 278 | source = "registry+https://github.com/rust-lang/crates.io-index" 279 | 280 | [[package]] 281 | name = "libc" 282 | version = "0.2.40" 283 | source = "registry+https://github.com/rust-lang/crates.io-index" 284 | 285 | [[package]] 286 | name = "libflate" 287 | version = "0.1.14" 288 | source = "registry+https://github.com/rust-lang/crates.io-index" 289 | dependencies = [ 290 | "adler32 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", 291 | "byteorder 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 292 | "crc 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)", 293 | ] 294 | 295 | [[package]] 296 | name = "log" 297 | version = "0.3.9" 298 | source = "registry+https://github.com/rust-lang/crates.io-index" 299 | dependencies = [ 300 | "log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", 301 | ] 302 | 303 | [[package]] 304 | name = "log" 305 | version = "0.4.1" 306 | source = "registry+https://github.com/rust-lang/crates.io-index" 307 | dependencies = [ 308 | "cfg-if 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 309 | ] 310 | 311 | [[package]] 312 | name = "matches" 313 | version = "0.1.6" 314 | source = "registry+https://github.com/rust-lang/crates.io-index" 315 | 316 | [[package]] 317 | name = "memoffset" 318 | version = "0.2.1" 319 | source = "registry+https://github.com/rust-lang/crates.io-index" 320 | 321 | [[package]] 322 | name = "mime" 323 | version = "0.3.5" 324 | source = "registry+https://github.com/rust-lang/crates.io-index" 325 | dependencies = [ 326 | "unicase 2.1.0 (registry+https://github.com/rust-lang/crates.io-index)", 327 | ] 328 | 329 | [[package]] 330 | name = "mime_guess" 331 | version = "2.0.0-alpha.4" 332 | source = "registry+https://github.com/rust-lang/crates.io-index" 333 | dependencies = [ 334 | "mime 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", 335 | "phf 0.7.21 (registry+https://github.com/rust-lang/crates.io-index)", 336 | "phf_codegen 0.7.21 (registry+https://github.com/rust-lang/crates.io-index)", 337 | "unicase 1.4.2 (registry+https://github.com/rust-lang/crates.io-index)", 338 | ] 339 | 340 | [[package]] 341 | name = "mio" 342 | version = "0.6.14" 343 | source = "registry+https://github.com/rust-lang/crates.io-index" 344 | dependencies = [ 345 | "fuchsia-zircon 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", 346 | "fuchsia-zircon-sys 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", 347 | "iovec 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 348 | "kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", 349 | "lazycell 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)", 350 | "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", 351 | "log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", 352 | "miow 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 353 | "net2 0.2.32 (registry+https://github.com/rust-lang/crates.io-index)", 354 | "slab 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 355 | "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", 356 | ] 357 | 358 | [[package]] 359 | name = "miow" 360 | version = "0.2.1" 361 | source = "registry+https://github.com/rust-lang/crates.io-index" 362 | dependencies = [ 363 | "kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", 364 | "net2 0.2.32 (registry+https://github.com/rust-lang/crates.io-index)", 365 | "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", 366 | "ws2_32-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 367 | ] 368 | 369 | [[package]] 370 | name = "native-tls" 371 | version = "0.1.5" 372 | source = "registry+https://github.com/rust-lang/crates.io-index" 373 | dependencies = [ 374 | "lazy_static 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", 375 | "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", 376 | "openssl 0.9.24 (registry+https://github.com/rust-lang/crates.io-index)", 377 | "schannel 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)", 378 | "security-framework 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)", 379 | "security-framework-sys 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)", 380 | "tempdir 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)", 381 | ] 382 | 383 | [[package]] 384 | name = "net2" 385 | version = "0.2.32" 386 | source = "registry+https://github.com/rust-lang/crates.io-index" 387 | dependencies = [ 388 | "cfg-if 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 389 | "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", 390 | "winapi 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", 391 | ] 392 | 393 | [[package]] 394 | name = "nodrop" 395 | version = "0.1.12" 396 | source = "registry+https://github.com/rust-lang/crates.io-index" 397 | 398 | [[package]] 399 | name = "num-traits" 400 | version = "0.2.2" 401 | source = "registry+https://github.com/rust-lang/crates.io-index" 402 | 403 | [[package]] 404 | name = "num_cpus" 405 | version = "1.8.0" 406 | source = "registry+https://github.com/rust-lang/crates.io-index" 407 | dependencies = [ 408 | "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", 409 | ] 410 | 411 | [[package]] 412 | name = "openssl" 413 | version = "0.9.24" 414 | source = "registry+https://github.com/rust-lang/crates.io-index" 415 | dependencies = [ 416 | "bitflags 0.9.1 (registry+https://github.com/rust-lang/crates.io-index)", 417 | "foreign-types 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)", 418 | "lazy_static 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", 419 | "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", 420 | "openssl-sys 0.9.27 (registry+https://github.com/rust-lang/crates.io-index)", 421 | ] 422 | 423 | [[package]] 424 | name = "openssl-sys" 425 | version = "0.9.27" 426 | source = "registry+https://github.com/rust-lang/crates.io-index" 427 | dependencies = [ 428 | "cc 1.0.9 (registry+https://github.com/rust-lang/crates.io-index)", 429 | "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", 430 | "pkg-config 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)", 431 | "vcpkg 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", 432 | ] 433 | 434 | [[package]] 435 | name = "percent-encoding" 436 | version = "1.0.1" 437 | source = "registry+https://github.com/rust-lang/crates.io-index" 438 | 439 | [[package]] 440 | name = "phf" 441 | version = "0.7.21" 442 | source = "registry+https://github.com/rust-lang/crates.io-index" 443 | dependencies = [ 444 | "phf_shared 0.7.21 (registry+https://github.com/rust-lang/crates.io-index)", 445 | ] 446 | 447 | [[package]] 448 | name = "phf_codegen" 449 | version = "0.7.21" 450 | source = "registry+https://github.com/rust-lang/crates.io-index" 451 | dependencies = [ 452 | "phf_generator 0.7.21 (registry+https://github.com/rust-lang/crates.io-index)", 453 | "phf_shared 0.7.21 (registry+https://github.com/rust-lang/crates.io-index)", 454 | ] 455 | 456 | [[package]] 457 | name = "phf_generator" 458 | version = "0.7.21" 459 | source = "registry+https://github.com/rust-lang/crates.io-index" 460 | dependencies = [ 461 | "phf_shared 0.7.21 (registry+https://github.com/rust-lang/crates.io-index)", 462 | "rand 0.3.22 (registry+https://github.com/rust-lang/crates.io-index)", 463 | ] 464 | 465 | [[package]] 466 | name = "phf_shared" 467 | version = "0.7.21" 468 | source = "registry+https://github.com/rust-lang/crates.io-index" 469 | dependencies = [ 470 | "siphasher 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", 471 | "unicase 1.4.2 (registry+https://github.com/rust-lang/crates.io-index)", 472 | ] 473 | 474 | [[package]] 475 | name = "pkg-config" 476 | version = "0.3.9" 477 | source = "registry+https://github.com/rust-lang/crates.io-index" 478 | 479 | [[package]] 480 | name = "rand" 481 | version = "0.3.22" 482 | source = "registry+https://github.com/rust-lang/crates.io-index" 483 | dependencies = [ 484 | "fuchsia-zircon 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", 485 | "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", 486 | "rand 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", 487 | ] 488 | 489 | [[package]] 490 | name = "rand" 491 | version = "0.4.2" 492 | source = "registry+https://github.com/rust-lang/crates.io-index" 493 | dependencies = [ 494 | "fuchsia-zircon 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", 495 | "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", 496 | "winapi 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", 497 | ] 498 | 499 | [[package]] 500 | name = "redox_syscall" 501 | version = "0.1.37" 502 | source = "registry+https://github.com/rust-lang/crates.io-index" 503 | 504 | [[package]] 505 | name = "relay" 506 | version = "0.1.1" 507 | source = "registry+https://github.com/rust-lang/crates.io-index" 508 | dependencies = [ 509 | "futures 0.1.20 (registry+https://github.com/rust-lang/crates.io-index)", 510 | ] 511 | 512 | [[package]] 513 | name = "remove_dir_all" 514 | version = "0.5.0" 515 | source = "registry+https://github.com/rust-lang/crates.io-index" 516 | dependencies = [ 517 | "winapi 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", 518 | ] 519 | 520 | [[package]] 521 | name = "reqwest" 522 | version = "0.8.5" 523 | source = "registry+https://github.com/rust-lang/crates.io-index" 524 | dependencies = [ 525 | "bytes 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", 526 | "encoding_rs 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)", 527 | "futures 0.1.20 (registry+https://github.com/rust-lang/crates.io-index)", 528 | "hyper 0.11.24 (registry+https://github.com/rust-lang/crates.io-index)", 529 | "hyper-tls 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", 530 | "libflate 0.1.14 (registry+https://github.com/rust-lang/crates.io-index)", 531 | "log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", 532 | "mime_guess 2.0.0-alpha.4 (registry+https://github.com/rust-lang/crates.io-index)", 533 | "native-tls 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", 534 | "serde 1.0.36 (registry+https://github.com/rust-lang/crates.io-index)", 535 | "serde_json 1.0.13 (registry+https://github.com/rust-lang/crates.io-index)", 536 | "serde_urlencoded 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)", 537 | "tokio-core 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)", 538 | "tokio-io 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", 539 | "tokio-tls 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", 540 | "url 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)", 541 | "uuid 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)", 542 | ] 543 | 544 | [[package]] 545 | name = "safemem" 546 | version = "0.2.0" 547 | source = "registry+https://github.com/rust-lang/crates.io-index" 548 | 549 | [[package]] 550 | name = "schannel" 551 | version = "0.1.11" 552 | source = "registry+https://github.com/rust-lang/crates.io-index" 553 | dependencies = [ 554 | "lazy_static 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", 555 | "winapi 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", 556 | ] 557 | 558 | [[package]] 559 | name = "scoped-tls" 560 | version = "0.1.1" 561 | source = "registry+https://github.com/rust-lang/crates.io-index" 562 | 563 | [[package]] 564 | name = "scopeguard" 565 | version = "0.3.3" 566 | source = "registry+https://github.com/rust-lang/crates.io-index" 567 | 568 | [[package]] 569 | name = "security-framework" 570 | version = "0.1.16" 571 | source = "registry+https://github.com/rust-lang/crates.io-index" 572 | dependencies = [ 573 | "core-foundation 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", 574 | "core-foundation-sys 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", 575 | "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", 576 | "security-framework-sys 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)", 577 | ] 578 | 579 | [[package]] 580 | name = "security-framework-sys" 581 | version = "0.1.16" 582 | source = "registry+https://github.com/rust-lang/crates.io-index" 583 | dependencies = [ 584 | "core-foundation-sys 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", 585 | "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", 586 | ] 587 | 588 | [[package]] 589 | name = "serde" 590 | version = "1.0.36" 591 | source = "registry+https://github.com/rust-lang/crates.io-index" 592 | 593 | [[package]] 594 | name = "serde_json" 595 | version = "1.0.13" 596 | source = "registry+https://github.com/rust-lang/crates.io-index" 597 | dependencies = [ 598 | "dtoa 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", 599 | "itoa 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", 600 | "num-traits 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", 601 | "serde 1.0.36 (registry+https://github.com/rust-lang/crates.io-index)", 602 | ] 603 | 604 | [[package]] 605 | name = "serde_urlencoded" 606 | version = "0.5.1" 607 | source = "registry+https://github.com/rust-lang/crates.io-index" 608 | dependencies = [ 609 | "dtoa 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", 610 | "itoa 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", 611 | "serde 1.0.36 (registry+https://github.com/rust-lang/crates.io-index)", 612 | "url 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)", 613 | ] 614 | 615 | [[package]] 616 | name = "siphasher" 617 | version = "0.2.2" 618 | source = "registry+https://github.com/rust-lang/crates.io-index" 619 | 620 | [[package]] 621 | name = "slab" 622 | version = "0.3.0" 623 | source = "registry+https://github.com/rust-lang/crates.io-index" 624 | 625 | [[package]] 626 | name = "slab" 627 | version = "0.4.0" 628 | source = "registry+https://github.com/rust-lang/crates.io-index" 629 | 630 | [[package]] 631 | name = "smallvec" 632 | version = "0.2.1" 633 | source = "registry+https://github.com/rust-lang/crates.io-index" 634 | 635 | [[package]] 636 | name = "take" 637 | version = "0.1.0" 638 | source = "registry+https://github.com/rust-lang/crates.io-index" 639 | 640 | [[package]] 641 | name = "teach-rust" 642 | version = "0.2.0" 643 | dependencies = [ 644 | "reqwest 0.8.5 (registry+https://github.com/rust-lang/crates.io-index)", 645 | ] 646 | 647 | [[package]] 648 | name = "tempdir" 649 | version = "0.3.7" 650 | source = "registry+https://github.com/rust-lang/crates.io-index" 651 | dependencies = [ 652 | "rand 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", 653 | "remove_dir_all 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)", 654 | ] 655 | 656 | [[package]] 657 | name = "time" 658 | version = "0.1.39" 659 | source = "registry+https://github.com/rust-lang/crates.io-index" 660 | dependencies = [ 661 | "libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)", 662 | "redox_syscall 0.1.37 (registry+https://github.com/rust-lang/crates.io-index)", 663 | "winapi 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", 664 | ] 665 | 666 | [[package]] 667 | name = "tokio" 668 | version = "0.1.5" 669 | source = "registry+https://github.com/rust-lang/crates.io-index" 670 | dependencies = [ 671 | "futures 0.1.20 (registry+https://github.com/rust-lang/crates.io-index)", 672 | "mio 0.6.14 (registry+https://github.com/rust-lang/crates.io-index)", 673 | "tokio-executor 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 674 | "tokio-io 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", 675 | "tokio-reactor 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 676 | "tokio-tcp 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", 677 | "tokio-threadpool 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 678 | "tokio-timer 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", 679 | "tokio-udp 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", 680 | ] 681 | 682 | [[package]] 683 | name = "tokio-core" 684 | version = "0.1.16" 685 | source = "registry+https://github.com/rust-lang/crates.io-index" 686 | dependencies = [ 687 | "bytes 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", 688 | "futures 0.1.20 (registry+https://github.com/rust-lang/crates.io-index)", 689 | "iovec 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 690 | "log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", 691 | "mio 0.6.14 (registry+https://github.com/rust-lang/crates.io-index)", 692 | "scoped-tls 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 693 | "slab 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 694 | "tokio 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", 695 | "tokio-executor 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 696 | "tokio-io 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", 697 | "tokio-reactor 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 698 | ] 699 | 700 | [[package]] 701 | name = "tokio-executor" 702 | version = "0.1.2" 703 | source = "registry+https://github.com/rust-lang/crates.io-index" 704 | dependencies = [ 705 | "futures 0.1.20 (registry+https://github.com/rust-lang/crates.io-index)", 706 | ] 707 | 708 | [[package]] 709 | name = "tokio-io" 710 | version = "0.1.6" 711 | source = "registry+https://github.com/rust-lang/crates.io-index" 712 | dependencies = [ 713 | "bytes 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", 714 | "futures 0.1.20 (registry+https://github.com/rust-lang/crates.io-index)", 715 | "log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", 716 | ] 717 | 718 | [[package]] 719 | name = "tokio-proto" 720 | version = "0.1.1" 721 | source = "registry+https://github.com/rust-lang/crates.io-index" 722 | dependencies = [ 723 | "futures 0.1.20 (registry+https://github.com/rust-lang/crates.io-index)", 724 | "log 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)", 725 | "net2 0.2.32 (registry+https://github.com/rust-lang/crates.io-index)", 726 | "rand 0.3.22 (registry+https://github.com/rust-lang/crates.io-index)", 727 | "slab 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", 728 | "smallvec 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 729 | "take 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", 730 | "tokio-core 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)", 731 | "tokio-io 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", 732 | "tokio-service 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", 733 | ] 734 | 735 | [[package]] 736 | name = "tokio-reactor" 737 | version = "0.1.1" 738 | source = "registry+https://github.com/rust-lang/crates.io-index" 739 | dependencies = [ 740 | "futures 0.1.20 (registry+https://github.com/rust-lang/crates.io-index)", 741 | "log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", 742 | "mio 0.6.14 (registry+https://github.com/rust-lang/crates.io-index)", 743 | "slab 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 744 | "tokio-executor 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 745 | "tokio-io 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", 746 | ] 747 | 748 | [[package]] 749 | name = "tokio-service" 750 | version = "0.1.0" 751 | source = "registry+https://github.com/rust-lang/crates.io-index" 752 | dependencies = [ 753 | "futures 0.1.20 (registry+https://github.com/rust-lang/crates.io-index)", 754 | ] 755 | 756 | [[package]] 757 | name = "tokio-tcp" 758 | version = "0.1.0" 759 | source = "registry+https://github.com/rust-lang/crates.io-index" 760 | dependencies = [ 761 | "bytes 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", 762 | "futures 0.1.20 (registry+https://github.com/rust-lang/crates.io-index)", 763 | "iovec 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 764 | "mio 0.6.14 (registry+https://github.com/rust-lang/crates.io-index)", 765 | "tokio-io 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", 766 | "tokio-reactor 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 767 | ] 768 | 769 | [[package]] 770 | name = "tokio-threadpool" 771 | version = "0.1.2" 772 | source = "registry+https://github.com/rust-lang/crates.io-index" 773 | dependencies = [ 774 | "crossbeam-deque 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", 775 | "futures 0.1.20 (registry+https://github.com/rust-lang/crates.io-index)", 776 | "log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", 777 | "num_cpus 1.8.0 (registry+https://github.com/rust-lang/crates.io-index)", 778 | "rand 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", 779 | "tokio-executor 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 780 | ] 781 | 782 | [[package]] 783 | name = "tokio-timer" 784 | version = "0.2.0" 785 | source = "registry+https://github.com/rust-lang/crates.io-index" 786 | dependencies = [ 787 | "futures 0.1.20 (registry+https://github.com/rust-lang/crates.io-index)", 788 | "tokio-executor 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 789 | ] 790 | 791 | [[package]] 792 | name = "tokio-tls" 793 | version = "0.1.4" 794 | source = "registry+https://github.com/rust-lang/crates.io-index" 795 | dependencies = [ 796 | "futures 0.1.20 (registry+https://github.com/rust-lang/crates.io-index)", 797 | "native-tls 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", 798 | "tokio-core 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)", 799 | "tokio-io 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", 800 | ] 801 | 802 | [[package]] 803 | name = "tokio-udp" 804 | version = "0.1.0" 805 | source = "registry+https://github.com/rust-lang/crates.io-index" 806 | dependencies = [ 807 | "bytes 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", 808 | "futures 0.1.20 (registry+https://github.com/rust-lang/crates.io-index)", 809 | "log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", 810 | "mio 0.6.14 (registry+https://github.com/rust-lang/crates.io-index)", 811 | "tokio-io 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", 812 | "tokio-reactor 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 813 | ] 814 | 815 | [[package]] 816 | name = "unicase" 817 | version = "1.4.2" 818 | source = "registry+https://github.com/rust-lang/crates.io-index" 819 | dependencies = [ 820 | "version_check 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", 821 | ] 822 | 823 | [[package]] 824 | name = "unicase" 825 | version = "2.1.0" 826 | source = "registry+https://github.com/rust-lang/crates.io-index" 827 | dependencies = [ 828 | "version_check 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", 829 | ] 830 | 831 | [[package]] 832 | name = "unicode-bidi" 833 | version = "0.3.4" 834 | source = "registry+https://github.com/rust-lang/crates.io-index" 835 | dependencies = [ 836 | "matches 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", 837 | ] 838 | 839 | [[package]] 840 | name = "unicode-normalization" 841 | version = "0.1.5" 842 | source = "registry+https://github.com/rust-lang/crates.io-index" 843 | 844 | [[package]] 845 | name = "url" 846 | version = "1.7.0" 847 | source = "registry+https://github.com/rust-lang/crates.io-index" 848 | dependencies = [ 849 | "idna 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", 850 | "matches 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", 851 | "percent-encoding 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", 852 | ] 853 | 854 | [[package]] 855 | name = "uuid" 856 | version = "0.5.1" 857 | source = "registry+https://github.com/rust-lang/crates.io-index" 858 | dependencies = [ 859 | "rand 0.3.22 (registry+https://github.com/rust-lang/crates.io-index)", 860 | ] 861 | 862 | [[package]] 863 | name = "vcpkg" 864 | version = "0.2.2" 865 | source = "registry+https://github.com/rust-lang/crates.io-index" 866 | 867 | [[package]] 868 | name = "version_check" 869 | version = "0.1.3" 870 | source = "registry+https://github.com/rust-lang/crates.io-index" 871 | 872 | [[package]] 873 | name = "winapi" 874 | version = "0.2.8" 875 | source = "registry+https://github.com/rust-lang/crates.io-index" 876 | 877 | [[package]] 878 | name = "winapi" 879 | version = "0.3.4" 880 | source = "registry+https://github.com/rust-lang/crates.io-index" 881 | dependencies = [ 882 | "winapi-i686-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 883 | "winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 884 | ] 885 | 886 | [[package]] 887 | name = "winapi-build" 888 | version = "0.1.1" 889 | source = "registry+https://github.com/rust-lang/crates.io-index" 890 | 891 | [[package]] 892 | name = "winapi-i686-pc-windows-gnu" 893 | version = "0.4.0" 894 | source = "registry+https://github.com/rust-lang/crates.io-index" 895 | 896 | [[package]] 897 | name = "winapi-x86_64-pc-windows-gnu" 898 | version = "0.4.0" 899 | source = "registry+https://github.com/rust-lang/crates.io-index" 900 | 901 | [[package]] 902 | name = "ws2_32-sys" 903 | version = "0.2.1" 904 | source = "registry+https://github.com/rust-lang/crates.io-index" 905 | dependencies = [ 906 | "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", 907 | "winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 908 | ] 909 | 910 | [metadata] 911 | "checksum adler32 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = "6cbd0b9af8587c72beadc9f72d35b9fbb070982c9e6203e46e93f10df25f8f45" 912 | "checksum arrayvec 0.4.7 (registry+https://github.com/rust-lang/crates.io-index)" = "a1e964f9e24d588183fcb43503abda40d288c8657dfc27311516ce2f05675aef" 913 | "checksum base64 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)" = "229d032f1a99302697f10b27167ae6d03d49d032e6a8e2550e8d3fc13356d2b4" 914 | "checksum bitflags 0.9.1 (registry+https://github.com/rust-lang/crates.io-index)" = "4efd02e230a02e18f92fc2735f44597385ed02ad8f831e7c1c1156ee5e1ab3a5" 915 | "checksum bitflags 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "b3c30d3802dfb7281680d6285f2ccdaa8c2d8fee41f93805dba5c4cf50dc23cf" 916 | "checksum build_const 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "e90dc84f5e62d2ebe7676b83c22d33b6db8bd27340fb6ffbff0a364efa0cb9c9" 917 | "checksum byteorder 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "652805b7e73fada9d85e9a6682a4abd490cb52d96aeecc12e33a0de34dfd0d23" 918 | "checksum bytes 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)" = "1b7db437d718977f6dc9b2e3fd6fc343c02ac6b899b73fdd2179163447bd9ce9" 919 | "checksum cc 1.0.9 (registry+https://github.com/rust-lang/crates.io-index)" = "2b4911e4bdcb4100c7680e7e854ff38e23f1b34d4d9e079efae3da2801341ffc" 920 | "checksum cfg-if 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "d4c819a1287eb618df47cc647173c5c4c66ba19d888a6e50d605672aed3140de" 921 | "checksum core-foundation 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "25bfd746d203017f7d5cbd31ee5d8e17f94b6521c7af77ece6c9e4b2d4b16c67" 922 | "checksum core-foundation-sys 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "065a5d7ffdcbc8fa145d6f0746f3555025b9097a9e9cda59f7467abae670c78d" 923 | "checksum crc 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "bd5d02c0aac6bd68393ed69e00bbc2457f3e89075c6349db7189618dc4ddc1d7" 924 | "checksum crossbeam-deque 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "c1bdc73742c36f7f35ebcda81dbb33a7e0d33757d03a06d9ddca762712ec5ea2" 925 | "checksum crossbeam-epoch 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)" = "9b4e2817eb773f770dcb294127c011e22771899c21d18fce7dd739c0b9832e81" 926 | "checksum crossbeam-utils 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "2760899e32a1d58d5abb31129f8fae5de75220bc2176e77ff7c627ae45c918d9" 927 | "checksum crossbeam-utils 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)" = "d636a8b3bcc1b409d7ffd3facef8f21dcb4009626adbd0c5e6c4305c07253c7b" 928 | "checksum dtoa 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)" = "09c3753c3db574d215cba4ea76018483895d7bff25a31b49ba45db21c48e50ab" 929 | "checksum encoding_rs 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)" = "98fd0f24d1fb71a4a6b9330c8ca04cbd4e7cc5d846b54ca74ff376bc7c9f798d" 930 | "checksum foreign-types 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)" = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1" 931 | "checksum foreign-types-shared 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" 932 | "checksum fuchsia-zircon 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "2e9763c69ebaae630ba35f74888db465e49e259ba1bc0eda7d06f4a067615d82" 933 | "checksum fuchsia-zircon-sys 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "3dcaa9ae7725d12cdb85b3ad99a434db70b468c09ded17e012d86b5c1010f7a7" 934 | "checksum futures 0.1.20 (registry+https://github.com/rust-lang/crates.io-index)" = "0c5a3176836efa0b37f0e321b86672dfada1564aeb516fbed67b7c24050a0263" 935 | "checksum futures-cpupool 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)" = "ab90cde24b3319636588d0c35fe03b1333857621051837ed769faefb4c2162e4" 936 | "checksum httparse 1.2.4 (registry+https://github.com/rust-lang/crates.io-index)" = "c2f407128745b78abc95c0ffbe4e5d37427fdc0d45470710cfef8c44522a2e37" 937 | "checksum hyper 0.11.24 (registry+https://github.com/rust-lang/crates.io-index)" = "df4dd5dae401458087396b6db7fabc4d6760aa456a5fa8e92bda549f39cae661" 938 | "checksum hyper-tls 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)" = "a5aa51f6ae9842239b0fac14af5f22123b8432b4cc774a44ff059fcba0f675ca" 939 | "checksum idna 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)" = "014b298351066f1512874135335d62a789ffe78a9974f94b43ed5621951eaf7d" 940 | "checksum iovec 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "dbe6e417e7d0975db6512b90796e8ce223145ac4e33c377e4a42882a0e88bb08" 941 | "checksum itoa 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)" = "8324a32baf01e2ae060e9de58ed0bc2320c9a2833491ee36cd3b4c414de4db8c" 942 | "checksum itoa 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)" = "c069bbec61e1ca5a596166e55dfe4773ff745c3d16b700013bcaff9a6df2c682" 943 | "checksum kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "7507624b29483431c0ba2d82aece8ca6cdba9382bff4ddd0f7490560c056098d" 944 | "checksum language-tags 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "a91d884b6667cd606bb5a69aa0c99ba811a115fc68915e7056ec08a46e93199a" 945 | "checksum lazy_static 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)" = "76f033c7ad61445c5b347c7382dd1237847eb1bce590fe50365dcb33d546be73" 946 | "checksum lazy_static 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "c8f31047daa365f19be14b47c29df4f7c3b581832407daabe6ae77397619237d" 947 | "checksum lazycell 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)" = "a6f08839bc70ef4a3fe1d566d5350f519c5912ea86be0df1740a7d247c7fc0ef" 948 | "checksum libc 0.2.40 (registry+https://github.com/rust-lang/crates.io-index)" = "6fd41f331ac7c5b8ac259b8bf82c75c0fb2e469bbf37d2becbba9a6a2221965b" 949 | "checksum libflate 0.1.14 (registry+https://github.com/rust-lang/crates.io-index)" = "1a429b86418868c7ea91ee50e9170683f47fd9d94f5375438ec86ec3adb74e8e" 950 | "checksum log 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)" = "e19e8d5c34a3e0e2223db8e060f9e8264aeeb5c5fc64a4ee9965c062211c024b" 951 | "checksum log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)" = "89f010e843f2b1a31dbd316b3b8d443758bc634bed37aabade59c686d644e0a2" 952 | "checksum matches 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = "100aabe6b8ff4e4a7e32c1c13523379802df0772b82466207ac25b013f193376" 953 | "checksum memoffset 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "0f9dc261e2b62d7a622bf416ea3c5245cdd5d9a7fcc428c0d06804dfce1775b3" 954 | "checksum mime 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)" = "e2e00e17be181010a91dbfefb01660b17311059dc8c7f48b9017677721e732bd" 955 | "checksum mime_guess 2.0.0-alpha.4 (registry+https://github.com/rust-lang/crates.io-index)" = "130ea3c9c1b65dba905ab5a4d9ac59234a9585c24d135f264e187fe7336febbd" 956 | "checksum mio 0.6.14 (registry+https://github.com/rust-lang/crates.io-index)" = "6d771e3ef92d58a8da8df7d6976bfca9371ed1de6619d9d5a5ce5b1f29b85bfe" 957 | "checksum miow 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "8c1f2f3b1cf331de6896aabf6e9d55dca90356cc9960cca7eaaf408a355ae919" 958 | "checksum native-tls 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "f74dbadc8b43df7864539cedb7bc91345e532fdd913cfdc23ad94f4d2d40fbc0" 959 | "checksum net2 0.2.32 (registry+https://github.com/rust-lang/crates.io-index)" = "9044faf1413a1057267be51b5afba8eb1090bd2231c693664aa1db716fe1eae0" 960 | "checksum nodrop 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)" = "9a2228dca57108069a5262f2ed8bd2e82496d2e074a06d1ccc7ce1687b6ae0a2" 961 | "checksum num-traits 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "dee092fcdf725aee04dd7da1d21debff559237d49ef1cb3e69bcb8ece44c7364" 962 | "checksum num_cpus 1.8.0 (registry+https://github.com/rust-lang/crates.io-index)" = "c51a3322e4bca9d212ad9a158a02abc6934d005490c054a2778df73a70aa0a30" 963 | "checksum openssl 0.9.24 (registry+https://github.com/rust-lang/crates.io-index)" = "a3605c298474a3aa69de92d21139fb5e2a81688d308262359d85cdd0d12a7985" 964 | "checksum openssl-sys 0.9.27 (registry+https://github.com/rust-lang/crates.io-index)" = "d6fdc5c4a02e69ce65046f1763a0181107038e02176233acb0b3351d7cc588f9" 965 | "checksum percent-encoding 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "31010dd2e1ac33d5b46a5b413495239882813e0369f8ed8a5e266f173602f831" 966 | "checksum phf 0.7.21 (registry+https://github.com/rust-lang/crates.io-index)" = "cb325642290f28ee14d8c6201159949a872f220c62af6e110a56ea914fbe42fc" 967 | "checksum phf_codegen 0.7.21 (registry+https://github.com/rust-lang/crates.io-index)" = "d62594c0bb54c464f633175d502038177e90309daf2e0158be42ed5f023ce88f" 968 | "checksum phf_generator 0.7.21 (registry+https://github.com/rust-lang/crates.io-index)" = "6b07ffcc532ccc85e3afc45865469bf5d9e4ef5bfcf9622e3cfe80c2d275ec03" 969 | "checksum phf_shared 0.7.21 (registry+https://github.com/rust-lang/crates.io-index)" = "07e24b0ca9643bdecd0632f2b3da6b1b89bbb0030e0b992afc1113b23a7bc2f2" 970 | "checksum pkg-config 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)" = "3a8b4c6b8165cd1a1cd4b9b120978131389f64bdaf456435caa41e630edba903" 971 | "checksum rand 0.3.22 (registry+https://github.com/rust-lang/crates.io-index)" = "15a732abf9d20f0ad8eeb6f909bf6868722d9a06e1e50802b6a70351f40b4eb1" 972 | "checksum rand 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)" = "eba5f8cb59cc50ed56be8880a5c7b496bfd9bd26394e176bc67884094145c2c5" 973 | "checksum redox_syscall 0.1.37 (registry+https://github.com/rust-lang/crates.io-index)" = "0d92eecebad22b767915e4d529f89f28ee96dbbf5a4810d2b844373f136417fd" 974 | "checksum relay 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "1576e382688d7e9deecea24417e350d3062d97e32e45d70b1cde65994ff1489a" 975 | "checksum remove_dir_all 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)" = "dfc5b3ce5d5ea144bb04ebd093a9e14e9765bcfec866aecda9b6dec43b3d1e24" 976 | "checksum reqwest 0.8.5 (registry+https://github.com/rust-lang/crates.io-index)" = "241faa9a8ca28a03cbbb9815a5d085f271d4c0168a19181f106aa93240c22ddb" 977 | "checksum safemem 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "e27a8b19b835f7aea908818e871f5cc3a5a186550c30773be987e155e8163d8f" 978 | "checksum schannel 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)" = "fbaffce35eb61c5b00846e73128b0cd62717e7c0ec46abbec132370d013975b4" 979 | "checksum scoped-tls 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "8674d439c964889e2476f474a3bf198cc9e199e77499960893bac5de7e9218a4" 980 | "checksum scopeguard 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "94258f53601af11e6a49f722422f6e3425c52b06245a5cf9bc09908b174f5e27" 981 | "checksum security-framework 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)" = "dfa44ee9c54ce5eecc9de7d5acbad112ee58755239381f687e564004ba4a2332" 982 | "checksum security-framework-sys 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)" = "5421621e836278a0b139268f36eee0dc7e389b784dc3f79d8f11aabadf41bead" 983 | "checksum serde 1.0.36 (registry+https://github.com/rust-lang/crates.io-index)" = "c70142ae874a42c70e03c63c6a49abe2ea0079b090bf6e136e99252fc1974bd6" 984 | "checksum serde_json 1.0.13 (registry+https://github.com/rust-lang/crates.io-index)" = "5c508584d9913df116b91505eec55610a2f5b16e9ed793c46e4d0152872b3e74" 985 | "checksum serde_urlencoded 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)" = "ce0fd303af908732989354c6f02e05e2e6d597152870f2c6990efb0577137480" 986 | "checksum siphasher 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "0df90a788073e8d0235a67e50441d47db7c8ad9debd91cbf43736a2a92d36537" 987 | "checksum slab 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "17b4fcaed89ab08ef143da37bc52adbcc04d4a69014f4c1208d6b51f0c47bc23" 988 | "checksum slab 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "fdeff4cd9ecff59ec7e3744cbca73dfe5ac35c2aedb2cfba8a1c715a18912e9d" 989 | "checksum smallvec 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "4c8cbcd6df1e117c2210e13ab5109635ad68a929fcbb8964dc965b76cb5ee013" 990 | "checksum take 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "b157868d8ac1f56b64604539990685fa7611d8fa9e5476cf0c02cf34d32917c5" 991 | "checksum tempdir 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)" = "15f2b5fb00ccdf689e0149d1b1b3c03fead81c2b37735d812fa8bddbbf41b6d8" 992 | "checksum time 0.1.39 (registry+https://github.com/rust-lang/crates.io-index)" = "a15375f1df02096fb3317256ce2cee6a1f42fc84ea5ad5fc8c421cfe40c73098" 993 | "checksum tokio 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "be15ef40f675c9fe66e354d74c73f3ed012ca1aa14d65846a33ee48f1ae8d922" 994 | "checksum tokio-core 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)" = "799492ccba3d8ed5e41f2520a7cfd504cb65bbfe5fbbbd0012e335ae5f188051" 995 | "checksum tokio-executor 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "8cac2a7883ff3567e9d66bb09100d09b33d90311feca0206c7ca034bc0c55113" 996 | "checksum tokio-io 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = "6af9eb326f64b2d6b68438e1953341e00ab3cf54de7e35d92bfc73af8555313a" 997 | "checksum tokio-proto 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "8fbb47ae81353c63c487030659494b295f6cb6576242f907f203473b191b0389" 998 | "checksum tokio-reactor 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "b3cedc8e5af5131dc3423ffa4f877cce78ad25259a9a62de0613735a13ebc64b" 999 | "checksum tokio-service 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "24da22d077e0f15f55162bdbdc661228c1581892f52074fb242678d015b45162" 1000 | "checksum tokio-tcp 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ec9b094851aadd2caf83ba3ad8e8c4ce65a42104f7b94d9e6550023f0407853f" 1001 | "checksum tokio-threadpool 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "bf3d05cdd6a78005e535d2b27c21521bdf91fbb321027a62d8e178929d18966d" 1002 | "checksum tokio-timer 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "87d50912757dcf24f3614c9e6925aa72da51b5104dc2ab708e24f814f4052f85" 1003 | "checksum tokio-tls 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)" = "772f4b04e560117fe3b0a53e490c16ddc8ba6ec437015d91fa385564996ed913" 1004 | "checksum tokio-udp 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "137bda266504893ac4774e0ec4c2108f7ccdbcb7ac8dced6305fe9e4e0b5041a" 1005 | "checksum unicase 1.4.2 (registry+https://github.com/rust-lang/crates.io-index)" = "7f4765f83163b74f957c797ad9253caf97f103fb064d3999aea9568d09fc8a33" 1006 | "checksum unicase 2.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "284b6d3db520d67fbe88fd778c21510d1b0ba4a551e5d0fbb023d33405f6de8a" 1007 | "checksum unicode-bidi 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)" = "49f2bd0c6468a8230e1db229cff8029217cf623c767ea5d60bfbd42729ea54d5" 1008 | "checksum unicode-normalization 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "51ccda9ef9efa3f7ef5d91e8f9b83bbe6955f9bf86aec89d5cce2c874625920f" 1009 | "checksum url 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "f808aadd8cfec6ef90e4a14eb46f24511824d1ac596b9682703c87056c8678b7" 1010 | "checksum uuid 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)" = "bcc7e3b898aa6f6c08e5295b6c89258d1331e9ac578cc992fb818759951bdc22" 1011 | "checksum vcpkg 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "9e0a7d8bed3178a8fb112199d466eeca9ed09a14ba8ad67718179b4fd5487d0b" 1012 | "checksum version_check 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)" = "6b772017e347561807c1aa192438c5fd74242a670a6cffacc40f2defd1dc069d" 1013 | "checksum winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)" = "167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a" 1014 | "checksum winapi 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)" = "04e3bd221fcbe8a271359c04f21a76db7d0c6028862d1bb5512d85e1e2eb5bb3" 1015 | "checksum winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "2d315eee3b34aca4797b2da6b13ed88266e6d612562a0c46390af8299fc699bc" 1016 | "checksum winapi-i686-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" 1017 | "checksum winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" 1018 | "checksum ws2_32-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "d59cefebd0c892fa2dd6de581e937301d8552cb44489cdff035c6187cb63fa5e" 1019 | -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "teach-rust" 3 | version = "0.2.0" 4 | authors = ["toidiu "] 5 | 6 | [dependencies] 7 | reqwest = "0.8.5" 8 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | An interactive guide to learning Rust! 2 | 3 | - It requires you to look at the [docs](https://doc.rust-lang.org/std/)! 4 | - It requires you to search the [web](http://www.letmegooglethat.com/?q=rust). 5 | - It requires you to ask for help on [IRC](https://chat.mibbit.com/?server=irc.mozilla.org&channel=%23rust-beginners). 6 | 7 | ## Requirements: 8 | - Install [rust](https://www.rust-lang.org/en-US/install.html) 9 | 10 | ## Tools 11 | [`cargo`](https://doc.rust-lang.org/cargo/) is Rust's package manager and part of the Rust instalation. 12 | You can use it to access public packages on https://crates.io, create new packages 13 | or [format](https://github.com/rust-lang-nursery/rustfmt) your code. 14 | 15 | ## Steps: 16 | The goal is to fix/enhance the piece of code in each branch. Start at branch `step1` (default branch after checking out). 17 | 18 | - Try to get the program to compile at each step. You can use `cargo run`, [`cargo watch`](https://github.com/passcod/cargo-watch) or `cargo watch -x run` to achieve that feat. 19 | - Once the program compiles move onto the next branch `step1` -> `step1.1` -> `step2` -> `step2.1` -> `step3`. 20 | - If you get stuck, try the docs, web, or IRC. 21 | 22 | 23 | --- 24 | 25 | ### Answers 26 | Yes the answers can be found in the branch `answer`. Try not to cheat; you wont learn! 27 | Asking on [IRC](https://chat.mibbit.com/?server=irc.mozilla.org&channel=%23rust-beginners) is preferable to cheating. 28 | -------------------------------------------------------------------------------- /src/main.rs: -------------------------------------------------------------------------------- 1 | extern crate reqwest; 2 | 3 | use reqwest::Client; 4 | use reqwest::Response; 5 | 6 | fn main() { 7 | let client = Client::new(); 8 | let xml: String = get_mta_status(); 9 | } 10 | 11 | fn get_mta_status(client: Client) -> String { 12 | let resp: Response = client 13 | .get("http://web.mta.info/status/serviceStatus.txt") 14 | .send().unwrap(); 15 | let body: String = resp.text().unwrap(); 16 | 17 | println!("{:?}", body); 18 | body 19 | } 20 | --------------------------------------------------------------------------------