Skip to content

Commit

Permalink
Update the documentation
Browse files Browse the repository at this point in the history
Currently, when following the steps to recreate the sample code,
we will face the following errors when trying to build the app:

error: edition 2021 is unstable and only available with -Z unstable-options.

error: could not compile `proc-macro2`
  • Loading branch information
tatodorov committed Oct 21, 2023
1 parent f1f296d commit 2b8e24b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions code-samples/community/serving/helloworld-rust/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ recreate the source files from this folder.
[package]
name = "hellorust"
version = "0.0.0"
edition = "2018"
edition = "2021"
publish = false

[dependencies]
hyper = { version = "0.14.7", features = ["full"]}
tokio = { version = "1.5.0", features = ["macros", "rt-multi-thread"] }
pretty_env_logger = "0.4.0"
hyper = { version = "0.14.27", features = ["full"]}
tokio = { version = "1.33.0", features = ["macros", "rt-multi-thread"] }
pretty_env_logger = "0.5.0"
```

1. Create a `src` folder, then create a new file named `main.rs` in that folder
Expand Down Expand Up @@ -93,7 +93,7 @@ recreate the source files from this folder.
```docker
# Use the official Rust image.
# https://hub.docker.com/_/rust
FROM rust:1.51.0
FROM rust:1.73.0
# Copy local code to the container image.
WORKDIR /usr/src/app
Expand Down

0 comments on commit 2b8e24b

Please sign in to comment.