guilherme / sg

the best fuzzy finder ever.
2 stars 0 forks source link

Created an internal empty crate where we can store our library source #4

Closed sebglazebrook closed 7 years ago

sebglazebrook commented 7 years ago

So here's the Rust way of creating a binary that needs code structure.

You create the main.rs and reference an internal crate inside src/lib.rs and all the library code lives there, so the main.rs sets up the app and that's about it.

It makes things cleaner and easier to test.

Cool?