├── .gitignore ├── Cargo.lock ├── Cargo.toml ├── LICENSE-APACHE ├── LICENSE-MIT ├── README.md └── src ├── dictd.rs ├── main.rs └── page.rs /.gitignore: -------------------------------------------------------------------------------- 1 | target 2 | -------------------------------------------------------------------------------- /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 = "ansi_term" 8 | version = "0.10.2" 9 | source = "registry+https://github.com/rust-lang/crates.io-index" 10 | 11 | [[package]] 12 | name = "atty" 13 | version = "0.2.6" 14 | source = "registry+https://github.com/rust-lang/crates.io-index" 15 | dependencies = [ 16 | "libc 0.2.36 (registry+https://github.com/rust-lang/crates.io-index)", 17 | "termion 1.5.1 (registry+https://github.com/rust-lang/crates.io-index)", 18 | "winapi 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", 19 | ] 20 | 21 | [[package]] 22 | name = "base64" 23 | version = "0.9.0" 24 | source = "registry+https://github.com/rust-lang/crates.io-index" 25 | dependencies = [ 26 | "byteorder 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 27 | "safemem 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", 28 | ] 29 | 30 | [[package]] 31 | name = "bit-set" 32 | version = "0.4.0" 33 | source = "registry+https://github.com/rust-lang/crates.io-index" 34 | dependencies = [ 35 | "bit-vec 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)", 36 | ] 37 | 38 | [[package]] 39 | name = "bit-vec" 40 | version = "0.4.4" 41 | source = "registry+https://github.com/rust-lang/crates.io-index" 42 | 43 | [[package]] 44 | name = "bitflags" 45 | version = "0.9.1" 46 | source = "registry+https://github.com/rust-lang/crates.io-index" 47 | 48 | [[package]] 49 | name = "bitflags" 50 | version = "1.0.1" 51 | source = "registry+https://github.com/rust-lang/crates.io-index" 52 | 53 | [[package]] 54 | name = "build_const" 55 | version = "0.2.0" 56 | source = "registry+https://github.com/rust-lang/crates.io-index" 57 | 58 | [[package]] 59 | name = "byteorder" 60 | version = "1.2.1" 61 | source = "registry+https://github.com/rust-lang/crates.io-index" 62 | 63 | [[package]] 64 | name = "bytes" 65 | version = "0.4.6" 66 | source = "registry+https://github.com/rust-lang/crates.io-index" 67 | dependencies = [ 68 | "byteorder 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 69 | "iovec 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 70 | ] 71 | 72 | [[package]] 73 | name = "cc" 74 | version = "1.0.4" 75 | source = "registry+https://github.com/rust-lang/crates.io-index" 76 | 77 | [[package]] 78 | name = "cfg-if" 79 | version = "0.1.2" 80 | source = "registry+https://github.com/rust-lang/crates.io-index" 81 | 82 | [[package]] 83 | name = "clap" 84 | version = "2.30.0" 85 | source = "registry+https://github.com/rust-lang/crates.io-index" 86 | dependencies = [ 87 | "ansi_term 0.10.2 (registry+https://github.com/rust-lang/crates.io-index)", 88 | "atty 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)", 89 | "bitflags 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", 90 | "strsim 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", 91 | "textwrap 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", 92 | "unicode-width 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", 93 | "vec_map 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)", 94 | ] 95 | 96 | [[package]] 97 | name = "core-foundation" 98 | version = "0.2.3" 99 | source = "registry+https://github.com/rust-lang/crates.io-index" 100 | dependencies = [ 101 | "core-foundation-sys 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", 102 | "libc 0.2.36 (registry+https://github.com/rust-lang/crates.io-index)", 103 | ] 104 | 105 | [[package]] 106 | name = "core-foundation-sys" 107 | version = "0.2.3" 108 | source = "registry+https://github.com/rust-lang/crates.io-index" 109 | dependencies = [ 110 | "libc 0.2.36 (registry+https://github.com/rust-lang/crates.io-index)", 111 | ] 112 | 113 | [[package]] 114 | name = "crc" 115 | version = "1.7.0" 116 | source = "registry+https://github.com/rust-lang/crates.io-index" 117 | dependencies = [ 118 | "build_const 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", 119 | ] 120 | 121 | [[package]] 122 | name = "debug_unreachable" 123 | version = "0.1.1" 124 | source = "registry+https://github.com/rust-lang/crates.io-index" 125 | dependencies = [ 126 | "unreachable 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 127 | ] 128 | 129 | [[package]] 130 | name = "dtoa" 131 | version = "0.4.2" 132 | source = "registry+https://github.com/rust-lang/crates.io-index" 133 | 134 | [[package]] 135 | name = "encoding_rs" 136 | version = "0.7.2" 137 | source = "registry+https://github.com/rust-lang/crates.io-index" 138 | dependencies = [ 139 | "cfg-if 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 140 | ] 141 | 142 | [[package]] 143 | name = "foreign-types" 144 | version = "0.3.2" 145 | source = "registry+https://github.com/rust-lang/crates.io-index" 146 | dependencies = [ 147 | "foreign-types-shared 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 148 | ] 149 | 150 | [[package]] 151 | name = "foreign-types-shared" 152 | version = "0.1.1" 153 | source = "registry+https://github.com/rust-lang/crates.io-index" 154 | 155 | [[package]] 156 | name = "fuchsia-zircon" 157 | version = "0.3.3" 158 | source = "registry+https://github.com/rust-lang/crates.io-index" 159 | dependencies = [ 160 | "bitflags 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", 161 | "fuchsia-zircon-sys 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", 162 | ] 163 | 164 | [[package]] 165 | name = "fuchsia-zircon-sys" 166 | version = "0.3.3" 167 | source = "registry+https://github.com/rust-lang/crates.io-index" 168 | 169 | [[package]] 170 | name = "futf" 171 | version = "0.1.3" 172 | source = "registry+https://github.com/rust-lang/crates.io-index" 173 | dependencies = [ 174 | "debug_unreachable 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 175 | "mac 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 176 | ] 177 | 178 | [[package]] 179 | name = "futures" 180 | version = "0.1.18" 181 | source = "registry+https://github.com/rust-lang/crates.io-index" 182 | 183 | [[package]] 184 | name = "futures-cpupool" 185 | version = "0.1.8" 186 | source = "registry+https://github.com/rust-lang/crates.io-index" 187 | dependencies = [ 188 | "futures 0.1.18 (registry+https://github.com/rust-lang/crates.io-index)", 189 | "num_cpus 1.8.0 (registry+https://github.com/rust-lang/crates.io-index)", 190 | ] 191 | 192 | [[package]] 193 | name = "html5ever" 194 | version = "0.18.0" 195 | source = "registry+https://github.com/rust-lang/crates.io-index" 196 | dependencies = [ 197 | "log 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)", 198 | "mac 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 199 | "markup5ever 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)", 200 | "quote 0.3.15 (registry+https://github.com/rust-lang/crates.io-index)", 201 | "syn 0.11.11 (registry+https://github.com/rust-lang/crates.io-index)", 202 | ] 203 | 204 | [[package]] 205 | name = "httparse" 206 | version = "1.2.4" 207 | source = "registry+https://github.com/rust-lang/crates.io-index" 208 | 209 | [[package]] 210 | name = "hyper" 211 | version = "0.11.18" 212 | source = "registry+https://github.com/rust-lang/crates.io-index" 213 | dependencies = [ 214 | "base64 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", 215 | "bytes 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", 216 | "futures 0.1.18 (registry+https://github.com/rust-lang/crates.io-index)", 217 | "futures-cpupool 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)", 218 | "httparse 1.2.4 (registry+https://github.com/rust-lang/crates.io-index)", 219 | "iovec 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 220 | "language-tags 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", 221 | "log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", 222 | "mime 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", 223 | "percent-encoding 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", 224 | "relay 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 225 | "time 0.1.39 (registry+https://github.com/rust-lang/crates.io-index)", 226 | "tokio-core 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)", 227 | "tokio-io 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", 228 | "tokio-proto 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 229 | "tokio-service 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", 230 | "unicase 2.1.0 (registry+https://github.com/rust-lang/crates.io-index)", 231 | ] 232 | 233 | [[package]] 234 | name = "hyper-tls" 235 | version = "0.1.2" 236 | source = "registry+https://github.com/rust-lang/crates.io-index" 237 | dependencies = [ 238 | "futures 0.1.18 (registry+https://github.com/rust-lang/crates.io-index)", 239 | "hyper 0.11.18 (registry+https://github.com/rust-lang/crates.io-index)", 240 | "native-tls 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", 241 | "tokio-core 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)", 242 | "tokio-io 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", 243 | "tokio-service 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", 244 | "tokio-tls 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", 245 | ] 246 | 247 | [[package]] 248 | name = "idna" 249 | version = "0.1.4" 250 | source = "registry+https://github.com/rust-lang/crates.io-index" 251 | dependencies = [ 252 | "matches 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", 253 | "unicode-bidi 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", 254 | "unicode-normalization 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", 255 | ] 256 | 257 | [[package]] 258 | name = "iovec" 259 | version = "0.1.2" 260 | source = "registry+https://github.com/rust-lang/crates.io-index" 261 | dependencies = [ 262 | "libc 0.2.36 (registry+https://github.com/rust-lang/crates.io-index)", 263 | "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", 264 | ] 265 | 266 | [[package]] 267 | name = "itoa" 268 | version = "0.3.4" 269 | source = "registry+https://github.com/rust-lang/crates.io-index" 270 | 271 | [[package]] 272 | name = "kernel32-sys" 273 | version = "0.2.2" 274 | source = "registry+https://github.com/rust-lang/crates.io-index" 275 | dependencies = [ 276 | "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", 277 | "winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 278 | ] 279 | 280 | [[package]] 281 | name = "language-tags" 282 | version = "0.2.2" 283 | source = "registry+https://github.com/rust-lang/crates.io-index" 284 | 285 | [[package]] 286 | name = "lazy_static" 287 | version = "0.2.11" 288 | source = "registry+https://github.com/rust-lang/crates.io-index" 289 | 290 | [[package]] 291 | name = "lazy_static" 292 | version = "1.0.0" 293 | source = "registry+https://github.com/rust-lang/crates.io-index" 294 | 295 | [[package]] 296 | name = "lazycell" 297 | version = "0.6.0" 298 | source = "registry+https://github.com/rust-lang/crates.io-index" 299 | 300 | [[package]] 301 | name = "libc" 302 | version = "0.2.36" 303 | source = "registry+https://github.com/rust-lang/crates.io-index" 304 | 305 | [[package]] 306 | name = "libflate" 307 | version = "0.1.14" 308 | source = "registry+https://github.com/rust-lang/crates.io-index" 309 | dependencies = [ 310 | "adler32 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", 311 | "byteorder 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 312 | "crc 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)", 313 | ] 314 | 315 | [[package]] 316 | name = "log" 317 | version = "0.3.9" 318 | source = "registry+https://github.com/rust-lang/crates.io-index" 319 | dependencies = [ 320 | "log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", 321 | ] 322 | 323 | [[package]] 324 | name = "log" 325 | version = "0.4.1" 326 | source = "registry+https://github.com/rust-lang/crates.io-index" 327 | dependencies = [ 328 | "cfg-if 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 329 | ] 330 | 331 | [[package]] 332 | name = "mac" 333 | version = "0.1.1" 334 | source = "registry+https://github.com/rust-lang/crates.io-index" 335 | 336 | [[package]] 337 | name = "markup5ever" 338 | version = "0.3.2" 339 | source = "registry+https://github.com/rust-lang/crates.io-index" 340 | dependencies = [ 341 | "phf 0.7.21 (registry+https://github.com/rust-lang/crates.io-index)", 342 | "phf_codegen 0.7.21 (registry+https://github.com/rust-lang/crates.io-index)", 343 | "rustc-serialize 0.3.24 (registry+https://github.com/rust-lang/crates.io-index)", 344 | "string_cache 0.6.2 (registry+https://github.com/rust-lang/crates.io-index)", 345 | "string_cache_codegen 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 346 | "tendril 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", 347 | ] 348 | 349 | [[package]] 350 | name = "matches" 351 | version = "0.1.6" 352 | source = "registry+https://github.com/rust-lang/crates.io-index" 353 | 354 | [[package]] 355 | name = "mime" 356 | version = "0.3.5" 357 | source = "registry+https://github.com/rust-lang/crates.io-index" 358 | dependencies = [ 359 | "unicase 2.1.0 (registry+https://github.com/rust-lang/crates.io-index)", 360 | ] 361 | 362 | [[package]] 363 | name = "mime_guess" 364 | version = "2.0.0-alpha.3" 365 | source = "registry+https://github.com/rust-lang/crates.io-index" 366 | dependencies = [ 367 | "mime 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", 368 | "phf 0.7.21 (registry+https://github.com/rust-lang/crates.io-index)", 369 | "phf_codegen 0.7.21 (registry+https://github.com/rust-lang/crates.io-index)", 370 | "unicase 1.4.2 (registry+https://github.com/rust-lang/crates.io-index)", 371 | ] 372 | 373 | [[package]] 374 | name = "mio" 375 | version = "0.6.13" 376 | source = "registry+https://github.com/rust-lang/crates.io-index" 377 | dependencies = [ 378 | "fuchsia-zircon 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", 379 | "fuchsia-zircon-sys 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", 380 | "iovec 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 381 | "kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", 382 | "lazycell 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)", 383 | "libc 0.2.36 (registry+https://github.com/rust-lang/crates.io-index)", 384 | "log 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)", 385 | "miow 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 386 | "net2 0.2.31 (registry+https://github.com/rust-lang/crates.io-index)", 387 | "slab 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", 388 | "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", 389 | ] 390 | 391 | [[package]] 392 | name = "miow" 393 | version = "0.2.1" 394 | source = "registry+https://github.com/rust-lang/crates.io-index" 395 | dependencies = [ 396 | "kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", 397 | "net2 0.2.31 (registry+https://github.com/rust-lang/crates.io-index)", 398 | "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", 399 | "ws2_32-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 400 | ] 401 | 402 | [[package]] 403 | name = "native-tls" 404 | version = "0.1.5" 405 | source = "registry+https://github.com/rust-lang/crates.io-index" 406 | dependencies = [ 407 | "lazy_static 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", 408 | "libc 0.2.36 (registry+https://github.com/rust-lang/crates.io-index)", 409 | "openssl 0.9.24 (registry+https://github.com/rust-lang/crates.io-index)", 410 | "schannel 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", 411 | "security-framework 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)", 412 | "security-framework-sys 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)", 413 | "tempdir 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", 414 | ] 415 | 416 | [[package]] 417 | name = "net2" 418 | version = "0.2.31" 419 | source = "registry+https://github.com/rust-lang/crates.io-index" 420 | dependencies = [ 421 | "cfg-if 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 422 | "kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", 423 | "libc 0.2.36 (registry+https://github.com/rust-lang/crates.io-index)", 424 | "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", 425 | "ws2_32-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 426 | ] 427 | 428 | [[package]] 429 | name = "num-traits" 430 | version = "0.1.43" 431 | source = "registry+https://github.com/rust-lang/crates.io-index" 432 | dependencies = [ 433 | "num-traits 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", 434 | ] 435 | 436 | [[package]] 437 | name = "num-traits" 438 | version = "0.2.0" 439 | source = "registry+https://github.com/rust-lang/crates.io-index" 440 | 441 | [[package]] 442 | name = "num_cpus" 443 | version = "1.8.0" 444 | source = "registry+https://github.com/rust-lang/crates.io-index" 445 | dependencies = [ 446 | "libc 0.2.36 (registry+https://github.com/rust-lang/crates.io-index)", 447 | ] 448 | 449 | [[package]] 450 | name = "openssl" 451 | version = "0.9.24" 452 | source = "registry+https://github.com/rust-lang/crates.io-index" 453 | dependencies = [ 454 | "bitflags 0.9.1 (registry+https://github.com/rust-lang/crates.io-index)", 455 | "foreign-types 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)", 456 | "lazy_static 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", 457 | "libc 0.2.36 (registry+https://github.com/rust-lang/crates.io-index)", 458 | "openssl-sys 0.9.25 (registry+https://github.com/rust-lang/crates.io-index)", 459 | ] 460 | 461 | [[package]] 462 | name = "openssl-sys" 463 | version = "0.9.25" 464 | source = "registry+https://github.com/rust-lang/crates.io-index" 465 | dependencies = [ 466 | "cc 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)", 467 | "libc 0.2.36 (registry+https://github.com/rust-lang/crates.io-index)", 468 | "pkg-config 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)", 469 | "vcpkg 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", 470 | ] 471 | 472 | [[package]] 473 | name = "percent-encoding" 474 | version = "1.0.1" 475 | source = "registry+https://github.com/rust-lang/crates.io-index" 476 | 477 | [[package]] 478 | name = "phf" 479 | version = "0.7.21" 480 | source = "registry+https://github.com/rust-lang/crates.io-index" 481 | dependencies = [ 482 | "phf_shared 0.7.21 (registry+https://github.com/rust-lang/crates.io-index)", 483 | ] 484 | 485 | [[package]] 486 | name = "phf_codegen" 487 | version = "0.7.21" 488 | source = "registry+https://github.com/rust-lang/crates.io-index" 489 | dependencies = [ 490 | "phf_generator 0.7.21 (registry+https://github.com/rust-lang/crates.io-index)", 491 | "phf_shared 0.7.21 (registry+https://github.com/rust-lang/crates.io-index)", 492 | ] 493 | 494 | [[package]] 495 | name = "phf_generator" 496 | version = "0.7.21" 497 | source = "registry+https://github.com/rust-lang/crates.io-index" 498 | dependencies = [ 499 | "phf_shared 0.7.21 (registry+https://github.com/rust-lang/crates.io-index)", 500 | "rand 0.3.22 (registry+https://github.com/rust-lang/crates.io-index)", 501 | ] 502 | 503 | [[package]] 504 | name = "phf_shared" 505 | version = "0.7.21" 506 | source = "registry+https://github.com/rust-lang/crates.io-index" 507 | dependencies = [ 508 | "siphasher 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", 509 | "unicase 1.4.2 (registry+https://github.com/rust-lang/crates.io-index)", 510 | ] 511 | 512 | [[package]] 513 | name = "pkg-config" 514 | version = "0.3.9" 515 | source = "registry+https://github.com/rust-lang/crates.io-index" 516 | 517 | [[package]] 518 | name = "precomputed-hash" 519 | version = "0.1.1" 520 | source = "registry+https://github.com/rust-lang/crates.io-index" 521 | 522 | [[package]] 523 | name = "quote" 524 | version = "0.3.15" 525 | source = "registry+https://github.com/rust-lang/crates.io-index" 526 | 527 | [[package]] 528 | name = "rand" 529 | version = "0.3.22" 530 | source = "registry+https://github.com/rust-lang/crates.io-index" 531 | dependencies = [ 532 | "fuchsia-zircon 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", 533 | "libc 0.2.36 (registry+https://github.com/rust-lang/crates.io-index)", 534 | "rand 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", 535 | ] 536 | 537 | [[package]] 538 | name = "rand" 539 | version = "0.4.2" 540 | source = "registry+https://github.com/rust-lang/crates.io-index" 541 | dependencies = [ 542 | "fuchsia-zircon 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", 543 | "libc 0.2.36 (registry+https://github.com/rust-lang/crates.io-index)", 544 | "winapi 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", 545 | ] 546 | 547 | [[package]] 548 | name = "redox_syscall" 549 | version = "0.1.37" 550 | source = "registry+https://github.com/rust-lang/crates.io-index" 551 | 552 | [[package]] 553 | name = "redox_termios" 554 | version = "0.1.1" 555 | source = "registry+https://github.com/rust-lang/crates.io-index" 556 | dependencies = [ 557 | "redox_syscall 0.1.37 (registry+https://github.com/rust-lang/crates.io-index)", 558 | ] 559 | 560 | [[package]] 561 | name = "relay" 562 | version = "0.1.1" 563 | source = "registry+https://github.com/rust-lang/crates.io-index" 564 | dependencies = [ 565 | "futures 0.1.18 (registry+https://github.com/rust-lang/crates.io-index)", 566 | ] 567 | 568 | [[package]] 569 | name = "remove_dir_all" 570 | version = "0.3.0" 571 | source = "registry+https://github.com/rust-lang/crates.io-index" 572 | dependencies = [ 573 | "kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", 574 | "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", 575 | ] 576 | 577 | [[package]] 578 | name = "reqwest" 579 | version = "0.8.5" 580 | source = "registry+https://github.com/rust-lang/crates.io-index" 581 | dependencies = [ 582 | "bytes 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", 583 | "encoding_rs 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)", 584 | "futures 0.1.18 (registry+https://github.com/rust-lang/crates.io-index)", 585 | "hyper 0.11.18 (registry+https://github.com/rust-lang/crates.io-index)", 586 | "hyper-tls 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 587 | "libflate 0.1.14 (registry+https://github.com/rust-lang/crates.io-index)", 588 | "log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", 589 | "mime_guess 2.0.0-alpha.3 (registry+https://github.com/rust-lang/crates.io-index)", 590 | "native-tls 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", 591 | "serde 1.0.27 (registry+https://github.com/rust-lang/crates.io-index)", 592 | "serde_json 1.0.9 (registry+https://github.com/rust-lang/crates.io-index)", 593 | "serde_urlencoded 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)", 594 | "tokio-core 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)", 595 | "tokio-io 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", 596 | "tokio-tls 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", 597 | "url 1.6.0 (registry+https://github.com/rust-lang/crates.io-index)", 598 | "uuid 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)", 599 | ] 600 | 601 | [[package]] 602 | name = "rustc-serialize" 603 | version = "0.3.24" 604 | source = "registry+https://github.com/rust-lang/crates.io-index" 605 | 606 | [[package]] 607 | name = "safemem" 608 | version = "0.2.0" 609 | source = "registry+https://github.com/rust-lang/crates.io-index" 610 | 611 | [[package]] 612 | name = "schannel" 613 | version = "0.1.10" 614 | source = "registry+https://github.com/rust-lang/crates.io-index" 615 | dependencies = [ 616 | "lazy_static 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", 617 | "winapi 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", 618 | ] 619 | 620 | [[package]] 621 | name = "scoped-tls" 622 | version = "0.1.0" 623 | source = "registry+https://github.com/rust-lang/crates.io-index" 624 | 625 | [[package]] 626 | name = "security-framework" 627 | version = "0.1.16" 628 | source = "registry+https://github.com/rust-lang/crates.io-index" 629 | dependencies = [ 630 | "core-foundation 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", 631 | "core-foundation-sys 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", 632 | "libc 0.2.36 (registry+https://github.com/rust-lang/crates.io-index)", 633 | "security-framework-sys 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)", 634 | ] 635 | 636 | [[package]] 637 | name = "security-framework-sys" 638 | version = "0.1.16" 639 | source = "registry+https://github.com/rust-lang/crates.io-index" 640 | dependencies = [ 641 | "core-foundation-sys 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", 642 | "libc 0.2.36 (registry+https://github.com/rust-lang/crates.io-index)", 643 | ] 644 | 645 | [[package]] 646 | name = "select" 647 | version = "0.4.2" 648 | source = "registry+https://github.com/rust-lang/crates.io-index" 649 | dependencies = [ 650 | "bit-set 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 651 | "html5ever 0.18.0 (registry+https://github.com/rust-lang/crates.io-index)", 652 | ] 653 | 654 | [[package]] 655 | name = "serde" 656 | version = "1.0.27" 657 | source = "registry+https://github.com/rust-lang/crates.io-index" 658 | 659 | [[package]] 660 | name = "serde_json" 661 | version = "1.0.9" 662 | source = "registry+https://github.com/rust-lang/crates.io-index" 663 | dependencies = [ 664 | "dtoa 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", 665 | "itoa 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", 666 | "num-traits 0.1.43 (registry+https://github.com/rust-lang/crates.io-index)", 667 | "serde 1.0.27 (registry+https://github.com/rust-lang/crates.io-index)", 668 | ] 669 | 670 | [[package]] 671 | name = "serde_urlencoded" 672 | version = "0.5.1" 673 | source = "registry+https://github.com/rust-lang/crates.io-index" 674 | dependencies = [ 675 | "dtoa 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", 676 | "itoa 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", 677 | "serde 1.0.27 (registry+https://github.com/rust-lang/crates.io-index)", 678 | "url 1.6.0 (registry+https://github.com/rust-lang/crates.io-index)", 679 | ] 680 | 681 | [[package]] 682 | name = "siphasher" 683 | version = "0.2.2" 684 | source = "registry+https://github.com/rust-lang/crates.io-index" 685 | 686 | [[package]] 687 | name = "slab" 688 | version = "0.3.0" 689 | source = "registry+https://github.com/rust-lang/crates.io-index" 690 | 691 | [[package]] 692 | name = "slab" 693 | version = "0.4.0" 694 | source = "registry+https://github.com/rust-lang/crates.io-index" 695 | 696 | [[package]] 697 | name = "smallvec" 698 | version = "0.2.1" 699 | source = "registry+https://github.com/rust-lang/crates.io-index" 700 | 701 | [[package]] 702 | name = "string_cache" 703 | version = "0.6.2" 704 | source = "registry+https://github.com/rust-lang/crates.io-index" 705 | dependencies = [ 706 | "debug_unreachable 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 707 | "lazy_static 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)", 708 | "phf_shared 0.7.21 (registry+https://github.com/rust-lang/crates.io-index)", 709 | "precomputed-hash 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 710 | "serde 1.0.27 (registry+https://github.com/rust-lang/crates.io-index)", 711 | "string_cache_codegen 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 712 | "string_cache_shared 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", 713 | ] 714 | 715 | [[package]] 716 | name = "string_cache_codegen" 717 | version = "0.4.0" 718 | source = "registry+https://github.com/rust-lang/crates.io-index" 719 | dependencies = [ 720 | "phf_generator 0.7.21 (registry+https://github.com/rust-lang/crates.io-index)", 721 | "phf_shared 0.7.21 (registry+https://github.com/rust-lang/crates.io-index)", 722 | "quote 0.3.15 (registry+https://github.com/rust-lang/crates.io-index)", 723 | "string_cache_shared 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", 724 | ] 725 | 726 | [[package]] 727 | name = "string_cache_shared" 728 | version = "0.3.0" 729 | source = "registry+https://github.com/rust-lang/crates.io-index" 730 | 731 | [[package]] 732 | name = "strsim" 733 | version = "0.7.0" 734 | source = "registry+https://github.com/rust-lang/crates.io-index" 735 | 736 | [[package]] 737 | name = "syn" 738 | version = "0.11.11" 739 | source = "registry+https://github.com/rust-lang/crates.io-index" 740 | dependencies = [ 741 | "quote 0.3.15 (registry+https://github.com/rust-lang/crates.io-index)", 742 | "synom 0.11.3 (registry+https://github.com/rust-lang/crates.io-index)", 743 | "unicode-xid 0.0.4 (registry+https://github.com/rust-lang/crates.io-index)", 744 | ] 745 | 746 | [[package]] 747 | name = "synom" 748 | version = "0.11.3" 749 | source = "registry+https://github.com/rust-lang/crates.io-index" 750 | dependencies = [ 751 | "unicode-xid 0.0.4 (registry+https://github.com/rust-lang/crates.io-index)", 752 | ] 753 | 754 | [[package]] 755 | name = "take" 756 | version = "0.1.0" 757 | source = "registry+https://github.com/rust-lang/crates.io-index" 758 | 759 | [[package]] 760 | name = "tempdir" 761 | version = "0.3.6" 762 | source = "registry+https://github.com/rust-lang/crates.io-index" 763 | dependencies = [ 764 | "rand 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", 765 | "remove_dir_all 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", 766 | ] 767 | 768 | [[package]] 769 | name = "tendril" 770 | version = "0.3.1" 771 | source = "registry+https://github.com/rust-lang/crates.io-index" 772 | dependencies = [ 773 | "futf 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", 774 | "mac 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 775 | "utf-8 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)", 776 | ] 777 | 778 | [[package]] 779 | name = "termion" 780 | version = "1.5.1" 781 | source = "registry+https://github.com/rust-lang/crates.io-index" 782 | dependencies = [ 783 | "libc 0.2.36 (registry+https://github.com/rust-lang/crates.io-index)", 784 | "redox_syscall 0.1.37 (registry+https://github.com/rust-lang/crates.io-index)", 785 | "redox_termios 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 786 | ] 787 | 788 | [[package]] 789 | name = "textwrap" 790 | version = "0.9.0" 791 | source = "registry+https://github.com/rust-lang/crates.io-index" 792 | dependencies = [ 793 | "unicode-width 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", 794 | ] 795 | 796 | [[package]] 797 | name = "time" 798 | version = "0.1.39" 799 | source = "registry+https://github.com/rust-lang/crates.io-index" 800 | dependencies = [ 801 | "libc 0.2.36 (registry+https://github.com/rust-lang/crates.io-index)", 802 | "redox_syscall 0.1.37 (registry+https://github.com/rust-lang/crates.io-index)", 803 | "winapi 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", 804 | ] 805 | 806 | [[package]] 807 | name = "tokio-core" 808 | version = "0.1.12" 809 | source = "registry+https://github.com/rust-lang/crates.io-index" 810 | dependencies = [ 811 | "bytes 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", 812 | "futures 0.1.18 (registry+https://github.com/rust-lang/crates.io-index)", 813 | "iovec 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 814 | "log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", 815 | "mio 0.6.13 (registry+https://github.com/rust-lang/crates.io-index)", 816 | "scoped-tls 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", 817 | "slab 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 818 | "tokio-io 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", 819 | ] 820 | 821 | [[package]] 822 | name = "tokio-io" 823 | version = "0.1.5" 824 | source = "registry+https://github.com/rust-lang/crates.io-index" 825 | dependencies = [ 826 | "bytes 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", 827 | "futures 0.1.18 (registry+https://github.com/rust-lang/crates.io-index)", 828 | "log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", 829 | ] 830 | 831 | [[package]] 832 | name = "tokio-proto" 833 | version = "0.1.1" 834 | source = "registry+https://github.com/rust-lang/crates.io-index" 835 | dependencies = [ 836 | "futures 0.1.18 (registry+https://github.com/rust-lang/crates.io-index)", 837 | "log 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)", 838 | "net2 0.2.31 (registry+https://github.com/rust-lang/crates.io-index)", 839 | "rand 0.3.22 (registry+https://github.com/rust-lang/crates.io-index)", 840 | "slab 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", 841 | "smallvec 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 842 | "take 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", 843 | "tokio-core 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)", 844 | "tokio-io 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", 845 | "tokio-service 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", 846 | ] 847 | 848 | [[package]] 849 | name = "tokio-service" 850 | version = "0.1.0" 851 | source = "registry+https://github.com/rust-lang/crates.io-index" 852 | dependencies = [ 853 | "futures 0.1.18 (registry+https://github.com/rust-lang/crates.io-index)", 854 | ] 855 | 856 | [[package]] 857 | name = "tokio-tls" 858 | version = "0.1.4" 859 | source = "registry+https://github.com/rust-lang/crates.io-index" 860 | dependencies = [ 861 | "futures 0.1.18 (registry+https://github.com/rust-lang/crates.io-index)", 862 | "native-tls 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", 863 | "tokio-core 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)", 864 | "tokio-io 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", 865 | ] 866 | 867 | [[package]] 868 | name = "unicase" 869 | version = "1.4.2" 870 | source = "registry+https://github.com/rust-lang/crates.io-index" 871 | dependencies = [ 872 | "version_check 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", 873 | ] 874 | 875 | [[package]] 876 | name = "unicase" 877 | version = "2.1.0" 878 | source = "registry+https://github.com/rust-lang/crates.io-index" 879 | dependencies = [ 880 | "version_check 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", 881 | ] 882 | 883 | [[package]] 884 | name = "unicode-bidi" 885 | version = "0.3.4" 886 | source = "registry+https://github.com/rust-lang/crates.io-index" 887 | dependencies = [ 888 | "matches 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", 889 | ] 890 | 891 | [[package]] 892 | name = "unicode-normalization" 893 | version = "0.1.5" 894 | source = "registry+https://github.com/rust-lang/crates.io-index" 895 | 896 | [[package]] 897 | name = "unicode-width" 898 | version = "0.1.4" 899 | source = "registry+https://github.com/rust-lang/crates.io-index" 900 | 901 | [[package]] 902 | name = "unicode-xid" 903 | version = "0.0.4" 904 | source = "registry+https://github.com/rust-lang/crates.io-index" 905 | 906 | [[package]] 907 | name = "unreachable" 908 | version = "0.1.1" 909 | source = "registry+https://github.com/rust-lang/crates.io-index" 910 | dependencies = [ 911 | "void 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", 912 | ] 913 | 914 | [[package]] 915 | name = "urdict" 916 | version = "0.3.5-alpha.0" 917 | dependencies = [ 918 | "ansi_term 0.10.2 (registry+https://github.com/rust-lang/crates.io-index)", 919 | "clap 2.30.0 (registry+https://github.com/rust-lang/crates.io-index)", 920 | "rand 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", 921 | "reqwest 0.8.5 (registry+https://github.com/rust-lang/crates.io-index)", 922 | "select 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", 923 | ] 924 | 925 | [[package]] 926 | name = "url" 927 | version = "1.6.0" 928 | source = "registry+https://github.com/rust-lang/crates.io-index" 929 | dependencies = [ 930 | "idna 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", 931 | "matches 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", 932 | "percent-encoding 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", 933 | ] 934 | 935 | [[package]] 936 | name = "utf-8" 937 | version = "0.7.2" 938 | source = "registry+https://github.com/rust-lang/crates.io-index" 939 | 940 | [[package]] 941 | name = "uuid" 942 | version = "0.5.1" 943 | source = "registry+https://github.com/rust-lang/crates.io-index" 944 | dependencies = [ 945 | "rand 0.3.22 (registry+https://github.com/rust-lang/crates.io-index)", 946 | ] 947 | 948 | [[package]] 949 | name = "vcpkg" 950 | version = "0.2.2" 951 | source = "registry+https://github.com/rust-lang/crates.io-index" 952 | 953 | [[package]] 954 | name = "vec_map" 955 | version = "0.8.0" 956 | source = "registry+https://github.com/rust-lang/crates.io-index" 957 | 958 | [[package]] 959 | name = "version_check" 960 | version = "0.1.3" 961 | source = "registry+https://github.com/rust-lang/crates.io-index" 962 | 963 | [[package]] 964 | name = "void" 965 | version = "1.0.2" 966 | source = "registry+https://github.com/rust-lang/crates.io-index" 967 | 968 | [[package]] 969 | name = "winapi" 970 | version = "0.2.8" 971 | source = "registry+https://github.com/rust-lang/crates.io-index" 972 | 973 | [[package]] 974 | name = "winapi" 975 | version = "0.3.4" 976 | source = "registry+https://github.com/rust-lang/crates.io-index" 977 | dependencies = [ 978 | "winapi-i686-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 979 | "winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 980 | ] 981 | 982 | [[package]] 983 | name = "winapi-build" 984 | version = "0.1.1" 985 | source = "registry+https://github.com/rust-lang/crates.io-index" 986 | 987 | [[package]] 988 | name = "winapi-i686-pc-windows-gnu" 989 | version = "0.4.0" 990 | source = "registry+https://github.com/rust-lang/crates.io-index" 991 | 992 | [[package]] 993 | name = "winapi-x86_64-pc-windows-gnu" 994 | version = "0.4.0" 995 | source = "registry+https://github.com/rust-lang/crates.io-index" 996 | 997 | [[package]] 998 | name = "ws2_32-sys" 999 | version = "0.2.1" 1000 | source = "registry+https://github.com/rust-lang/crates.io-index" 1001 | dependencies = [ 1002 | "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", 1003 | "winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 1004 | ] 1005 | 1006 | [metadata] 1007 | "checksum adler32 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = "6cbd0b9af8587c72beadc9f72d35b9fbb070982c9e6203e46e93f10df25f8f45" 1008 | "checksum ansi_term 0.10.2 (registry+https://github.com/rust-lang/crates.io-index)" = "6b3568b48b7cefa6b8ce125f9bb4989e52fbcc29ebea88df04cc7c5f12f70455" 1009 | "checksum atty 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)" = "8352656fd42c30a0c3c89d26dea01e3b77c0ab2af18230835c15e2e13cd51859" 1010 | "checksum base64 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)" = "229d032f1a99302697f10b27167ae6d03d49d032e6a8e2550e8d3fc13356d2b4" 1011 | "checksum bit-set 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "d9bf6104718e80d7b26a68fdbacff3481cfc05df670821affc7e9cbc1884400c" 1012 | "checksum bit-vec 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)" = "02b4ff8b16e6076c3e14220b39fbc1fabb6737522281a388998046859400895f" 1013 | "checksum bitflags 0.9.1 (registry+https://github.com/rust-lang/crates.io-index)" = "4efd02e230a02e18f92fc2735f44597385ed02ad8f831e7c1c1156ee5e1ab3a5" 1014 | "checksum bitflags 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "b3c30d3802dfb7281680d6285f2ccdaa8c2d8fee41f93805dba5c4cf50dc23cf" 1015 | "checksum build_const 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "e90dc84f5e62d2ebe7676b83c22d33b6db8bd27340fb6ffbff0a364efa0cb9c9" 1016 | "checksum byteorder 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "652805b7e73fada9d85e9a6682a4abd490cb52d96aeecc12e33a0de34dfd0d23" 1017 | "checksum bytes 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)" = "1b7db437d718977f6dc9b2e3fd6fc343c02ac6b899b73fdd2179163447bd9ce9" 1018 | "checksum cc 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)" = "deaf9ec656256bb25b404c51ef50097207b9cbb29c933d31f92cae5a8a0ffee0" 1019 | "checksum cfg-if 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "d4c819a1287eb618df47cc647173c5c4c66ba19d888a6e50d605672aed3140de" 1020 | "checksum clap 2.30.0 (registry+https://github.com/rust-lang/crates.io-index)" = "1c07b9257a00f3fc93b7f3c417fc15607ec7a56823bc2c37ec744e266387de5b" 1021 | "checksum core-foundation 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "25bfd746d203017f7d5cbd31ee5d8e17f94b6521c7af77ece6c9e4b2d4b16c67" 1022 | "checksum core-foundation-sys 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "065a5d7ffdcbc8fa145d6f0746f3555025b9097a9e9cda59f7467abae670c78d" 1023 | "checksum crc 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "bd5d02c0aac6bd68393ed69e00bbc2457f3e89075c6349db7189618dc4ddc1d7" 1024 | "checksum debug_unreachable 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "9a032eac705ca39214d169f83e3d3da290af06d8d1d344d1baad2fd002dca4b3" 1025 | "checksum dtoa 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)" = "09c3753c3db574d215cba4ea76018483895d7bff25a31b49ba45db21c48e50ab" 1026 | "checksum encoding_rs 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)" = "98fd0f24d1fb71a4a6b9330c8ca04cbd4e7cc5d846b54ca74ff376bc7c9f798d" 1027 | "checksum foreign-types 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)" = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1" 1028 | "checksum foreign-types-shared 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" 1029 | "checksum fuchsia-zircon 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "2e9763c69ebaae630ba35f74888db465e49e259ba1bc0eda7d06f4a067615d82" 1030 | "checksum fuchsia-zircon-sys 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "3dcaa9ae7725d12cdb85b3ad99a434db70b468c09ded17e012d86b5c1010f7a7" 1031 | "checksum futf 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)" = "51f93f3de6ba1794dcd5810b3546d004600a59a98266487c8407bc4b24e398f3" 1032 | "checksum futures 0.1.18 (registry+https://github.com/rust-lang/crates.io-index)" = "0bab5b5e94f5c31fc764ba5dd9ad16568aae5d4825538c01d6bca680c9bf94a7" 1033 | "checksum futures-cpupool 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)" = "ab90cde24b3319636588d0c35fe03b1333857621051837ed769faefb4c2162e4" 1034 | "checksum html5ever 0.18.0 (registry+https://github.com/rust-lang/crates.io-index)" = "a49d5001dd1bddf042ea41ed4e0a671d50b1bf187e66b349d7ec613bdce4ad90" 1035 | "checksum httparse 1.2.4 (registry+https://github.com/rust-lang/crates.io-index)" = "c2f407128745b78abc95c0ffbe4e5d37427fdc0d45470710cfef8c44522a2e37" 1036 | "checksum hyper 0.11.18 (registry+https://github.com/rust-lang/crates.io-index)" = "c4f9b276c87e3fc1902a8bdfcce264c3f7c8a1c35e5e0c946062739f55026664" 1037 | "checksum hyper-tls 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "9c81fa95203e2a6087242c38691a0210f23e9f3f8f944350bd676522132e2985" 1038 | "checksum idna 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)" = "014b298351066f1512874135335d62a789ffe78a9974f94b43ed5621951eaf7d" 1039 | "checksum iovec 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "dbe6e417e7d0975db6512b90796e8ce223145ac4e33c377e4a42882a0e88bb08" 1040 | "checksum itoa 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)" = "8324a32baf01e2ae060e9de58ed0bc2320c9a2833491ee36cd3b4c414de4db8c" 1041 | "checksum kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "7507624b29483431c0ba2d82aece8ca6cdba9382bff4ddd0f7490560c056098d" 1042 | "checksum language-tags 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "a91d884b6667cd606bb5a69aa0c99ba811a115fc68915e7056ec08a46e93199a" 1043 | "checksum lazy_static 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)" = "76f033c7ad61445c5b347c7382dd1237847eb1bce590fe50365dcb33d546be73" 1044 | "checksum lazy_static 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "c8f31047daa365f19be14b47c29df4f7c3b581832407daabe6ae77397619237d" 1045 | "checksum lazycell 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)" = "a6f08839bc70ef4a3fe1d566d5350f519c5912ea86be0df1740a7d247c7fc0ef" 1046 | "checksum libc 0.2.36 (registry+https://github.com/rust-lang/crates.io-index)" = "1e5d97d6708edaa407429faa671b942dc0f2727222fb6b6539bf1db936e4b121" 1047 | "checksum libflate 0.1.14 (registry+https://github.com/rust-lang/crates.io-index)" = "1a429b86418868c7ea91ee50e9170683f47fd9d94f5375438ec86ec3adb74e8e" 1048 | "checksum log 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)" = "e19e8d5c34a3e0e2223db8e060f9e8264aeeb5c5fc64a4ee9965c062211c024b" 1049 | "checksum log 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)" = "89f010e843f2b1a31dbd316b3b8d443758bc634bed37aabade59c686d644e0a2" 1050 | "checksum mac 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "c41e0c4fef86961ac6d6f8a82609f55f31b05e4fce149ac5710e439df7619ba4" 1051 | "checksum markup5ever 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)" = "ff834ac7123c6a37826747e5ca09db41fd7a83126792021c2e636ad174bb77d3" 1052 | "checksum matches 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = "100aabe6b8ff4e4a7e32c1c13523379802df0772b82466207ac25b013f193376" 1053 | "checksum mime 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)" = "e2e00e17be181010a91dbfefb01660b17311059dc8c7f48b9017677721e732bd" 1054 | "checksum mime_guess 2.0.0-alpha.3 (registry+https://github.com/rust-lang/crates.io-index)" = "013572795763289e14710c7b279461295f2673b2b338200c235082cd7ca9e495" 1055 | "checksum mio 0.6.13 (registry+https://github.com/rust-lang/crates.io-index)" = "7da01a5e23070d92d99b1ecd1cd0af36447c6fd44b0fe283c2db199fa136724f" 1056 | "checksum miow 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "8c1f2f3b1cf331de6896aabf6e9d55dca90356cc9960cca7eaaf408a355ae919" 1057 | "checksum native-tls 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "f74dbadc8b43df7864539cedb7bc91345e532fdd913cfdc23ad94f4d2d40fbc0" 1058 | "checksum net2 0.2.31 (registry+https://github.com/rust-lang/crates.io-index)" = "3a80f842784ef6c9a958b68b7516bc7e35883c614004dd94959a4dca1b716c09" 1059 | "checksum num-traits 0.1.43 (registry+https://github.com/rust-lang/crates.io-index)" = "92e5113e9fd4cc14ded8e499429f396a20f98c772a47cc8622a736e1ec843c31" 1060 | "checksum num-traits 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "e7de20f146db9d920c45ee8ed8f71681fd9ade71909b48c3acbd766aa504cf10" 1061 | "checksum num_cpus 1.8.0 (registry+https://github.com/rust-lang/crates.io-index)" = "c51a3322e4bca9d212ad9a158a02abc6934d005490c054a2778df73a70aa0a30" 1062 | "checksum openssl 0.9.24 (registry+https://github.com/rust-lang/crates.io-index)" = "a3605c298474a3aa69de92d21139fb5e2a81688d308262359d85cdd0d12a7985" 1063 | "checksum openssl-sys 0.9.25 (registry+https://github.com/rust-lang/crates.io-index)" = "93b3cbfaccf11969aea8c2041bfafc43c81666c1ce673476e19395c92cc77bf4" 1064 | "checksum percent-encoding 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "31010dd2e1ac33d5b46a5b413495239882813e0369f8ed8a5e266f173602f831" 1065 | "checksum phf 0.7.21 (registry+https://github.com/rust-lang/crates.io-index)" = "cb325642290f28ee14d8c6201159949a872f220c62af6e110a56ea914fbe42fc" 1066 | "checksum phf_codegen 0.7.21 (registry+https://github.com/rust-lang/crates.io-index)" = "d62594c0bb54c464f633175d502038177e90309daf2e0158be42ed5f023ce88f" 1067 | "checksum phf_generator 0.7.21 (registry+https://github.com/rust-lang/crates.io-index)" = "6b07ffcc532ccc85e3afc45865469bf5d9e4ef5bfcf9622e3cfe80c2d275ec03" 1068 | "checksum phf_shared 0.7.21 (registry+https://github.com/rust-lang/crates.io-index)" = "07e24b0ca9643bdecd0632f2b3da6b1b89bbb0030e0b992afc1113b23a7bc2f2" 1069 | "checksum pkg-config 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)" = "3a8b4c6b8165cd1a1cd4b9b120978131389f64bdaf456435caa41e630edba903" 1070 | "checksum precomputed-hash 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c" 1071 | "checksum quote 0.3.15 (registry+https://github.com/rust-lang/crates.io-index)" = "7a6e920b65c65f10b2ae65c831a81a073a89edd28c7cce89475bff467ab4167a" 1072 | "checksum rand 0.3.22 (registry+https://github.com/rust-lang/crates.io-index)" = "15a732abf9d20f0ad8eeb6f909bf6868722d9a06e1e50802b6a70351f40b4eb1" 1073 | "checksum rand 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)" = "eba5f8cb59cc50ed56be8880a5c7b496bfd9bd26394e176bc67884094145c2c5" 1074 | "checksum redox_syscall 0.1.37 (registry+https://github.com/rust-lang/crates.io-index)" = "0d92eecebad22b767915e4d529f89f28ee96dbbf5a4810d2b844373f136417fd" 1075 | "checksum redox_termios 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "7e891cfe48e9100a70a3b6eb652fef28920c117d366339687bd5576160db0f76" 1076 | "checksum relay 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "1576e382688d7e9deecea24417e350d3062d97e32e45d70b1cde65994ff1489a" 1077 | "checksum remove_dir_all 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "b5d2f806b0fcdabd98acd380dc8daef485e22bcb7cddc811d1337967f2528cf5" 1078 | "checksum reqwest 0.8.5 (registry+https://github.com/rust-lang/crates.io-index)" = "241faa9a8ca28a03cbbb9815a5d085f271d4c0168a19181f106aa93240c22ddb" 1079 | "checksum rustc-serialize 0.3.24 (registry+https://github.com/rust-lang/crates.io-index)" = "dcf128d1287d2ea9d80910b5f1120d0b8eede3fbf1abe91c40d39ea7d51e6fda" 1080 | "checksum safemem 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "e27a8b19b835f7aea908818e871f5cc3a5a186550c30773be987e155e8163d8f" 1081 | "checksum schannel 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)" = "acece75e0f987c48863a6c792ec8b7d6c4177d4a027f8ccc72f849794f437016" 1082 | "checksum scoped-tls 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "f417c22df063e9450888a7561788e9bd46d3bb3c1466435b4eccb903807f147d" 1083 | "checksum security-framework 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)" = "dfa44ee9c54ce5eecc9de7d5acbad112ee58755239381f687e564004ba4a2332" 1084 | "checksum security-framework-sys 0.1.16 (registry+https://github.com/rust-lang/crates.io-index)" = "5421621e836278a0b139268f36eee0dc7e389b784dc3f79d8f11aabadf41bead" 1085 | "checksum select 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)" = "7004292887d0a030e29abda3ae1b63a577c96a17e25d74eaa1952503e6c1c946" 1086 | "checksum serde 1.0.27 (registry+https://github.com/rust-lang/crates.io-index)" = "db99f3919e20faa51bb2996057f5031d8685019b5a06139b1ce761da671b8526" 1087 | "checksum serde_json 1.0.9 (registry+https://github.com/rust-lang/crates.io-index)" = "c9db7266c7d63a4c4b7fe8719656ccdd51acf1bed6124b174f933b009fb10bcb" 1088 | "checksum serde_urlencoded 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)" = "ce0fd303af908732989354c6f02e05e2e6d597152870f2c6990efb0577137480" 1089 | "checksum siphasher 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "0df90a788073e8d0235a67e50441d47db7c8ad9debd91cbf43736a2a92d36537" 1090 | "checksum slab 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "17b4fcaed89ab08ef143da37bc52adbcc04d4a69014f4c1208d6b51f0c47bc23" 1091 | "checksum slab 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "fdeff4cd9ecff59ec7e3744cbca73dfe5ac35c2aedb2cfba8a1c715a18912e9d" 1092 | "checksum smallvec 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "4c8cbcd6df1e117c2210e13ab5109635ad68a929fcbb8964dc965b76cb5ee013" 1093 | "checksum string_cache 0.6.2 (registry+https://github.com/rust-lang/crates.io-index)" = "413fc7852aeeb5472f1986ef755f561ddf0c789d3d796e65f0b6fe293ecd4ef8" 1094 | "checksum string_cache_codegen 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "479cde50c3539481f33906a387f2bd17c8e87cb848c35b6021d41fb81ff9b4d7" 1095 | "checksum string_cache_shared 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "b1884d1bc09741d466d9b14e6d37ac89d6909cbcac41dd9ae982d4d063bbedfc" 1096 | "checksum strsim 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "bb4f380125926a99e52bc279241539c018323fab05ad6368b56f93d9369ff550" 1097 | "checksum syn 0.11.11 (registry+https://github.com/rust-lang/crates.io-index)" = "d3b891b9015c88c576343b9b3e41c2c11a51c219ef067b264bd9c8aa9b441dad" 1098 | "checksum synom 0.11.3 (registry+https://github.com/rust-lang/crates.io-index)" = "a393066ed9010ebaed60b9eafa373d4b1baac186dd7e008555b0f702b51945b6" 1099 | "checksum take 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "b157868d8ac1f56b64604539990685fa7611d8fa9e5476cf0c02cf34d32917c5" 1100 | "checksum tempdir 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)" = "f73eebdb68c14bcb24aef74ea96079830e7fa7b31a6106e42ea7ee887c1e134e" 1101 | "checksum tendril 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "8c1b72f8e2f5b73b65c315b1a70c730f24b9d7a25f39e98de8acbe2bb795caea" 1102 | "checksum termion 1.5.1 (registry+https://github.com/rust-lang/crates.io-index)" = "689a3bdfaab439fd92bc87df5c4c78417d3cbe537487274e9b0b2dce76e92096" 1103 | "checksum textwrap 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)" = "c0b59b6b4b44d867f1370ef1bd91bfb262bf07bf0ae65c202ea2fbc16153b693" 1104 | "checksum time 0.1.39 (registry+https://github.com/rust-lang/crates.io-index)" = "a15375f1df02096fb3317256ce2cee6a1f42fc84ea5ad5fc8c421cfe40c73098" 1105 | "checksum tokio-core 0.1.12 (registry+https://github.com/rust-lang/crates.io-index)" = "52b4e32d8edbf29501aabb3570f027c6ceb00ccef6538f4bddba0200503e74e8" 1106 | "checksum tokio-io 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "b9532748772222bf70297ec0e2ad0f17213b4a7dd0e6afb68e0a0768f69f4e4f" 1107 | "checksum tokio-proto 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "8fbb47ae81353c63c487030659494b295f6cb6576242f907f203473b191b0389" 1108 | "checksum tokio-service 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "24da22d077e0f15f55162bdbdc661228c1581892f52074fb242678d015b45162" 1109 | "checksum tokio-tls 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)" = "772f4b04e560117fe3b0a53e490c16ddc8ba6ec437015d91fa385564996ed913" 1110 | "checksum unicase 1.4.2 (registry+https://github.com/rust-lang/crates.io-index)" = "7f4765f83163b74f957c797ad9253caf97f103fb064d3999aea9568d09fc8a33" 1111 | "checksum unicase 2.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "284b6d3db520d67fbe88fd778c21510d1b0ba4a551e5d0fbb023d33405f6de8a" 1112 | "checksum unicode-bidi 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)" = "49f2bd0c6468a8230e1db229cff8029217cf623c767ea5d60bfbd42729ea54d5" 1113 | "checksum unicode-normalization 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "51ccda9ef9efa3f7ef5d91e8f9b83bbe6955f9bf86aec89d5cce2c874625920f" 1114 | "checksum unicode-width 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)" = "bf3a113775714a22dcb774d8ea3655c53a32debae63a063acc00a91cc586245f" 1115 | "checksum unicode-xid 0.0.4 (registry+https://github.com/rust-lang/crates.io-index)" = "8c1f860d7d29cf02cb2f3f359fd35991af3d30bac52c57d265a3c461074cb4dc" 1116 | "checksum unreachable 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "1f2ae5ddb18e1c92664717616dd9549dde73f539f01bd7b77c2edb2446bdff91" 1117 | "checksum url 1.6.0 (registry+https://github.com/rust-lang/crates.io-index)" = "fa35e768d4daf1d85733418a49fb42e10d7f633e394fccab4ab7aba897053fe2" 1118 | "checksum utf-8 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)" = "f1262dfab4c30d5cb7c07026be00ee343a6cf5027fdc0104a9160f354e5db75c" 1119 | "checksum uuid 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)" = "bcc7e3b898aa6f6c08e5295b6c89258d1331e9ac578cc992fb818759951bdc22" 1120 | "checksum vcpkg 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "9e0a7d8bed3178a8fb112199d466eeca9ed09a14ba8ad67718179b4fd5487d0b" 1121 | "checksum vec_map 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)" = "887b5b631c2ad01628bbbaa7dd4c869f80d3186688f8d0b6f58774fbe324988c" 1122 | "checksum version_check 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)" = "6b772017e347561807c1aa192438c5fd74242a670a6cffacc40f2defd1dc069d" 1123 | "checksum void 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = "6a02e4885ed3bc0f2de90ea6dd45ebcbb66dacffe03547fadbb0eeae2770887d" 1124 | "checksum winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)" = "167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a" 1125 | "checksum winapi 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)" = "04e3bd221fcbe8a271359c04f21a76db7d0c6028862d1bb5512d85e1e2eb5bb3" 1126 | "checksum winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "2d315eee3b34aca4797b2da6b13ed88266e6d612562a0c46390af8299fc699bc" 1127 | "checksum winapi-i686-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" 1128 | "checksum winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" 1129 | "checksum ws2_32-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "d59cefebd0c892fa2dd6de581e937301d8552cb44489cdff035c6187cb63fa5e" 1130 | -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "urdict" 3 | version = "0.3.5-alpha.0" 4 | authors = ["Ning Sun "] 5 | description = "Urban dictionary commandline tool and dict server" 6 | license = "MIT OR Apache-2.0" 7 | keywords = ["dict", "dictd"] 8 | repository = "https://github.com/sunng87/urdict" 9 | 10 | [dependencies] 11 | clap = "2.30.0" 12 | ansi_term = "0.10.2" 13 | rand = "0.4.2" 14 | select = "0.4.2" 15 | reqwest = "0.8.5" 16 | -------------------------------------------------------------------------------- /LICENSE-APACHE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "{}" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright {yyyy} {name of copyright owner} 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | 203 | -------------------------------------------------------------------------------- /LICENSE-MIT: -------------------------------------------------------------------------------- 1 | Copyright (c) 2015 The urdict Developers 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in all 11 | copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 19 | SOFTWARE. 20 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # urdict 2 | urdict is a command line urban dictionary, 3 | 4 | ![screenshot from 2015-09-14 14-34-42](https://cloud.githubusercontent.com/assets/221942/9843535/c3ac1956-5aed-11e5-9454-a012ff71c9a7.png) 5 | 6 | and a dictd daemon 7 | 8 | ![screenshot from 2015-09-14 9 | 14-32-49](https://cloud.githubusercontent.com/assets/221942/9843514/837edb98-5aed-11e5-988e-d57e2c350165.png) 10 | 11 | ## Installation 12 | 13 | With latest cargo, you can simply run: `cargo install urdict` 14 | 15 | Otherwise, you will have to pull the repository and build by yourself: 16 | `cargo build --release` 17 | 18 | ## License 19 | 20 | Licensed under either of 21 | 22 | * Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0) 23 | * MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT) 24 | 25 | at your option. 26 | 27 | ### Contribution 28 | 29 | Unless you explicitly state otherwise, any contribution intentionally 30 | submitted for inclusion in the work by you, as defined in the Apache-2.0 31 | license, shall be dual licensed as above, without any additional terms or 32 | conditions. 33 | -------------------------------------------------------------------------------- /src/dictd.rs: -------------------------------------------------------------------------------- 1 | use std::error::Error; 2 | use std::io::{BufRead, Write}; 3 | use std::thread; 4 | use std::net::{TcpListener, TcpStream}; 5 | use std::io::BufReader; 6 | 7 | use page; 8 | 9 | /// modified from gkbrk's demo: 10 | /// https://gist.github.com/gkbrk/bea6dee7c0478395b718 11 | 12 | fn handle_client(mut stream: TcpStream) { 13 | let mut reader = BufReader::new(stream.try_clone().unwrap()); 14 | stream.write("220 urdict 0.1.0\r\n".as_bytes()).unwrap(); 15 | loop { 16 | let mut line = String::new(); 17 | let line_len = reader.read_line(&mut line).unwrap(); 18 | if line_len > 0 { 19 | let pieces: Vec<&str> = line.trim().split(" ").collect(); 20 | match pieces[0].to_lowercase().as_ref() { 21 | "define" => { 22 | let word = pieces[2].replace("\"", ""); 23 | 24 | if let Some(def) = page::find_on_urban_dict(&word) { 25 | stream 26 | .write(format!("150 {} definitions retrieved\r\n", 1).as_bytes()) 27 | .unwrap(); 28 | 29 | stream 30 | .write(format!("151 \"{}\" urdict", def.word).as_bytes()) 31 | .unwrap(); 32 | stream 33 | .write( 34 | format!( 35 | " \"Urban Dictionary {} {}\"\r\n", 36 | def.contributor, def.date 37 | ).as_bytes(), 38 | ) 39 | .unwrap(); 40 | stream 41 | .write(format!("{}\r\n.\r\n", def.def).as_bytes()) 42 | .unwrap(); 43 | } else { 44 | stream 45 | .write(format!("150 0 definitions retrieved\r\n").as_bytes()) 46 | .unwrap(); 47 | } 48 | stream.write("250 ok\r\n".as_bytes()).unwrap(); 49 | } 50 | "match" => { 51 | let word = pieces[3].replace("\"", ""); 52 | if let Some(def) = page::find_on_urban_dict(&word) { 53 | if let Some(similars) = def.similars { 54 | stream 55 | .write( 56 | format!("152 {} matches found\r\n", similars.len()).as_bytes(), 57 | ) 58 | .unwrap(); 59 | for s in similars { 60 | stream 61 | .write(format!("urdict \"{}\"\r\n", s).as_bytes()) 62 | .unwrap(); 63 | } 64 | stream.write(".\r\n".as_bytes()).unwrap(); 65 | } else { 66 | stream.write("152 0 matches found\r\n".as_bytes()).unwrap(); 67 | } 68 | } else { 69 | stream.write("152 0 matches found\r\n".as_bytes()).unwrap(); 70 | } 71 | 72 | stream.write("250 ok\r\n".as_bytes()).unwrap(); 73 | } 74 | "quit" => { 75 | stream.write("221 bye\r\n".as_bytes()).unwrap(); 76 | break; 77 | } 78 | "client" => { 79 | stream.write("250 ok\r\n".as_bytes()).unwrap(); 80 | } 81 | "show" => match pieces[1].to_lowercase().as_ref() { 82 | "db" => { 83 | stream 84 | .write("110 1 database present\r\n".as_bytes()) 85 | .unwrap(); 86 | stream 87 | .write("urdict \"Urban Dictionary\"\r\n".as_bytes()) 88 | .unwrap(); 89 | stream.write(".\r\n".as_bytes()).unwrap(); 90 | stream.write("250 ok\r\n".as_bytes()).unwrap(); 91 | } 92 | _ => { 93 | println!("{}", line.trim()); 94 | } 95 | }, 96 | _ => { 97 | println!("{}", line.trim()); 98 | } 99 | } 100 | } else { 101 | println!("Client disconnected"); 102 | break; 103 | } 104 | } 105 | } 106 | 107 | pub fn start_server(host: &str, port: u16) { 108 | let listener = TcpListener::bind(&(host, port)).unwrap(); 109 | for stream in listener.incoming() { 110 | match stream { 111 | Ok(stream) => { 112 | thread::spawn(move || { 113 | handle_client(stream); 114 | }); 115 | } 116 | Err(e) => { 117 | println!("{}", e.description()); 118 | } 119 | } 120 | } 121 | } 122 | -------------------------------------------------------------------------------- /src/main.rs: -------------------------------------------------------------------------------- 1 | extern crate ansi_term; 2 | extern crate clap; 3 | extern crate rand; 4 | extern crate reqwest; 5 | extern crate select; 6 | 7 | use std::io::Write; 8 | use std::str::FromStr; 9 | use std::process::exit; 10 | 11 | use clap::App; 12 | use ansi_term::Colour::{Red, Yellow}; 13 | use rand::thread_rng; 14 | use rand::seq::sample_iter; 15 | 16 | mod page; 17 | mod dictd; 18 | 19 | fn main() { 20 | let matches = App::new("urdict") 21 | .version(env!("CARGO_PKG_VERSION")) 22 | .author("Ning Sun ") 23 | .about("Urban Dictionary from command-line") 24 | .args_from_usage( 25 | "[WORD]... 'Word to find on Urban Dictionary' 26 | [random]... -r 'Select a random word' 27 | [compact]... -c 'Output definition only' 28 | [sound]... -s 'Print a sound url only' 29 | [daemon]... -d 'Run urdict as a dictd server' 30 | --port=[port] 'The port to listen to, default: 2628' 31 | --host=[host] 'The host to listen to, default: 127.0.0.1' 32 | [debug]... --debug 'Print debug information'", 33 | ) 34 | .get_matches(); 35 | 36 | // running as daemon 37 | if matches.occurrences_of("daemon") > 0 { 38 | let host = matches.value_of("host").unwrap_or("127.0.0.1"); 39 | let port = u16::from_str(matches.value_of("port").unwrap_or("2628")).unwrap(); 40 | 41 | dictd::start_server(host, port); 42 | 43 | return; 44 | } 45 | 46 | let def = match ( 47 | matches.value_of("WORD"), 48 | matches.occurrences_of("random") > 0, 49 | ) { 50 | (Some(word), _) => page::find_on_urban_dict(&word), 51 | (_, false) => page::find_word_of_the_day(), 52 | (_, true) => page::get_random_word(), 53 | }; 54 | 55 | if let Some(def) = def { 56 | if matches.occurrences_of("debug") > 0 { 57 | println!("{:?}", def); 58 | } 59 | 60 | if matches.occurrences_of("sound") == 0 { 61 | let compact = matches.occurrences_of("compact") > 0; 62 | if !compact { 63 | println!("{}", Yellow.bold().paint(def.word)); 64 | } 65 | println!("{}", def.def); 66 | if !compact && def.example.is_some() { 67 | println!(""); 68 | println!("Example:\n{}", def.example.unwrap()); 69 | } 70 | if !compact { 71 | println!( 72 | "(Author: {}, {}, Def ID: {})", 73 | def.contributor, def.date, def.id 74 | ); 75 | } 76 | } else { 77 | if let Some(sounds) = def.sounds { 78 | let mut rng = thread_rng(); 79 | let sample: Vec<&String> = sample_iter(&mut rng, sounds.iter(), 1).unwrap(); 80 | println!("{}", sample[0]); 81 | } else { 82 | exit(128); 83 | } 84 | } 85 | } else { 86 | writeln!(&mut std::io::stderr(), "{}", Red.paint("Word not found")).unwrap(); 87 | exit(127); 88 | } 89 | } 90 | -------------------------------------------------------------------------------- /src/page.rs: -------------------------------------------------------------------------------- 1 | use std::io::Read; 2 | 3 | use reqwest::Client; 4 | 5 | use select::document::Document; 6 | use select::predicate::*; 7 | 8 | #[derive(Debug)] 9 | pub struct DictDef { 10 | pub word: String, 11 | pub def: String, 12 | pub example: Option, 13 | pub upvote: i32, 14 | pub downvote: i32, 15 | pub contributor: String, 16 | pub date: String, 17 | pub id: String, 18 | pub sounds: Option>, 19 | pub similars: Option>, 20 | } 21 | 22 | impl DictDef {} 23 | 24 | fn urban_dict_url(word: &str) -> String { 25 | let mut s = String::new(); 26 | s.push_str("https://www.urbandictionary.com/define.php?term="); 27 | s.push_str(word); 28 | s 29 | } 30 | 31 | fn json_list_to_strings(json: &str) -> Vec { 32 | json[1..json.len() - 1] 33 | .split(", ") 34 | .map(|s| s[1..s.len() - 1].to_owned()) 35 | .collect() 36 | } 37 | 38 | fn get_def_from_doc(doc: &Document) -> Option { 39 | if let Some(panel) = doc.find(Class("def-panel")).into_selection().first() { 40 | if let Some(word) = panel.find(Class("word")).into_selection().first() { 41 | let word = word.text(); 42 | 43 | let def = panel 44 | .find(Class("meaning")) 45 | .into_selection() 46 | .first() 47 | .unwrap() 48 | .text(); 49 | let defid = panel.attr("data-defid").unwrap_or("").to_owned(); 50 | 51 | let example = panel 52 | .find(Class("example")) 53 | .into_selection() 54 | .first() 55 | .and_then(|e| Some(e.text())); 56 | let author = panel 57 | .find(Class("contributor")) 58 | .into_selection() 59 | .first() 60 | .and_then(|c| { 61 | c.find(Name("a")) 62 | .into_selection() 63 | .first() 64 | .and_then(|e| Some(e.text())) 65 | }) 66 | .unwrap_or("".to_owned()); 67 | let date = panel 68 | .find(Class("contributor")) 69 | .into_selection() 70 | .first() 71 | .and_then(|e| e.last_child()) 72 | .and_then(|e| Some(e.text().trim().to_owned())) 73 | .unwrap_or("".to_owned()); 74 | 75 | let sounds = panel 76 | .find(Class("play-sound")) 77 | .into_selection() 78 | .first() 79 | .and_then(|e| e.attr("data-urls").and_then(|s| Some(s.to_owned()))) 80 | .and_then(|l| Some(json_list_to_strings(&l))); 81 | 82 | let similars = Some( 83 | doc.find(Name("ul").and(Class("alphabetical"))) 84 | .into_selection() 85 | .find(Name("li")) 86 | .find(Name("a")) 87 | .iter() 88 | .map(|e| e.text()) 89 | .collect(), 90 | ); 91 | 92 | Some(DictDef { 93 | word: word.trim().to_owned(), 94 | def: def.trim().to_owned(), 95 | example: example, 96 | upvote: 0, 97 | downvote: 0, 98 | contributor: author, 99 | date: date, 100 | id: defid, 101 | sounds: sounds, 102 | similars: similars, 103 | }) 104 | } else { 105 | None 106 | } 107 | } else { 108 | None 109 | } 110 | } 111 | 112 | fn find_from_url(url: &str) -> Option { 113 | let client = Client::new(); 114 | 115 | let mut resp = client.get(url).send().unwrap(); 116 | let mut body = String::new(); 117 | { 118 | resp.read_to_string(&mut body).unwrap(); 119 | } 120 | 121 | let dom = Document::from(body.as_str()); 122 | get_def_from_doc(&dom) 123 | } 124 | 125 | pub fn find_word_of_the_day() -> Option { 126 | find_from_url("https://www.urbandictionary.com/") 127 | } 128 | 129 | pub fn get_random_word() -> Option { 130 | find_from_url("https://www.urbandictionary.com/random.php") 131 | } 132 | 133 | pub fn find_on_urban_dict(word: &str) -> Option { 134 | let url = urban_dict_url(word); 135 | find_from_url(&url) 136 | } 137 | --------------------------------------------------------------------------------