Cargo is configured to look for dependencies on crates.io by defalut. However I want to use a local crate. Fortunately, cargo supports to use libraries ont only on crates.io, but also ther registries,
git repositories or subdirectories on our local file system.
Firstly, create a new package:
$ cargo new test_crate --lib
Here we pass
--lib because we’re making a library. Then the cargo generates: