I have a few files in the
src folder which I use in
main.rs like so:
mod client; mod node; use client::client_add; use node::node_add;
and between the files themselves like so:
Cargo builds and runs as it's supposed to.
However, if I try to import one of the files in the
tests/integration_tests.rs like so:
extern crate node;
, I'm getting the
can't find crate error. There is not much more information on integration tests in the Rust book.
What am I missing?
Here's a link to the project to make the structure clear: