Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ target
### custom section ###

notes/
exercises
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,19 @@ Exercise downloader for https://rustplatform.com/
cargo install --git https://github.com/markgreene74/pybites_rust.git
```
- `cd` to the directory where you want to save the exercises
- run the downloader
- run the downloader (free exercises only):
```shell
pybites-rust-download
```
- to download **all** exercises (requires premium), set your API key:
```shell
PYBITES_API_KEY=your-api-key-here pybites-rust-download
```
Or export it in your shell profile so you don't have to pass it every time:
```shell
export PYBITES_API_KEY=your-api-key-here
```
You can find your API key on your [profile page](https://rustplatform.com/profile/).

### Compile it manually

Expand Down
26 changes: 17 additions & 9 deletions exercise_downloader/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions exercise_downloader/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@ serde = { version = "1.0.227", features = ["derive"] }
[[bin]]
name = "pybites-rust-download"
path = "src/main.rs"

[dev-dependencies]
serde_json = "1.0.149"
tempfile = "3.25.0"
Loading