Crate rust_assistant

Source
Expand description

§Rust Assistant Library

rust_assistant is a comprehensive library designed to enhance the Rust development experience, offering a suite of tools and functionalities for downloading, caching, searching, and analyzing Rust crates.

This library encapsulates a range of modules, each specializing in different aspects of crate management and code analysis. It aims to streamline the process of working with Rust crates, providing developers with efficient access to crate data, advanced search capabilities, and more.

§Features

  • Crate Downloading: Facilitates the downloading of crates from sources like crates.io, handling network requests and data processing.

  • Crate Caching: Implements caching mechanisms to store downloaded crates, optimizing performance and reducing redundant operations.

  • Search Functionality: Provides advanced search functionalities within crate contents, including source code, documentation, and other relevant data.

§Modules

  • app: Contains the core application logic for the Rust Assistant.
  • cache: Provides caching functionalities for crates.
  • download: Handles the downloading of crates and their contents.
  • search: Implements search algorithms and data structures for efficient crate content search.

Re-exports§

pub use app::*;
pub use github::*;
pub use search::*;

Modules§

app
The app module.
cache
The cache module.
download
The download module.
github
search
The search module.

Structs§

CrateVersion
Represents the name and version of a crate.
CrateVersionPath
Represents a path within a specific crate’s directory structure.
Directory
Represents the contents of a directory, including files and subdirectories.
DirectoryMut
FileLineRange
Represents a range of lines in a file.
Item
Represents an item found in a crate.
ItemQuery
Represents a query for searching items in a crate.
Line
Represents a specific line found in a search operation.
LineQuery
Represents a query for searching lines within files in a crate.

Enums§

ItemType
Defines various types of items that can be searched for in a crate.
SearchMode
Defines different modes for searching text.