Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rustpkg should have a test where lib.rs re-exports local modules #9472

Closed
catamorphism opened this issue Sep 24, 2013 · 3 comments
Closed

rustpkg should have a test where lib.rs re-exports local modules #9472

catamorphism opened this issue Sep 24, 2013 · 3 comments
Labels
A-linkage Area: linking into static, shared libraries and binaries

Comments

@catamorphism
Copy link
Contributor

Something like:

pub use self::a;

mod a {
    pub f() { ... }
}

and make sure anything that uses the package can use a.

@ghost ghost assigned catamorphism Sep 24, 2013
@olsonjeffery
Copy link
Contributor

+1 .. I'm building out a rustpkg workspace as part of a presentation I'm doing. Given the following setup:

/src/foo/lib.rs

// lib.rs
pub use self::bar;

/src/foo/bar.rs

// bar.rs
pub fn some_outside_fn() {}

In another rustpkg crate..

/src/baz/main.rs

has the line:

// main.rs
extern mod foo;
use foo;

fn main() { foo::some_outside_fn(); }

failing with rustpkg build baz in main.rs with: error: unresolved import (maybe you meantfoo::*?)

@jeremyletang
Copy link
Contributor

@brson
According to your recent issue #11859 , maybe this one can be closed?

@sfackler
Copy link
Member

sfackler commented Feb 4, 2014

rustpkg doesn't exist anymore, closing

@sfackler sfackler closed this as completed Feb 4, 2014
@catamorphism catamorphism removed their assignment Jun 16, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-linkage Area: linking into static, shared libraries and binaries
Projects
None yet
Development

No branches or pull requests

4 participants