1
0
mirror of https://github.com/lise-henry/crowbook synced 2024-11-18 00:13:55 +01:00

modules token and parser are now private

This commit is contained in:
Elisabeth Henry 2016-02-25 23:59:33 +01:00
parent 7aba577347
commit 2991099ecd
5 changed files with 16 additions and 12 deletions

@ -3,8 +3,9 @@ ChangeLog
0.3.0 (unreleased)
------------------
* Internal:
* Module `toc` is now private
* Internal (or usage in library):
* Modules `toc`, `escape`, `token`, `parser` are now private.
* Added more unit tests.
0.2.2 (2016-02-25)
------------------

@ -20,10 +20,8 @@ extern crate mustache;
extern crate chrono;
extern crate uuid;
pub mod parser;
pub mod html;
pub mod cleaner;
pub mod token;
pub mod error;
pub mod book;
pub mod epub;
@ -44,6 +42,8 @@ mod toc;
mod zipper;
mod templates;
mod bookoption;
mod parser;
mod token;
#[cfg(test)]
mod tests;

@ -1,7 +1,8 @@
extern crate crowbook;
use self::crowbook::{Parser, HtmlRenderer, Book, Token};
mod test_helper;
use test_helper::test_eq;
use html::HtmlRenderer;
use book::Book;
use parser::Parser;
use token::Token;
use super::test_eq;
fn ast_to_html(v: &[Token]) -> String {
let mut book = Book::new();

@ -7,3 +7,5 @@ pub fn test_eq(actual: &str, expected: &str) {
mod toc;
mod escape;
mod parser;
mod html;

@ -1,7 +1,6 @@
extern crate crowbook;
use self::crowbook::{Parser, Token};
mod test_helper;
use test_helper::test_eq;
use parser::Parser;
use token::Token;
use super::test_eq;
fn parse_from_str(doc: &str) -> Vec<Token> {
let mut parser = Parser::new();
@ -184,3 +183,4 @@ fn footnote_incorrect() {
let result = parser.parse(doc);
assert!(result.is_err());
}