I create a project that is a server.
It has a main.rs that must be launched.
I create integration test.
In my ./tests/integration_test.rs I would like to use just one function that is in my project.
So, I created a lib.rs and just add in :
pub mod some_module_in_my_project;
use some_module_in_my_project::get_datas;
The only problem is that I have a warning when I run my project because there is only this code in my lib.rs. How can we share functionalities in rust the good way please ?
warning: unused import: `some_module_in_my_project::get_datas`
--> src/lib.rs:4:5
|
4 | use some_module_in_my_project::get_datas;
| ^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default