Closed jdm closed 8 years ago
I never seen such usage of include!
. Seems very hacky. Somewhat resembles C's #include
Big :+1: . I also believe that you won't get incremental compilation with this approach, but modules will let you.
Did not know that @steveklabnik . I used includes because it was the least hastle to get going. But if some one would be willing to reformat it into modules I'd be willing to go that way. :+1:
To be clear, we don't have incremental recompilation yet, but when we do, this will matter :smile:
Instead of including each file's contents inside
lib.rs
usinginclude!
, it is more idiomatic to use Rust's modules instead. That would look like:rather than