Skip to content

Commit 56c23fc

Browse files
committed
updated guide to setup using cargo
Signed-off-by: dvishal485 <dvishal485@gmail.com>
1 parent 31d3d80 commit 56c23fc

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "leetcode-runner-cli"
3-
version = "0.2.6"
3+
version = "0.2.7"
44
edition = "2021"
55
authors = ["Vishal Das"]
66
description = "A tool to execute and submit leetcode problems from the command line"

README.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
Executes leetcode testcases and submits your solution through CLI interface
44

5+
![Crates.io](https://img.shields.io/crates/v/leetcode-runner-cli)
6+
[![GitHub license](https://img.shields.io/github/license/dvishal485/leetcode-runner-cli)](./LICENSE)
7+
[![GitHub issues](https://img.shields.io/github/issues/dvishal485/leetcode-runner-cli)](./issues)
8+
59
![Leetcode Runner CLI Banner](cli-banner.png)
610

711
**Disclaimer :** This is not an official Leetcode tool. I am not affiliated with Leetcode in any way. This tool is not endorsed by leetcode.
@@ -10,6 +14,14 @@ Executes leetcode testcases and submits your solution through CLI interface
1014

1115
## Installation
1216

17+
### Using Cargo
18+
19+
1. If you have [Cargo installed](https://doc.rust-lang.org/cargo/getting-started/installation.html) on your system then you can install the tool using the following command.
20+
21+
```bash
22+
cargo install leetcode-runner-cli
23+
```
24+
1325
### Using pre-built binaries
1426

1527
1. Go to the [Releases section](/releases) and download the appropriate binary for your system.
@@ -44,7 +56,7 @@ Depending on your platform you may need to install certain tools to be able to c
4456

4557
## Usage
4658

47-
1. Setup environment variable `LC_COOKIE` with your leetcode session cookie.
59+
1. Setup environment variable `LC_COOKIE` with your leetcode session cookie. You may search on internet to know how to setup an environment variable on your system.
4860

4961
You can get your session cookie by logging in to leetcode and inspecting the cookie from Request headers in your browser's developer tools.
5062
@@ -54,7 +66,7 @@ Depending on your platform you may need to install certain tools to be able to c
5466
export LC_COOKIE="csrftoken=abcdefgh;LEETCODE_SESSION=ijklmnopqrstuvwxyz;"
5567
```
5668
57-
1. Execute the tool and verify your authentication.
69+
2. Execute the tool and verify your authentication.
5870
5971
```bash
6072
leetcode-runner-cli -a

0 commit comments

Comments
 (0)