#![warn(missing_docs)]
#![warn(clippy::all)]
pub mod commands;
#[cfg(feature = "pathmap-backend")]
pub mod contextual;
pub mod dictionary;
pub mod distance;
pub mod filter;
pub mod sync_compat;
pub mod transducer;
pub mod wallbreaker;
pub mod time_series;
#[cfg(feature = "phonetic-rules")]
pub mod phonetic;
#[cfg(feature = "serialization")]
pub mod serialization;
#[cfg(any(feature = "pathmap-backend", feature = "phonetic-rules"))]
pub mod cache;
#[cfg(all(feature = "cli", not(target_arch = "wasm32")))]
pub mod repl;
#[cfg(all(feature = "cli", not(target_arch = "wasm32")))]
pub mod cli;
#[cfg(all(
not(target_arch = "wasm32"),
any(
feature = "grep-compression",
feature = "grep-archives",
feature = "grep-pdf",
feature = "grep-docx",
feature = "grep-xlsx",
feature = "grep-epub",
feature = "grep-odt"
)
))]
pub mod grep;
#[cfg(feature = "wasm")]
pub mod wasm;
#[cfg(feature = "ffi")]
pub mod ffi;
#[cfg(feature = "rand")]
#[doc(hidden)]
pub mod corpus;
pub mod prelude {
pub use crate::transducer::{
Algorithm, Candidate, QueryBuilder, Transducer, TransducerBuilder,
};
#[deprecated(
since = "0.9.1",
note = "import from `libdictenstein::double_array_trie` instead; liblevenshtein's dictionary re-exports are deprecated and will be removed"
)]
pub use libdictenstein::double_array_trie::{DoubleArrayTrie, DoubleArrayTrieChar};
#[deprecated(
since = "0.9.1",
note = "import from `libdictenstein::dynamic_dawg` instead; liblevenshtein's dictionary re-exports are deprecated and will be removed"
)]
pub use libdictenstein::dynamic_dawg::{DynamicDawg, DynamicDawgChar};
#[deprecated(
since = "0.9.1",
note = "import from `libdictenstein::factory` instead; liblevenshtein's dictionary re-exports are deprecated and will be removed"
)]
pub use libdictenstein::factory::{DictionaryBackend, DictionaryContainer, DictionaryFactory};
#[cfg(feature = "pathmap-backend")]
#[deprecated(
since = "0.9.1",
note = "import from `libdictenstein::pathmap` instead; liblevenshtein's dictionary re-exports are deprecated and will be removed"
)]
pub use libdictenstein::pathmap::PathMapDictionary;
#[cfg(feature = "persistent-artrie")]
#[deprecated(
since = "0.9.1",
note = "import from `libdictenstein::persistent_artrie` instead; liblevenshtein's dictionary re-exports are deprecated and will be removed"
)]
pub use libdictenstein::persistent_artrie::{PersistentARTrie, PersistentARTrieZipper};
#[deprecated(
since = "0.9.1",
note = "import from `libdictenstein::suffix_automaton` instead; liblevenshtein's dictionary re-exports are deprecated and will be removed"
)]
pub use libdictenstein::suffix_automaton::{SuffixAutomaton, SuffixAutomatonChar};
#[deprecated(
since = "0.9.1",
note = "import from `libdictenstein` instead; liblevenshtein's dictionary re-exports are deprecated and will be removed"
)]
pub use libdictenstein::{Dictionary, DictionaryNode, SyncStrategy};
#[cfg(feature = "serialization")]
pub use crate::serialization::{
BincodeSerializer, DictionaryFromTerms, DictionarySerializer, JsonSerializer,
PlainTextSerializer,
};
#[cfg(feature = "protobuf")]
pub use crate::serialization::{
DatProtobufSerializer, OptimizedProtobufSerializer, ProtobufSerializer,
SuffixAutomatonProtobufSerializer,
};
#[cfg(feature = "compression")]
pub use crate::serialization::GzipSerializer;
#[cfg(feature = "pathmap-backend")]
pub use crate::cache::eviction;
#[cfg(feature = "phonetic-rules")]
pub use crate::dictionary::phonetic_normalized::{
PhoneticNormalizedCandidate, PhoneticNormalizedDictionary,
PhoneticNormalizedDictionaryChar, PhoneticNormalizedNode, PhoneticNormalizedZipper,
RegexQueryError,
};
pub use crate::wallbreaker::{
PatternPiece, PatternSplitter, WallBreaker, WallBreakerQuery, WallBreakerResult,
};
#[deprecated(
since = "0.9.1",
note = "import from `libdictenstein::scdawg` instead; liblevenshtein's dictionary re-exports are deprecated and will be removed"
)]
pub use libdictenstein::scdawg::{char::ScdawgChar, Scdawg};
#[deprecated(
since = "0.9.1",
note = "import from `libdictenstein::substring` instead; liblevenshtein's dictionary re-exports are deprecated and will be removed"
)]
pub use libdictenstein::substring::{
BidirectionalDictionaryNode, SubstringDictionary, SubstringMatch,
};
}