1

This is actually a two part question:

  1. Can I have a single module in separate files in Rust?

enter image description here

This is my file layout. Is it possible to have a single logging module and have a set of structs/traits to be defined inside this module, but in separate physical files(logger,sql)?

If it's possible, can such project be built with current Cargo?

And, if it is possible, how do I reference my structs, defined in logging module, in my app.rs?

I'm using: rustc 0.12.0-pre-nightly (cf1381c1d 2014-07-26 00:46:16 +0000)

4

1 に答える 1