Skip to main content

pcu_release_assets/
lib.rs

1//! Headless clients for a GitHub release's assets, with no git checkout
2//! required.
3//!
4//! [`ReleaseAssetClient`] is read-only by design — extracted from `pcu`'s
5//! `Client` (see jerus-org/pcu#1051) so a consumer that only ever needs to
6//! download an asset — e.g. `jci-audit verify --release-version` fetching a
7//! signed audit record from a bare directory — does not have to depend on
8//! `pcu`'s git/CLI/changelog machinery to get it. [`ReleaseAssetWriter`]
9//! (jerus-org/pcu#1059) is its write-capable sibling, for a consumer that
10//! needs to upload an asset and/or publish the release, still headless.
11
12mod client;
13mod error;
14mod writer;
15
16pub use client::{ReleaseAssetClient, ReleaseRef};
17pub use error::Error;
18pub use writer::ReleaseAssetWriter;