File tree Expand file tree Collapse file tree 2 files changed +17
-11
lines changed Expand file tree Collapse file tree 2 files changed +17
-11
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ path = "src/bin/lc.rs"
4
4
5
5
[package ]
6
6
name = " leetcode-cli"
7
- version = " 0.2.15 "
7
+ version = " 0.2.16 "
8
8
authors = [" clearloop <cdr.today@foxmail.com>" ]
9
9
edition = " 2018"
10
10
description = " Leet your code in command-line."
@@ -20,16 +20,22 @@ readme = './README.md'
20
20
[dependencies ]
21
21
clap = " 2.33.0"
22
22
colored = " 1.9.1"
23
- diesel = { version = " 1.4.3" , features = [" sqlite" ]}
24
23
dirs = " 2.0.2"
25
24
env_logger = " 0.7.1"
26
- keyring = " 0.7.1 "
25
+ keyring = " 0.8.0 "
27
26
log = " 0.4"
28
27
openssl = " 0.10.26"
29
28
rand = " 0.7.2"
30
- reqwest = " 0.9.24"
31
29
serde = " 1.0.104"
32
30
serde_derive = " 1.0.104"
33
31
serde_json = " 1.0.44"
34
32
pyo3 = " 0.8.5"
35
- toml = " 0.5.5"
33
+ toml = " 0.5.5"
34
+
35
+ [dependencies .diesel ]
36
+ version = " 1.4.3"
37
+ features = [" sqlite" ]
38
+
39
+ [dependencies .reqwest ]
40
+ version = " 0.10.3"
41
+ features = [" blocking" , " gzip" , " json" ]
Original file line number Diff line number Diff line change @@ -4,13 +4,11 @@ use crate::{
4
4
err:: Error ,
5
5
plugins:: chrome,
6
6
} ;
7
-
8
- use std:: { collections:: HashMap , str:: FromStr , time:: Duration } ;
9
-
10
7
use reqwest:: {
8
+ blocking:: { Client , ClientBuilder , Response } ,
11
9
header:: { HeaderMap , HeaderName , HeaderValue } ,
12
- Client , ClientBuilder , Response ,
13
10
} ;
11
+ use std:: { collections:: HashMap , str:: FromStr , time:: Duration } ;
14
12
15
13
/// LeetCode API set
16
14
#[ derive( Clone ) ]
@@ -53,7 +51,6 @@ impl LeetCode {
53
51
let client = ClientBuilder :: new ( )
54
52
. gzip ( true )
55
53
. connect_timeout ( Duration :: from_secs ( 30 ) )
56
- . cookie_store ( true )
57
54
. build ( ) ?;
58
55
59
56
// Sync conf
@@ -200,7 +197,10 @@ impl LeetCode {
200
197
mod req {
201
198
use super :: LeetCode ;
202
199
use crate :: err:: Error ;
203
- use reqwest:: { header:: HeaderMap , Client , Response } ;
200
+ use reqwest:: {
201
+ blocking:: { Client , Response } ,
202
+ header:: HeaderMap ,
203
+ } ;
204
204
use std:: collections:: HashMap ;
205
205
206
206
/// Standardize json format
You can’t perform that action at this time.
0 commit comments