From 8420af7f1de7696ecacafb06ed23fc03d97fb3d8 Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Fri, 21 Apr 2023 18:50:52 -0400 Subject: [PATCH] Put compare modules behind feature flag in library. --- src/lib.rs | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 50cdbae..052e16f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,9 +1,16 @@ #![feature(round_char_boundary)] #![feature(exit_status_error)] + +#[cfg(feature = "compare")] mod compare; +#[cfg(feature = "compare")] +pub use compare::compare_document; +#[cfg(feature = "compare")] +pub use compare::emacs_parse_org_document; +#[cfg(feature = "compare")] +pub use compare::sexp; + mod error; mod parser; -pub use compare::compare_document; -pub use compare::emacs_parse_org_document; -pub use compare::sexp; + pub use parser::*;