我在写一个叫做
my_new_lib
并具有以下文件结构:
âââ my_new_lib
âââ src
âââ lib.rs
âââ file1.rs
âââ tests
在
lib.rs
我定义了一个结构:
/// content of lib.rs
pub struct my_struct {}
在
file1.rs
我想用
my_struct
例如:
/// content of file1.rs
use ????
pub struct my_second_struct {
member1: my_struct
}
我应该在里面放什么
use
条款
文件1.RS
让它工作?