동일한 프로젝트의 다른 파일에서 모듈을 포함하는 방법은 무엇입니까? 다음으로 이 가이드를 나는화물 프로젝트를 만들었습니다. src/main.rs fn main() { hello::print_hello(); } mod hello { pub fn print_hello() { println!("Hello, world!"); } } 내가 사용하는 cargo build && cargo run 오류없이 컴파일됩니다. 이제 기본 모듈을 두 개로 분할하려고하지만 다른 파일의 모듈을 포함하는 방법을 알 수 없습니다. 내 프로젝트 트리는 다음과 같습니다. ├── src ├── hello.rs └── main.rs 및 파일의 내용 : src/main.rs use hello; fn main() { hello::print_he..