sm_search/lib.rs
1//! # SM: Self matching search patterns
2//!
3//! Regex are great, but for small casual search operations, they can be pretty annoying.
4//! Example: you want to search for the string `getID("carl")`. First, you need to escape the quotes.
5//! Then, you might be unsure if it's `getID` or `getId`, so you need case insensitivity. Or maybe it's `get_id`?
6//! Then you end up having to do a lot of edits to your search string to create a nice Regex. SM is optimized for
7//! exactly these cases: A lazy developer searching for a code snippet in a messy code base.
8//!
9//! Use `cargo install sm-search` to get the CLI tool. Or add this package with `cargo add sm-search` to use this
10//! as your in your own programs. You can look at `src/main.rs` as example of how this library can be used.
11
12pub mod handle_match;
13pub mod sm_match;
14pub mod walker;
15pub use sm_match::SM;
16pub mod seek;