On Fri, Jul 6, 2012 at 11:00 AM, Jesse Jones <jesse9jo...@gmail.com> wrote:
> I didn't mean to do a private reply: my email client does that by default > and I don't always remember to fix the reply address. > > As far as my problem goes I think it's something you guys have a handle > on. But to be clear, what I want to do is write a library with a public API > yet have the freedom to physically structure the library however I want. So > I want clients to be able to pull in the public API with a single import > even if the items were defined in different modules. And this did not work: > clients of my library had to use multiple imports. > > Here is the actual library code where I re-export the public API: > https://github.com/jesse99/rrdf/blob/master/src/rrdf.rs. The thought was > that clients could then do `import rrdf::*;` but what they have to do > instead is crap like: > import rrdf::object::*; > import rrdf::store::*; > Try something like `import some_object = rrdf::object::some_object;` and then `export some_object`. That sort of thing works for me.
_______________________________________________ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev