DEV Community

Discussion on: Auth Web Microservice with rust using Actix-Web - Complete Tutorial Part 1

Collapse
 
maxdietrich profile image
Max Dietrich • Edited

Hey there, thanks for the guide, it's really helping me getting into web development with Rust! I'm following along and running into a compile error at the first part, where it says that it should compile, though.

The problem stems from the fact that the

mod schema;

in main.rs is not commented out, although the schema is only generated in the next step. Commenting this line out as well solves the issue.

Also at this point, the main thread panics because DATABASE_URL is not present, as the .env entry is also written afterwards.

Collapse
 
mygnu profile image
Harry Gill

Noted Thanks