Core
Our core has the following file structure:
core
└── Cargo.toml
└── src
├── api
│ ├── auth
│ │ ├── login.rs
│ │ ├── logout.rs
│ │ └── mod.rs
│ ├── mod.rs
│ └── users
│ ├── create.rs
│ └── mod.rs
└── lib.rs
Remember, our core does not have dependencies such as databases or networking, so our boilerplate code is zero. Here we just need to ensure that all the files are linked, and that the Cargo.toml
file has the following contents:
[package]
name = "auth-core"
version = "0.1.0"
edition = "2021"
[dependencies]
auth-dal = { path...