From 16f2f78fe7cf23923d8bec417cb9b0cd55b52b60 Mon Sep 17 00:00:00 2001 From: James Turk Date: Sun, 26 Mar 2023 19:28:59 -0500 Subject: [PATCH] put python stuff behind feature=python --- src/lib.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 1cffcba..49febfa 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -5,7 +5,6 @@ mod levenshtein; mod match_rating; mod metaphone; mod nysiis; -mod rustyfish; mod soundex; mod testutils; @@ -21,5 +20,9 @@ pub use levenshtein::{ pub use match_rating::{match_rating_codex, match_rating_comparison}; pub use metaphone::metaphone; pub use nysiis::nysiis; -pub use rustyfish::_rustyfish; pub use soundex::soundex; + +#[cfg(feature = "python")] +mod rustyfish; +#[cfg(feature = "python")] +pub use rustyfish::_rustyfish;