Skip to main content

Crate enya_analyzer

Crate enya_analyzer 

Source
Expand description

Metrics instrumentation indexer for source code.

This crate provides functionality to scan source code repositories and build an index of metric instrumentation points.

§Architecture

  • scanner: Language-agnostic scanner framework with trait-based extensibility
  • parser: Tree-sitter parsing utilities for Rust
  • repo: Git operations (clone, fetch, update)
  • index: In-memory index of discovered instrumentation
  • diff: Diff parsing and semantic extraction

Re-exports§

pub use diff::extract_semantics;
pub use index::CodebaseIndex;
pub use index::IndexProgress;
pub use index::build_index_with_progress;
pub use parser::ParseError;
pub use repo::CommitInfo;
pub use repo::DiffSemantics;
pub use repo::ProgressCallback;
pub use repo::count_commits;
pub use repo::fetch_all_commits;
pub use repo::fetch_all_commits_with_diffs_batch;
pub use repo::fetch_all_commits_with_diffs_parallel;Deprecated
pub use repo::fetch_commit_diff;
pub use repo::fetch_commit_history;
pub use repo::fetch_recent_commits;
pub use repo::fetch_recent_commits_with_diffs;
pub use repo::get_head_commit;
pub use repo::get_head_commit_message;
pub use scanner::AlertRule;
pub use scanner::MetricInstrumentation;
pub use scanner::MetricKind;
pub use scanner::Scanner;
pub use scanner::ScannerRegistry;

Modules§

diff
Diff parsing and semantic extraction.
index
Codebase index for discovered metrics.
parser
Tree-sitter integration for parsing Rust source files.
repo
Git repository operations for codebase integration.
scanner
Language-agnostic scanner framework.

Functions§

now_unix_secs
Get the current Unix timestamp in seconds.