Skip to main content

Crate anodizer_core

Crate anodizer_core 

Source

Re-exports§

pub use determinism::DeterminismState;
pub use determinism_report::AllowList;
pub use determinism_report::AllowListEntry;
pub use determinism_report::ArtifactRow;
pub use determinism_report::CURRENT_SCHEMA_VERSION;
pub use determinism_report::DeterminismReport;
pub use determinism_report::DriftRow;
pub use env_preflight::EnvCheckFailure;
pub use env_preflight::EnvPreflightReport;
pub use env_preflight::EnvProbes;
pub use env_preflight::EnvRequirement;
pub use env_preflight::FailureKind;
pub use env_preflight::KeyKind;
pub use env_preflight::SourcedRequirement;
pub use env_source::EnvSource;
pub use env_source::MapEnvSource;
pub use env_source::ProcessEnvSource;
pub use publish_evidence::PublishEvidence;
pub use publish_evidence::PublishEvidenceExtra;
pub use publish_report::PublishReport;
pub use publish_report::PublisherGroup;
pub use publish_report::PublisherOutcome;
pub use publish_report::PublisherResult;
pub use publish_report::SkipReason;
pub use publisher::PreflightCheck;
pub use publisher::Publisher;
pub use publisher::rollback_empty_warning_msg;
pub use publisher_kind::PublisherKind;
pub use verify_release_summary::VerifyReleaseSummary;

Modules§

arch_path_guard
Guard that converts a silent per-architecture output clobber into an immediate, actionable error.
archive_name
Single source of truth for archive asset naming.
archive_selection
Which crates the archive stage will produce archives for.
artifact
binary_artifact_guard
Build-time guard that converts a silent “no binary produced” failure into an immediate, actionable error.
binstall
build_env
Per-target build-env resolution and amd64 micro-architecture detection.
build_plan
Build-synthesis single source of truth: which build entries a crate actually compiles, and over which target triples.
cargo_lock
cargo invocations needed by the CLI’s tag command.
cargo_package
cargo package invocation for the determinism harness.
changelog_scope
The single per-crate path-scope resolver shared by every changelog renderer (keep-a-changelog, json, and the release-notes stage).
config
content_source
Resolve a ContentSource to its string content.
context
crate_scope
Per-crate template-variable scoping shared by the build stage’s source mutations and the snapshot emission validator.
defaults_merge
Defaults inheritance merge engine (path-mirror).
determinism
SOURCE_DATE_EPOCH seeding + compile-time / runtime allow-list state.
determinism_report
Determinism Harness report types.
determinism_runner
Subprocess runner for the determinism harness.
disk
Disk-headroom instrumentation and a peak-measured fail-fast guard for the determinism harness.
dist
Canonical basenames for the sidecar manifests anodizer writes into the dist/ tree (and the per-run-<id>/ subdir).
docker_build
docker buildx build invocation for the determinism harness.
docker_detect
docker invocations needed by the CLI’s check command.
download_url
Release-asset download-URL derivation, shared by every consumer of metadata["url"].
elf
Minimal, dependency-free ELF inspection.
env
KEY=VAL env-list helpers.
env_expand
Shell-style $VAR / ${VAR} expansion with a pluggable lookup.
env_preflight
Config-derived environment preflight: requirement vocabulary + check engine.
env_source
Process-env-or-injected-map abstraction for reads in production code.
error_class
Deterministic-error classification for the CLI exit contract.
extrafiles
Shared extra_files glob resolution.
fs_atomic
Crash-safe file writes.
git
github_client
GitHub client trait and mock implementation.
harness_signing
Ephemeral signing-key provisioning for the determinism harness.
hashing
Shared hashing helpers.
hooks
http
HTTP client helpers shared by every stage that talks to a remote.
installer
Remote curl | sh installer support — derive the per-target archive asset filenames the installer downloads from the engine, so the script never hardcodes (and silently drifts from) the names the archive stage uploads.
license
SPDX license-expression parsing shared across package-manifest builders.
log
Thin structured logging helper for anodizer stages.
packagers
Packaging-axis config types lifted out of the monolithic crate::config module.
parallel
Shared bounded-parallelism helper used by stages that run one subprocess per sub-config (makeself, nfpm, snapcraft, flatpak, upx, …).
partial
Partial build target resolution for split/merge CI fan-out.
path_util
Path-string utilities shared across config loading, env-file reading, and the template engine.
pipe_skip
Aggregated per-stage skip tracking.
preflight
Pre-flight publisher-state types shared between core and stage-publish.
progress
Heartbeat / liveness progress for long-running work.
publish_evidence
Per-publisher run evidence (the evidence.json shape).
publish_report
publisher
Publisher trait + preflight result type.
publisher_kind
PublisherKind — the single source of truth for anodizer’s publisher vocabulary.
redact
Secret redaction for command output.
retry
Uniform retry-with-exponential-backoff primitives.
run
Single subprocess-execution helper that captures stdout/stderr and routes the result through StageLogger::check_output.
scm
SCM backend abstraction: token type resolution, download URLs, and release URL templates for GitHub, GitLab, and Gitea.
sde
SDE-aware “now” resolver shared across stages.
signing
Sign / docker-sign config types.
stage
stages
Pipeline-stage classification shared across entry points.
target
template
template_file_render
Shared per-entry rendering for the crate::config::TemplateFileConfig shape — the field type behind both top-level template_files: and archive-scoped archives[].templated_files:.
templated_files
Shared utility for processing templated_extra_files across stages.
tls
Process-wide rustls [CryptoProvider] selection.
tool_detect
Generic external-tool detection. The one module answering both availability questions, each right for a different surface:
url
URL encoding helpers.
user_command
Spawn a user-supplied command (e.g. publisher.cmd) with a clean, whitelisted environment.
util
verify_release_summary
Post-publish verification outcome, threaded from the verify-release stage into the end-of-pipeline run summary.
version
Release-version classification.
version_files
Tag-time version-string rewriting for repo-committed files that embed the release version outside Cargo.toml (Helm Chart.yaml, install docs, README badges, …).