zero-to-production icon indicating copy to clipboard operation
zero-to-production copied to clipboard

Code for "Zero To Production In Rust", a book on API development using Rust.

Results 46 zero-to-production issues
Sort by recently updated
recently updated
newest added

Hi! After completing chapter 11.8 the new test that we added `newsletter_creation_is_idempotent` in `tests/api/newsletter.rs` does not pass as expected. `cargo t newsletter_creation_is_idempotent` output: ``` running 1 test test newsletters::newsletter_creation_is_idempotent ......

> ansi_term is Unmaintained | Details | | | ------------------- | ---------------------------------------------- | | Status | unmaintained | | Package | `ansi_term` | | Version | `0.12.1` | | URL...

# What Add required `native-tls` feature to the install command of sqlx-cli. ```bash $ cargo install --version=0.6.0 sqlx-cli --no-default-features --features native-tls,postgres ``` # Why The current command for installing sqlx-cli...

Quick suggestion about the section [Capturing Our Requirements As Tests](https://www.lpalmieri.com/posts/2020-08-31-zero-to-production-3-5-html-forms-databases-integration-tests/#2-2-capturing-our-requirements-as-tests), the table driven test can be simplified using `test_case`, the linked issue has been resolved 🤩 ``` use test_case::test_case; #[test_case("name=le%20guin";...

According to the document of [sqlx-cli](https://crates.io/crates/sqlx-cli) ```bash # only for postgres cargo install sqlx-cli --no-default-features --features native-tls,postgres ``` https://github.com/LukeMathWalker/zero-to-production/blob/root-chapter-03-part1/scripts/init_db.sh#L13 `cargo install --version=0.6.0 sqlx-cli --no-default-features --features postgres` would output this error...

Hello, Attempting to run the container locally fails to connect to the local Redis container initialized with init_redis.sh. The error returned is Error: Could not connect to Redis database Caused...

As result of the change the book code is not compiled. I suggest adding specific versions to these commands in the book or update code ;) ``` cargo add [email protected]...

Hello, I am on section 5.4 and I'm trying to get the app running on DigitalOcean. I am having trouble getting it to run after compiling, it compiles on DigitalOcean...

There is the code in the book: ``` pub async fn send_confirmation_email(email_client: &EmailClient, new_subscriber: NewSubscriber) -> Result { let confirmation_link = "https://my-api.com/subscriptions/confirm"; ``` It should first fail in tests, because...

Small bug in the book. Chapter 7, section Skeleton and principles, subsection Sharing Startup Logic. The code is missing the timeout input variable for the EmailClient::new method as well as...