Texonom
Texonom
/
Engineering
Engineering
/Software Engineering/Programming/Programming Language/Programming Languages/4GL/Rust/
Rust Module
Search

Rust Module

Creator
Creator
Seonglae Cho
Created
Created
2022 Jun 16 2:6
Editor
Editor
Seonglae Cho
Edited
Edited
2022 Jun 16 2:30
Refs
Refs
Rust Module Notion
lib.rs
mod.rs
main.rs
build.rs
 
 
 
 
How can I include a module from another file from the same project?
By following this guide I created a Cargo project. src/main.rs fn main() { hello::print_hello(); } mod hello { pub fn print_hello() { println!("Hello, world!"); } } which I run using cargo build && cargo run and it compiles without errors.
How can I include a module from another file from the same project?
https://stackoverflow.com/questions/26388861/how-can-i-include-a-module-from-another-file-from-the-same-project
How can I include a module from another file from the same project?
 
 

Recommendations

Texonom
Texonom
/
Engineering
Engineering
/Software Engineering/Programming/Programming Language/Programming Languages/4GL/Rust/
Rust Module
Copyright Seonglae Cho