From 5a738121c04989e1bdcb728347f12e677adf3bd4 Mon Sep 17 00:00:00 2001 From: Onur Gündüz Date: Tue, 29 Sep 2026 16:54:27 +0200 Subject: Rename crate and CLI to aif --- src/compiled.rs | 2 +- src/eval.rs | 2 +- src/lib.rs | 4 ++-- src/main.rs | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src') 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 { /// # 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"); -- cgit v1.3.1