Skip to content

Commit 0c7ac17

Browse files
committed
Merge branch 'main' of github.com:markgreene74/pybites_rust
2 parents 7a583c0 + c8f0493 commit 0c7ac17

5 files changed

Lines changed: 373 additions & 42 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ target
2323
### custom section ###
2424

2525
notes/
26+
exercises

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,19 @@ Exercise downloader for https://rustplatform.com/
1010
cargo install --git https://github.com/markgreene74/pybites_rust.git
1111
```
1212
- `cd` to the directory where you want to save the exercises
13-
- run the downloader
13+
- run the downloader (free exercises only):
1414
```shell
1515
pybites-rust-download
1616
```
17+
- to download **all** exercises (requires premium), set your API key:
18+
```shell
19+
PYBITES_API_KEY=your-api-key-here pybites-rust-download
20+
```
21+
Or export it in your shell profile so you don't have to pass it every time:
22+
```shell
23+
export PYBITES_API_KEY=your-api-key-here
24+
```
25+
You can find your API key on your [profile page](https://rustplatform.com/profile/).
1726
1827
### Compile it manually
1928

exercise_downloader/Cargo.lock

Lines changed: 17 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

exercise_downloader/Cargo.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "pybites-rust-download"
3-
version = "0.1.3"
3+
version = "0.1.4"
44
edition = "2024"
55

66
[dependencies]
@@ -10,3 +10,7 @@ serde = { version = "1.0.227", features = ["derive"] }
1010
[[bin]]
1111
name = "pybites-rust-download"
1212
path = "src/main.rs"
13+
14+
[dev-dependencies]
15+
serde_json = "1.0.149"
16+
tempfile = "3.25.0"

0 commit comments

Comments
 (0)