git-walk 0.0.1

Read-only discovery of git repositories: walk a file tree and rank the checkouts it finds with cheap git metadata, without invoking git.
Documentation
//! `git-walk` discovers git repositories by walking a file tree.
//!
//! In git terminology a "walk" usually means a *revwalk*: traversing the commit
//! graph. `git-walk` does a different kind of walk: it traverses the
//! *filesystem* to *discover repositories*, reporting each checkout it finds
//! together with cheap, read-only git metadata, without ever invoking the
//! `git` binary.
//!
//! This crate is a work in progress: the discovery API is not implemented yet.

/// Returns the version of the `git-walk` crate, as declared in `Cargo.toml`.
///
/// # Examples
///
/// ```
/// assert_eq!(git_walk::version(), env!("CARGO_PKG_VERSION"));
/// ```
#[must_use]
pub fn version() -> &'static str {
    env!("CARGO_PKG_VERSION")
}

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

    #[test]
    fn version_matches_cargo_metadata() {
        assert_eq!(version(), env!("CARGO_PKG_VERSION"));
    }
}