Skip to content

Instantly share code, notes, and snippets.

@huonw
Last active December 19, 2015 10:49
Show Gist options
  • Save huonw/5943096 to your computer and use it in GitHub Desktop.
Save huonw/5943096 to your computer and use it in GitHub Desktop.
directory/module structure (`_` = `/`)
pub fn foo() {}
pub fn bar() {}
pub use self::b::foo;
pub mod b;
pub mod c;
pub struct SomeStruct {
x: int
}
#[path="a/mod.rs"]
pub mod a;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment