On 02/07/2012 6:22 PM, Jesse Jones wrote:
Then in an exe I want to be able to use whizbang items without worry about about the physical organization of the component modules. For example, I wanted to be able to do something like:client.rs import whizbang; fn foo() { whizbang::bang1(); } Which sounds like it is supposed to work.
Right. But only if you did 'use whizbang;' you have not mentioned yet in any of your examples whether you put a 'use whizbang;' in the code. Writing 'import whizbang;' only remaps names within a single crate; 'use' is the directive you have to write in order to get _linkage_ to occur (that is: for the whizbang library to appear in the namespace client.rs at all).
Can you try that? -Graydon _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
