Avatar ·

How to use a local unpublished crate in Rust?

Hi everyone! I'm new to Rust and writing a small project. I have a library that I want to use in the main application, but I don't want to publish it to crates.io because it's still raw and only needed for this project. Here's my file structure: ``` my_project/ ├── my_lib/ # my local crate │ ├── Cargo.toml │ └── src/ │ └── lib.rs └── my_app/ # main application ├── Cargo.toml └── src/ └── main.rs ``` In `my_lib/Cargo.toml` it says: ```toml [package] name = "my_lib" version = "0.1.0" edition = "2021" ``` In `my_app/Cargo.toml` I tried adding the dependency like this: ```toml [dependencies] my_lib = { path = "../my_lib" } ``` But when I run `cargo build` in the `my_app` folder, I get an error: ``` e