ci_group 0.1.0

RAII log groups for GitHub Actions and Azure Pipelines. Fixes swallowed logs.
Documentation
  • Coverage
  • 100%
    5 out of 5 items documented2 out of 5 items with examples
  • Size
  • Source code size: 23.27 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.37 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • aimable100/ci_group
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • aimable100

ci_group

Crates.io Docs.rs License

A lightweight RAII library for log groups in GitHub Actions and Azure Pipelines.

Fixes "swallowed logs" by closing groups automatically when dropped, preserving output even on panic.

Install

[dependencies]
ci_group = "0.1"

Usage

let _g = ci_group::open("Build");
build(); // group closes automatically, even on panic

Or use the macro:

ci_group::group!("Build", {
    build()?;
});

Local development

No output outside CI. To preview locally:

GITHUB_ACTIONS=true cargo run   # GitHub Actions
TF_BUILD=true cargo run          # Azure Pipelines

Limitation

RAII cannot help if code calls std::process::exit() - destructors are skipped. Return from main() instead.

License

MIT OR Apache-2.0