How do i split my rust code into a number of files?

If I have a file one.rs and two.rs ,how do I import functions in two.rs into one.rs ?

Thank you !

You may want to read the Modules chapter in the Rust book: Modules - The Rust Programming Language

1 Like