Skip to content

Commit a7dbe82

Browse files
authored
Merge pull request #10 from codecrafters-io/sync
Sync with languages repo
2 parents 8030d43 + 727ee5f commit a7dbe82

File tree

4 files changed

+44
-9
lines changed

4 files changed

+44
-9
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,7 @@ edition = "2018"
1919
#
2020
# DON'T EDIT THIS!
2121
[dependencies]
22-
bytes = "0.5" # helps manage buffers
22+
anyhow = "1.0.59" # error handling
23+
bytes = "0.5" # helps manage buffers
24+
thiserror = "1.0.32" # error handling
2325
tokio = { version = "0.2", features = ["full"] } # async networking

README.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ event loops, the Redis protocol and more.
1010

1111
# Passing the first stage
1212

13-
The entry point for your Redis implementation is in `src/main.rs`. Study and
14-
uncomment the relevant code, and push your changes to pass the first stage:
13+
The entry point for your Redis implementation is in `src/main.rs`. Study and uncomment the relevant code, and
14+
push your changes to pass the first stage:
1515

16-
```sh
16+
``` sh
1717
git add .
1818
git commit -m "pass 1st stage" # any msg
1919
git push origin master
@@ -26,8 +26,11 @@ That's all!
2626
Note: This section is for stages 2 and beyond.
2727

2828
1. Ensure you have `cargo (1.54)` installed locally
29-
1. Run `./spawn_redis_server.sh` to run your Redis server, which is implemented
30-
in `src/main.rs`. This command compiles your Rust project, so it might be
31-
slow the first time you run it. Subsequent runs will be fast.
29+
1. Run `./spawn_redis_server.sh` to run your Redis server, which is implemented in
30+
`src/main.rs`. This command compiles your
31+
Rust project, so it might be slow the first time you run it. Subsequent runs
32+
will be fast.
3233
1. Commit your changes and run `git push origin master` to submit your solution
3334
to CodeCrafters. Test output will be streamed to your terminal.
35+
36+

codecrafters.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ debug: false
77
# Use this to change the Rust version used to run your code
88
# on Codecrafters.
99
#
10-
# Available versions: rust-1.54
11-
language_pack: rust-1.54
10+
# Available versions: rust-1.62
11+
language_pack: rust-1.62

0 commit comments

Comments
 (0)