everything-direct 0.1.0

Direct IPC bindings for Everything Search Engine on Windows.
Documentation
  • Coverage
  • 30.38%
    192 out of 632 items documented3 out of 126 items with examples
  • Size
  • Source code size: 81.3 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.0 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 17s Average build duration of successful builds.
  • all releases: 17s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • BlueGlassBlock/everything-direct
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • BlueGlassBlock

everything-direct

Raw IPC bindings for the Everything search engine on Windows.

This crate provides low-level, DLL-free access to Everything's powerful file search capabilities through direct Windows IPC (Inter-Process Communication). Unlike the official SDK, no external DLL is required—making it ideal for Rust applications that need minimal dependencies.

Features

  • No DLL Required - Pure Rust implementation using Windows IPC
  • Fast File Search - Leverage Everything's instant search capabilities
  • Rich Metadata - Query file size, dates, attributes, and more
  • Advanced Filtering - Case-sensitive, regex, path matching, and custom filters
  • Flexible Sorting - Sort by name, size, date, or any indexed property
  • Pagination Support - Handle large result sets efficiently
  • Version Detection - Query Everything's version and capabilities
  • Thread-Safe - Safe to use from multiple threads

Prerequisites

  • Windows operating system
  • Everything must be installed and running

Quick Start

Add this to your Cargo.toml:

[dependencies]

everything-direct = "0.1.0"

windows = { version = "0.62", features = ["Win32_Foundation"] }

Basic Example

use everything_direct::{EverythingClient, QueryInfo, RequestFlags};

fn main() -> windows::core::Result<()> {
    // Connect to Everything
    let client = EverythingClient::try_new(None)?;
    
    // Check if database is ready
    if !client.is_db_loaded() {
        println!("Everything database is still loading...");
        return Ok(());
    }
    
    // Search for PDF files
    let query = QueryInfo::new("*.pdf")
        .request_flag(RequestFlags::NAME | RequestFlags::PATH | RequestFlags::SIZE)
        .max_results(10);
    
    let results = client.query(&query)?;
    
    println!("Found {} total results", results.total_items);
    for item in results.items {
        println!("{:?} - {:?} ({:?} bytes)", 
            item.name, item.path, item.size);
    }
    
    Ok(())
}

Version Information

use everything_direct::EverythingClient;

fn main() -> windows::core::Result<()> {
    let client = EverythingClient::try_new(None)?;
    
    let (major, minor, revision, build, target) = client.get_build_info();
    println!("Everything version: {}.{}.{}.{} ({})", 
        major, minor, revision, build, target);
    
    println!("Running as admin: {}", client.is_admin());
    println!("Database loaded: {}", client.is_db_loaded());
    
    Ok(())
}

License

MIT OR Apache-2.0