Skip to main content

git_policy_cli/dependent_version/
mod.rs

1//! What:
2//!  The dependent-version policy:
3//!  manifest and import facts,
4//!  the release plan and the policy over them.
5//! Why:
6//!  One policy with many small helpers is easier to read as a folder than as a prefix.
7//!
8//! In TS you'd write (pseudocode):
9//! ```ts
10//! // dependent_version/index.ts: one `export * from './file'` per module below.
11//! ```
12
13/// The repository content the dependent-version planner reads, and its two failure kinds.
14pub mod dependent_version_content;
15
16/// Which paths the dependent-version planner reads: manifests, configuration, source.
17pub mod dependent_version_paths;
18
19/// Strict JSON reading of a manifest's name, version and dependency names.
20pub mod dependent_version_manifest;
21
22/// Patch bumps of plain release versions and `JSON.stringify` quoting.
23pub mod dependent_version_release;
24
25/// The byte-preserving rewrite of a manifest's top-level version.
26pub mod dependent_version_text;
27
28/// Publishable package names from the generated registry configuration.
29pub mod dependent_version_publishable;
30
31/// Whether source text imports a package.
32pub mod dependent_version_imports;
33
34/// The dependency walk and the plan of dependent bumps.
35pub mod dependent_version_graph;
36
37/// Every workspace manifest at both states, and which versions were raised.
38pub mod dependent_version_states;
39
40/// Which development dependencies each dependent bundles.
41pub mod dependent_version_bundled;
42
43/// The dependent-version plan with exact manifest bytes before and after.
44pub mod dependent_version_plan;
45
46/// The decision and findings of `mono/dependent-version-bump`.
47pub mod dependent_version_policy;
48
49/// The dependent-version planner's view of a prepared candidate state.
50pub mod dependent_version_lifecycle;
51
52/// Whether a direct fix may change a tracked file it did not select.
53pub mod policy_added_path;
54
55/// The `mono/dependent-version-bump` check over a lifecycle's candidate state.
56pub mod policy_dependent_version;
57
58/// An in-memory workspace that records reads; never in the release build.
59#[cfg(test)]
60pub(crate) mod dependent_version_test_support;
61
62/// Differential fixture reading and canonical results; never in the release build.
63#[cfg(test)]
64pub(crate) mod dependent_version_fixture_json;
65
66/// Canonical renderings of the native planner's results; never in the release build.
67#[cfg(test)]
68pub(crate) mod dependent_version_fixture_output;
69
70/// One differential case evaluated by the native planner; never in the release build.
71#[cfg(test)]
72pub(crate) mod dependent_version_fixture_cases;
73
74/// The native planner against the incumbent's recorded results; never in the release build.
75#[cfg(test)]
76mod dependent_version_differential_tests;