├── .gitignore ├── Cargo.lock ├── Cargo.toml ├── LICENSE ├── README.rst ├── example.png ├── jieba-bot.conf ├── jieba-bot.service └── src └── main.rs /.gitignore: -------------------------------------------------------------------------------- 1 | /target 2 | **/*.rs.bk 3 | -------------------------------------------------------------------------------- /Cargo.lock: -------------------------------------------------------------------------------- 1 | # This file is automatically @generated by Cargo. 2 | # It is not intended for manual editing. 3 | [[package]] 4 | name = "Inflector" 5 | version = "0.11.4" 6 | source = "registry+https://github.com/rust-lang/crates.io-index" 7 | 8 | [[package]] 9 | name = "ahash" 10 | version = "0.3.8" 11 | source = "registry+https://github.com/rust-lang/crates.io-index" 12 | 13 | [[package]] 14 | name = "aho-corasick" 15 | version = "0.7.13" 16 | source = "registry+https://github.com/rust-lang/crates.io-index" 17 | dependencies = [ 18 | "memchr 2.3.3 (registry+https://github.com/rust-lang/crates.io-index)", 19 | ] 20 | 21 | [[package]] 22 | name = "arc-swap" 23 | version = "0.4.7" 24 | source = "registry+https://github.com/rust-lang/crates.io-index" 25 | 26 | [[package]] 27 | name = "atty" 28 | version = "0.2.14" 29 | source = "registry+https://github.com/rust-lang/crates.io-index" 30 | dependencies = [ 31 | "hermit-abi 0.1.14 (registry+https://github.com/rust-lang/crates.io-index)", 32 | "libc 0.2.71 (registry+https://github.com/rust-lang/crates.io-index)", 33 | "winapi 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)", 34 | ] 35 | 36 | [[package]] 37 | name = "autocfg" 38 | version = "1.0.0" 39 | source = "registry+https://github.com/rust-lang/crates.io-index" 40 | 41 | [[package]] 42 | name = "base64" 43 | version = "0.11.0" 44 | source = "registry+https://github.com/rust-lang/crates.io-index" 45 | 46 | [[package]] 47 | name = "bitflags" 48 | version = "1.2.1" 49 | source = "registry+https://github.com/rust-lang/crates.io-index" 50 | 51 | [[package]] 52 | name = "bytes" 53 | version = "0.5.5" 54 | source = "registry+https://github.com/rust-lang/crates.io-index" 55 | dependencies = [ 56 | "loom 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)", 57 | ] 58 | 59 | [[package]] 60 | name = "cc" 61 | version = "1.0.57" 62 | source = "registry+https://github.com/rust-lang/crates.io-index" 63 | 64 | [[package]] 65 | name = "cedarwood" 66 | version = "0.4.4" 67 | source = "registry+https://github.com/rust-lang/crates.io-index" 68 | dependencies = [ 69 | "smallvec 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 70 | ] 71 | 72 | [[package]] 73 | name = "cfg-if" 74 | version = "0.1.10" 75 | source = "registry+https://github.com/rust-lang/crates.io-index" 76 | 77 | [[package]] 78 | name = "chrono" 79 | version = "0.4.12" 80 | source = "registry+https://github.com/rust-lang/crates.io-index" 81 | dependencies = [ 82 | "num-integer 0.1.43 (registry+https://github.com/rust-lang/crates.io-index)", 83 | "num-traits 0.2.12 (registry+https://github.com/rust-lang/crates.io-index)", 84 | "time 0.1.43 (registry+https://github.com/rust-lang/crates.io-index)", 85 | ] 86 | 87 | [[package]] 88 | name = "core-foundation" 89 | version = "0.7.0" 90 | source = "registry+https://github.com/rust-lang/crates.io-index" 91 | dependencies = [ 92 | "core-foundation-sys 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", 93 | "libc 0.2.71 (registry+https://github.com/rust-lang/crates.io-index)", 94 | ] 95 | 96 | [[package]] 97 | name = "core-foundation-sys" 98 | version = "0.7.0" 99 | source = "registry+https://github.com/rust-lang/crates.io-index" 100 | 101 | [[package]] 102 | name = "env_logger" 103 | version = "0.7.1" 104 | source = "registry+https://github.com/rust-lang/crates.io-index" 105 | dependencies = [ 106 | "atty 0.2.14 (registry+https://github.com/rust-lang/crates.io-index)", 107 | "humantime 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)", 108 | "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", 109 | "regex 1.3.9 (registry+https://github.com/rust-lang/crates.io-index)", 110 | "termcolor 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", 111 | ] 112 | 113 | [[package]] 114 | name = "fnv" 115 | version = "1.0.7" 116 | source = "registry+https://github.com/rust-lang/crates.io-index" 117 | 118 | [[package]] 119 | name = "foreign-types" 120 | version = "0.3.2" 121 | source = "registry+https://github.com/rust-lang/crates.io-index" 122 | dependencies = [ 123 | "foreign-types-shared 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 124 | ] 125 | 126 | [[package]] 127 | name = "foreign-types-shared" 128 | version = "0.1.1" 129 | source = "registry+https://github.com/rust-lang/crates.io-index" 130 | 131 | [[package]] 132 | name = "fuchsia-zircon" 133 | version = "0.3.3" 134 | source = "registry+https://github.com/rust-lang/crates.io-index" 135 | dependencies = [ 136 | "bitflags 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 137 | "fuchsia-zircon-sys 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", 138 | ] 139 | 140 | [[package]] 141 | name = "fuchsia-zircon-sys" 142 | version = "0.3.3" 143 | source = "registry+https://github.com/rust-lang/crates.io-index" 144 | 145 | [[package]] 146 | name = "futures" 147 | version = "0.3.5" 148 | source = "registry+https://github.com/rust-lang/crates.io-index" 149 | dependencies = [ 150 | "futures-channel 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", 151 | "futures-core 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", 152 | "futures-executor 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", 153 | "futures-io 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", 154 | "futures-sink 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", 155 | "futures-task 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", 156 | "futures-util 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", 157 | ] 158 | 159 | [[package]] 160 | name = "futures-channel" 161 | version = "0.3.5" 162 | source = "registry+https://github.com/rust-lang/crates.io-index" 163 | dependencies = [ 164 | "futures-core 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", 165 | "futures-sink 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", 166 | ] 167 | 168 | [[package]] 169 | name = "futures-core" 170 | version = "0.3.5" 171 | source = "registry+https://github.com/rust-lang/crates.io-index" 172 | 173 | [[package]] 174 | name = "futures-executor" 175 | version = "0.3.5" 176 | source = "registry+https://github.com/rust-lang/crates.io-index" 177 | dependencies = [ 178 | "futures-core 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", 179 | "futures-task 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", 180 | "futures-util 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", 181 | ] 182 | 183 | [[package]] 184 | name = "futures-io" 185 | version = "0.3.5" 186 | source = "registry+https://github.com/rust-lang/crates.io-index" 187 | 188 | [[package]] 189 | name = "futures-macro" 190 | version = "0.3.5" 191 | source = "registry+https://github.com/rust-lang/crates.io-index" 192 | dependencies = [ 193 | "proc-macro-hack 0.5.16 (registry+https://github.com/rust-lang/crates.io-index)", 194 | "proc-macro2 1.0.18 (registry+https://github.com/rust-lang/crates.io-index)", 195 | "quote 1.0.7 (registry+https://github.com/rust-lang/crates.io-index)", 196 | "syn 1.0.33 (registry+https://github.com/rust-lang/crates.io-index)", 197 | ] 198 | 199 | [[package]] 200 | name = "futures-sink" 201 | version = "0.3.5" 202 | source = "registry+https://github.com/rust-lang/crates.io-index" 203 | 204 | [[package]] 205 | name = "futures-task" 206 | version = "0.3.5" 207 | source = "registry+https://github.com/rust-lang/crates.io-index" 208 | dependencies = [ 209 | "once_cell 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 210 | ] 211 | 212 | [[package]] 213 | name = "futures-util" 214 | version = "0.3.5" 215 | source = "registry+https://github.com/rust-lang/crates.io-index" 216 | dependencies = [ 217 | "futures-channel 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", 218 | "futures-core 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", 219 | "futures-io 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", 220 | "futures-macro 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", 221 | "futures-sink 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", 222 | "futures-task 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", 223 | "memchr 2.3.3 (registry+https://github.com/rust-lang/crates.io-index)", 224 | "pin-project 0.4.22 (registry+https://github.com/rust-lang/crates.io-index)", 225 | "pin-utils 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", 226 | "proc-macro-hack 0.5.16 (registry+https://github.com/rust-lang/crates.io-index)", 227 | "proc-macro-nested 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", 228 | "slab 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", 229 | ] 230 | 231 | [[package]] 232 | name = "generator" 233 | version = "0.6.21" 234 | source = "registry+https://github.com/rust-lang/crates.io-index" 235 | dependencies = [ 236 | "cc 1.0.57 (registry+https://github.com/rust-lang/crates.io-index)", 237 | "libc 0.2.71 (registry+https://github.com/rust-lang/crates.io-index)", 238 | "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", 239 | "rustc_version 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", 240 | "winapi 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)", 241 | ] 242 | 243 | [[package]] 244 | name = "getrandom" 245 | version = "0.1.14" 246 | source = "registry+https://github.com/rust-lang/crates.io-index" 247 | dependencies = [ 248 | "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", 249 | "libc 0.2.71 (registry+https://github.com/rust-lang/crates.io-index)", 250 | "wasi 0.9.0+wasi-snapshot-preview1 (registry+https://github.com/rust-lang/crates.io-index)", 251 | ] 252 | 253 | [[package]] 254 | name = "h2" 255 | version = "0.2.5" 256 | source = "registry+https://github.com/rust-lang/crates.io-index" 257 | dependencies = [ 258 | "bytes 0.5.5 (registry+https://github.com/rust-lang/crates.io-index)", 259 | "fnv 1.0.7 (registry+https://github.com/rust-lang/crates.io-index)", 260 | "futures-core 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", 261 | "futures-sink 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", 262 | "futures-util 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", 263 | "http 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 264 | "indexmap 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 265 | "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", 266 | "slab 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", 267 | "tokio 0.2.21 (registry+https://github.com/rust-lang/crates.io-index)", 268 | "tokio-util 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", 269 | ] 270 | 271 | [[package]] 272 | name = "hashbrown" 273 | version = "0.8.0" 274 | source = "registry+https://github.com/rust-lang/crates.io-index" 275 | dependencies = [ 276 | "ahash 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", 277 | "autocfg 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", 278 | ] 279 | 280 | [[package]] 281 | name = "hermit-abi" 282 | version = "0.1.14" 283 | source = "registry+https://github.com/rust-lang/crates.io-index" 284 | dependencies = [ 285 | "libc 0.2.71 (registry+https://github.com/rust-lang/crates.io-index)", 286 | ] 287 | 288 | [[package]] 289 | name = "http" 290 | version = "0.2.1" 291 | source = "registry+https://github.com/rust-lang/crates.io-index" 292 | dependencies = [ 293 | "bytes 0.5.5 (registry+https://github.com/rust-lang/crates.io-index)", 294 | "fnv 1.0.7 (registry+https://github.com/rust-lang/crates.io-index)", 295 | "itoa 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", 296 | ] 297 | 298 | [[package]] 299 | name = "http-body" 300 | version = "0.3.1" 301 | source = "registry+https://github.com/rust-lang/crates.io-index" 302 | dependencies = [ 303 | "bytes 0.5.5 (registry+https://github.com/rust-lang/crates.io-index)", 304 | "http 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 305 | ] 306 | 307 | [[package]] 308 | name = "httparse" 309 | version = "1.3.4" 310 | source = "registry+https://github.com/rust-lang/crates.io-index" 311 | 312 | [[package]] 313 | name = "humantime" 314 | version = "1.3.0" 315 | source = "registry+https://github.com/rust-lang/crates.io-index" 316 | dependencies = [ 317 | "quick-error 1.2.3 (registry+https://github.com/rust-lang/crates.io-index)", 318 | ] 319 | 320 | [[package]] 321 | name = "hyper" 322 | version = "0.13.6" 323 | source = "registry+https://github.com/rust-lang/crates.io-index" 324 | dependencies = [ 325 | "bytes 0.5.5 (registry+https://github.com/rust-lang/crates.io-index)", 326 | "futures-channel 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", 327 | "futures-core 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", 328 | "futures-util 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", 329 | "h2 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)", 330 | "http 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 331 | "http-body 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", 332 | "httparse 1.3.4 (registry+https://github.com/rust-lang/crates.io-index)", 333 | "itoa 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", 334 | "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", 335 | "pin-project 0.4.22 (registry+https://github.com/rust-lang/crates.io-index)", 336 | "socket2 0.3.12 (registry+https://github.com/rust-lang/crates.io-index)", 337 | "time 0.1.43 (registry+https://github.com/rust-lang/crates.io-index)", 338 | "tokio 0.2.21 (registry+https://github.com/rust-lang/crates.io-index)", 339 | "tower-service 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", 340 | "want 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", 341 | ] 342 | 343 | [[package]] 344 | name = "hyper-proxy" 345 | version = "0.6.0" 346 | source = "registry+https://github.com/rust-lang/crates.io-index" 347 | dependencies = [ 348 | "bytes 0.5.5 (registry+https://github.com/rust-lang/crates.io-index)", 349 | "futures 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", 350 | "http 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 351 | "hyper 0.13.6 (registry+https://github.com/rust-lang/crates.io-index)", 352 | "hyper-tls 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", 353 | "native-tls 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)", 354 | "tokio 0.2.21 (registry+https://github.com/rust-lang/crates.io-index)", 355 | "tokio-tls 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", 356 | "tower-service 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", 357 | "typed-headers 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", 358 | ] 359 | 360 | [[package]] 361 | name = "hyper-tls" 362 | version = "0.4.1" 363 | source = "registry+https://github.com/rust-lang/crates.io-index" 364 | dependencies = [ 365 | "bytes 0.5.5 (registry+https://github.com/rust-lang/crates.io-index)", 366 | "hyper 0.13.6 (registry+https://github.com/rust-lang/crates.io-index)", 367 | "native-tls 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)", 368 | "tokio 0.2.21 (registry+https://github.com/rust-lang/crates.io-index)", 369 | "tokio-tls 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", 370 | ] 371 | 372 | [[package]] 373 | name = "indexmap" 374 | version = "1.4.0" 375 | source = "registry+https://github.com/rust-lang/crates.io-index" 376 | dependencies = [ 377 | "autocfg 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", 378 | ] 379 | 380 | [[package]] 381 | name = "iovec" 382 | version = "0.1.4" 383 | source = "registry+https://github.com/rust-lang/crates.io-index" 384 | dependencies = [ 385 | "libc 0.2.71 (registry+https://github.com/rust-lang/crates.io-index)", 386 | ] 387 | 388 | [[package]] 389 | name = "is-macro" 390 | version = "0.1.8" 391 | source = "registry+https://github.com/rust-lang/crates.io-index" 392 | dependencies = [ 393 | "Inflector 0.11.4 (registry+https://github.com/rust-lang/crates.io-index)", 394 | "pmutil 0.5.3 (registry+https://github.com/rust-lang/crates.io-index)", 395 | "proc-macro2 1.0.18 (registry+https://github.com/rust-lang/crates.io-index)", 396 | "quote 1.0.7 (registry+https://github.com/rust-lang/crates.io-index)", 397 | "syn 1.0.33 (registry+https://github.com/rust-lang/crates.io-index)", 398 | ] 399 | 400 | [[package]] 401 | name = "itoa" 402 | version = "0.4.6" 403 | source = "registry+https://github.com/rust-lang/crates.io-index" 404 | 405 | [[package]] 406 | name = "jieba-bot" 407 | version = "0.2.0" 408 | dependencies = [ 409 | "env_logger 0.7.1 (registry+https://github.com/rust-lang/crates.io-index)", 410 | "hyper-proxy 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)", 411 | "jieba-rs 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)", 412 | "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 413 | "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", 414 | "tbot 0.6.4 (registry+https://github.com/rust-lang/crates.io-index)", 415 | "tokio 0.2.21 (registry+https://github.com/rust-lang/crates.io-index)", 416 | ] 417 | 418 | [[package]] 419 | name = "jieba-rs" 420 | version = "0.5.1" 421 | source = "registry+https://github.com/rust-lang/crates.io-index" 422 | dependencies = [ 423 | "cedarwood 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)", 424 | "hashbrown 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)", 425 | "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 426 | "phf 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)", 427 | "phf_codegen 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)", 428 | "regex 1.3.9 (registry+https://github.com/rust-lang/crates.io-index)", 429 | ] 430 | 431 | [[package]] 432 | name = "kernel32-sys" 433 | version = "0.2.2" 434 | source = "registry+https://github.com/rust-lang/crates.io-index" 435 | dependencies = [ 436 | "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", 437 | "winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 438 | ] 439 | 440 | [[package]] 441 | name = "lazy_static" 442 | version = "1.4.0" 443 | source = "registry+https://github.com/rust-lang/crates.io-index" 444 | 445 | [[package]] 446 | name = "libc" 447 | version = "0.2.71" 448 | source = "registry+https://github.com/rust-lang/crates.io-index" 449 | 450 | [[package]] 451 | name = "log" 452 | version = "0.4.8" 453 | source = "registry+https://github.com/rust-lang/crates.io-index" 454 | dependencies = [ 455 | "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", 456 | ] 457 | 458 | [[package]] 459 | name = "loom" 460 | version = "0.3.4" 461 | source = "registry+https://github.com/rust-lang/crates.io-index" 462 | dependencies = [ 463 | "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", 464 | "generator 0.6.21 (registry+https://github.com/rust-lang/crates.io-index)", 465 | "scoped-tls 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 466 | ] 467 | 468 | [[package]] 469 | name = "memchr" 470 | version = "2.3.3" 471 | source = "registry+https://github.com/rust-lang/crates.io-index" 472 | 473 | [[package]] 474 | name = "mime" 475 | version = "0.3.16" 476 | source = "registry+https://github.com/rust-lang/crates.io-index" 477 | 478 | [[package]] 479 | name = "mio" 480 | version = "0.6.22" 481 | source = "registry+https://github.com/rust-lang/crates.io-index" 482 | dependencies = [ 483 | "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", 484 | "fuchsia-zircon 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", 485 | "fuchsia-zircon-sys 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", 486 | "iovec 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", 487 | "kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", 488 | "libc 0.2.71 (registry+https://github.com/rust-lang/crates.io-index)", 489 | "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", 490 | "miow 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 491 | "net2 0.2.34 (registry+https://github.com/rust-lang/crates.io-index)", 492 | "slab 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", 493 | "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", 494 | ] 495 | 496 | [[package]] 497 | name = "mio-named-pipes" 498 | version = "0.1.7" 499 | source = "registry+https://github.com/rust-lang/crates.io-index" 500 | dependencies = [ 501 | "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", 502 | "mio 0.6.22 (registry+https://github.com/rust-lang/crates.io-index)", 503 | "miow 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", 504 | "winapi 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)", 505 | ] 506 | 507 | [[package]] 508 | name = "mio-uds" 509 | version = "0.6.8" 510 | source = "registry+https://github.com/rust-lang/crates.io-index" 511 | dependencies = [ 512 | "iovec 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", 513 | "libc 0.2.71 (registry+https://github.com/rust-lang/crates.io-index)", 514 | "mio 0.6.22 (registry+https://github.com/rust-lang/crates.io-index)", 515 | ] 516 | 517 | [[package]] 518 | name = "miow" 519 | version = "0.2.1" 520 | source = "registry+https://github.com/rust-lang/crates.io-index" 521 | dependencies = [ 522 | "kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", 523 | "net2 0.2.34 (registry+https://github.com/rust-lang/crates.io-index)", 524 | "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", 525 | "ws2_32-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 526 | ] 527 | 528 | [[package]] 529 | name = "miow" 530 | version = "0.3.5" 531 | source = "registry+https://github.com/rust-lang/crates.io-index" 532 | dependencies = [ 533 | "socket2 0.3.12 (registry+https://github.com/rust-lang/crates.io-index)", 534 | "winapi 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)", 535 | ] 536 | 537 | [[package]] 538 | name = "native-tls" 539 | version = "0.2.4" 540 | source = "registry+https://github.com/rust-lang/crates.io-index" 541 | dependencies = [ 542 | "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 543 | "libc 0.2.71 (registry+https://github.com/rust-lang/crates.io-index)", 544 | "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", 545 | "openssl 0.10.30 (registry+https://github.com/rust-lang/crates.io-index)", 546 | "openssl-probe 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", 547 | "openssl-sys 0.9.58 (registry+https://github.com/rust-lang/crates.io-index)", 548 | "schannel 0.1.19 (registry+https://github.com/rust-lang/crates.io-index)", 549 | "security-framework 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)", 550 | "security-framework-sys 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)", 551 | "tempfile 3.1.0 (registry+https://github.com/rust-lang/crates.io-index)", 552 | ] 553 | 554 | [[package]] 555 | name = "net2" 556 | version = "0.2.34" 557 | source = "registry+https://github.com/rust-lang/crates.io-index" 558 | dependencies = [ 559 | "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", 560 | "libc 0.2.71 (registry+https://github.com/rust-lang/crates.io-index)", 561 | "winapi 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)", 562 | ] 563 | 564 | [[package]] 565 | name = "num-integer" 566 | version = "0.1.43" 567 | source = "registry+https://github.com/rust-lang/crates.io-index" 568 | dependencies = [ 569 | "autocfg 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", 570 | "num-traits 0.2.12 (registry+https://github.com/rust-lang/crates.io-index)", 571 | ] 572 | 573 | [[package]] 574 | name = "num-traits" 575 | version = "0.2.12" 576 | source = "registry+https://github.com/rust-lang/crates.io-index" 577 | dependencies = [ 578 | "autocfg 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", 579 | ] 580 | 581 | [[package]] 582 | name = "num_cpus" 583 | version = "1.13.0" 584 | source = "registry+https://github.com/rust-lang/crates.io-index" 585 | dependencies = [ 586 | "hermit-abi 0.1.14 (registry+https://github.com/rust-lang/crates.io-index)", 587 | "libc 0.2.71 (registry+https://github.com/rust-lang/crates.io-index)", 588 | ] 589 | 590 | [[package]] 591 | name = "once_cell" 592 | version = "1.4.0" 593 | source = "registry+https://github.com/rust-lang/crates.io-index" 594 | 595 | [[package]] 596 | name = "openssl" 597 | version = "0.10.30" 598 | source = "registry+https://github.com/rust-lang/crates.io-index" 599 | dependencies = [ 600 | "bitflags 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 601 | "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", 602 | "foreign-types 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)", 603 | "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 604 | "libc 0.2.71 (registry+https://github.com/rust-lang/crates.io-index)", 605 | "openssl-sys 0.9.58 (registry+https://github.com/rust-lang/crates.io-index)", 606 | ] 607 | 608 | [[package]] 609 | name = "openssl-probe" 610 | version = "0.1.2" 611 | source = "registry+https://github.com/rust-lang/crates.io-index" 612 | 613 | [[package]] 614 | name = "openssl-sys" 615 | version = "0.9.58" 616 | source = "registry+https://github.com/rust-lang/crates.io-index" 617 | dependencies = [ 618 | "autocfg 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", 619 | "cc 1.0.57 (registry+https://github.com/rust-lang/crates.io-index)", 620 | "libc 0.2.71 (registry+https://github.com/rust-lang/crates.io-index)", 621 | "pkg-config 0.3.17 (registry+https://github.com/rust-lang/crates.io-index)", 622 | "vcpkg 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)", 623 | ] 624 | 625 | [[package]] 626 | name = "paste" 627 | version = "0.1.18" 628 | source = "registry+https://github.com/rust-lang/crates.io-index" 629 | dependencies = [ 630 | "paste-impl 0.1.18 (registry+https://github.com/rust-lang/crates.io-index)", 631 | "proc-macro-hack 0.5.16 (registry+https://github.com/rust-lang/crates.io-index)", 632 | ] 633 | 634 | [[package]] 635 | name = "paste-impl" 636 | version = "0.1.18" 637 | source = "registry+https://github.com/rust-lang/crates.io-index" 638 | dependencies = [ 639 | "proc-macro-hack 0.5.16 (registry+https://github.com/rust-lang/crates.io-index)", 640 | ] 641 | 642 | [[package]] 643 | name = "phf" 644 | version = "0.8.0" 645 | source = "registry+https://github.com/rust-lang/crates.io-index" 646 | dependencies = [ 647 | "phf_shared 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)", 648 | ] 649 | 650 | [[package]] 651 | name = "phf_codegen" 652 | version = "0.8.0" 653 | source = "registry+https://github.com/rust-lang/crates.io-index" 654 | dependencies = [ 655 | "phf_generator 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)", 656 | "phf_shared 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)", 657 | ] 658 | 659 | [[package]] 660 | name = "phf_generator" 661 | version = "0.8.0" 662 | source = "registry+https://github.com/rust-lang/crates.io-index" 663 | dependencies = [ 664 | "phf_shared 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)", 665 | "rand 0.7.3 (registry+https://github.com/rust-lang/crates.io-index)", 666 | ] 667 | 668 | [[package]] 669 | name = "phf_shared" 670 | version = "0.8.0" 671 | source = "registry+https://github.com/rust-lang/crates.io-index" 672 | dependencies = [ 673 | "siphasher 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)", 674 | ] 675 | 676 | [[package]] 677 | name = "pin-project" 678 | version = "0.4.22" 679 | source = "registry+https://github.com/rust-lang/crates.io-index" 680 | dependencies = [ 681 | "pin-project-internal 0.4.22 (registry+https://github.com/rust-lang/crates.io-index)", 682 | ] 683 | 684 | [[package]] 685 | name = "pin-project-internal" 686 | version = "0.4.22" 687 | source = "registry+https://github.com/rust-lang/crates.io-index" 688 | dependencies = [ 689 | "proc-macro2 1.0.18 (registry+https://github.com/rust-lang/crates.io-index)", 690 | "quote 1.0.7 (registry+https://github.com/rust-lang/crates.io-index)", 691 | "syn 1.0.33 (registry+https://github.com/rust-lang/crates.io-index)", 692 | ] 693 | 694 | [[package]] 695 | name = "pin-project-lite" 696 | version = "0.1.7" 697 | source = "registry+https://github.com/rust-lang/crates.io-index" 698 | 699 | [[package]] 700 | name = "pin-utils" 701 | version = "0.1.0" 702 | source = "registry+https://github.com/rust-lang/crates.io-index" 703 | 704 | [[package]] 705 | name = "pkg-config" 706 | version = "0.3.17" 707 | source = "registry+https://github.com/rust-lang/crates.io-index" 708 | 709 | [[package]] 710 | name = "pmutil" 711 | version = "0.5.3" 712 | source = "registry+https://github.com/rust-lang/crates.io-index" 713 | dependencies = [ 714 | "proc-macro2 1.0.18 (registry+https://github.com/rust-lang/crates.io-index)", 715 | "quote 1.0.7 (registry+https://github.com/rust-lang/crates.io-index)", 716 | "syn 1.0.33 (registry+https://github.com/rust-lang/crates.io-index)", 717 | ] 718 | 719 | [[package]] 720 | name = "ppv-lite86" 721 | version = "0.2.8" 722 | source = "registry+https://github.com/rust-lang/crates.io-index" 723 | 724 | [[package]] 725 | name = "proc-macro-hack" 726 | version = "0.5.16" 727 | source = "registry+https://github.com/rust-lang/crates.io-index" 728 | 729 | [[package]] 730 | name = "proc-macro-nested" 731 | version = "0.1.6" 732 | source = "registry+https://github.com/rust-lang/crates.io-index" 733 | 734 | [[package]] 735 | name = "proc-macro2" 736 | version = "1.0.18" 737 | source = "registry+https://github.com/rust-lang/crates.io-index" 738 | dependencies = [ 739 | "unicode-xid 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 740 | ] 741 | 742 | [[package]] 743 | name = "quick-error" 744 | version = "1.2.3" 745 | source = "registry+https://github.com/rust-lang/crates.io-index" 746 | 747 | [[package]] 748 | name = "quote" 749 | version = "1.0.7" 750 | source = "registry+https://github.com/rust-lang/crates.io-index" 751 | dependencies = [ 752 | "proc-macro2 1.0.18 (registry+https://github.com/rust-lang/crates.io-index)", 753 | ] 754 | 755 | [[package]] 756 | name = "rand" 757 | version = "0.7.3" 758 | source = "registry+https://github.com/rust-lang/crates.io-index" 759 | dependencies = [ 760 | "getrandom 0.1.14 (registry+https://github.com/rust-lang/crates.io-index)", 761 | "libc 0.2.71 (registry+https://github.com/rust-lang/crates.io-index)", 762 | "rand_chacha 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", 763 | "rand_core 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)", 764 | "rand_hc 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", 765 | "rand_pcg 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 766 | ] 767 | 768 | [[package]] 769 | name = "rand_chacha" 770 | version = "0.2.2" 771 | source = "registry+https://github.com/rust-lang/crates.io-index" 772 | dependencies = [ 773 | "ppv-lite86 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", 774 | "rand_core 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)", 775 | ] 776 | 777 | [[package]] 778 | name = "rand_core" 779 | version = "0.5.1" 780 | source = "registry+https://github.com/rust-lang/crates.io-index" 781 | dependencies = [ 782 | "getrandom 0.1.14 (registry+https://github.com/rust-lang/crates.io-index)", 783 | ] 784 | 785 | [[package]] 786 | name = "rand_hc" 787 | version = "0.2.0" 788 | source = "registry+https://github.com/rust-lang/crates.io-index" 789 | dependencies = [ 790 | "rand_core 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)", 791 | ] 792 | 793 | [[package]] 794 | name = "rand_pcg" 795 | version = "0.2.1" 796 | source = "registry+https://github.com/rust-lang/crates.io-index" 797 | dependencies = [ 798 | "rand_core 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)", 799 | ] 800 | 801 | [[package]] 802 | name = "redox_syscall" 803 | version = "0.1.56" 804 | source = "registry+https://github.com/rust-lang/crates.io-index" 805 | 806 | [[package]] 807 | name = "regex" 808 | version = "1.3.9" 809 | source = "registry+https://github.com/rust-lang/crates.io-index" 810 | dependencies = [ 811 | "aho-corasick 0.7.13 (registry+https://github.com/rust-lang/crates.io-index)", 812 | "memchr 2.3.3 (registry+https://github.com/rust-lang/crates.io-index)", 813 | "regex-syntax 0.6.18 (registry+https://github.com/rust-lang/crates.io-index)", 814 | "thread_local 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)", 815 | ] 816 | 817 | [[package]] 818 | name = "regex-syntax" 819 | version = "0.6.18" 820 | source = "registry+https://github.com/rust-lang/crates.io-index" 821 | 822 | [[package]] 823 | name = "remove_dir_all" 824 | version = "0.5.3" 825 | source = "registry+https://github.com/rust-lang/crates.io-index" 826 | dependencies = [ 827 | "winapi 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)", 828 | ] 829 | 830 | [[package]] 831 | name = "rustc_version" 832 | version = "0.2.3" 833 | source = "registry+https://github.com/rust-lang/crates.io-index" 834 | dependencies = [ 835 | "semver 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", 836 | ] 837 | 838 | [[package]] 839 | name = "ryu" 840 | version = "1.0.5" 841 | source = "registry+https://github.com/rust-lang/crates.io-index" 842 | 843 | [[package]] 844 | name = "schannel" 845 | version = "0.1.19" 846 | source = "registry+https://github.com/rust-lang/crates.io-index" 847 | dependencies = [ 848 | "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 849 | "winapi 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)", 850 | ] 851 | 852 | [[package]] 853 | name = "scoped-tls" 854 | version = "0.1.2" 855 | source = "registry+https://github.com/rust-lang/crates.io-index" 856 | 857 | [[package]] 858 | name = "security-framework" 859 | version = "0.4.4" 860 | source = "registry+https://github.com/rust-lang/crates.io-index" 861 | dependencies = [ 862 | "bitflags 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 863 | "core-foundation 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", 864 | "core-foundation-sys 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", 865 | "libc 0.2.71 (registry+https://github.com/rust-lang/crates.io-index)", 866 | "security-framework-sys 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)", 867 | ] 868 | 869 | [[package]] 870 | name = "security-framework-sys" 871 | version = "0.4.3" 872 | source = "registry+https://github.com/rust-lang/crates.io-index" 873 | dependencies = [ 874 | "core-foundation-sys 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", 875 | "libc 0.2.71 (registry+https://github.com/rust-lang/crates.io-index)", 876 | ] 877 | 878 | [[package]] 879 | name = "semver" 880 | version = "0.9.0" 881 | source = "registry+https://github.com/rust-lang/crates.io-index" 882 | dependencies = [ 883 | "semver-parser 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", 884 | ] 885 | 886 | [[package]] 887 | name = "semver-parser" 888 | version = "0.7.0" 889 | source = "registry+https://github.com/rust-lang/crates.io-index" 890 | 891 | [[package]] 892 | name = "serde" 893 | version = "1.0.114" 894 | source = "registry+https://github.com/rust-lang/crates.io-index" 895 | dependencies = [ 896 | "serde_derive 1.0.114 (registry+https://github.com/rust-lang/crates.io-index)", 897 | ] 898 | 899 | [[package]] 900 | name = "serde_derive" 901 | version = "1.0.114" 902 | source = "registry+https://github.com/rust-lang/crates.io-index" 903 | dependencies = [ 904 | "proc-macro2 1.0.18 (registry+https://github.com/rust-lang/crates.io-index)", 905 | "quote 1.0.7 (registry+https://github.com/rust-lang/crates.io-index)", 906 | "syn 1.0.33 (registry+https://github.com/rust-lang/crates.io-index)", 907 | ] 908 | 909 | [[package]] 910 | name = "serde_json" 911 | version = "1.0.56" 912 | source = "registry+https://github.com/rust-lang/crates.io-index" 913 | dependencies = [ 914 | "itoa 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", 915 | "ryu 1.0.5 (registry+https://github.com/rust-lang/crates.io-index)", 916 | "serde 1.0.114 (registry+https://github.com/rust-lang/crates.io-index)", 917 | ] 918 | 919 | [[package]] 920 | name = "signal-hook-registry" 921 | version = "1.2.0" 922 | source = "registry+https://github.com/rust-lang/crates.io-index" 923 | dependencies = [ 924 | "arc-swap 0.4.7 (registry+https://github.com/rust-lang/crates.io-index)", 925 | "libc 0.2.71 (registry+https://github.com/rust-lang/crates.io-index)", 926 | ] 927 | 928 | [[package]] 929 | name = "siphasher" 930 | version = "0.3.3" 931 | source = "registry+https://github.com/rust-lang/crates.io-index" 932 | 933 | [[package]] 934 | name = "slab" 935 | version = "0.4.2" 936 | source = "registry+https://github.com/rust-lang/crates.io-index" 937 | 938 | [[package]] 939 | name = "smallvec" 940 | version = "1.4.0" 941 | source = "registry+https://github.com/rust-lang/crates.io-index" 942 | 943 | [[package]] 944 | name = "socket2" 945 | version = "0.3.12" 946 | source = "registry+https://github.com/rust-lang/crates.io-index" 947 | dependencies = [ 948 | "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", 949 | "libc 0.2.71 (registry+https://github.com/rust-lang/crates.io-index)", 950 | "redox_syscall 0.1.56 (registry+https://github.com/rust-lang/crates.io-index)", 951 | "winapi 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)", 952 | ] 953 | 954 | [[package]] 955 | name = "syn" 956 | version = "1.0.33" 957 | source = "registry+https://github.com/rust-lang/crates.io-index" 958 | dependencies = [ 959 | "proc-macro2 1.0.18 (registry+https://github.com/rust-lang/crates.io-index)", 960 | "quote 1.0.7 (registry+https://github.com/rust-lang/crates.io-index)", 961 | "unicode-xid 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 962 | ] 963 | 964 | [[package]] 965 | name = "tbot" 966 | version = "0.6.4" 967 | source = "registry+https://github.com/rust-lang/crates.io-index" 968 | dependencies = [ 969 | "futures 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", 970 | "hyper 0.13.6 (registry+https://github.com/rust-lang/crates.io-index)", 971 | "hyper-proxy 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)", 972 | "hyper-tls 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)", 973 | "is-macro 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)", 974 | "native-tls 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)", 975 | "paste 0.1.18 (registry+https://github.com/rust-lang/crates.io-index)", 976 | "serde 1.0.114 (registry+https://github.com/rust-lang/crates.io-index)", 977 | "serde_json 1.0.56 (registry+https://github.com/rust-lang/crates.io-index)", 978 | "tokio 0.2.21 (registry+https://github.com/rust-lang/crates.io-index)", 979 | "tokio-tls 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", 980 | "tracing 0.1.15 (registry+https://github.com/rust-lang/crates.io-index)", 981 | "tracing-futures 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)", 982 | ] 983 | 984 | [[package]] 985 | name = "tempfile" 986 | version = "3.1.0" 987 | source = "registry+https://github.com/rust-lang/crates.io-index" 988 | dependencies = [ 989 | "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", 990 | "libc 0.2.71 (registry+https://github.com/rust-lang/crates.io-index)", 991 | "rand 0.7.3 (registry+https://github.com/rust-lang/crates.io-index)", 992 | "redox_syscall 0.1.56 (registry+https://github.com/rust-lang/crates.io-index)", 993 | "remove_dir_all 0.5.3 (registry+https://github.com/rust-lang/crates.io-index)", 994 | "winapi 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)", 995 | ] 996 | 997 | [[package]] 998 | name = "termcolor" 999 | version = "1.1.0" 1000 | source = "registry+https://github.com/rust-lang/crates.io-index" 1001 | dependencies = [ 1002 | "winapi-util 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)", 1003 | ] 1004 | 1005 | [[package]] 1006 | name = "thread_local" 1007 | version = "1.0.1" 1008 | source = "registry+https://github.com/rust-lang/crates.io-index" 1009 | dependencies = [ 1010 | "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 1011 | ] 1012 | 1013 | [[package]] 1014 | name = "time" 1015 | version = "0.1.43" 1016 | source = "registry+https://github.com/rust-lang/crates.io-index" 1017 | dependencies = [ 1018 | "libc 0.2.71 (registry+https://github.com/rust-lang/crates.io-index)", 1019 | "winapi 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)", 1020 | ] 1021 | 1022 | [[package]] 1023 | name = "tokio" 1024 | version = "0.2.21" 1025 | source = "registry+https://github.com/rust-lang/crates.io-index" 1026 | dependencies = [ 1027 | "bytes 0.5.5 (registry+https://github.com/rust-lang/crates.io-index)", 1028 | "fnv 1.0.7 (registry+https://github.com/rust-lang/crates.io-index)", 1029 | "futures-core 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", 1030 | "iovec 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", 1031 | "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 1032 | "libc 0.2.71 (registry+https://github.com/rust-lang/crates.io-index)", 1033 | "memchr 2.3.3 (registry+https://github.com/rust-lang/crates.io-index)", 1034 | "mio 0.6.22 (registry+https://github.com/rust-lang/crates.io-index)", 1035 | "mio-named-pipes 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", 1036 | "mio-uds 0.6.8 (registry+https://github.com/rust-lang/crates.io-index)", 1037 | "num_cpus 1.13.0 (registry+https://github.com/rust-lang/crates.io-index)", 1038 | "pin-project-lite 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", 1039 | "signal-hook-registry 1.2.0 (registry+https://github.com/rust-lang/crates.io-index)", 1040 | "slab 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)", 1041 | "tokio-macros 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)", 1042 | "winapi 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)", 1043 | ] 1044 | 1045 | [[package]] 1046 | name = "tokio-macros" 1047 | version = "0.2.5" 1048 | source = "registry+https://github.com/rust-lang/crates.io-index" 1049 | dependencies = [ 1050 | "proc-macro2 1.0.18 (registry+https://github.com/rust-lang/crates.io-index)", 1051 | "quote 1.0.7 (registry+https://github.com/rust-lang/crates.io-index)", 1052 | "syn 1.0.33 (registry+https://github.com/rust-lang/crates.io-index)", 1053 | ] 1054 | 1055 | [[package]] 1056 | name = "tokio-tls" 1057 | version = "0.3.1" 1058 | source = "registry+https://github.com/rust-lang/crates.io-index" 1059 | dependencies = [ 1060 | "native-tls 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)", 1061 | "tokio 0.2.21 (registry+https://github.com/rust-lang/crates.io-index)", 1062 | ] 1063 | 1064 | [[package]] 1065 | name = "tokio-util" 1066 | version = "0.3.1" 1067 | source = "registry+https://github.com/rust-lang/crates.io-index" 1068 | dependencies = [ 1069 | "bytes 0.5.5 (registry+https://github.com/rust-lang/crates.io-index)", 1070 | "futures-core 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", 1071 | "futures-sink 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", 1072 | "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", 1073 | "pin-project-lite 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", 1074 | "tokio 0.2.21 (registry+https://github.com/rust-lang/crates.io-index)", 1075 | ] 1076 | 1077 | [[package]] 1078 | name = "tower-service" 1079 | version = "0.3.0" 1080 | source = "registry+https://github.com/rust-lang/crates.io-index" 1081 | 1082 | [[package]] 1083 | name = "tracing" 1084 | version = "0.1.15" 1085 | source = "registry+https://github.com/rust-lang/crates.io-index" 1086 | dependencies = [ 1087 | "cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", 1088 | "tracing-attributes 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)", 1089 | "tracing-core 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)", 1090 | ] 1091 | 1092 | [[package]] 1093 | name = "tracing-attributes" 1094 | version = "0.1.8" 1095 | source = "registry+https://github.com/rust-lang/crates.io-index" 1096 | dependencies = [ 1097 | "proc-macro2 1.0.18 (registry+https://github.com/rust-lang/crates.io-index)", 1098 | "quote 1.0.7 (registry+https://github.com/rust-lang/crates.io-index)", 1099 | "syn 1.0.33 (registry+https://github.com/rust-lang/crates.io-index)", 1100 | ] 1101 | 1102 | [[package]] 1103 | name = "tracing-core" 1104 | version = "0.1.10" 1105 | source = "registry+https://github.com/rust-lang/crates.io-index" 1106 | dependencies = [ 1107 | "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 1108 | ] 1109 | 1110 | [[package]] 1111 | name = "tracing-futures" 1112 | version = "0.2.4" 1113 | source = "registry+https://github.com/rust-lang/crates.io-index" 1114 | dependencies = [ 1115 | "pin-project 0.4.22 (registry+https://github.com/rust-lang/crates.io-index)", 1116 | "tracing 0.1.15 (registry+https://github.com/rust-lang/crates.io-index)", 1117 | ] 1118 | 1119 | [[package]] 1120 | name = "try-lock" 1121 | version = "0.2.2" 1122 | source = "registry+https://github.com/rust-lang/crates.io-index" 1123 | 1124 | [[package]] 1125 | name = "typed-headers" 1126 | version = "0.2.0" 1127 | source = "registry+https://github.com/rust-lang/crates.io-index" 1128 | dependencies = [ 1129 | "base64 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)", 1130 | "bytes 0.5.5 (registry+https://github.com/rust-lang/crates.io-index)", 1131 | "chrono 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)", 1132 | "http 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)", 1133 | "mime 0.3.16 (registry+https://github.com/rust-lang/crates.io-index)", 1134 | ] 1135 | 1136 | [[package]] 1137 | name = "unicode-xid" 1138 | version = "0.2.1" 1139 | source = "registry+https://github.com/rust-lang/crates.io-index" 1140 | 1141 | [[package]] 1142 | name = "vcpkg" 1143 | version = "0.2.10" 1144 | source = "registry+https://github.com/rust-lang/crates.io-index" 1145 | 1146 | [[package]] 1147 | name = "want" 1148 | version = "0.3.0" 1149 | source = "registry+https://github.com/rust-lang/crates.io-index" 1150 | dependencies = [ 1151 | "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", 1152 | "try-lock 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", 1153 | ] 1154 | 1155 | [[package]] 1156 | name = "wasi" 1157 | version = "0.9.0+wasi-snapshot-preview1" 1158 | source = "registry+https://github.com/rust-lang/crates.io-index" 1159 | 1160 | [[package]] 1161 | name = "winapi" 1162 | version = "0.2.8" 1163 | source = "registry+https://github.com/rust-lang/crates.io-index" 1164 | 1165 | [[package]] 1166 | name = "winapi" 1167 | version = "0.3.9" 1168 | source = "registry+https://github.com/rust-lang/crates.io-index" 1169 | dependencies = [ 1170 | "winapi-i686-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 1171 | "winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", 1172 | ] 1173 | 1174 | [[package]] 1175 | name = "winapi-build" 1176 | version = "0.1.1" 1177 | source = "registry+https://github.com/rust-lang/crates.io-index" 1178 | 1179 | [[package]] 1180 | name = "winapi-i686-pc-windows-gnu" 1181 | version = "0.4.0" 1182 | source = "registry+https://github.com/rust-lang/crates.io-index" 1183 | 1184 | [[package]] 1185 | name = "winapi-util" 1186 | version = "0.1.5" 1187 | source = "registry+https://github.com/rust-lang/crates.io-index" 1188 | dependencies = [ 1189 | "winapi 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)", 1190 | ] 1191 | 1192 | [[package]] 1193 | name = "winapi-x86_64-pc-windows-gnu" 1194 | version = "0.4.0" 1195 | source = "registry+https://github.com/rust-lang/crates.io-index" 1196 | 1197 | [[package]] 1198 | name = "ws2_32-sys" 1199 | version = "0.2.1" 1200 | source = "registry+https://github.com/rust-lang/crates.io-index" 1201 | dependencies = [ 1202 | "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", 1203 | "winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", 1204 | ] 1205 | 1206 | [metadata] 1207 | "checksum Inflector 0.11.4 (registry+https://github.com/rust-lang/crates.io-index)" = "fe438c63458706e03479442743baae6c88256498e6431708f6dfc520a26515d3" 1208 | "checksum ahash 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)" = "e8fd72866655d1904d6b0997d0b07ba561047d070fbe29de039031c641b61217" 1209 | "checksum aho-corasick 0.7.13 (registry+https://github.com/rust-lang/crates.io-index)" = "043164d8ba5c4c3035fec9bbee8647c0261d788f3474306f93bb65901cae0e86" 1210 | "checksum arc-swap 0.4.7 (registry+https://github.com/rust-lang/crates.io-index)" = "4d25d88fd6b8041580a654f9d0c581a047baee2b3efee13275f2fc392fc75034" 1211 | "checksum atty 0.2.14 (registry+https://github.com/rust-lang/crates.io-index)" = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8" 1212 | "checksum autocfg 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "f8aac770f1885fd7e387acedd76065302551364496e46b3dd00860b2f8359b9d" 1213 | "checksum base64 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)" = "b41b7ea54a0c9d92199de89e20e58d49f02f8e699814ef3fdf266f6f748d15c7" 1214 | "checksum bitflags 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693" 1215 | "checksum bytes 0.5.5 (registry+https://github.com/rust-lang/crates.io-index)" = "118cf036fbb97d0816e3c34b2d7a1e8cfc60f68fcf63d550ddbe9bd5f59c213b" 1216 | "checksum cc 1.0.57 (registry+https://github.com/rust-lang/crates.io-index)" = "0fde55d2a2bfaa4c9668bbc63f531fbdeee3ffe188f4662511ce2c22b3eedebe" 1217 | "checksum cedarwood 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)" = "963e82c7b94163808ca3a452608d260b64ba5bc7b5653b4af1af59887899f48d" 1218 | "checksum cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)" = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822" 1219 | "checksum chrono 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)" = "f0fee792e164f78f5fe0c296cc2eb3688a2ca2b70cdff33040922d298203f0c4" 1220 | "checksum core-foundation 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "57d24c7a13c43e870e37c1556b74555437870a04514f7685f5b354e090567171" 1221 | "checksum core-foundation-sys 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "b3a71ab494c0b5b860bdc8407ae08978052417070c2ced38573a9157ad75b8ac" 1222 | "checksum env_logger 0.7.1 (registry+https://github.com/rust-lang/crates.io-index)" = "44533bbbb3bb3c1fa17d9f2e4e38bbbaf8396ba82193c4cb1b6445d711445d36" 1223 | "checksum fnv 1.0.7 (registry+https://github.com/rust-lang/crates.io-index)" = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" 1224 | "checksum foreign-types 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)" = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1" 1225 | "checksum foreign-types-shared 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" 1226 | "checksum fuchsia-zircon 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "2e9763c69ebaae630ba35f74888db465e49e259ba1bc0eda7d06f4a067615d82" 1227 | "checksum fuchsia-zircon-sys 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "3dcaa9ae7725d12cdb85b3ad99a434db70b468c09ded17e012d86b5c1010f7a7" 1228 | "checksum futures 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)" = "1e05b85ec287aac0dc34db7d4a569323df697f9c55b99b15d6b4ef8cde49f613" 1229 | "checksum futures-channel 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)" = "f366ad74c28cca6ba456d95e6422883cfb4b252a83bed929c83abfdbbf2967d5" 1230 | "checksum futures-core 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)" = "59f5fff90fd5d971f936ad674802482ba441b6f09ba5e15fd8b39145582ca399" 1231 | "checksum futures-executor 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)" = "10d6bb888be1153d3abeb9006b11b02cf5e9b209fda28693c31ae1e4e012e314" 1232 | "checksum futures-io 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)" = "de27142b013a8e869c14957e6d2edeef89e97c289e69d042ee3a49acd8b51789" 1233 | "checksum futures-macro 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)" = "d0b5a30a4328ab5473878237c447333c093297bded83a4983d10f4deea240d39" 1234 | "checksum futures-sink 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)" = "3f2032893cb734c7a05d85ce0cc8b8c4075278e93b24b66f9de99d6eb0fa8acc" 1235 | "checksum futures-task 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)" = "bdb66b5f09e22019b1ab0830f7785bcea8e7a42148683f99214f73f8ec21a626" 1236 | "checksum futures-util 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)" = "8764574ff08b701a084482c3c7031349104b07ac897393010494beaa18ce32c6" 1237 | "checksum generator 0.6.21 (registry+https://github.com/rust-lang/crates.io-index)" = "add72f17bb81521258fcc8a7a3245b1e184e916bfbe34f0ea89558f440df5c68" 1238 | "checksum getrandom 0.1.14 (registry+https://github.com/rust-lang/crates.io-index)" = "7abc8dd8451921606d809ba32e95b6111925cd2906060d2dcc29c070220503eb" 1239 | "checksum h2 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)" = "79b7246d7e4b979c03fa093da39cfb3617a96bbeee6310af63991668d7e843ff" 1240 | "checksum hashbrown 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ab9b7860757ce258c89fd48d28b68c41713e597a7b09e793f6c6a6e2ea37c827" 1241 | "checksum hermit-abi 0.1.14 (registry+https://github.com/rust-lang/crates.io-index)" = "b9586eedd4ce6b3c498bc3b4dd92fc9f11166aa908a914071953768066c67909" 1242 | "checksum http 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "28d569972648b2c512421b5f2a405ad6ac9666547189d0c5477a3f200f3e02f9" 1243 | "checksum http-body 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "13d5ff830006f7646652e057693569bfe0d51760c0085a071769d142a205111b" 1244 | "checksum httparse 1.3.4 (registry+https://github.com/rust-lang/crates.io-index)" = "cd179ae861f0c2e53da70d892f5f3029f9594be0c41dc5269cd371691b1dc2f9" 1245 | "checksum humantime 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "df004cfca50ef23c36850aaaa59ad52cc70d0e90243c3c7737a4dd32dc7a3c4f" 1246 | "checksum hyper 0.13.6 (registry+https://github.com/rust-lang/crates.io-index)" = "a6e7655b9594024ad0ee439f3b5a7299369dc2a3f459b47c696f9ff676f9aa1f" 1247 | "checksum hyper-proxy 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)" = "0cf120ed868e8e0cd22279cc8196c8db126884a5dbb01e0f528018048efd8fee" 1248 | "checksum hyper-tls 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)" = "3adcd308402b9553630734e9c36b77a7e48b3821251ca2493e8cd596763aafaa" 1249 | "checksum indexmap 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "c398b2b113b55809ceb9ee3e753fcbac793f1956663f3c36549c1346015c2afe" 1250 | "checksum iovec 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)" = "b2b3ea6ff95e175473f8ffe6a7eb7c00d054240321b84c57051175fe3c1e075e" 1251 | "checksum is-macro 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)" = "04807f3dc9e3ea39af3f8469a5297267faf94859637afb836b33f47d9b2650ee" 1252 | "checksum itoa 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)" = "dc6f3ad7b9d11a0c00842ff8de1b60ee58661048eb8049ed33c73594f359d7e6" 1253 | "checksum jieba-rs 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)" = "2ca2de723e93727460917d9542f7ae35a74d03d93923f03380a0238d860d137c" 1254 | "checksum kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "7507624b29483431c0ba2d82aece8ca6cdba9382bff4ddd0f7490560c056098d" 1255 | "checksum lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" 1256 | "checksum libc 0.2.71 (registry+https://github.com/rust-lang/crates.io-index)" = "9457b06509d27052635f90d6466700c65095fdf75409b3fbdd903e988b886f49" 1257 | "checksum log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)" = "14b6052be84e6b71ab17edffc2eeabf5c2c3ae1fdb464aae35ac50c67a44e1f7" 1258 | "checksum loom 0.3.4 (registry+https://github.com/rust-lang/crates.io-index)" = "4ecc775857611e1df29abba5c41355cdf540e7e9d4acfdf0f355eefee82330b7" 1259 | "checksum memchr 2.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "3728d817d99e5ac407411fa471ff9800a778d88a24685968b36824eaf4bee400" 1260 | "checksum mime 0.3.16 (registry+https://github.com/rust-lang/crates.io-index)" = "2a60c7ce501c71e03a9c9c0d35b861413ae925bd979cc7a4e30d060069aaac8d" 1261 | "checksum mio 0.6.22 (registry+https://github.com/rust-lang/crates.io-index)" = "fce347092656428bc8eaf6201042cb551b8d67855af7374542a92a0fbfcac430" 1262 | "checksum mio-named-pipes 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)" = "0840c1c50fd55e521b247f949c241c9997709f23bd7f023b9762cd561e935656" 1263 | "checksum mio-uds 0.6.8 (registry+https://github.com/rust-lang/crates.io-index)" = "afcb699eb26d4332647cc848492bbc15eafb26f08d0304550d5aa1f612e066f0" 1264 | "checksum miow 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "8c1f2f3b1cf331de6896aabf6e9d55dca90356cc9960cca7eaaf408a355ae919" 1265 | "checksum miow 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)" = "07b88fb9795d4d36d62a012dfbf49a8f5cf12751f36d31a9dbe66d528e58979e" 1266 | "checksum native-tls 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)" = "2b0d88c06fe90d5ee94048ba40409ef1d9315d86f6f38c2efdaad4fb50c58b2d" 1267 | "checksum net2 0.2.34 (registry+https://github.com/rust-lang/crates.io-index)" = "2ba7c918ac76704fb42afcbbb43891e72731f3dcca3bef2a19786297baf14af7" 1268 | "checksum num-integer 0.1.43 (registry+https://github.com/rust-lang/crates.io-index)" = "8d59457e662d541ba17869cf51cf177c0b5f0cbf476c66bdc90bf1edac4f875b" 1269 | "checksum num-traits 0.2.12 (registry+https://github.com/rust-lang/crates.io-index)" = "ac267bcc07f48ee5f8935ab0d24f316fb722d7a1292e2913f0cc196b29ffd611" 1270 | "checksum num_cpus 1.13.0 (registry+https://github.com/rust-lang/crates.io-index)" = "05499f3756671c15885fee9034446956fff3f243d6077b91e5767df161f766b3" 1271 | "checksum once_cell 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "0b631f7e854af39a1739f401cf34a8a013dfe09eac4fa4dba91e9768bd28168d" 1272 | "checksum openssl 0.10.30 (registry+https://github.com/rust-lang/crates.io-index)" = "8d575eff3665419f9b83678ff2815858ad9d11567e082f5ac1814baba4e2bcb4" 1273 | "checksum openssl-probe 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "77af24da69f9d9341038eba93a073b1fdaaa1b788221b00a69bce9e762cb32de" 1274 | "checksum openssl-sys 0.9.58 (registry+https://github.com/rust-lang/crates.io-index)" = "a842db4709b604f0fe5d1170ae3565899be2ad3d9cbc72dedc789ac0511f78de" 1275 | "checksum paste 0.1.18 (registry+https://github.com/rust-lang/crates.io-index)" = "45ca20c77d80be666aef2b45486da86238fabe33e38306bd3118fe4af33fa880" 1276 | "checksum paste-impl 0.1.18 (registry+https://github.com/rust-lang/crates.io-index)" = "d95a7db200b97ef370c8e6de0088252f7e0dfff7d047a28528e47456c0fc98b6" 1277 | "checksum phf 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)" = "3dfb61232e34fcb633f43d12c58f83c1df82962dcdfa565a4e866ffc17dafe12" 1278 | "checksum phf_codegen 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)" = "cbffee61585b0411840d3ece935cce9cb6321f01c45477d30066498cd5e1a815" 1279 | "checksum phf_generator 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)" = "17367f0cc86f2d25802b2c26ee58a7b23faeccf78a396094c13dced0d0182526" 1280 | "checksum phf_shared 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)" = "c00cf8b9eafe68dde5e9eaa2cef8ee84a9336a47d566ec55ca16589633b65af7" 1281 | "checksum pin-project 0.4.22 (registry+https://github.com/rust-lang/crates.io-index)" = "12e3a6cdbfe94a5e4572812a0201f8c0ed98c1c452c7b8563ce2276988ef9c17" 1282 | "checksum pin-project-internal 0.4.22 (registry+https://github.com/rust-lang/crates.io-index)" = "6a0ffd45cf79d88737d7cc85bfd5d2894bee1139b356e616fe85dc389c61aaf7" 1283 | "checksum pin-project-lite 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)" = "282adbf10f2698a7a77f8e983a74b2d18176c19a7fd32a45446139ae7b02b715" 1284 | "checksum pin-utils 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" 1285 | "checksum pkg-config 0.3.17 (registry+https://github.com/rust-lang/crates.io-index)" = "05da548ad6865900e60eaba7f589cc0783590a92e940c26953ff81ddbab2d677" 1286 | "checksum pmutil 0.5.3 (registry+https://github.com/rust-lang/crates.io-index)" = "3894e5d549cccbe44afecf72922f277f603cd4bb0219c8342631ef18fffbe004" 1287 | "checksum ppv-lite86 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)" = "237a5ed80e274dbc66f86bd59c1e25edc039660be53194b5fe0a482e0f2612ea" 1288 | "checksum proc-macro-hack 0.5.16 (registry+https://github.com/rust-lang/crates.io-index)" = "7e0456befd48169b9f13ef0f0ad46d492cf9d2dbb918bcf38e01eed4ce3ec5e4" 1289 | "checksum proc-macro-nested 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = "eba180dafb9038b050a4c280019bbedf9f2467b61e5d892dcad585bb57aadc5a" 1290 | "checksum proc-macro2 1.0.18 (registry+https://github.com/rust-lang/crates.io-index)" = "beae6331a816b1f65d04c45b078fd8e6c93e8071771f41b8163255bbd8d7c8fa" 1291 | "checksum quick-error 1.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "a1d01941d82fa2ab50be1e79e6714289dd7cde78eba4c074bc5a4374f650dfe0" 1292 | "checksum quote 1.0.7 (registry+https://github.com/rust-lang/crates.io-index)" = "aa563d17ecb180e500da1cfd2b028310ac758de548efdd203e18f283af693f37" 1293 | "checksum rand 0.7.3 (registry+https://github.com/rust-lang/crates.io-index)" = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03" 1294 | "checksum rand_chacha 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402" 1295 | "checksum rand_core 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)" = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19" 1296 | "checksum rand_hc 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c" 1297 | "checksum rand_pcg 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "16abd0c1b639e9eb4d7c50c0b8100b0d0f849be2349829c740fe8e6eb4816429" 1298 | "checksum redox_syscall 0.1.56 (registry+https://github.com/rust-lang/crates.io-index)" = "2439c63f3f6139d1b57529d16bc3b8bb855230c8efcc5d3a896c8bea7c3b1e84" 1299 | "checksum regex 1.3.9 (registry+https://github.com/rust-lang/crates.io-index)" = "9c3780fcf44b193bc4d09f36d2a3c87b251da4a046c87795a0d35f4f927ad8e6" 1300 | "checksum regex-syntax 0.6.18 (registry+https://github.com/rust-lang/crates.io-index)" = "26412eb97c6b088a6997e05f69403a802a92d520de2f8e63c2b65f9e0f47c4e8" 1301 | "checksum remove_dir_all 0.5.3 (registry+https://github.com/rust-lang/crates.io-index)" = "3acd125665422973a33ac9d3dd2df85edad0f4ae9b00dafb1a05e43a9f5ef8e7" 1302 | "checksum rustc_version 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "138e3e0acb6c9fb258b19b67cb8abd63c00679d2851805ea151465464fe9030a" 1303 | "checksum ryu 1.0.5 (registry+https://github.com/rust-lang/crates.io-index)" = "71d301d4193d031abdd79ff7e3dd721168a9572ef3fe51a1517aba235bd8f86e" 1304 | "checksum schannel 0.1.19 (registry+https://github.com/rust-lang/crates.io-index)" = "8f05ba609c234e60bee0d547fe94a4c7e9da733d1c962cf6e59efa4cd9c8bc75" 1305 | "checksum scoped-tls 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)" = "332ffa32bf586782a3efaeb58f127980944bbc8c4d6913a86107ac2a5ab24b28" 1306 | "checksum security-framework 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)" = "64808902d7d99f78eaddd2b4e2509713babc3dc3c85ad6f4c447680f3c01e535" 1307 | "checksum security-framework-sys 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)" = "17bf11d99252f512695eb468de5516e5cf75455521e69dfe343f3b74e4748405" 1308 | "checksum semver 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)" = "1d7eb9ef2c18661902cc47e535f9bc51b78acd254da71d375c2f6720d9a40403" 1309 | "checksum semver-parser 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3" 1310 | "checksum serde 1.0.114 (registry+https://github.com/rust-lang/crates.io-index)" = "5317f7588f0a5078ee60ef675ef96735a1442132dc645eb1d12c018620ed8cd3" 1311 | "checksum serde_derive 1.0.114 (registry+https://github.com/rust-lang/crates.io-index)" = "2a0be94b04690fbaed37cddffc5c134bf537c8e3329d53e982fe04c374978f8e" 1312 | "checksum serde_json 1.0.56 (registry+https://github.com/rust-lang/crates.io-index)" = "3433e879a558dde8b5e8feb2a04899cf34fdde1fafb894687e52105fc1162ac3" 1313 | "checksum signal-hook-registry 1.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "94f478ede9f64724c5d173d7bb56099ec3e2d9fc2774aac65d34b8b890405f41" 1314 | "checksum siphasher 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "fa8f3741c7372e75519bd9346068370c9cdaabcc1f9599cbcf2a2719352286b7" 1315 | "checksum slab 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)" = "c111b5bd5695e56cffe5129854aa230b39c93a305372fdbb2668ca2394eea9f8" 1316 | "checksum smallvec 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "c7cb5678e1615754284ec264d9bb5b4c27d2018577fd90ac0ceb578591ed5ee4" 1317 | "checksum socket2 0.3.12 (registry+https://github.com/rust-lang/crates.io-index)" = "03088793f677dce356f3ccc2edb1b314ad191ab702a5de3faf49304f7e104918" 1318 | "checksum syn 1.0.33 (registry+https://github.com/rust-lang/crates.io-index)" = "e8d5d96e8cbb005d6959f119f773bfaebb5684296108fb32600c00cde305b2cd" 1319 | "checksum tbot 0.6.4 (registry+https://github.com/rust-lang/crates.io-index)" = "4382bb39de175d2a5315f69f1afd572d028cd2ec43bc5a50fc1a13217ed016b5" 1320 | "checksum tempfile 3.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "7a6e24d9338a0a5be79593e2fa15a648add6138caa803e2d5bc782c371732ca9" 1321 | "checksum termcolor 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "bb6bfa289a4d7c5766392812c0a1f4c1ba45afa1ad47803c11e1f407d846d75f" 1322 | "checksum thread_local 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "d40c6d1b69745a6ec6fb1ca717914848da4b44ae29d9b3080cbee91d72a69b14" 1323 | "checksum time 0.1.43 (registry+https://github.com/rust-lang/crates.io-index)" = "ca8a50ef2360fbd1eeb0ecd46795a87a19024eb4b53c5dc916ca1fd95fe62438" 1324 | "checksum tokio 0.2.21 (registry+https://github.com/rust-lang/crates.io-index)" = "d099fa27b9702bed751524694adbe393e18b36b204da91eb1cbbbbb4a5ee2d58" 1325 | "checksum tokio-macros 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)" = "f0c3acc6aa564495a0f2e1d59fab677cd7f81a19994cfc7f3ad0e64301560389" 1326 | "checksum tokio-tls 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "9a70f4fcd7b3b24fb194f837560168208f669ca8cb70d0c4b862944452396343" 1327 | "checksum tokio-util 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "be8242891f2b6cbef26a2d7e8605133c2c554cd35b3e4948ea892d6d68436499" 1328 | "checksum tower-service 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "e987b6bf443f4b5b3b6f38704195592cca41c5bb7aedd3c3693c7081f8289860" 1329 | "checksum tracing 0.1.15 (registry+https://github.com/rust-lang/crates.io-index)" = "a41f40ed0e162c911ac6fcb53ecdc8134c46905fdbbae8c50add462a538b495f" 1330 | "checksum tracing-attributes 0.1.8 (registry+https://github.com/rust-lang/crates.io-index)" = "99bbad0de3fd923c9c3232ead88510b783e5a4d16a6154adffa3d53308de984c" 1331 | "checksum tracing-core 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)" = "0aa83a9a47081cd522c09c81b31aec2c9273424976f922ad61c053b58350b715" 1332 | "checksum tracing-futures 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)" = "ab7bb6f14721aa00656086e9335d363c5c8747bae02ebe32ea2c7dece5689b4c" 1333 | "checksum try-lock 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "e604eb7b43c06650e854be16a2a03155743d3752dd1c943f6829e26b7a36e382" 1334 | "checksum typed-headers 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "3179a61e9eccceead5f1574fd173cf2e162ac42638b9bf214c6ad0baf7efa24a" 1335 | "checksum unicode-xid 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "f7fe0bb3479651439c9112f72b6c505038574c9fbb575ed1bf3b797fa39dd564" 1336 | "checksum vcpkg 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)" = "6454029bf181f092ad1b853286f23e2c507d8e8194d01d92da4a55c274a5508c" 1337 | "checksum want 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "1ce8a968cb1cd110d136ff8b819a556d6fb6d919363c61534f6860c7eb172ba0" 1338 | "checksum wasi 0.9.0+wasi-snapshot-preview1 (registry+https://github.com/rust-lang/crates.io-index)" = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519" 1339 | "checksum winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)" = "167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a" 1340 | "checksum winapi 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)" = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" 1341 | "checksum winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "2d315eee3b34aca4797b2da6b13ed88266e6d612562a0c46390af8299fc699bc" 1342 | "checksum winapi-i686-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" 1343 | "checksum winapi-util 0.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "70ec6ce85bb158151cae5e5c87f95a8e97d2c0c4b001223f33a334e3ce5de178" 1344 | "checksum winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" 1345 | "checksum ws2_32-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "d59cefebd0c892fa2dd6de581e937301d8552cb44489cdff035c6187cb63fa5e" 1346 | -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "jieba-bot" 3 | version = "0.2.0" 4 | authors = ["Ye Jingchen "] 5 | edition = "2018" 6 | 7 | [dependencies] 8 | jieba-rs = "0.5" 9 | tbot = "0.6" 10 | tokio = { version = "0.2", features = ["full"] } 11 | lazy_static = "1.4" 12 | log = "0.4.0" 13 | env_logger = "0.7.1" 14 | hyper-proxy = "0.6" # for tbot proxy support 15 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE 2 | Version 2, December 2004 3 | 4 | Copyright (C) 2004 Sam Hocevar 5 | 6 | Everyone is permitted to copy and distribute verbatim or modified 7 | copies of this license document, and changing it is allowed as long 8 | as the name is changed. 9 | 10 | DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE 11 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 12 | 13 | 0. You just DO WHAT THE FUCK YOU WANT TO. 14 | 15 | -------------------------------------------------------------------------------- /README.rst: -------------------------------------------------------------------------------- 1 | ========= 2 | Jieba-bot 3 | ========= 4 | This is a simple Telegram inline bot providing Chinese word segmentation powered 5 | by the Jieba algorithm. 6 | 7 | The official instance is `@jiebabot `_. 8 | 9 | .. image:: example.png 10 | 11 | Build 12 | ----- 13 | Requries rustc 1.39+ for async/await. 14 | 15 | .. code:: sh 16 | 17 | # debug build 18 | cargo build 19 | # or, optimized build 20 | cargo build --release 21 | 22 | Running 23 | ------- 24 | Configurations including bot token is provided at runtime via environment 25 | variables. 26 | 27 | - ``BOT_TOKEN``: required. This is what you get from botfather when you create 28 | a bot. 29 | 30 | - ``RUST_LOG``: controls the logging behavior, for example: ``info``, 31 | ``debug``, ``jieba_bot=debug``, ``tbot``, etc. See |log_crate|_. 32 | 33 | - ``HTTPS_PROXY``: in the form of ``http[s]://host:port``. Currently only http 34 | and https proxy is supported. 35 | 36 | .. |log_crate| replace:: the `log` crate 37 | .. _log_crate: https://docs.rs/log 38 | 39 | .. code:: sh 40 | 41 | RUST_LOG=info BOT_TOKEN=xxxxxx cargo run --release 42 | 43 | Alternatively, you can use systemd to manage the service. A demo systemd 44 | service and an EnvironmentFile are included. Place the service file in 45 | ``/etc/systemd/system``, put the executable at ``/usr/local/bin/jieba-bot``, 46 | put ``jieba-bot.conf`` in ``/etc``, and issue a ``systemctl daemon-reload``. 47 | Then you can start and enable the ``jieba-bot`` service using normal systemd 48 | commands. 49 | 50 | Miscellaneous 51 | ------------- 52 | Q: Why not write this in Python? 53 | 54 | A: Because I'm afraid of programming in dynamically-typed languages :) 55 | 56 | Privacy 57 | ------- 58 | This bot records nothing at all. All messages are discarded once processed. 59 | 60 | License 61 | ------- 62 | This work is released under the WTFPL license. A copy of the license is provided 63 | in the LICENSE file. 64 | -------------------------------------------------------------------------------- /example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yejingchen/jieba-bot/da0889ab6bb0741c23f72b73a4f4d8d27a4a7a07/example.png -------------------------------------------------------------------------------- /jieba-bot.conf: -------------------------------------------------------------------------------- 1 | # Preferably place this file at /etc/jieba-bot.conf 2 | # See systemd.exec(5) for file format explanation 3 | 4 | # currently only http and https proxy is supported. 5 | #HTTPS_PROXY=http://127.0.0.1:1081 6 | 7 | # From env_logger documentation: 8 | # The value of this environment variable is a comma-separated list of logging directives. 9 | # A logging directive is of the form: 10 | # path::to::module=level 11 | # If either the module or level is omitted, all module or log level will be 12 | # printed. 13 | RUST_LOG=info 14 | 15 | BOT_TOKEN=your_bot_token 16 | -------------------------------------------------------------------------------- /jieba-bot.service: -------------------------------------------------------------------------------- 1 | [Unit] 2 | Description=Jieba-bot Chinese word segmentation Telegram bot 3 | Documentation=https://github.com/yejingchen/jieba-bot 4 | After=network.target network-online.target nss-lookup.target 5 | 6 | [Service] 7 | Type=simple 8 | User=nobody 9 | EnvironmentFile=/etc/jieba-bot.conf 10 | ExecStart=/usr/local/bin/jieba-bot 11 | Restart=on-failure 12 | 13 | [Install] 14 | WantedBy=multi-user.target 15 | -------------------------------------------------------------------------------- /src/main.rs: -------------------------------------------------------------------------------- 1 | use hyper_proxy::{Proxy, Intercept}; 2 | use lazy_static::lazy_static; 3 | use jieba_rs::Jieba; 4 | use tbot::types::{ 5 | inline_query::{self, result::Article}, 6 | input_message_content::Text, 7 | parameters::Text as ParseMode, 8 | }; 9 | 10 | const BOT_TOKEN_ENV: &str = "BOT_TOKEN"; 11 | 12 | lazy_static! { 13 | static ref JIEBA: Jieba = Jieba::new(); 14 | } 15 | 16 | fn make_inline_result<'a>(id: &'a str, title: &'a str, msg: &'a str) 17 | -> inline_query::Result<'a> { 18 | let content = Text::new(ParseMode::plain(msg)); 19 | let article = Article::new(title, content).description(msg); 20 | let result = inline_query::Result::new(id, article); 21 | return result; 22 | } 23 | 24 | #[tokio::main] 25 | async fn main() { 26 | env_logger::init(); 27 | log::info!("jieba-bot: Chinese word segmentation Telegram bot"); 28 | 29 | let mut bot = match std::env::var("HTTPS_PROXY") { 30 | Ok(proxy_uri) => { 31 | log::info!("Using https proxy {}", proxy_uri); 32 | let proxy_uri = proxy_uri.parse().unwrap(); 33 | let proxy = Proxy::new(Intercept::Https, proxy_uri); 34 | 35 | tbot::Bot::from_env_with_proxy(BOT_TOKEN_ENV, proxy).event_loop() 36 | }, 37 | Err(e) => { 38 | log::info!("Not using proxy because {}", e); 39 | 40 | tbot::Bot::from_env(BOT_TOKEN_ENV).event_loop() 41 | } 42 | }; 43 | 44 | bot.inline(|ctx| { 45 | async move { 46 | if ctx.query.is_empty() { 47 | let result = make_inline_result(&ctx.id.0, "输入点文字来分词", "就 会 像 这样"); 48 | if let Err(e) = ctx.answer(&[result]).call().await { 49 | log::warn!("Default message (id={}) failed with: {}", &ctx.id.0, e); 50 | } 51 | } else { 52 | let answer = JIEBA.cut(&ctx.query, false).join(" "); 53 | let result = make_inline_result(&ctx.id.0, "分词大成功!", &answer); 54 | 55 | let hmm_answer = JIEBA.cut(&ctx.query, true).join(" "); 56 | let hmm_id = format!("{}_hmm", ctx.id.0); 57 | let hmm_result = make_inline_result(&hmm_id, "马尔可夫 ON!", &hmm_answer); 58 | 59 | if let Err(e) = ctx.answer(&[result, hmm_result]).call().await { 60 | log::warn!("Answering InlineQuery (id={}) failed with: {}", &ctx.id.0, e); 61 | } 62 | } 63 | } 64 | }); 65 | 66 | bot.polling().timeout(60_u64).start().await.unwrap(); 67 | } 68 | --------------------------------------------------------------------------------