This crate provides a safe wrapper around the everything-sys-bindgen
crate.
everything-sys-bindgen
is a rust binding to the Everything SDK that allow IPC communication to the everything service.
The Everything service indexes files on windows and provides a expressive query syntax to search for files.
See the Everything SDK documentation for more information.
```rust use everything_rs::{Everything, EverythingRequestFlags, EverythingSort};
let mut everything = Everything::new();
everything.set_search("test");
everything.setrequestflags( EverythingRequestFlags::FullPathAndFileName | EverythingRequestFlags::Size | EverythingRequestFlags::DateCreated );
everything.set_sort(EverythingSort::DateCreatedDescending);
everything.query().unwrap();
let numresults = everything.getnum_results();
assert!(num_results > 0);
for (i, path) in everything.fullpathiter().flatten().enumerate() { let size = everything.getresultsize(i as u32).unwrap(); let datecreated = everything.getresultcreateddate(i as u32).unwrap(); println!("{}: {} {} {}", i, path, size, date_created); } ```