Skip to content

Commit 4b2d1c3

Browse files
committed
Merge pull request servo#29 from SimonSapin/private
New visibility rules: only export what is meant to be public.
2 parents 03d7044 + 1a7b4ca commit 4b2d1c3

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

lib.rs

+10-10
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@
88

99
extern mod extra;
1010

11-
pub use ast::*;
12-
pub use tokenizer::*;
13-
pub use parser::*;
14-
pub use color::*;
15-
pub use nth::*;
11+
pub use tokenizer::tokenize;
12+
pub use parser::{parse_stylesheet_rules, parse_rule_list, parse_declaration_list,
13+
parse_one_rule, parse_one_declaration, parse_one_component_value};
14+
pub use color::{RGBA, Color, CurrentColor};
15+
pub use nth::parse_nth;
1616
pub use serializer::{ToCss, serialize_identifier, serialize_string};
1717

1818
pub mod ast;
19-
pub mod tokenizer;
20-
pub mod parser;
21-
pub mod color;
22-
pub mod nth;
23-
pub mod serializer;
19+
mod tokenizer;
20+
mod parser;
21+
mod color;
22+
mod nth;
23+
mod serializer;
2424

2525
#[cfg(test)]
2626
mod tests;

tests.rs

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ use extra::{tempfile, json};
99
use extra::json::ToJson;
1010

1111
use super::*;
12+
use ast::*;
1213

1314

1415
fn write_whole_file(path: &Path, data: &str) {

0 commit comments

Comments
 (0)