Skip to navigation

How to take out /src/main.rs code and put it into an external lib.rs file as your library26.03.21

https://doc.rust-lang.org/book/ch12-03-improving-error-handling-and-modularity.html#splitting-code-into-a-library-crate

Reply

Anonymous

When you must fail, fail noisily and as soon as possible.