Skip to main content

git_lfs/
lib.rs

1//! Library surface for the `git-lfs` binary.
2//!
3//! This crate is primarily a binary (see `main.rs`). The library half
4//! exists so the [`xtask`] member can reuse the clap command tree for
5//! man-page generation, and so future tools (shell completions, docs
6//! site, …) have a single source of truth.
7//!
8//! Only `cli_def` and `man` are intentionally public — the rest of the
9//! binary's modules stay private to `main.rs`.
10//!
11//! [`xtask`]: ../xtask/index.html
12
13pub mod args;
14pub mod man;
15
16/// The published version of the `git-lfs` binary. Re-exported so xtask
17/// (and any future consumer) renders the correct banner / man-page
18/// version without baking in a literal.
19pub const VERSION: &str = env!("CARGO_PKG_VERSION");