| Crates.io | ci_group |
| lib.rs | ci_group |
| version | 0.1.0 |
| created_at | 2025-12-29 04:17:47.460914+00 |
| updated_at | 2025-12-29 04:17:47.460914+00 |
| description | RAII log groups for GitHub Actions and Azure Pipelines. Fixes swallowed logs. |
| homepage | |
| repository | https://github.com/aimable100/ci_group |
| max_upload_size | |
| id | 2009939 |
| size | 23,758 |
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.
[dependencies]
ci_group = "0.1"
let _g = ci_group::open("Build");
build(); // group closes automatically, even on panic
Or use the macro:
ci_group::group!("Build", {
build()?;
});
No output outside CI. To preview locally:
GITHUB_ACTIONS=true cargo run # GitHub Actions
TF_BUILD=true cargo run # Azure Pipelines
RAII cannot help if code calls std::process::exit() - destructors are skipped.
Return from main() instead.
MIT OR Apache-2.0