diff options
| author | Onur Gündüz <ogunduz@gmail.com> | 2026-10-02 06:33:41 +0200 |
|---|---|---|
| committer | Onur Gündüz <ogunduz@gmail.com> | 2026-10-02 06:33:41 +0200 |
| commit | d74582678e03a5a47d1dbe8a319739de36a42162 (patch) | |
| tree | 19e009ac7a6ee8fe410ac386a51ec86a024a2904 /src | |
| parent | b4b95a173230ce2b836be0cff064bdb6a67d0076 (diff) | |
| download | ele-d74582678e03a5a47d1dbe8a319739de36a42162.tar.gz ele-d74582678e03a5a47d1dbe8a319739de36a42162.zip | |
Rename crate and CLI to ele
Diffstat (limited to 'src')
| -rw-r--r-- | src/compiled.rs | 2 | ||||
| -rw-r--r-- | src/eval.rs | 2 | ||||
| -rw-r--r-- | src/lib.rs | 4 | ||||
| -rw-r--r-- | src/main.rs | 4 |
4 files changed, 6 insertions, 6 deletions
diff --git a/src/compiled.rs b/src/compiled.rs index 3bc238c..c046e3d 100644 --- a/src/compiled.rs +++ b/src/compiled.rs @@ -6,7 +6,7 @@ use std::borrow::Cow; /// A validated filter with reusable regexes, literals, and field paths. /// /// ``` -/// use aif::parse; +/// use ele::parse; /// use serde_json::json; /// /// let expr = parse(r#"state =~ "^op" AND priority < 6"#).unwrap().unwrap(); diff --git a/src/eval.rs b/src/eval.rs index 30fd19d..f3692ee 100644 --- a/src/eval.rs +++ b/src/eval.rs @@ -119,7 +119,7 @@ fn compare_integer_float(integer: i128, float: f64) -> Option<Ordering> { /// # Example /// /// ```rust -/// use aif::{Value, Filterable}; +/// use ele::{Value, Filterable}; /// /// struct Issue { /// state: String, @@ -3,7 +3,7 @@ //! ## Example //! //! ```rust -//! use aif::{parse, Value, Filterable}; +//! use ele::{parse, Value, Filterable}; //! //! let expr = parse("state = \"open\" AND priority > 3").unwrap().unwrap(); //! println!("{}", expr); @@ -14,7 +14,7 @@ //! Implement [`Filterable`] for your type, then call [`Expr::evaluate`]: //! //! ```rust -//! use aif::{parse, Value, Filterable}; +//! use ele::{parse, Value, Filterable}; //! //! struct Issue { //! state: String, diff --git a/src/main.rs b/src/main.rs index f763794..4a1c9d8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,4 +1,4 @@ -use aif::{CompiledFilter, parse}; +use ele::{CompiledFilter, parse}; use serde_json::Value as Json; use std::{ fs::File, @@ -116,7 +116,7 @@ fn main() { ); } "-V" | "--version" => { - return print_info(&program, concat!("aif ", env!("CARGO_PKG_VERSION"))); + return print_info(&program, concat!("ele ", env!("CARGO_PKG_VERSION"))); } _ if arg.starts_with("--") => { eprintln!("{program}: unknown option: {arg}; use -- before a literal expression"); |
