File tree Expand file tree Collapse file tree 3 files changed +19
-2
lines changed Expand file tree Collapse file tree 3 files changed +19
-2
lines changed Original file line number Diff line number Diff line change 1
1
/target
2
2
.env
3
- Cargo.lock
3
+ Cargo.lock
4
+ src /main.rs
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " leetcoderustapi"
3
3
version = " 0.1.0"
4
+ authors = [" Kirill Melkozerov <k.melkozerov@gmail.com>" ]
4
5
edition = " 2021"
6
+ license = " MIT"
7
+ repository = " https://github.com/1101-1/LeetcodeRustAPI"
8
+
9
+ description = """
10
+ A full-features Rust API for Leetcode.
11
+ """
12
+
13
+ categories = [" http-client" ]
14
+ keywords = [" leetcode" , " api" ]
5
15
6
16
[lib ]
7
17
name = " leetcoderustapi"
8
18
path = " src/lib.rs"
9
19
20
+ [[bin ]]
21
+ name = " test"
22
+ path = " src/main.rs"
23
+
10
24
[dependencies ]
11
25
reqwest = { version = " 0.11.18" , features = [" json" ] }
12
26
serde = { version = " 1.0.164" , features = [" derive" ] }
13
27
serde_json = " 1.0.99"
14
- tokio = { version = " 1.29.1" , features = [" full" ] }
28
+ tokio = { version = " 1.29.1" , features = [" time " , " full" ] }
Original file line number Diff line number Diff line change @@ -99,7 +99,9 @@ Replace `"COOKIE"` with your actual LeetCode authentication cookie.
99
99
100
100
For example format in ` .env ` file:
101
101
102
+ ``` env
102
103
COOKIE="csrftoken=gN3mmFEKoBFHLZuiHEvZYupqirq7brDmi845GhUK8xBa9u3SUVkgTPFTPsLFuAzR; _ga_CDRWKZTDEX=GS1.1.1688568040.1.1.1688568081.19.0.0; _ga=GA1.1.2048740381.1688568040; _dd_s=rum=0&expire=1688568980299; NEW_PROBLEMLIST_PAGE=1"
104
+ ```
103
105
104
106
### License
105
107
This library is licensed under the ` MIT License ` .
You can’t perform that action at this time.
0 commit comments