From 1311641a61568dd480cf3232d65c07909b3234ef Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Tue, 13 Aug 2013 14:13:08 +0100 Subject: [PATCH] Make modules public. See https://github.com/mozilla/rust/issues/8478 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Non-public modules define public functions, * The crate’s top-level re-exports said functions as public This should work, but currently triggers link-time "undefined reference" errors. --- cssparser.rc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cssparser.rc b/cssparser.rc index 20dd3051..06327daa 100644 --- a/cssparser.rc +++ b/cssparser.rc @@ -13,11 +13,11 @@ pub use parser::*; pub use color::*; pub use nth::*; -mod ast; -mod tokenizer; -mod parser; -mod color; -mod nth; +pub mod ast; +pub mod tokenizer; +pub mod parser; +pub mod color; +pub mod nth; #[cfg(test)] mod tests;