aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorOnur Gündüz <ogunduz@gmail.com>2026-09-29 16:54:27 +0200
committerOnur Gündüz <ogunduz@gmail.com>2026-09-29 16:54:27 +0200
commit5a738121c04989e1bdcb728347f12e677adf3bd4 (patch)
treee47c1e732bacac41b5b1ace02a39687a58567c34 /src
parent5c51cd28a928c44232e625279691da17e55858de (diff)
downloadele-5a738121c04989e1bdcb728347f12e677adf3bd4.tar.gz
ele-5a738121c04989e1bdcb728347f12e677adf3bd4.zip
Rename crate and CLI to aif
Diffstat (limited to 'src')
-rw-r--r--src/compiled.rs2
-rw-r--r--src/eval.rs2
-rw-r--r--src/lib.rs4
-rw-r--r--src/main.rs4
4 files changed, 6 insertions, 6 deletions
diff --git a/src/compiled.rs b/src/compiled.rs
index 2981f78..3bc238c 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 aip_filter::parse;
+/// use aif::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 46a599a..30fd19d 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 aip_filter::{Value, Filterable};
+/// use aif::{Value, Filterable};
///
/// struct Issue {
/// state: String,
diff --git a/src/lib.rs b/src/lib.rs
index 175768a..4839de2 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -3,7 +3,7 @@
//! ## Example
//!
//! ```rust
-//! use aip_filter::{parse, Value, Filterable};
+//! use aif::{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 aip_filter::{parse, Value, Filterable};
+//! use aif::{parse, Value, Filterable};
//!
//! struct Issue {
//! state: String,
diff --git a/src/main.rs b/src/main.rs
index d2fe848..f763794 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,4 +1,4 @@
-use aip_filter::{CompiledFilter, parse};
+use aif::{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!("aip-filter ", env!("CARGO_PKG_VERSION")));
+ return print_info(&program, concat!("aif ", env!("CARGO_PKG_VERSION")));
}
_ if arg.starts_with("--") => {
eprintln!("{program}: unknown option: {arg}; use -- before a literal expression");