Stability and versioning
big-code-analysis is on the 2.x line (currently 2.6.0). The
full stability contract lives in STABILITY.md at the
root of the repository. That file is the source of truth and is
updated alongside the changelog at every release; this page is the
summary for library consumers.
The headlines:
- Shape stability across patch and minor bumps. Every public
type and function signature listed in
STABILITY.md § “What is stable in shape” is held
across the
2.xline. Additive changes (new items, newLANGvariants, newMetricsErrorvariants, new language features) are allowed in minor bumps. Breaking shape changes are reserved for the next major bump and will appear in the changelog under (breaking) in the3.0.0section. - No value stability guarantee within
2.x. A grammar pin bump or a bug fix in a metric definition can shift any metric value on any file in any direction, even across a patch bump. Each such drift is flagged in the changelog. Pin to an exact version (big-code-analysis = "= 2.6.0") if you need bit-for-bit reproducibility across runs. - The minimum supported Rust version (MSRV) is
1.94. Bumping the MSRV is treated as a minor-bump event and is flagged in the changelog under (breaking); see STABILITY.md § MSRV policy. - Escape hatches. The
Nodewrapper exposes itstree_sitter::NodethroughNode::as_tree_sitter(), and thetree_sittercrate is re-exported asbig_code_analysis::tree_sitter.Nodealso carries the accessors the metric walk itself uses (kind,kind_id,child,children,child_by_field_name,utf8_text, the position accessors). Their signatures are shape-stable, but the values they return (node kinds andkind_idnumbers) belong to the pinned grammar and move when it does. Anything reached through those seams follows the pinnedtree-sitterversion rather than our own SemVer. See STABILITY.md § Escape hatches before depending on them. big-code-analysis-astis not a stability surface. Since #1376 the parse and classification layer lives in that separate published crate, which this one pins exactly and releases in lockstep. It appears in yourcargo tree. Nothing in it carries a promise of its own: depend onbig-code-analysisand use what it re-exports.
On the 3.0 horizon
The breaking changes once staged for 2.0 shipped in 2.0.0: the
#[non_exhaustive] markers on the open public enums and the
per-metric Stats structs, the serialized-key normalization, the
integer-metric u64 shift, the language-dispatch and grammar
defaults, the Python and REST surface changes, and a consolidated
metric-value re-baseline folding in the drift accumulated since
1.0. The path-positional callback dispatch (action / the
Callback trait), the free metrics / metrics_with_options /
get_function_spaces / metrics_from_tree / get_ops functions,
and the generic Parser<T> / ParserTrait plumbing were removed at
the same time; analyze and Ast are now the single analysis
seam. Since #1376 Parser, ParserTrait and the per-language
parser and tag types live in big-code-analysis-ast, which this
crate does not re-export.
No 3.0 is scheduled. The #[non_exhaustive] markers added at 2.0
keep most future additions (new enum variants, new fields)
non-breaking, so 2.x is the surface you should depend on. See
STABILITY.md § On the 3.0 horizon.