1 2 3 4 5 6 7 8
// 这个 crate 是一个库文件 #![crate_type = "lib"] // 库的名称为 “rary” #![crate_name = "mylibary"] pub mod hello;