diffctx 0.1.0

Smart git diff context for LLMs — name-reservation stub. Working implementation ships as the Python package `treemapper`; a native Rust library is planned for the 1.0 series.
Documentation
//! # diffctx
//!
//! Smart git diff context selection for LLM code review.
//!
//! This crate currently reserves the `diffctx` name on crates.io. The
//! working implementation lives in the `treemapper` Python package
//! (<https://pypi.org/project/treemapper/>); a native Rust library
//! release is tracked at <https://github.com/nikolay-e/diffctx>.
//!
//! ## Status
//!
//! - **0.x** — name-reservation stub. Public API is intentionally tiny.
//! - **1.x** (planned) — full library surface exposing the diff-seeded
//!   PageRank + lazy-greedy fragment selection as a Rust API.

/// Canonical repository URL for the diffctx project.
pub const REPO: &str = "https://github.com/nikolay-e/diffctx";

/// Canonical PyPI package providing the current implementation.
pub const PYPI_PACKAGE: &str = "treemapper";

/// Returns a one-line pointer for users who landed here looking for code.
pub fn pointer() -> String {
    format!(
        "diffctx is a name-reservation stub; use the `{PYPI_PACKAGE}` Python package or watch {REPO} for a Rust library release."
    )
}

#[cfg(test)]
mod tests {
    use super::*;

    #[test]
    fn pointer_mentions_repo_and_pypi_package() {
        let s = pointer();
        assert!(s.contains(REPO));
        assert!(s.contains(PYPI_PACKAGE));
    }
}